--- swagger: 2.0 basePath: /prod info: title: DocumentDBQueryExample schemes: - https paths: /: x-amazon-apigateway-any-method: produces: - application/json responses: '200': description: 200 response schema: $ref: "#/definitions/Empty" x-amazon-apigateway-integration: responses: default: statusCode: 200 # NOTE: ${DocumentDbQueryFunction} must match the Lambda resourcename uri: Fn::Sub: "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${DocumentDbQueryFunction.Arn}/invocations" passthroughBehavior: when_no_match httpMethod: POST # Keep "POST" when the API definition method is not POST. This "httpMethod" is used to call Lambda. type: aws_proxy /documentdb: x-amazon-apigateway-any-method: x-amazon-apigateway-auth: type: aws_iam produces: - application/json parameters: - name: proxy in: path required: true type: string responses: {} x-amazon-apigateway-integration: uri: Fn::Sub: "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${DocumentDbQueryFunction.Arn}/invocations" httpMethod: POST # Keep "POST" when the API definition method is not POST. This "httpMethod" is used to call Lambda. type: aws_proxy definitions: Empty: type: object title: Empty Schema