Skip to content

Latest commit

 

History

History
123 lines (96 loc) · 2.24 KB

aws_dx_hosted_transit_virtual_interface_accepter.md

File metadata and controls

123 lines (96 loc) · 2.24 KB

aws_dx_hosted_transit_virtual_interface_accepter

back

Index

Terraform

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

top

Example Usage

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

  # dx_gateway_id - (required) is a type of string
  dx_gateway_id = null
  # tags - (optional) is a type of map of string
  tags = {}
  # virtual_interface_id - (required) is a type of string
  virtual_interface_id = null

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

top

Variables

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

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

variable "virtual_interface_id" {
  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_hosted_transit_virtual_interface_accepter" "this" {
  # dx_gateway_id - (required) is a type of string
  dx_gateway_id = var.dx_gateway_id
  # tags - (optional) is a type of map of string
  tags = var.tags
  # virtual_interface_id - (required) is a type of string
  virtual_interface_id = var.virtual_interface_id

  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 "arn" {
  description = "returns a string"
  value       = aws_dx_hosted_transit_virtual_interface_accepter.this.arn
}

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

output "this" {
  value = aws_dx_hosted_transit_virtual_interface_accepter.this
}

top