AWS::EC2::NetworkAcl
Creates a new network ACL in a VPC.
Topics
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::EC2::NetworkAcl", "Properties" : { "Tags" : [Resource Tag, ...], "VpcId" :String} }
Properties
Tags-
An arbitrary set of tags (key–value pairs) for this ACL.
Required: No
Type: Resource Tag
Update requires: No interruption.
VpcId-
The ID of the VPC where the network ACL will be created.
Required: Yes
Type: String
Update requires: Replacement
Return Values
Ref
When the logical ID of this resource is provided to the Ref intrinsic
function, Ref returns the resource name.
For more information about using the Ref function, see Ref.
Example
JSON
{ "AWSTemplateFormatVersion" : "2010-09-09", "Resources" : { "myNetworkAcl" : { "Type" : "AWS::EC2::NetworkAcl", "Properties" : { "VpcId" : { "Ref" : "myVPC" }, "Tags" : [ { "Key" : "foo", "Value" : "bar" } ] } } } }
YAML
AWSTemplateFormatVersion: '2010-09-09' Resources: myNetworkAcl: Type: AWS::EC2::NetworkAcl Properties: VpcId: Ref: myVPC Tags: - Key: foo Value: bar
See Also
-
CreateNetworkAcl in the Amazon EC2 API Reference
-
Network ACLs in the Amazon Virtual Private Cloud User Guide.
