AWS::EC2::NetworkAcl
Specifies a network ACL for your VPC.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
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.
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