Skip to content

Latest commit

 

History

History
141 lines (112 loc) · 2.67 KB

File metadata and controls

141 lines (112 loc) · 2.67 KB

google_iap_web_backend_service_iam_member

back

Index

Terraform

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

top

Example Usage

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

  # member - (required) is a type of string
  member = null
  # project - (optional) is a type of string
  project = null
  # role - (required) is a type of string
  role = null
  # web_backend_service - (required) is a type of string
  web_backend_service = null

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

top

Variables

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

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

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

variable "web_backend_service" {
  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_iap_web_backend_service_iam_member" "this" {
  # member - (required) is a type of string
  member = var.member
  # project - (optional) is a type of string
  project = var.project
  # role - (required) is a type of string
  role = var.role
  # web_backend_service - (required) is a type of string
  web_backend_service = var.web_backend_service

  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_iap_web_backend_service_iam_member.this.etag
}

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

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

output "this" {
  value = google_iap_web_backend_service_iam_member.this
}

top