Skip to content

Delete Network Acl

ec2_delete_network_acl R Documentation

Deletes the specified network ACL

Description

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.

Usage

ec2_delete_network_acl(DryRun, NetworkAclId)

Arguments

DryRun

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

[required] The ID of the network ACL.

Value

An empty list.

Request syntax

svc$delete_network_acl(
  DryRun = TRUE|FALSE,
  NetworkAclId = "string"
)

Examples

## Not run: 
# This example deletes the specified network ACL.
svc$delete_network_acl(
  NetworkAclId = "acl-5fb85d36"
)

## End(Not run)