Creates a basic API Gateway Version 2 model with a JSON schema.

Terraform Template

resource "aws_apigatewayv2_model" "example" {
  api_id = "aws_apigatewayv2_api.example.id"
  content_type = "application/json"
  name = "example"
  schema = jsonencode({
 "$schema" = "http://json-schema.org/draft-04/schema#"
 title = "ExampleModel"
 type = "object"

 properties = {
 id = {
 type = "string"
 }
 }
 })
}