Class CfnModelProps
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
Properties for defining a CfnModel
.
public class CfnModelProps : ICfnModelProps
- Inheritance
-
CfnModelProps
- Implements
- Inherited Members
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
};
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html
ExampleMetadata: fixture=_generated
Constructors
CfnModelProps()
public CfnModelProps()
Properties
ContentType
The content-type for the model.
public string? ContentType { get; set; }
Property Value
Remarks
Description
The description of the model.
public string? Description { get; set; }
Property Value
Remarks
Name
A name for the model.
public string? Name { get; set; }
Property Value
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.
public string RestApiId { get; set; }
Property Value
Remarks
Schema
The schema for the model.
public object? Schema { get; set; }
Property Value
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.