Skip to content

Latest commit

 

History

History
158 lines (128 loc) · 3.16 KB

oci_waas_waas_policies.md

File metadata and controls

158 lines (128 loc) · 3.16 KB

oci_waas_waas_policies

back

Index

Terraform

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

top

Example Usage

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

  # compartment_id - (required) is a type of string
  compartment_id = null
  # display_names - (optional) is a type of list of string
  display_names = []
  # ids - (optional) is a type of list of string
  ids = []
  # states - (optional) is a type of list of string
  states = []
  # time_created_greater_than_or_equal_to - (optional) is a type of string
  time_created_greater_than_or_equal_to = null
  # time_created_less_than - (optional) is a type of string
  time_created_less_than = null

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

top

Variables

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

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

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

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

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

variable "time_created_less_than" {
  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_waas_waas_policies" "this" {
  # compartment_id - (required) is a type of string
  compartment_id = var.compartment_id
  # display_names - (optional) is a type of list of string
  display_names = var.display_names
  # ids - (optional) is a type of list of string
  ids = var.ids
  # states - (optional) is a type of list of string
  states = var.states
  # time_created_greater_than_or_equal_to - (optional) is a type of string
  time_created_greater_than_or_equal_to = var.time_created_greater_than_or_equal_to
  # time_created_less_than - (optional) is a type of string
  time_created_less_than = var.time_created_less_than

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

output "waas_policies" {
  description = "returns a list of object"
  value       = data.oci_waas_waas_policies.this.waas_policies
}

output "this" {
  value = oci_waas_waas_policies.this
}

top