interface CfnModelMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApiGateway.Mixins.CfnModelMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapigateway/mixins#CfnModelMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.apigateway.mixins.CfnModelMixinProps |
Python | aws_cdk.mixins_preview.aws_apigateway.mixins.CfnModelMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_apigateway » mixins » CfnModelMixinProps |
Properties for CfnModelPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as apigateway_mixins } from '@aws-cdk/mixins-preview/aws-apigateway';
declare const schema: any;
const cfnModelMixinProps: apigateway_mixins.CfnModelMixinProps = {
contentType: 'contentType',
description: 'description',
name: 'name',
restApiId: 'restApiId',
schema: schema,
};
Properties
| Name | Type | Description |
|---|---|---|
| content | string | The content-type for the model. |
| description? | string | The description of the model. |
| name? | string | A name for the model. |
| rest | string | The string identifier of the associated RestApi. |
| schema? | any | The schema for the model. |
contentType?
Type:
string
(optional)
The content-type for the model.
description?
Type:
string
(optional)
The description of the model.
name?
Type:
string
(optional)
A name for the model.
If you don't specify a name, 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?
Type:
string
(optional)
The string identifier of the associated RestApi.
schema?
Type:
any
(optional)
The schema for the model.
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.

.NET
Go
Java
Python
TypeScript