Skip to content

No replacement for the @LambdaFunction and LambdaInvokerFactory? #2587

@adworacz

Description

@adworacz

Expected Behavior

One of the great API improvements provided by the v1 SDK was the LambdaInvokerFactory, which handled so much of the marshalling when directly invoking a Lambda.

There seems to be no v2 replacement that I can find, and nothing is mentioned in the 1.11 to 2.0 changelog which is surprising for something that completely disappeared.

Current Behavior

There is no corollary to the @LambdaFunction and LambdaInvokerFactory set of API utilities.

Possible Solution

Re-implement those utilities.

Context

The amount of boilerplate significantly increases when attempting to call Lambda. This is especially apparent when writing functional tests, where the actual details of invoking a Lambda are not relevant to actually testing that Lambda.

Your Environment

  • AWS Java SDK version used: v2
  • JDK version used: Corretto - 11.0.8
  • Operating System and version: Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.x Parityfeature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions