Skip to content

Latest commit

 

History

History
116 lines (91 loc) · 2.18 KB

aws_storagegateway_tape_pool.md

File metadata and controls

116 lines (91 loc) · 2.18 KB

aws_storagegateway_tape_pool

back

Index

Terraform

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

top

Example Usage

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

  # pool_name - (required) is a type of string
  pool_name = null
  # retention_lock_time_in_days - (optional) is a type of number
  retention_lock_time_in_days = null
  # retention_lock_type - (optional) is a type of string
  retention_lock_type = null
  # storage_class - (required) is a type of string
  storage_class = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

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

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

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

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

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

top

Resource

resource "aws_storagegateway_tape_pool" "this" {
  # pool_name - (required) is a type of string
  pool_name = var.pool_name
  # retention_lock_time_in_days - (optional) is a type of number
  retention_lock_time_in_days = var.retention_lock_time_in_days
  # retention_lock_type - (optional) is a type of string
  retention_lock_type = var.retention_lock_type
  # storage_class - (required) is a type of string
  storage_class = var.storage_class
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

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

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

output "this" {
  value = aws_storagegateway_tape_pool.this
}

top