FEATURES PRICING ABOUT DOCS LOGIN

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:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO