Class CfnModelProps
Properties for defining a CfnModel
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Apigatewayv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnModelProps : Object, ICfnModelProps
Syntax (vb)
Public Class CfnModelProps
Inherits Object
Implements ICfnModelProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-model.html
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.Apigatewayv2;
var schema;
var cfnModelProps = new CfnModelProps {
ApiId = "apiId",
Name = "name",
Schema = schema,
// the properties below are optional
ContentType = "contentType",
Description = "description"
};
Synopsis
Constructors
Cfn |
Properties
Api |
The API identifier. |
Content |
The content-type for the model, for example, "application/json". |
Description | The description of the model. |
Name | The name of the model. |
Schema | The schema for the model. |
Constructors
CfnModelProps()
public CfnModelProps()
Properties
ApiId
The API identifier.
public string ApiId { get; set; }
Property Value
System.
Remarks
ContentType
The content-type for the model, for example, "application/json".
public string ContentType { get; set; }
Property Value
System.
Remarks
Description
The description of the model.
public string Description { get; set; }
Property Value
System.
Remarks
Name
The name of the model.
public string Name { get; set; }
Property Value
System.
Remarks
Schema
The schema for the model.
public object Schema { get; set; }
Property Value
System.
Remarks
For application/json models, this should be JSON schema draft 4 model.