delete_network_acl_entry
async
¶
delete_network_acl_entry(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
network_acl_id: Optional[NetworkAclId] = None,
rule_number: Optional[Integer] = None,
egress: Optional[Boolean] = None,
) -> None
Deletes the specified ingress or egress entry (rule) from the specified network ACL.
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. -
network_acl_id(Optional[NetworkAclId], default:None) –The ID of the network ACL.
-
rule_number(Optional[Integer], default:None) –The rule number of the entry to delete.
-
egress(Optional[Boolean], default:None) –Indicates whether the rule is an egress rule.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a network ACL entry This example deletes ingress rule number 100 from the specified network ACL.
>>> await client.delete_network_acl_entry(network_acl_id='acl-5fb85d36', rule_number=100, egress=True)
Source code in docs_src/capo_ec2/_services/async_ec2.py
17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 | |