Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ALB::AccessLogEnable

Última atualização: Jun 27, 2026

Ativa o registro de logs de acesso de uma instância do Application Load Balancer (ALB).

Sintaxe

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

Propriedades

Parâmetro

Tipo

Obrigatório

Atualização permitida

Descrição

Restrições

LoadBalancerId

String

Sim

Não

ID da instância ALB.

Nenhuma

LogProject

String

Sim

Não

Nome do projeto do Log Service.

Nenhuma

LogStore

String

Sim

Não

Nome do Logstore do Log Service.

Nenhuma

Valor de retorno

Atributos Fn::GetAtt:

Nenhum

Exemplos

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"
        }
      }
    }
  }
}