Skip to content

Latest commit

 

History

History
127 lines (99 loc) · 2.43 KB

File metadata and controls

127 lines (99 loc) · 2.43 KB

google_access_context_manager_access_policy

back

Index

Terraform

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

top

Example Usage

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

  # parent - (required) is a type of string
  parent = null
  # title - (required) is a type of string
  title = null

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

top

Variables

variable "parent" {
  description = "(required) - The parent of this AccessPolicy in the Cloud Resource Hierarchy.\nFormat: organizations/{organization_id}"
  type        = string
}

variable "title" {
  description = "(required) - Human readable title. Does not affect behavior."
  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_access_context_manager_access_policy" "this" {
  # parent - (required) is a type of string
  parent = var.parent
  # title - (required) is a type of string
  title = var.title

  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 "create_time" {
  description = "returns a string"
  value       = google_access_context_manager_access_policy.this.create_time
}

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

output "name" {
  description = "returns a string"
  value       = google_access_context_manager_access_policy.this.name
}

output "update_time" {
  description = "returns a string"
  value       = google_access_context_manager_access_policy.this.update_time
}

output "this" {
  value = google_access_context_manager_access_policy.this
}

top