Skip to content

Latest commit

 

History

History
99 lines (75 loc) · 1.47 KB

oci_waas_edge_subnets.md

File metadata and controls

99 lines (75 loc) · 1.47 KB

oci_waas_edge_subnets

back

Index

Terraform

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

top

Example Usage

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


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

top

Variables

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_edge_subnets" "this" {

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

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

output "this" {
  value = oci_waas_edge_subnets.this
}

top