Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 1.5 KB

aws_api_gateway_documentation_version.md

File metadata and controls

91 lines (69 loc) · 1.5 KB

aws_api_gateway_documentation_version

back

Index

Terraform

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

top

Example Usage

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

  # description - (optional) is a type of string
  description = null
  # rest_api_id - (required) is a type of string
  rest_api_id = null
  # version - (required) is a type of string
  version = null
}

top

Variables

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

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

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

top

Resource

resource "aws_api_gateway_documentation_version" "this" {
  # description - (optional) is a type of string
  description = var.description
  # rest_api_id - (required) is a type of string
  rest_api_id = var.rest_api_id
  # version - (required) is a type of string
  version = var.version
}

top

Outputs

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

output "this" {
  value = aws_api_gateway_documentation_version.this
}

top