AWS::EC2::NetworkAcl - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::EC2::NetworkAcl

Specifies a network ACL for your VPC.

Syntax

To declare this entity in your Amazon 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

The tags for the network 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 Reffunction, Refreturns the resource name.

For more information about using the Reffunction, see Ref.

Fn::GetAtt

The Fn::GetAttintrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAttintrinsic function, see Fn::GetAtt.

Id

The ID of the network ACL.

Examples

Network ACL

The following example creates a network ACL.

JSON

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

YAML

myNetworkAcl: Type: AWS::EC2::NetworkAcl Properties: VpcId: Ref: myVPC Tags: - Key: stack Value: production

See also