All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ALB::AccessLogEnable

Last Updated:Apr 09, 2026

The ALIYUN::ALB::AccessLogEnable resource type enables the access log feature.

Syntax

{
  "Type": "ALIYUN::ALB::AccessLogEnable",
  "Properties": {
    "LogStore": String,
    "LoadBalancerId": String,
    "LogProject": String
  }
}

Properties

Parameter

Type

Required

Update allowed

Description

Constraints

LoadBalancerId

String

Yes

No

The ID of the ALB instance.

None

LogProject

String

Yes

No

The Log Service project.

None

LogStore

String

Yes

No

The Log Service logstore.

None

Return value

Attributes returned by Fn::GetAtt:

None

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  LogStore:
    Type: String
    Description:
      en: The name of the logstore.
    Required: true
  LoadBalancerId:
    Type: String
    Description:
      en: The ID of the ALB instance.
    Required: true
  LogProject:
    Type: String
    Description:
      en: The name of the project.
    Required: true
Resources:
  LoadBalancerAccessLogConfigAttachment:
    Type: ALIYUN::ALB::AccessLogEnable
    Properties:
      LogStore:
        Ref: LogStore
      LoadBalancerId:
        Ref: LoadBalancerId
      LogProject:
        Ref: LogProject
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "LogStore": {
      "Type": "String",
      "Description": {
        "en": "The name of the logstore."
      },
      "Required": true
    },
    "LoadBalancerId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the ALB instance."
      },
      "Required": true
    },
    "LogProject": {
      "Type": "String",
      "Description": {
        "en": "The name of the project."
      },
      "Required": true
    }
  },
  "Resources": {
    "LoadBalancerAccessLogConfigAttachment": {
      "Type": "ALIYUN::ALB::AccessLogEnable",
      "Properties": {
        "LogStore": {
          "Ref": "LogStore"
        },
        "LoadBalancerId": {
          "Ref": "LoadBalancerId"
        },
        "LogProject": {
          "Ref": "LogProject"
        }
      }
    }
  }
}