Skip to content

Latest commit

 

History

History
117 lines (91 loc) · 2.26 KB

oci_database_autonomous_exadata_infrastructure_shapes.md

File metadata and controls

117 lines (91 loc) · 2.26 KB

oci_database_autonomous_exadata_infrastructure_shapes

back

Index

Terraform

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

top

Example Usage

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

  # availability_domain - (required) is a type of string
  availability_domain = null
  # compartment_id - (required) is a type of string
  compartment_id = null

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

top

Variables

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

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

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_database_autonomous_exadata_infrastructure_shapes" "this" {
  # availability_domain - (required) is a type of string
  availability_domain = var.availability_domain
  # compartment_id - (required) is a type of string
  compartment_id = var.compartment_id

  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 "autonomous_exadata_infrastructure_shapes" {
  description = "returns a list of object"
  value       = data.oci_database_autonomous_exadata_infrastructure_shapes.this.autonomous_exadata_infrastructure_shapes
}

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

output "this" {
  value = oci_database_autonomous_exadata_infrastructure_shapes.this
}

top