Interface ICfnModelProps
Properties for defining a CfnModel
.
Namespace: Amazon.CDK.AWS.APIGatewayv2
Assembly: Amazon.CDK.AWS.APIGatewayv2.dll
Syntax (csharp)
public interface ICfnModelProps
Syntax (vb)
Public Interface ICfnModelProps
Remarks
Link: 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
Properties
ApiId | The API identifier. |
ContentType | 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. |
Properties
ApiId
The API identifier.
string ApiId { get; }
Property Value
System.String
Remarks
ContentType
The content-type for the model, for example, "application/json".
virtual string ContentType { get; }
Property Value
System.String
Remarks
Description
The description of the model.
virtual string Description { get; }
Property Value
System.String
Remarks
Name
The name of the model.
string Name { get; }
Property Value
System.String
Remarks
Schema
The schema for the model.
object Schema { get; }
Property Value
System.Object
Remarks
For application/json models, this should be JSON schema draft 4 model.