Skip to content

Latest commit

 

History

History
116 lines (91 loc) · 1.97 KB

azurerm_security_center_setting.md

File metadata and controls

116 lines (91 loc) · 1.97 KB

azurerm_security_center_setting

back

Index

Terraform

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

top

Example Usage

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

  # enabled - (required) is a type of bool
  enabled = null
  # setting_name - (required) is a type of string
  setting_name = null

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

top

Variables

variable "enabled" {
  description = "(required)"
  type        = bool
}

variable "setting_name" {
  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_setting" "this" {
  # enabled - (required) is a type of bool
  enabled = var.enabled
  # setting_name - (required) is a type of string
  setting_name = var.setting_name

  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_setting.this.id
}

output "this" {
  value = azurerm_security_center_setting.this
}

top