Skip to content

azurermMapsCreator

Manages an Azure Maps Creator.

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: "G2",
    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");
const azurermMapsCreatorExample = new azurerm.mapsCreator.MapsCreator(
  this,
  "example_2",
  {
    location: azurermResourceGroupExample.location,
    maps_account_id: azurermMapsAccountExample.id,
    name: "example-maps-creator",
    storage_units: 1,
    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.*/
azurermMapsCreatorExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • name - (Required) The name of the Azure Maps Creator. Changing this forces a new resource to be created.

  • mapsAccountId - (Required) The ID of the Azure Maps Creator. Changing this forces a new resource to be created.

  • location - (Required) The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.

  • storageUnits - (Required) The storage units to be allocated. Integer values from 1 to 100, inclusive.

  • tags - (Optional) A mapping of tags which should be assigned to the Azure Maps Creator.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Azure Maps Creator.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the Azure Maps Creator.
  • read - (Defaults to 5 minutes) Used when retrieving the Azure Maps Creator.
  • update - (Defaults to 30 minutes) Used when updating the Azure Maps Creator.
  • delete - (Defaults to 30 minutes) Used when deleting the Azure Maps Creator.

Import

An Azure Maps Creators can be imported using the resourceId, e.g.

terraform import azurerm_maps_creator.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Maps/accounts/account1/creators/creator1