Class EmptyModel
(deprecated) Represents a reference to a REST API's Empty model, which is available as part of the model collection by default.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.AWS.APIGateway.dll
Syntax (csharp)
public class EmptyModel : DeputyBase, IModel
Syntax (vb)
Public Class EmptyModel
Inherits DeputyBase
Implements IModel
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
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();
Synopsis
Constructors
EmptyModel() | |
EmptyModel(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EmptyModel(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ModelId | (deprecated) Returns the model name, such as 'myModel'. |
Constructors
EmptyModel()
public EmptyModel()
EmptyModel(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EmptyModel(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EmptyModel(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EmptyModel(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ModelId
(deprecated) Returns the model name, such as 'myModel'.
public virtual string ModelId { get; }
Property Value
System.String
Remarks
Stability: Deprecated