Skip to content

Latest commit

 

History

History
128 lines (101 loc) · 2.29 KB

oci_identity_identity_provider_groups.md

File metadata and controls

128 lines (101 loc) · 2.29 KB

oci_identity_identity_provider_groups

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_identity_identity_provider_groups" {
  source = "./modules/oci/d/oci_identity_identity_provider_groups"

  # identity_provider_id - (required) is a type of string
  identity_provider_id = null
  # name - (optional) is a type of string
  name = null
  # state - (optional) is a type of string
  state = null

  filter = [{
    name   = null
    regex  = null
    values = []
  }]
}

top

Variables

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

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

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

variable "filter" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      name   = string
      regex  = bool
      values = list(string)
    }
  ))
  default = []
}

top

Datasource

data "oci_identity_identity_provider_groups" "this" {
  # identity_provider_id - (required) is a type of string
  identity_provider_id = var.identity_provider_id
  # name - (optional) is a type of string
  name = var.name
  # state - (optional) is a type of string
  state = var.state

  dynamic "filter" {
    for_each = var.filter
    content {
      # name - (required) is a type of string
      name = filter.value["name"]
      # regex - (optional) is a type of bool
      regex = filter.value["regex"]
      # values - (required) is a type of list of string
      values = filter.value["values"]
    }
  }

}

top

Outputs

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

output "identity_provider_groups" {
  description = "returns a list of object"
  value       = data.oci_identity_identity_provider_groups.this.identity_provider_groups
}

output "this" {
  value = oci_identity_identity_provider_groups.this
}

top