AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

SubnetNetworkAclAssociation

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as SubnetNetworkAclAssociationProps.

networkAclRequired
INetworkAclRef

The Network ACL this association is defined for.

subnetRequired
ISubnet

ID of the Subnet.

subnetNetworkAclAssociationNameOptional
string

The name of the SubnetNetworkAclAssociation. It is not recommended to use an explicit name.

Default: If you don't specify a SubnetNetworkAclAssociationName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

Get the Amazon EC2 Cheat Sheet

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

Download Free Infographic