Define a new custom network ACL. By default, will deny all inbound and outbound traffic unless entries are added explicitly allowing it.
import { NetworkAcl } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.NetworkAclConfiguration passed to the constructor as NetworkAclProps.
vpcRequiredIVpcThe VPC in which to create the NetworkACL.
networkAclNameOptionalstringThe name of the NetworkAcl. Since the NetworkAcl resource doesn't support providing a physical name, the value provided here will be recorded in the `Name` tag.
Default: CDK generated name
subnetSelectionOptionalSubnetSelectionSubnets in the given VPC to associate the ACL with. More subnets can always be added later by calling `associateWithSubnets()`.
Default: - No subnets associated
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2