ErrorModel

class aws_cdk.aws_apigateway.ErrorModel

Bases: object

Represents a reference to a REST API’s Error model, which is available as part of the model collection by default.

This can be used for mapping error JSON responses from an integration to a client, where a simple generic message field is sufficient to map and return an error payload.

Definition { “$schema” : “http://json-schema.org/draft-04/schema#”, “title” : “Error Schema”, “type” : “object”, “properties” : { “message” : { “type” : “string” } } }

deprecated :deprecated: You should use

see :see: Model.ERROR_MODEL stability :stability: deprecated

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Attributes

model_id

Returns the model name, such as ‘myModel’.

stability :stability: deprecated

Return type

str