replace_network_acl_association
async
¶
replace_network_acl_association(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await client.replace_network_acl_association(association_id='aclassoc-e5b95c8c', network_acl_id='acl-5fb85d36')
Source code in docs_src/capo_ec2/_services/async_ec2.py
57785 57786 57787 57788 57789 57790 57791 57792 57793 57794 57795 57796 57797 57798 57799 57800 57801 57802 57803 57804 57805 57806 57807 57808 57809 57810 57811 57812 57813 57814 57815 57816 57817 57818 57819 57820 57821 57822 57823 57824 57825 57826 57827 57828 57829 57830 57831 57832 57833 57834 57835 57836 57837 57838 57839 57840 57841 57842 57843 57844 | |