Class EmptyModel
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
(deprecated) Represents a reference to a REST API's Empty model, which is available as part of the model collection by default.
[Obsolete("You should use Model.EMPTY_MODEL")]
public class EmptyModel : DeputyBase, IModel
- Inheritance
-
EmptyModel
- Implements
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
var emptyModel = new EmptyModel();
Remarks
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" }
Stability: Deprecated
ExampleMetadata: fixture=_generated
Constructors
EmptyModel()
public EmptyModel()
Properties
ModelId
(deprecated) Returns the model name, such as 'myModel'.
[Obsolete]
public virtual string ModelId { get; }
Property Value
Remarks
Stability: Deprecated