Bir ağ erişim kontrol listesini (ACL) ağlarla ilişkilendirir.
Söz dizimi
{
"Type": "ALIYUN::ENS::NetworkAclAssociation",
"Properties": {
"NetworkAclId": String,
"NetworkIds": List
}
}
Özellikler
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dönüş değerleri
Fn::GetAtt
NetworkAclId: ACL kimliği.
Örnekler
YAML biçimi
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 biçimi
{
"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"
]
}
}
}
}