Skip to content

Latest commit

 

History

History
116 lines (91 loc) · 2.08 KB

aws_cloudwatch_event_archive.md

File metadata and controls

116 lines (91 loc) · 2.08 KB

aws_cloudwatch_event_archive

back

Index

Terraform

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

top

Example Usage

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

  # description - (optional) is a type of string
  description = null
  # event_pattern - (optional) is a type of string
  event_pattern = null
  # event_source_arn - (required) is a type of string
  event_source_arn = null
  # name - (required) is a type of string
  name = null
  # retention_days - (optional) is a type of number
  retention_days = null
}

top

Variables

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

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

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

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

variable "retention_days" {
  description = "(optional)"
  type        = number
  default     = null
}

top

Resource

resource "aws_cloudwatch_event_archive" "this" {
  # description - (optional) is a type of string
  description = var.description
  # event_pattern - (optional) is a type of string
  event_pattern = var.event_pattern
  # event_source_arn - (required) is a type of string
  event_source_arn = var.event_source_arn
  # name - (required) is a type of string
  name = var.name
  # retention_days - (optional) is a type of number
  retention_days = var.retention_days
}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = aws_cloudwatch_event_archive.this.arn
}

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

output "this" {
  value = aws_cloudwatch_event_archive.this
}

top