azurermMapsAccount
Manages an Azure Maps Account.
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.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermMapsAccountExample = new azurerm.mapsAccount.MapsAccount(
this,
"example_1",
{
name: "example-maps-account",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "S1",
tags: {
environment: "Test",
},
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMapsAccountExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the Azure Maps Account. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the Resource Group in which the Azure Maps Account should exist. Changing this forces a new resource to be created. -
skuName
- (Required) The SKU of the Azure Maps Account. Possible values ares0
,s1
andg2
. Changing this forces a new resource to be created. -
tags
- (Optional) A mapping of tags to assign to the Azure Maps Account.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
id
- The ID of the Azure Maps Account. -
primaryAccessKey
- The primary key used to authenticate and authorize access to the Maps REST APIs. -
secondaryAccessKey
- The secondary key used to authenticate and authorize access to the Maps REST APIs. -
xMsClientId
- A unique identifier for the Maps Account.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Maps Account.update
- (Defaults to 30 minutes) Used when updating the Maps Account.read
- (Defaults to 5 minutes) Used when retrieving the Maps Account.delete
- (Defaults to 30 minutes) Used when deleting the Maps Account.
Import
A Maps Account can be imported using the resourceId
, e.g.