Provides a resource to manage an API Gateway Documentation Version.
resource "aws_api_gateway_documentation_version" "example" {
version = "example_version"
rest_api_id = "${aws_api_gateway_rest_api.example.id}"
description = "Example description"
depends_on = ["aws_api_gateway_documentation_part.example"]
}
resource "aws_api_gateway_rest_api" "example" {
name = "example_api"
}
resource "aws_api_gateway_documentation_part" "example" {
location {
type = "API"
}
properties = "{\"description\":\"Example\"}"
rest_api_id = "${aws_api_gateway_rest_api.example.id}"
}
The following argument is supported:
version - (Required) The version identifier of the API documentation snapshot. rest_api_id - (Required) The ID of the associated Rest API description - (Optional) The description of the API documentation version. The arguments listed above are all exported as attributes.
API Gateway documentation versions can be imported using REST-API-ID/VERSION, e.g.
$ terraform import aws_api_gateway_documentation_version.example 5i4e1ko720/example-version
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/api_gateway_documentation_version.html