Associa uma lista de controle de acesso (ACL) de rede a um vSwitch.
Sintaxe
{
"Type": "ALIYUN::VPC::NetworkAclAssociation",
"Properties": {
"NetworkAclId": String,
"Resources": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Atualização permitida |
Descrição |
Restrições |
|
NetworkAclId |
String |
Sim |
Não |
ID da ACL de rede. |
Nenhuma |
|
Resources |
List |
Sim |
Não |
Recursos para associar à ACL de rede. |
Limite máximo de 20 recursos associados. Para mais informações, consulte Propriedades de Resources. |
Sintaxe de Resources
"Resources": [
{
"ResourceId": String,
"ResourceType": String
}
]
Propriedades de Resources
|
Nome da propriedade |
Tipo |
Obrigatória |
Atualize permitida |
Descrição |
Restrições |
|
ResourceId |
String |
Sim |
Não |
ID do recurso. |
Nenhuma |
|
ResourceType |
String |
Não |
Não |
Tipo do recurso. |
Valor válido: vSwitch (especifica um recurso desse tipo). |
Valor de retorno
Fn::GetAtt
NetworkAclId: ID da ACL de rede.
Exemplos
-
Formato
YAMLROSTemplateFormatVersion: '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 -
Formato
JSON{ "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" ] } } } }