Creates a network ACL in a VPC

Request Parameters#

Required parameters#

  • VpcId — The ID of the VPC.

    • Type: String

    • Required: Yes

Optional parameters#

  • TagSpecification.N — The tags assigned to the resource when it is created.

Response Elements#

  • networkAcl — Information about the network ACL.

  • requestId — The request ID

    • Type: String


c2-ec2 CreateNetworkAcl VpcId <vpc_id>

c2-ec2 CreateNetworkAcl VpcId <vpc_id> TagSpecification.0.ResourceType network-acl \
                        TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"