You must be logged in to view saved presets
Creates an API Gateway and a model within it using Terraform.
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"
}