Skip to content

Latest commit

 

History

History
161 lines (126 loc) · 3.12 KB

azurerm_policy_set_definition.md

File metadata and controls

161 lines (126 loc) · 3.12 KB

azurerm_policy_set_definition

back

Index

Terraform

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

top

Example Usage

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

  # display_name - (optional) is a type of string
  display_name = null
  # management_group_name - (optional) is a type of string
  management_group_name = null
  # name - (optional) is a type of string
  name = null

  timeouts = [{
    read = null
  }]
}

top

Variables

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

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

variable "name" {
  description = "(optional)"
  type        = 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_policy_set_definition" "this" {
  # display_name - (optional) is a type of string
  display_name = var.display_name
  # management_group_name - (optional) is a type of string
  management_group_name = var.management_group_name
  # name - (optional) is a type of string
  name = var.name

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

}

top

Outputs

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

output "display_name" {
  description = "returns a string"
  value       = data.azurerm_policy_set_definition.this.display_name
}

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

output "metadata" {
  description = "returns a string"
  value       = data.azurerm_policy_set_definition.this.metadata
}

output "name" {
  description = "returns a string"
  value       = data.azurerm_policy_set_definition.this.name
}

output "parameters" {
  description = "returns a string"
  value       = data.azurerm_policy_set_definition.this.parameters
}

output "policy_definition_group" {
  description = "returns a list of object"
  value       = data.azurerm_policy_set_definition.this.policy_definition_group
}

output "policy_definition_reference" {
  description = "returns a list of object"
  value       = data.azurerm_policy_set_definition.this.policy_definition_reference
}

output "policy_definitions" {
  description = "returns a string"
  value       = data.azurerm_policy_set_definition.this.policy_definitions
}

output "policy_type" {
  description = "returns a string"
  value       = data.azurerm_policy_set_definition.this.policy_type
}

output "this" {
  value = azurerm_policy_set_definition.this
}

top