Skip to content

Lambda Client #16

@mwarman

Description

@mwarman

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions