Skip to content

Latest commit

 

History

History
174 lines (142 loc) · 3.74 KB

File metadata and controls

174 lines (142 loc) · 3.74 KB

google_identity_platform_tenant_oauth_idp_config

back

Index

Terraform

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

top

Example Usage

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

  # client_id - (required) is a type of string
  client_id = null
  # client_secret - (optional) is a type of string
  client_secret = null
  # display_name - (required) is a type of string
  display_name = null
  # enabled - (optional) is a type of bool
  enabled = null
  # issuer - (required) is a type of string
  issuer = null
  # name - (required) is a type of string
  name = null
  # project - (optional) is a type of string
  project = null
  # tenant - (required) is a type of string
  tenant = null

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

top

Variables

variable "client_id" {
  description = "(required) - The client id of an OAuth client."
  type        = string
}

variable "client_secret" {
  description = "(optional) - The client secret of the OAuth client, to enable OIDC code flow."
  type        = string
  default     = null
}

variable "display_name" {
  description = "(required) - Human friendly display name."
  type        = string
}

variable "enabled" {
  description = "(optional) - If this config allows users to sign in with the provider."
  type        = bool
  default     = null
}

variable "issuer" {
  description = "(required) - For OIDC Idps, the issuer identifier."
  type        = string
}

variable "name" {
  description = "(required) - The name of the OauthIdpConfig. Must start with 'oidc.'."
  type        = string
}

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

variable "tenant" {
  description = "(required) - The name of the tenant where this OIDC IDP configuration resource exists"
  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_identity_platform_tenant_oauth_idp_config" "this" {
  # client_id - (required) is a type of string
  client_id = var.client_id
  # client_secret - (optional) is a type of string
  client_secret = var.client_secret
  # display_name - (required) is a type of string
  display_name = var.display_name
  # enabled - (optional) is a type of bool
  enabled = var.enabled
  # issuer - (required) is a type of string
  issuer = var.issuer
  # name - (required) is a type of string
  name = var.name
  # project - (optional) is a type of string
  project = var.project
  # tenant - (required) is a type of string
  tenant = var.tenant

  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_identity_platform_tenant_oauth_idp_config.this.id
}

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

output "this" {
  value = google_identity_platform_tenant_oauth_idp_config.this
}

top