Skip to content

Latest commit

 

History

History
156 lines (125 loc) · 2.92 KB

File metadata and controls

156 lines (125 loc) · 2.92 KB

google_compute_region_disk_iam_binding

back

Index

Terraform

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

top

Example Usage

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

  # members - (required) is a type of set of string
  members = []
  # name - (required) is a type of string
  name = null
  # project - (optional) is a type of string
  project = null
  # region - (optional) is a type of string
  region = null
  # role - (required) is a type of string
  role = null

  condition = [{
    description = null
    expression  = null
    title       = null
  }]
}

top

Variables

variable "members" {
  description = "(required)"
  type        = set(string)
}

variable "name" {
  description = "(required)"
  type        = string
}

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

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

variable "role" {
  description = "(required)"
  type        = string
}

variable "condition" {
  description = "nested block: NestingList, min items: 0, max items: 1"
  type = set(object(
    {
      description = string
      expression  = string
      title       = string
    }
  ))
  default = []
}

top

Resource

resource "google_compute_region_disk_iam_binding" "this" {
  # members - (required) is a type of set of string
  members = var.members
  # name - (required) is a type of string
  name = var.name
  # project - (optional) is a type of string
  project = var.project
  # region - (optional) is a type of string
  region = var.region
  # role - (required) is a type of string
  role = var.role

  dynamic "condition" {
    for_each = var.condition
    content {
      # description - (optional) is a type of string
      description = condition.value["description"]
      # expression - (required) is a type of string
      expression = condition.value["expression"]
      # title - (required) is a type of string
      title = condition.value["title"]
    }
  }

}

top

Outputs

output "etag" {
  description = "returns a string"
  value       = google_compute_region_disk_iam_binding.this.etag
}

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

output "project" {
  description = "returns a string"
  value       = google_compute_region_disk_iam_binding.this.project
}

output "region" {
  description = "returns a string"
  value       = google_compute_region_disk_iam_binding.this.region
}

output "this" {
  value = google_compute_region_disk_iam_binding.this
}

top