back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
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
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 "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
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