Skip to content
v2.278.0

CfnGatewayRouteTableAssociationProps Struct ​

Properties for defining a CfnGatewayRouteTableAssociation.

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 cfnGatewayRouteTableAssociationProps: ec2.CfnGatewayRouteTableAssociationProps = {
  gatewayId: 'gatewayId',
  routeTableId: 'routeTableId',
};
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_gateway_route_table_association_props = ec2.CfnGatewayRouteTableAssociationProps(
    gateway_id="gatewayId",
    route_table_id="routeTableId"
)
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.*;

CfnGatewayRouteTableAssociationProps cfnGatewayRouteTableAssociationProps = CfnGatewayRouteTableAssociationProps.builder()
        .gatewayId("gatewayId")
        .routeTableId("routeTableId")
        .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 cfnGatewayRouteTableAssociationProps = new CfnGatewayRouteTableAssociationProps {
    GatewayId = "gatewayId",
    RouteTableId = "routeTableId"
};
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"

cfnGatewayRouteTableAssociationProps := &CfnGatewayRouteTableAssociationProps{
	GatewayId: jsii.String("gatewayId"),
	RouteTableId: jsii.String("routeTableId"),
}

Properties ​

gatewayIdstring | IInternetGatewayRef | IVPNGatewayRefgateway_idtyping.Union[str, IInternetGatewayRef, IVPNGatewayRef]gatewayIdStringGatewayIdstringGatewayIdinterface{} required #
The ID of the gateway.
routeTableIdstring | IRouteTableRefroute_table_idtyping.Union[str, IRouteTableRef]routeTableIdStringRouteTableIdstringRouteTableIdinterface{} required #
The ID of the route table.