aws-cdk-lib.aws_ec2.SubnetNetworkAclAssociationProps

interface SubnetNetworkAclAssociationProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.SubnetNetworkAclAssociationProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#SubnetNetworkAclAssociationProps
Javasoftware.amazon.awscdk.services.ec2.SubnetNetworkAclAssociationProps
Pythonaws_cdk.aws_ec2.SubnetNetworkAclAssociationProps
TypeScript (source)aws-cdk-lib » aws_ec2 » SubnetNetworkAclAssociationProps

Properties to create a SubnetNetworkAclAssociation.

Example

// 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 networkAcl: ec2.NetworkAcl;
declare const subnet: ec2.Subnet;
const subnetNetworkAclAssociationProps: ec2.SubnetNetworkAclAssociationProps = {
  networkAcl: networkAcl,
  subnet: subnet,

  // the properties below are optional
  subnetNetworkAclAssociationName: 'subnetNetworkAclAssociationName',
};

Properties

NameTypeDescription
networkAclINetworkAclThe Network ACL this association is defined for.
subnetISubnetID of the Subnet.
subnetNetworkAclAssociationName?stringThe name of the SubnetNetworkAclAssociation.

networkAcl

Type: INetworkAcl

The Network ACL this association is defined for.


subnet

Type: ISubnet

ID of the Subnet.


subnetNetworkAclAssociationName?

Type: string (optional, default: If you don't specify a SubnetNetworkAclAssociationName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.)

The name of the SubnetNetworkAclAssociation.

It is not recommended to use an explicit name.