Data Source: azurermRouteTable
Use this data source to access information about an existing Route Table.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.dataAzurermRouteTable.DataAzurermRouteTable(this, "example", {
name: "myroutetable",
resource_group_name: "some-resource-group",
});
Argument Reference
The following arguments are supported:
-
name
- The name of the Route Table. -
resourceGroupName
- The name of the Resource Group in which the Route Table exists.
Attributes Reference
The following attributes are exported:
-
id
- The Route Table ID. -
location
- The Azure Region in which the Route Table exists. -
route
- One or moreroute
blocks as documented below. -
subnets
- The collection of Subnets associated with this route table. -
tags
- A mapping of tags assigned to the Route Table.
The route
block exports the following:
-
name
- The name of the Route. -
addressPrefix
- The destination CIDR to which the route applies. -
nextHopType
- The type of Azure hop the packet should be sent to. -
nextHopInIpAddress
- Contains the IP address packets should be forwarded to.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Route Table.