Skip to content

Latest commit

 

History

History
100 lines (77 loc) · 1.79 KB

aws_guardduty_publishing_destination.md

File metadata and controls

100 lines (77 loc) · 1.79 KB

aws_guardduty_publishing_destination

back

Index

Terraform

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

top

Example Usage

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

  # destination_arn - (required) is a type of string
  destination_arn = null
  # destination_type - (optional) is a type of string
  destination_type = null
  # detector_id - (required) is a type of string
  detector_id = null
  # kms_key_arn - (required) is a type of string
  kms_key_arn = null
}

top

Variables

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

variable "destination_type" {
  description = "(optional)"
  type        = string
  default     = null
}

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

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

top

Resource

resource "aws_guardduty_publishing_destination" "this" {
  # destination_arn - (required) is a type of string
  destination_arn = var.destination_arn
  # destination_type - (optional) is a type of string
  destination_type = var.destination_type
  # detector_id - (required) is a type of string
  detector_id = var.detector_id
  # kms_key_arn - (required) is a type of string
  kms_key_arn = var.kms_key_arn
}

top

Outputs

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

output "this" {
  value = aws_guardduty_publishing_destination.this
}

top