Skip to content

Data Source: azurermMapsAccount

Use this data source to access information about an existing Azure Maps Account.

Example Usage

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 dataAzurermMapsAccountExample =
  new azurerm.dataAzurermMapsAccount.DataAzurermMapsAccount(this, "example", {
    name: "production",
    resource_group_name: "maps",
  });
new cdktf.TerraformOutput(this, "maps_account_id", {
  value: dataAzurermMapsAccountExample.id,
});

Argument Reference

  • name - Specifies the name of the Maps Account.

  • resourceGroupName - Specifies the name of the Resource Group in which the Maps Account is located.

Attributes Reference

  • id - The ID of the Maps Account.

  • skuName - The SKU of the Azure Maps Account.

  • primaryAccessKey - The primary key used to authenticate and authorize access to the Maps REST APIs.

  • secondaryAccessKey - The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

  • xMsClientId - A unique identifier for the Maps Account.

Timeouts

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

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