Data Source: aws_api_gateway_rest_api

Use this data source to get the id and root_resource_id of a REST API in API Gateway. To fetch the REST API you must provide a name to match against. As there is no unique name constraint on REST APIs this data source will error if there is more than one match.

Example Usage

data "aws_api_gateway_rest_api" "my_rest_api" {
  name = "my-rest-api"
}

Argument Reference

Attribute Reference

This data source exports the following attributes in addition to the arguments above: