Class CfnModel
The AWS::ApiGateway::Model
resource defines the structure of a request or response payload for an API method.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnModel : CfnResource, IInspectable
Syntax (vb)
Public Class CfnModel
Inherits CfnResource
Implements IInspectable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html
CloudformationResource: AWS::ApiGateway::Model
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 schema;
var cfnModel = new CfnModel(this, "MyCfnModel", new CfnModelProps {
RestApiId = "restApiId",
// the properties below are optional
ContentType = "contentType",
Description = "description",
Name = "name",
Schema = schema
});
Synopsis
Constructors
CfnModel(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnModel(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnModel(Construct, String, ICfnModelProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ContentType | The content-type for the model. |
Description | The description of the model. |
Name | A name for the model. |
RestApiId | The string identifier of the associated RestApi. |
Schema | The schema for the model. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnModel(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnModel(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnModel(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnModel(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnModel(Construct, String, ICfnModelProps)
public CfnModel(Construct scope, string id, ICfnModelProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnModelProps
Resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ContentType
The content-type for the model.
public virtual string ContentType { get; set; }
Property Value
System.String
Description
The description of the model.
public virtual string Description { get; set; }
Property Value
System.String
Name
A name for the model.
public virtual string Name { get; set; }
Property Value
System.String
RestApiId
The string identifier of the associated RestApi.
public virtual string RestApiId { get; set; }
Property Value
System.String
Schema
The schema for the model.
public virtual object Schema { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>