すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::WAF::LogServiceEnable

最終更新日:Jan 16, 2025

ALIYUN::WAF::LogServiceEnable は、特定のドメイン名に対してログ収集機能を有効にするために使用されます。

構文

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

プロパティ

プロパティタイプ必須編集可能説明制約
InstanceIdStringYesNoWeb Application Firewall(WAF)インスタンスの ID です。DescribeInstanceInfo オペレーションを呼び出して、WAF インスタンスの ID を照会できます。
DomainStringYesNoWAF に追加されるドメイン名です。なし

レスポンスパラメータ

Fn::GetAtt

  • InstanceId: WAF インスタンスの ID です。
  • Domain: WAF に追加されるドメイン名です。

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." // WAF インスタンスの ID です。\nDescribeInstanceInfo オペレーションを呼び出して、WAF インスタンスの ID を照会できます。
    },
    "Domain": {
      "Type": "String",
      "Description": "The domain name that is added to WAF." // 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.", // WAF インスタンスの ID です。\nDescribeInstanceInfo オペレーションを呼び出して、WAF インスタンスの ID を照会できます。
      "Value": {
        "Fn::GetAtt": [
          "LogServiceEnable",
          "InstanceId"
        ]
      }
    },
    "Domain": {
      "Description": "The domain name that is added to WAF.", // WAF に追加されるドメイン名です。
      "Value": {
        "Fn::GetAtt": [
          "LogServiceEnable",
          "Domain"
        ]
      }
    }
  }
}

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Domain:
    Description: The domain name that is added to WAF. # 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.' # WAF インスタンスの ID です。

      # DescribeInstanceInfo オペレーションを呼び出して、WAF インスタンスの ID を照会できます。
    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. # 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.' # WAF インスタンスの ID です。

      # DescribeInstanceInfo オペレーションを呼び出して、WAF インスタンスの ID を照会できます。
    Value:
      Fn::GetAtt:
      - LogServiceEnable
      - InstanceId