Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::WAF::LogServiceEnable

Última atualização: Jun 27, 2026

ALIYUN::WAF::LogServiceEnable ativa o recurso de coleta de logs para um nome de domínio específico.

Sintaxe

{
  "Type": "ALIYUN::WAF::LogServiceEnable",
  "Properties": {
    "InstanceId": String,
    "Domain": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

InstanceId

String

Sim

Não

ID da instância do Web Application Firewall (WAF).

Chame a operação DescribeInstanceInfo para consultar o ID da instância do WAF.

Domain

String

Sim

Não

Nome de domínio adicionado ao WAF.

Nenhuma

Parâmetros de resposta

Fn::GetAtt

  • InstanceId: ID da instância do WAF.

  • Domain: nome de domínio adicionado ao WAF.

Exemplos

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": "The ID of the WAF instance.\nYou can call the DescribeInstanceInfo operation to query the ID of the WAF instance."
    },
    "Domain": {
      "Type": "String",
      "Description": "The domain name that is added to WAF."
    }
  },
  "Resources": {
    "LogServiceEnable": {
      "Type": "ALIYUN::WAF::LogServiceEnable",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "Domain": {
          "Ref": "Domain"
        }
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Description": "The ID of the WAF instance.\nYou can call the DescribeInstanceInfo operation to query the ID of the WAF instance.",
      "Value": {
        "Fn::GetAtt": [
          "LogServiceEnable",
          "InstanceId"
        ]
      }
    },
    "Domain": {
      "Description": "The domain name that is added to WAF.",
      "Value": {
        "Fn::GetAtt": [
          "LogServiceEnable",
          "Domain"
        ]
      }
    }
  }
}

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Domain:
    Description: The domain name that is added to WAF.
    Type: String
  InstanceId:
    Description: 'The ID of the WAF instance.

      You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.'
    Type: String
Resources:
  LogServiceEnable:
    Properties:
      Domain:
        Ref: Domain
      InstanceId:
        Ref: InstanceId
    Type: ALIYUN::WAF::LogServiceEnable
Outputs:
  Domain:
    Description: The domain name that is added to WAF.
    Value:
      Fn::GetAtt:
      - LogServiceEnable
      - Domain
  InstanceId:
    Description: 'The ID of the WAF instance.

      You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.'
    Value:
      Fn::GetAtt:
      - LogServiceEnable
      - InstanceId