Skip to content

linkParameter missing in CognitoEventUserPoolsCustomMessageRequest #592

Open
@nilskuhn

Description

@nilskuhn

In the AWS documentation of custom message lambda trigger for Cognito, there is an example json for an incoming event that contains a linkParameter attribute in request node.

It seams like this linkParameter is actually contained in the events payload, as we are able to use it in a lambda written in typescript with event typed as "any". But with this lib, v1.49.0, there is no such field linkParameter inside CognitoEventUserPoolsCustomMessageRequest.

Is this a bug, is there a newer version of the lib somewhere or am I missing something? I do see two ways to work around this limitation:

  1. Receiving the event as a json.RawMessage and marshal it myself into an own struct.
  2. Try to build the link on my own from codeParameter and some addtional values, I would have to pass as env variables to the lambda.

Both not optimal.

Thanks in advance for an answer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions