ALIYUN::WAF::LogServiceEnable は、特定のドメイン名に対してログ収集機能を有効にするために使用されます。
構文
{
"Type": "ALIYUN::WAF::LogServiceEnable",
"Properties": {
"InstanceId": String,
"Domain": String
}
}プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| InstanceId | String | Yes | No | Web Application Firewall(WAF)インスタンスの ID です。 | DescribeInstanceInfo オペレーションを呼び出して、WAF インスタンスの ID を照会できます。 |
| Domain | String | Yes | No | WAF に追加されるドメイン名です。 | なし |
レスポンスパラメータ
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