AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

AWS::EC2::NetworkAcl

Specifies a network ACL for your VPC.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::EC2::NetworkAcl", "Properties" : { "Tags" : [ Tag, ... ], "VpcId" : String } }

YAML

Type: AWS::EC2::NetworkAcl Properties: Tags: - Tag VpcId: String

Properties

Tags

An arbitrary set of tags (key–value pairs) for this ACL.

Required: No

Type: List of Tag

Update requires: No interruption

VpcId

The ID of the VPC for the network ACL.

Required: Yes

Type: String

Update requires: Replacement

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the resource name.

For more information about using the Ref function, see Ref.

Examples

Network ACL

The following example creates a Network ACL in a VPC.

JSON

"myNetworkAcl" : { "Type" : "AWS::EC2::NetworkAcl", "Properties" : { "VpcId" : { "Ref" : "myVPC" }, "Tags" : [ { "Key" : "foo", "Value" : "bar" } ] } }

YAML

myNetworkAcl: Type: AWS::EC2::NetworkAcl Properties: VpcId: Ref: myVPC Tags: - Key: foo Value: bar

See Also