Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 1.4 KB

aws_api_gateway_resource.md

File metadata and controls

91 lines (68 loc) · 1.4 KB

aws_api_gateway_resource

back

Index

Terraform

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

top

Example Usage

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

  # path - (required) is a type of string
  path = null
  # rest_api_id - (required) is a type of string
  rest_api_id = null
}

top

Variables

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

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

top

Datasource

data "aws_api_gateway_resource" "this" {
  # path - (required) is a type of string
  path = var.path
  # rest_api_id - (required) is a type of string
  rest_api_id = var.rest_api_id
}

top

Outputs

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

output "parent_id" {
  description = "returns a string"
  value       = data.aws_api_gateway_resource.this.parent_id
}

output "path_part" {
  description = "returns a string"
  value       = data.aws_api_gateway_resource.this.path_part
}

output "this" {
  value = aws_api_gateway_resource.this
}

top