model
Gets an individual model
resource
Overview
Name | model |
Type | Resource |
Description | model |
Id | awscc.apigatewayv2.model |
Fields
Name | Datatype | Description |
---|---|---|
model_id | string | |
description | string | The description of the model. |
content_type | string | The content-type for the model, for example, "application/json". |
schema | object | The schema for the model. For application/json models, this should be JSON schema draft 4 model. |
api_id | string | The API identifier. |
name | string | The name of the model. |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
model_id,
description,
content_type,
schema,
api_id,
name
FROM awscc.apigatewayv2.model
WHERE data__Identifier = '<ApiId>|<ModelId>';
Permissions
To operate on the model
resource, the following permissions are required:
Update
apigateway:PATCH,
apigateway:GET,
apigateway:PUT
Read
apigateway:GET
Delete
apigateway:GET,
apigateway:DELETE