Create Model
| apigateway_create_model | R Documentation |
Adds a new Model resource to an existing RestApi resource¶
Description¶
Adds a new Model resource to an existing RestApi resource.
Usage¶
Arguments¶
restApiId[required] The RestApi identifier under which the Model will be created.
name[required] The name of the model. Must be alphanumeric.
descriptionThe description of the model.
schemaThe schema for the model. For
application/jsonmodels, this should be JSON schema draft 4 model. The maximum size of the model is 400 KB.contentType[required] The content-type for the model.
Value¶
A list with the following syntax:
list(
id = "string",
name = "string",
description = "string",
schema = "string",
contentType = "string"
)