tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

ad_gpo

back

Index

Terraform

terraform {
  required_providers {
    ad = ">= 0.4.1"
  }
}

top

Example Usage

module "ad_gpo" {
  source = "./modules/ad/r/ad_gpo"

  # description - (optional) is a type of string
  description = null
  # domain - (optional) is a type of string
  domain = null
  # name - (required) is a type of string
  name = null
  # status - (optional) is a type of string
  status = null
}

top

Variables

variable "description" {
  description = "(optional) - Description of the GPO."
  type        = string
  default     = null
}

variable "domain" {
  description = "(optional) - Domain of the GPO."
  type        = string
  default     = null
}

variable "name" {
  description = "(required) - Name of the GPO."
  type        = string
}

variable "status" {
  description = "(optional) - Status of the GPO. Can be one of `AllSettingsEnabled`, `UserSettingsDisabled`, `ComputerSettingsDisabled`, or `AllSettingsDisabled` (case sensitive)."
  type        = string
  default     = null
}

top

Resource

resource "ad_gpo" "this" {
  # description - (optional) is a type of string
  description = var.description
  # domain - (optional) is a type of string
  domain = var.domain
  # name - (required) is a type of string
  name = var.name
  # status - (optional) is a type of string
  status = var.status
}

top

Outputs

output "dn" {
  description = "returns a string"
  value       = ad_gpo.this.dn
}

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

output "numeric_status" {
  description = "returns a number"
  value       = ad_gpo.this.numeric_status
}

output "this" {
  value = ad_gpo.this
}

top