interface CfnModelProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Apigatewayv2.CfnModelProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#CfnModelProps |
![]() | software.amazon.awscdk.services.apigatewayv2.CfnModelProps |
![]() | aws_cdk.aws_apigatewayv2.CfnModelProps |
![]() | aws-cdk-lib » aws_apigatewayv2 » CfnModelProps |
Properties for defining a CfnModel
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-model.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
declare const schema: any;
const cfnModelProps: apigatewayv2.CfnModelProps = {
apiId: 'apiId',
name: 'name',
schema: schema,
// the properties below are optional
contentType: 'contentType',
description: 'description',
};
Properties
Name | Type | Description |
---|---|---|
api | string | The API identifier. |
name | string | The name of the model. |
schema | any | The schema for the model. |
content | string | The content-type for the model, for example, "application/json". |
description? | string | The description of the model. |
apiId
Type:
string
The API identifier.
name
Type:
string
The name of the model.
schema
Type:
any
The schema for the model.
For application/json models, this should be JSON schema draft 4 model.
contentType?
Type:
string
(optional)
The content-type for the model, for example, "application/json".
description?
Type:
string
(optional)
The description of the model.