Skip to content

Latest commit

 

History

History
98 lines (75 loc) · 1.53 KB

aws_apigatewayv2_apis.md

File metadata and controls

98 lines (75 loc) · 1.53 KB

aws_apigatewayv2_apis

back

Index

Terraform

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

top

Example Usage

module "aws_apigatewayv2_apis" {
  source = "./modules/aws/d/aws_apigatewayv2_apis"

  # name - (optional) is a type of string
  name = null
  # protocol_type - (optional) is a type of string
  protocol_type = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

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

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

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

top

Datasource

data "aws_apigatewayv2_apis" "this" {
  # name - (optional) is a type of string
  name = var.name
  # protocol_type - (optional) is a type of string
  protocol_type = var.protocol_type
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

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

output "ids" {
  description = "returns a set of string"
  value       = data.aws_apigatewayv2_apis.this.ids
}

output "this" {
  value = aws_apigatewayv2_apis.this
}

top