aws::api-gateway-model

Create a model.

Example

aws::api-gateway-model example-model
    api: $(aws::api-gateway example-api-websock)
    content-type: "application/json"
    description: "example-desc"
    name: "exampleModel"
    schema: '{"type": "object","properties": {"id": {"type": "string"}}}'
end

Attributes

Attribute Description
api The API for which to create the model. (Required)
content-type The content-type for the model. (Required)
description The description of the model.
name The name of the model. (Required)
schema The schema for the model. (Required)

Outputs

Attribute Description
id The ID of the model.