back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
module "aws_guardduty_ipset" {
source = "./modules/aws/r/aws_guardduty_ipset"
# activate - (required) is a type of bool
activate = null
# detector_id - (required) is a type of string
detector_id = null
# format - (required) is a type of string
format = null
# location - (required) is a type of string
location = null
# name - (required) is a type of string
name = null
# tags - (optional) is a type of map of string
tags = {}
}
top
variable "activate" {
description = "(required)"
type = bool
}
variable "detector_id" {
description = "(required)"
type = string
}
variable "format" {
description = "(required)"
type = string
}
variable "location" {
description = "(required)"
type = string
}
variable "name" {
description = "(required)"
type = string
}
variable "tags" {
description = "(optional)"
type = map(string)
default = null
}
top
resource "aws_guardduty_ipset" "this" {
# activate - (required) is a type of bool
activate = var.activate
# detector_id - (required) is a type of string
detector_id = var.detector_id
# format - (required) is a type of string
format = var.format
# location - (required) is a type of string
location = var.location
# name - (required) is a type of string
name = var.name
# tags - (optional) is a type of map of string
tags = var.tags
}
top
output "arn" {
description = "returns a string"
value = aws_guardduty_ipset.this.arn
}
output "id" {
description = "returns a string"
value = aws_guardduty_ipset.this.id
}
output "this" {
value = aws_guardduty_ipset.this
}
top