AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::NetworkAcl

CfnNetworkAcl

Specifies a network ACL for your VPC. To add a network ACL entry, see [AWS::EC2::NetworkAclEntry](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html) .

Import

import { CfnNetworkAcl } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnNetworkAcl

Properties

Configuration passed to the constructor as CfnNetworkAclProps.

vpcIdRequired
string | IVPCRef

The ID of the VPC for the network ACL.

tagsOptional
CfnTag[]

The tags for the network ACL.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic