Skip to content

Latest commit

 

History

History
122 lines (96 loc) · 2.21 KB

File metadata and controls

122 lines (96 loc) · 2.21 KB

google_apigee_envgroup

back

Index

Terraform

terraform {
  required_providers {
    google-beta = ">= 3.63.0"
  }
}

top

Example Usage

module "google_apigee_envgroup" {
  source = "./modules/google-beta/r/google_apigee_envgroup"

  # hostnames - (optional) is a type of list of string
  hostnames = []
  # name - (required) is a type of string
  name = null
  # org_id - (required) is a type of string
  org_id = null

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

top

Variables

variable "hostnames" {
  description = "(optional) - Hostnames of the environment group."
  type        = list(string)
  default     = null
}

variable "name" {
  description = "(required) - The resource ID of the environment group."
  type        = string
}

variable "org_id" {
  description = "(required) - The Apigee Organization associated with the Apigee environment group,\nin the format 'organizations/{{org_name}}'."
  type        = string
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "google_apigee_envgroup" "this" {
  # hostnames - (optional) is a type of list of string
  hostnames = var.hostnames
  # name - (required) is a type of string
  name = var.name
  # org_id - (required) is a type of string
  org_id = var.org_id

  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"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

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

output "this" {
  value = google_apigee_envgroup.this
}

top