AWS::ApiGatewayV2::ModelThe `AWS::ApiGatewayV2::Model` resource updates data model for a WebSocket API. For more information, see [Model Selection Expressions](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-model-selection-expressions) in the *API Gateway Developer Guide* .
import { CfnModel } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.CfnModelConfiguration passed to the constructor as CfnModelProps.
apiIdRequiredstring | IApiRefThe API identifier.
nameRequiredstringThe name of the model.
schemaRequiredanyThe schema for the model. For application/json models, this should be JSON schema draft 4 model.
contentTypeOptionalstringThe content-type for the model, for example, "application/json".
descriptionOptionalstringThe description of the model.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2AWS::ApiGatewayV2::Model