Skip to content

Latest commit

 

History

History
136 lines (106 loc) · 2.32 KB

azurerm_maps_account.md

File metadata and controls

136 lines (106 loc) · 2.32 KB

azurerm_maps_account

back

Index

Terraform

terraform {
  required_providers {
    azurerm = ">= 2.54.0"
  }
}

top

Example Usage

module "azurerm_maps_account" {
  source = "./modules/azurerm/d/azurerm_maps_account"

  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # tags - (optional) is a type of map of string
  tags = {}

  timeouts = [{
    read = null
  }]
}

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

variable "resource_group_name" {
  description = "(required)"
  type        = string
}

variable "tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      read = string
    }
  ))
  default = []
}

top

Datasource

data "azurerm_maps_account" "this" {
  # name - (required) is a type of string
  name = var.name
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name
  # tags - (optional) is a type of map of string
  tags = var.tags

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # read - (optional) is a type of string
      read = timeouts.value["read"]
    }
  }

}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.azurerm_maps_account.this.id
}

output "primary_access_key" {
  description = "returns a string"
  value       = data.azurerm_maps_account.this.primary_access_key
  sensitive   = true
}

output "secondary_access_key" {
  description = "returns a string"
  value       = data.azurerm_maps_account.this.secondary_access_key
  sensitive   = true
}

output "sku_name" {
  description = "returns a string"
  value       = data.azurerm_maps_account.this.sku_name
}

output "x_ms_client_id" {
  description = "returns a string"
  value       = data.azurerm_maps_account.this.x_ms_client_id
}

output "this" {
  value = azurerm_maps_account.this
}

top