Data Source: aws_api_gateway_resource

Example Usage

data "aws_api_gateway_rest_api" "my_rest_api" {
name = "my-rest-api"
}
data "aws_api_gateway_resource" "my_resource" {
rest_api_id = data.aws_api_gateway_rest_api.my_rest_api.id
path = "/endpoint/path"
}

Argument Reference

  • rest_api_id - (Required) REST API id that owns the resource. If no REST API is found, an error will be returned.
  • path - (Required) Full path of the resource. If no path is found, an error will be returned.

Attributes Reference

  • id - Set to the ID of the found Resource.
  • parent_id - Set to the ID of the parent Resource.
  • path_part - Set to the path relative to the parent Resource.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store