Skip to content
v2.277.0

CfnTransitGatewayRouteTableAssociationProps Struct ​

Properties for defining a CfnTransitGatewayRouteTableAssociation.

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 cfnTransitGatewayRouteTableAssociationProps: ec2.CfnTransitGatewayRouteTableAssociationProps = {
  transitGatewayAttachmentId: 'transitGatewayAttachmentId',
  transitGatewayRouteTableId: 'transitGatewayRouteTableId',
};
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_transit_gateway_route_table_association_props = ec2.CfnTransitGatewayRouteTableAssociationProps(
    transit_gateway_attachment_id="transitGatewayAttachmentId",
    transit_gateway_route_table_id="transitGatewayRouteTableId"
)
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.*;

CfnTransitGatewayRouteTableAssociationProps cfnTransitGatewayRouteTableAssociationProps = CfnTransitGatewayRouteTableAssociationProps.builder()
        .transitGatewayAttachmentId("transitGatewayAttachmentId")
        .transitGatewayRouteTableId("transitGatewayRouteTableId")
        .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 cfnTransitGatewayRouteTableAssociationProps = new CfnTransitGatewayRouteTableAssociationProps {
    TransitGatewayAttachmentId = "transitGatewayAttachmentId",
    TransitGatewayRouteTableId = "transitGatewayRouteTableId"
};
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"

cfnTransitGatewayRouteTableAssociationProps := &CfnTransitGatewayRouteTableAssociationProps{
	TransitGatewayAttachmentId: jsii.String("transitGatewayAttachmentId"),
	TransitGatewayRouteTableId: jsii.String("transitGatewayRouteTableId"),
}

Properties ​

transitGatewayAttachmentIdstring | ITransitGatewayAttachmentReftransit_gateway_attachment_idtyping.Union[str, ITransitGatewayAttachmentRef]transitGatewayAttachmentIdStringTransitGatewayAttachmentIdstringTransitGatewayAttachmentIdinterface{}required#
The ID of the attachment.
transitGatewayRouteTableIdstring | ITransitGatewayRouteTableReftransit_gateway_route_table_idtyping.Union[str, ITransitGatewayRouteTableRef]transitGatewayRouteTableIdStringTransitGatewayRouteTableIdstringTransitGatewayRouteTableIdinterface{}required#
The ID of the route table for the transit gateway.