Hi please i would like to link the api gateway model to my lambda event
Events:
Api:
Type: Api
Properties:
Path: /
Method: GET
AuthModel:
Type: AWS::ApiGateway::Model
DeletionPolicy: Delete
Properties:
RestApiId: !Ref SampleApi
ContentType: application/json
Name: AuthModel
Schema:
$schema: "http://json-schema.org/draft-04/schema#"
title: Item
type: object
properties:
itemId: {type: string}
itemName: {type: string}
required: [itemId, itemName]