replaceNetworkAclAssociation

Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon VPC User Guide.

This is an idempotent operation.

Samples


fun main() { 
   //sampleStart 
   // This example associates the specified network ACL with the subnet for the specified network ACL
// association.
val resp = ec2Client.replaceNetworkAclAssociation {
    associationId = "aclassoc-e5b95c8c"
    networkAclId = "acl-5fb85d36"
} 
   //sampleEnd
}