Skip to content

Latest commit

 

History

History
117 lines (92 loc) · 2.06 KB

azurerm_security_center_subscription_pricing.md

File metadata and controls

117 lines (92 loc) · 2.06 KB

azurerm_security_center_subscription_pricing

back

Index

Terraform

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

top

Example Usage

module "azurerm_security_center_subscription_pricing" {
  source = "./modules/azurerm/r/azurerm_security_center_subscription_pricing"

  # resource_type - (optional) is a type of string
  resource_type = null
  # tier - (required) is a type of string
  tier = null

  timeouts = [{
    create = null
    delete = null
    read   = null
    update = null
  }]
}

top

Variables

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

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

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

top

Resource

resource "azurerm_security_center_subscription_pricing" "this" {
  # resource_type - (optional) is a type of string
  resource_type = var.resource_type
  # tier - (required) is a type of string
  tier = var.tier

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

}

top

Outputs

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

output "this" {
  value = azurerm_security_center_subscription_pricing.this
}

top