back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
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
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 "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
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