Handling an S3Event as a Lambda destination function #1294
-
I have a primary Lambda function which is able to parse an {
"version": "1.0",
"timestamp": "2019-11-14T18:16:05.568Z",
"requestContext": {
"requestId": "e4b46cbf-b738-xmpl-8880-a18cdf61200e",
"functionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
"condition": "RetriesExhausted",
"approximateInvokeCount": 3
},
"requestPayload": {
// normal S3Event here
},
"responseContext": {
"statusCode": 200,
"executedVersion": "$LATEST",
"functionError": "Unhandled"
},
"responsePayload": {
"errorMessage": "RequestId: e4b46cbf-b738-xmpl-8880-a18cdf61200e Process exited before completing request"
}
} Where is this type stored in the Amazon.Lambda.RuntimeSupport libraries to let me cast it directly in my function handler? at the moment I have to cast it to a custom type with RequestPayload being an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@simonmurdock Looks like you are getting response JSON for function invocation errors. Kindly refer example JSON at Asynchronous invocation. There is no type in the Lambda libraries which map to these invocation errors, you could create your custom implementation to model this payload. Thanks, |
Beta Was this translation helpful? Give feedback.
@simonmurdock Looks like you are getting response JSON for function invocation errors. Kindly refer example JSON at Asynchronous invocation. There is no type in the Lambda libraries which map to these invocation errors, you could create your custom implementation to model this payload.
Thanks,
Ashish