tfwriter

Terraform HCL code generator.

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

ad_ou

back

Index

Terraform

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

top

Example Usage

module "ad_ou" {
  source = "./modules/ad/d/ad_ou"

  # dn - (optional) is a type of string
  dn = null
  # name - (optional) is a type of string
  name = null
  # path - (optional) is a type of string
  path = null
}

top

Variables

variable "dn" {
  description = "(optional) - Distinguished Name of the OU object."
  type        = string
  default     = null
}

variable "name" {
  description = "(optional) - Name of the OU object. If this is used then the `path` attribute needs to be set as well."
  type        = string
  default     = null
}

variable "path" {
  description = "(optional) - Path of the OU object. If this is used then the `Name` attribute needs to be set as well."
  type        = string
  default     = null
}

top

Datasource

data "ad_ou" "this" {
  # dn - (optional) is a type of string
  dn = var.dn
  # name - (optional) is a type of string
  name = var.name
  # path - (optional) is a type of string
  path = var.path
}

top

Outputs

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

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

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

output "this" {
  value = ad_ou.this
}

top