tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

aviatrix_aws_guard_duty

back

Index

Terraform

terraform {
  required_providers {
    aviatrix = ">= 2.18.2"
  }
}

top

Example Usage

module "aviatrix_aws_guard_duty" {
  source = "./modules/aviatrix/r/aviatrix_aws_guard_duty"

  # account_name - (required) is a type of string
  account_name = null
  # excluded_ips - (optional) is a type of set of string
  excluded_ips = []
  # region - (required) is a type of string
  region = null
}

top

Variables

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

variable "excluded_ips" {
  description = "(optional) - Excluded IPs."
  type        = set(string)
  default     = null
}

variable "region" {
  description = "(required) - Region."
  type        = string
}

top

Resource

resource "aviatrix_aws_guard_duty" "this" {
  # account_name - (required) is a type of string
  account_name = var.account_name
  # excluded_ips - (optional) is a type of set of string
  excluded_ips = var.excluded_ips
  # region - (required) is a type of string
  region = var.region
}

top

Outputs

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

output "this" {
  value = aviatrix_aws_guard_duty.this
}

top