ReplaceNetworkAclAssociation#

Changes which Network ACL a subnet is associated with.

Request Parameters#

  • AssociationId — The ID of the current association between the original Network ACL and the subnet. It’s automatically created when you create a subnet or the subnet is associated with another Network ACL.

    • Type: String

    • Required: Yes

  • NetworkAclId — The ID of the new Network ACL to associate with the subnet.

    • Type: String

    • Required: Yes

Response Elements#

  • newAssociationId — The ID of the new association between the subnet and network ACL.

    • Type: String

  • requestId — The request ID.

    • Type: String

Examples#

c2-ec2 ReplaceNetworkAclAssociation AssociationId <association_id> NetworkAclId <network_acl_id>