delete_network_acl

delete_network_acl(**kwargs)

Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL.

See also: AWS API Documentation

Request Syntax

response = client.delete_network_acl(
    DryRun=True|False,
    NetworkAclId='string'
)
Parameters
  • DryRun (boolean) -- 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 is UnauthorizedOperation .
  • NetworkAclId (string) --

    [REQUIRED]

    The ID of the network ACL.

Returns

None

Examples

This example deletes the specified network ACL.

response = client.delete_network_acl(
    NetworkAclId='acl-5fb85d36',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}