replace_network_acl_association
¶
replace_network_acl_association(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
association_id: Optional[NetworkAclAssociationId] = None,
network_acl_id: Optional[NetworkAclId] = None,
) -> ReplaceNetworkAclAssociationResult
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.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
association_id(Optional[NetworkAclAssociationId], default:None) –The ID of the current association between the original network ACL and the subnet.
-
network_acl_id(Optional[NetworkAclId], default:None) –The ID of the new network ACL to associate with the subnet.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To replace the network ACL associated with a subnet This example associates the specified network ACL with the subnet for the specified network ACL association.
>>> client.replace_network_acl_association(association_id='aclassoc-e5b95c8c', network_acl_id='acl-5fb85d36')
Source code in docs_src/capo_ec2/_services/ec2.py
56988 56989 56990 56991 56992 56993 56994 56995 56996 56997 56998 56999 57000 57001 57002 57003 57004 57005 57006 57007 57008 57009 57010 57011 57012 57013 57014 57015 57016 57017 57018 57019 57020 57021 57022 57023 57024 57025 57026 57027 57028 57029 57030 57031 57032 57033 57034 57035 57036 57037 57038 57039 57040 57041 57042 57043 57044 57045 57046 | |