Skip to content

Latest commit

 

History

History
123 lines (97 loc) · 2.05 KB

aws_guardduty_ipset.md

File metadata and controls

123 lines (97 loc) · 2.05 KB

aws_guardduty_ipset

back

Index

Terraform

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

top

Example Usage

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

Variables

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

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

Outputs

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