Skip to content

Latest commit

 

History

History
108 lines (83 loc) · 1.85 KB

oci_database_db_home_patch_history_entries.md

File metadata and controls

108 lines (83 loc) · 1.85 KB

oci_database_db_home_patch_history_entries

back

Index

Terraform

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

top

Example Usage

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

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

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

top

Variables

variable "db_home_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_db_home_patch_history_entries" "this" {
  # db_home_id - (required) is a type of string
  db_home_id = var.db_home_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 "id" {
  description = "returns a string"
  value       = data.oci_database_db_home_patch_history_entries.this.id
}

output "patch_history_entries" {
  description = "returns a list of object"
  value       = data.oci_database_db_home_patch_history_entries.this.patch_history_entries
}

output "this" {
  value = oci_database_db_home_patch_history_entries.this
}

top