ALIYUN::ENS::NetworkAclAssociation is used to associate a network access control list (ACL) with networks.
Syntax
{
"Type": "ALIYUN::ENS::NetworkAclAssociation",
"Properties": {
"NetworkAclId": String,
"NetworkIds": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
NetworkAclId | String | Yes | No | The ACL ID. | None. |
NetworkIds | List | Yes | No | The IDs of the networks that you want to associate with the network ACL. | You can specify up to 30 network IDs. |
Return values
Fn::GetAtt
NetworkAclId: the ACL ID.
Examples
YAML
format
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
format
{
"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"
]
}
}
}
}