getRoute

suspend fun getRoute(argument: GetRoutePlainArgs): GetRouteResult

Specifies a route in a route table. For more information, see Routes in the Amazon VPC User Guide. You must specify either a destination CIDR block or prefix list ID. You must also specify exactly one of the resources as the target. If you create a route that references a transit gateway in the same template where you create the transit gateway, you must declare a dependency on the transit gateway attachment. The route table cannot use the transit gateway until it has successfully attached to the VPC. Add a DependsOn Attribute in the `AWS::EC2::Route` resource to explicitly declare a dependency on the `AWS::EC2::TransitGatewayAttachment` resource.

Return

null

Parameters

argument

null


suspend fun getRoute(cidrBlock: String, routeTableId: String): GetRouteResult

Return

null

Parameters

cidrBlock

The IPv4 CIDR block.

routeTableId

The ID of the route table for the route.

See also


suspend fun getRoute(argument: suspend GetRoutePlainArgsBuilder.() -> Unit): GetRouteResult

Return

null

Parameters

argument

Builder for com.pulumi.awsnative.ec2.kotlin.inputs.GetRoutePlainArgs.

See also