EC2.Client.
delete_network_acl_entry
(**kwargs)¶Deletes the specified ingress or egress entry (rule) from the specified network ACL.
See also: AWS API Documentation
Request Syntax
response = client.delete_network_acl_entry(
DryRun=True|False,
Egress=True|False,
NetworkAclId='string',
RuleNumber=123
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.[REQUIRED]
Indicates whether the rule is an egress rule.
[REQUIRED]
The ID of the network ACL.
[REQUIRED]
The rule number of the entry to delete.
None
Examples
This example deletes ingress rule number 100 from the specified network ACL.
response = client.delete_network_acl_entry(
Egress=True,
NetworkAclId='acl-5fb85d36',
RuleNumber=100,
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}