Skip to content

Latest commit

 

History

History
100 lines (77 loc) · 1.65 KB

aws_apigatewayv2_api_mapping.md

File metadata and controls

100 lines (77 loc) · 1.65 KB

aws_apigatewayv2_api_mapping

back

Index

Terraform

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

top

Example Usage

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

  # api_id - (required) is a type of string
  api_id = null
  # api_mapping_key - (optional) is a type of string
  api_mapping_key = null
  # domain_name - (required) is a type of string
  domain_name = null
  # stage - (required) is a type of string
  stage = null
}

top

Variables

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

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

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

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

top

Resource

resource "aws_apigatewayv2_api_mapping" "this" {
  # api_id - (required) is a type of string
  api_id = var.api_id
  # api_mapping_key - (optional) is a type of string
  api_mapping_key = var.api_mapping_key
  # domain_name - (required) is a type of string
  domain_name = var.domain_name
  # stage - (required) is a type of string
  stage = var.stage
}

top

Outputs

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

output "this" {
  value = aws_apigatewayv2_api_mapping.this
}

top