Mengasosiasikan Network Access Control List (ACL) dengan vSwitch.
Syntax
{
"Type": "ALIYUN::VPC::NetworkAclAssociation",
"Properties": {
"NetworkAclId": String,
"Resources": List
}
}
Properties
| Property | Type | Required | Update allowed | Description | Constraints |
| NetworkAclId | String | Yes | No | ID dari network ACL. | None |
| Resources | List | Yes | No | Resource yang akan diasosiasikan dengan network ACL. | Anda dapat mengasosiasikan maksimal 20 resource. Untuk informasi selengkapnya, lihat Resources properties. |
Resources syntax
"Resources": [
{
"ResourceId": String,
"ResourceType": String
}
]
Resources properties
| Property Name | Type | Required | Update allowed | Description | Constraints |
| ResourceId | String | Yes | No | ID dari resource. | None |
| ResourceType | String | Tidak | Tidak | Tipe dari resource. | Nilai yang valid: vSwitch, yang menentukan resource vSwitch. |
Return value
Fn::GetAtt
NetworkAclId: ID dari Network ACL.
Examples
-
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "NetworkAclId": { "Type": "String", "Description": "The ID of the network ACL." }, "VSwitchId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId" } }, "Resources": { "NetworkAclAssociation": { "Type": "ALIYUN::VPC::NetworkAclAssociation", "Properties": { "NetworkAclId": { "Ref": "NetworkAclId" }, "Resources": [ { "ResourceId": { "Ref": "VSwitchId" }, "ResourceType": "VSwitch" } ] } } }, "Outputs": { "NetworkAclId": { "Description": "The ID of the network ACL.", "Value": { "Fn::GetAtt": [ "NetworkAclAssociation", "NetworkAclId" ] } } } }