ALIYUN::ENS::NetworkAclAssociation
更新時(shí)間:
ALIYUN::ENS::NetworkAclAssociation類(lèi)型用于綁定網(wǎng)絡(luò)ACL至網(wǎng)絡(luò)。
語(yǔ)法
{
"Type": "ALIYUN::ENS::NetworkAclAssociation",
"Properties": {
"NetworkAclId": String,
"NetworkIds": List
}
}
屬性
屬性名稱(chēng) | 類(lèi)型 | 必須 | 允許更新 | 描述 | 約束 |
NetworkAclId | String | 是 | 否 | ACL ID。 | 無(wú) |
NetworkIds | List | 是 | 否 | 需要關(guān)聯(lián)的網(wǎng)絡(luò)ID | 最多支持30個(gè)資源。 |
返回值
Fn::GetAtt
NetworkAclId:ACL ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
NetworkAclId:
Type: String
Description:
en: The ID of the network ACL.
Required: true
NetworkIds:
AssociationPropertyMetadata:
Parameter:
Type: String
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: The network id which you want to associate the network ACL.
Required: true
MinLength: 1
MaxLength: 30
Resources:
NetworkAclAssociation:
Type: ALIYUN::ENS::NetworkAclAssociation
Properties:
NetworkAclId:
Ref: NetworkAclId
NetworkIds:
Ref: NetworkIds
Outputs:
NetworkAclId:
Description: The network acl id to associate.
Value:
Fn::GetAtt:
- NetworkAclAssociation
- NetworkAclId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"NetworkAclId": {
"Type": "String",
"Description": {
"en": "The ID of the network ACL."
},
"Required": true
},
"NetworkIds": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The network id which you want to associate the network ACL."
},
"Required": true,
"MinLength": 1,
"MaxLength": 30
}
},
"Resources": {
"NetworkAclAssociation": {
"Type": "ALIYUN::ENS::NetworkAclAssociation",
"Properties": {
"NetworkAclId": {
"Ref": "NetworkAclId"
},
"NetworkIds": {
"Ref": "NetworkIds"
}
}
}
},
"Outputs": {
"NetworkAclId": {
"Description": "The network acl id to associate.",
"Value": {
"Fn::GetAtt": [
"NetworkAclAssociation",
"NetworkAclId"
]
}
}
}
}
文檔內(nèi)容是否對(duì)您有幫助?