Skip to content

Latest commit

 

History

History
113 lines (87 loc) · 1.73 KB

aws_dx_gateway.md

File metadata and controls

113 lines (87 loc) · 1.73 KB

aws_dx_gateway

back

Index

Terraform

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

top

Example Usage

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

  # amazon_side_asn - (required) is a type of string
  amazon_side_asn = null
  # name - (required) is a type of string
  name = null

  timeouts = [{
    create = null
    delete = null
  }]
}

top

Variables

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
    }
  ))
  default = []
}

top

Resource

resource "aws_dx_gateway" "this" {
  # amazon_side_asn - (required) is a type of string
  amazon_side_asn = var.amazon_side_asn
  # name - (required) is a type of string
  name = var.name

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
    }
  }

}

top

Outputs

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

output "owner_account_id" {
  description = "returns a string"
  value       = aws_dx_gateway.this.owner_account_id
}

output "this" {
  value = aws_dx_gateway.this
}

top