-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the story
Add a utility helper module for interaction with the AWS SDK Lambda client. Add a functions to invoke Lambda functions synchronously and asynchronously.
Acceptance criteria
GIVEN the app needs to invoke a Lambda function
WHEN the application imports the Lambda client
THEN the AWS SDK Lambda client instance is created
AND the AWS SDK Lambda client is configured
AND the AWS SDK Lambda client instance is stored as a module constant to be preserved between Lambda invocations
WHEN the application uses the "invoke synchronous" function
THEN the AWS SDK Lambda client instance is used to invoke a Lambda function with an InvocationType of RequestResponse for synchronous communication
AND the payload is sent to the called function
WHEN the application uses the "invoke asynchronous" function
THEN the AWS SDK Lambda client instance is used to invoke a Lambda function with an InvocationType of Event for synchronous communication
AND the payload is sent to the called function
Additional context
Add any other context about the story here.