EmptyModel

class aws_cdk.aws_apigateway.EmptyModel

Bases: object

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

This can be used for mapping JSON responses from an integration to what is returned to a client, where strong typing is not required. In the absence of any defined model, the Empty model will be used to return the response payload unmapped.

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

Deprecated:

You should use Model.EMPTY_MODEL

See:

https://docs.amazonaws.cn/en_us/apigateway/latest/developerguide/models-mappings.html#models-mappings-models

Stability:

deprecated

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apigateway as apigateway

empty_model = apigateway.EmptyModel()

Attributes

model_id

(deprecated) Returns the model name, such as ‘myModel’.

Stability:

deprecated