Skip to content
v2.278.0

CfnSubnetNetworkAclAssociationProps Struct ​

Properties for defining a CfnSubnetNetworkAclAssociation.

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';
const cfnSubnetNetworkAclAssociationProps: ec2.CfnSubnetNetworkAclAssociationProps = {
  networkAclId: 'networkAclId',
  subnetId: 'subnetId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_subnet_network_acl_association_props = ec2.CfnSubnetNetworkAclAssociationProps(
    network_acl_id="networkAclId",
    subnet_id="subnetId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnSubnetNetworkAclAssociationProps cfnSubnetNetworkAclAssociationProps = CfnSubnetNetworkAclAssociationProps.builder()
        .networkAclId("networkAclId")
        .subnetId("subnetId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var cfnSubnetNetworkAclAssociationProps = new CfnSubnetNetworkAclAssociationProps {
    NetworkAclId = "networkAclId",
    SubnetId = "subnetId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSubnetNetworkAclAssociationProps := &CfnSubnetNetworkAclAssociationProps{
	NetworkAclId: jsii.String("networkAclId"),
	SubnetId: jsii.String("subnetId"),
}

Properties ​

networkAclIdstring | INetworkAclRefnetwork_acl_idtyping.Union[str, INetworkAclRef]networkAclIdStringNetworkAclIdstringNetworkAclIdinterface{} required #
The ID of the network ACL.
subnetIdstring | ISubnetRefsubnet_idtyping.Union[str, ISubnetRef]subnetIdStringSubnetIdstringSubnetIdinterface{} required #
The ID of the subnet.