Creates an API Gateway and a model within it using Terraform.

Terraform Template

resource "aws_api_gateway_model" "MyDemoModel" {
  content_type = "application/json"
  description = "a JSON schema"
  name = "user"
  rest_api_id = aws_api_gateway_rest_api.MyDemoAPI.id
  schema = jsonencode({
 type = "object"
 })
}

resource "aws_api_gateway_rest_api" "MyDemoAPI" {
  description = "This is my API for demonstration purposes"
  name = "MyDemoAPI"
}