Interface ICfnModelProps
Properties for defining a CfnModel
.
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnModelProps
Syntax (vb)
Public Interface ICfnModelProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-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.APIGateway;
var schema;
var cfnModelProps = new CfnModelProps {
RestApiId = "restApiId",
// the properties below are optional
ContentType = "contentType",
Description = "description",
Name = "name",
Schema = schema
};
Synopsis
Properties
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. |
Properties
ContentType
The content-type for the model.
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
A name for the model.
virtual string Name { get; }
Property Value
System.String
Remarks
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the model name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
RestApiId
The string identifier of the associated RestApi.
string RestApiId { get; }
Property Value
System.String
Remarks
Schema
The schema for the model.
virtual object Schema { get; }
Property Value
System.Object
Remarks
For application/json
models, this should be JSON schema draft 4 model. Do not include "* /" characters in the description of any properties because such "* /" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.