AWS::ApiGateway::ModelThe AWS::ApiGateway::Model resource defines the structure of a request or response payload for an API method.
5 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
RestApiId | string | RequiredCreate-only |
ContentType | string | Create-only |
Description | string | |
Name | string | Create-only |
Schema | objectstring |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::Model
Resources:
MyResource:
Type: AWS::ApiGateway::Model
Properties:
RestApiId: "my-restapiid"
Description: !Ref "AWS::StackName"
Name: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTapigateway:GETapigateway:GETapigateway:PATCHapigateway:GETapigateway:GETapigateway:DELETEapigateway:GETEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicRestApiIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ContentTypeNameRestApiId