Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

describeRouteTables

abstract suspend fun describeRouteTables(input: DescribeRouteTablesRequest = DescribeRouteTablesRequest { }): DescribeRouteTablesResponse

Describes your route tables. The default is to describe all your route tables. Alternatively, you can specify specific route table IDs or filter the results to include only the route tables that match specific criteria.

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
}