aws_api_gateway_model
Provides a Model for a API Gateway.
Example Usage
resource "aws_api_gateway_rest_api" "MyDemoAPI" {
name = "MyDemoAPI"
description = "This is my API for demonstration purposes"
}
resource "aws_api_gateway_model" "MyDemoModel" {
rest_api_id = "${aws_api_gateway_rest_api.MyDemoAPI.id}"
name = "user"
description = "a JSON schema"
content_type = "application/json"
schema = <<EOF
{
"type": "object"
}
EOF
}
Argument Reference
The following arguments are supported:
rest_api_id
- (Required) The ID of the associated REST APIname
- (Required) The name of the modeldescription
- (Optional) The description of the modelcontent_type
- (Required) The content type of the modelschema
- (Required) The schema of the model in a JSON form
Attributes Reference
The following attributes are exported:
id
- The ID of the model
See the source of this document at Terraform.io