Skip to content

Latest commit

 

History

History
104 lines (79 loc) · 1.56 KB

aws_waf_geo_match_set.md

File metadata and controls

104 lines (79 loc) · 1.56 KB

aws_waf_geo_match_set

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_waf_geo_match_set" {
  source = "./modules/aws/r/aws_waf_geo_match_set"

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

  geo_match_constraint = [{
    type  = null
    value = null
  }]
}

top

Variables

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

variable "geo_match_constraint" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      type  = string
      value = string
    }
  ))
  default = []
}

top

Resource

resource "aws_waf_geo_match_set" "this" {
  # name - (required) is a type of string
  name = var.name

  dynamic "geo_match_constraint" {
    for_each = var.geo_match_constraint
    content {
      # type - (required) is a type of string
      type = geo_match_constraint.value["type"]
      # value - (required) is a type of string
      value = geo_match_constraint.value["value"]
    }
  }

}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = aws_waf_geo_match_set.this.arn
}

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

output "this" {
  value = aws_waf_geo_match_set.this
}

top