AWS::EC2::NetworkAcl
Specifies a network ACL for your VPC.
To add a network ACL entry, see AWS::EC2::NetworkAclEntry.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
Properties
-
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
-
CreateNetworkAcl in the Amazon EC2 API Reference
-
Network ACLs in the Amazon VPC User Guide