I have a lambda function (Java) deployed in AWS Lambda.
I have set up an API Gateway resource and method through the UI console at API Gateway.
I am trying to set up the API Gateway through the command line, with something like
aws apigateway put-integration --rest-api-id <rest-api-id> \
--resource-id <resource-id> \
--http-method GET \
--type AWS \
--integration-http-method POST \
--uri <lambda-arn> \
--request-templates file://mapping.json
Note, <lambda-arn> is the ARN of the Lambda.
I get an error of the form
An error occurred (BadRequestException) when calling the PutIntegration operation:
AWS ARN for integration must contain path or action
What is the path or action I need to provide?