aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociationProps

interface CfnSubnetRouteTableAssociationProps

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

Properties for defining a CfnSubnetRouteTableAssociation.

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';
const cfnSubnetRouteTableAssociationProps: ec2.CfnSubnetRouteTableAssociationProps = {
  routeTableId: 'routeTableId',
  subnetId: 'subnetId',
};

Properties

NameTypeDescription
routeTableIdstringThe ID of the route table.
subnetIdstringThe ID of the subnet.

routeTableId

Type: string

The ID of the route table.

The physical ID changes when the route table ID is changed.


subnetId

Type: string

The ID of the subnet.