При попытке развернуть конфигурацию лямбда-шлюза и шлюза API появляется следующая ошибка
"неправильная интеграция в пути / профиле / v1. (Сервис:
AmazonApiGateway; Код статуса: 400; Код ошибки: BadRequestException "
Что может вызвать эту ошибку и как ее можно устранить.
swagger: '2.0'
info:
version: v1
title: ProfileAPI
paths:
"/profile/v1":
get:
tags:
- Values
operationId: ProfileV1Get
consumes: []
produces:
- text/plain
- application/json
- text/json
parameters: []
responses:
'200':
description: Success
schema:
type: array
items:
type: string
x-amazon-apigateway-integration:
httpMethod: post
type: aws_proxy
uri:
Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${ProfileFunction.Arn}/invocations
definitions: {}