NetworkAclProps Struct
Properties to create NetworkAcl.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpc: ec2.Vpc;
const networkAclProps: ec2.NetworkAclProps = {
vpc: vpc,
// the properties below are optional
networkAclName: 'networkAclName',
subnetSelection: {
availabilityZones: ['availabilityZones'],
onePerAz: false,
subnetFilters: [subnetFilter],
subnetGroupName: 'subnetGroupName',
subnets: [subnet],
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
},
};
Properties
networkAclNamestringnetwork_acl_namestrnetworkAclNameStringNetworkAclNamestringNetworkAclName*string= CDK generated name#The 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.
subnetSelectionSubnetSelectionsubnet_selectionSubnetSelectionsubnetSelectionSubnetSelectionSubnetSelectionSubnetSelectionSubnetSelectionSubnetSelection= No subnets associated#Subnets in the given VPC to associate the ACL with.
More subnets can always be added later by calling associateWithSubnets().