Skip to content

Data Source: azurermTrafficManagerGeographicalLocation

Use this data source to access the ID of a specified Traffic Manager Geographical Location within the Geographical Hierarchy.

Example Usage (World)

import * as cdktf from "cdktf";
/*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.*/
const dataAzurermTrafficManagerGeographicalLocationExample =
  new azurerm.dataAzurermTrafficManagerGeographicalLocation.DataAzurermTrafficManagerGeographicalLocation(
    this,
    "example",
    {
      name: "World",
    }
  );
new cdktf.TerraformOutput(this, "location_code", {
  value: dataAzurermTrafficManagerGeographicalLocationExample.id,
});

Argument Reference

  • name - Specifies the name of the Location, for example world, europe or germany.

Attributes Reference

  • id - The ID of this Location, also known as the code of this Location.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Location.