AWS::EC2::NetworkAcl - AWS CloudFormation

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

The tags for the network ACL.

Required: No

Type: Array 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 ID of the network ACL.

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

Fn::GetAtt

The Fn::GetAtt intrinsic 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::GetAtt intrinsic 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