back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
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
variable "path" {
description = "(required)"
type = string
}
variable "rest_api_id" {
description = "(required)"
type = string
}
top
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
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