describeRouteTables
inline suspend fun Ec2Client.describeRouteTables(crossinline block: DescribeRouteTablesRequest.Builder.() -> Unit): DescribeRouteTablesResponse
Describes one or more of your route tables.
Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.
For more information, see Route tables in the Amazon VPC User Guide.
Samples
fun main() {
//sampleStart
// This example describes the specified route table.
val resp = ec2Client.describeRouteTables {
routeTableIds = listOf<String>(
"rtb-1f382e7d"
)
}
//sampleEnd
}