tfwriter

Terraform HCL code generator.

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

akamai_property_variables

back

Index

Terraform

terraform {
  required_providers {
    akamai = ">= 1.5.0"
  }
}

top

Example Usage

module "akamai_property_variables" {
  source = "./modules/akamai/r/akamai_property_variables"


  variables = [{
    variable = [{
      description = null
      hidden      = null
      name        = null
      sensitive   = null
      value       = null
    }]
  }]
}

top

Variables

variable "variables" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      variable = set(object(
        {
          description = string
          hidden      = bool
          name        = string
          sensitive   = bool
          value       = string
        }
      ))
    }
  ))
  default = []
}

top

Resource

resource "akamai_property_variables" "this" {

  dynamic "variables" {
    for_each = var.variables
    content {

      dynamic "variable" {
        for_each = variables.value.variable
        content {
          # description - (optional) is a type of string
          description = variable.value["description"]
          # hidden - (required) is a type of bool
          hidden = variable.value["hidden"]
          # name - (required) is a type of string
          name = variable.value["name"]
          # sensitive - (required) is a type of bool
          sensitive = variable.value["sensitive"]
          # value - (optional) is a type of string
          value = variable.value["value"]
        }
      }

    }
  }

}

top

Outputs

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

output "json" {
  description = "returns a string"
  value       = akamai_property_variables.this.json
}

output "this" {
  value = akamai_property_variables.this
}

top