AWS::EC2::GatewayRouteTableAssociationAssociates a virtual private gateway or internet gateway with a route table. The gateway and route table must be in the same VPC. This association causes the incoming traffic to the gateway to be routed according to the routes in the route table.
import { CfnGatewayRouteTableAssociation } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnGatewayRouteTableAssociationConfiguration passed to the constructor as CfnGatewayRouteTableAssociationProps.
gatewayIdRequiredstring | IInternetGatewayRef | IVPNGatewayRefThe ID of the gateway.
routeTableIdRequiredstring | IRouteTableRefThe ID of the route table.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::GatewayRouteTableAssociation