Skip to content

Add method to DynamoDB Stream Event AttribubuteValue to return the proper type for that AttribubuteValue #461

Closed

Description

@gwlester

Is your feature request related to a problem? Please describe.

When attempting to transverse a DynamoDB Stream Event, it would be nice to know the datatype of an AttributeValue so the correct call to get the value could be made. I.E. string vs list vs map.

Describe the solution you'd like

Add an AtributeValue method that would return the type of value for that attribute. It would be also nice to have enumerated labels for the types.

Describe alternatives you've considered

We always get all three and test the class.

Additional context

Activity

  1. boring-cyborg commented on Jun 5, 2021

    @boring-cyborg

    Thanks for opening your first issue here! We'll come back to you as soon as we can.

  2. michaelbrewer commented on Jun 6, 2021

    @michaelbrewer
    Contributor

    @gwlester I have a PR for this #462.

    Can you check if this is what you want.

  3. gwlester commented on Jun 8, 2021

    @gwlester
    ContributorAuthor

    Since the PR got merged -- should this issue be closed now?

    Just asking,

  4. michaelbrewer commented on Jun 8, 2021

    @michaelbrewer
    Contributor

    @gwlester kind of, us to you ;-). Once it is deployed, maybe you can help validate that it works for you.

  5. gwlester commented on Jun 8, 2021

    @gwlester
    ContributorAuthor

    @michaelbrewer -- let me know when 1.17.0 is available to deploy! Thanks again!!!

  6. added and removed
    triagePending triage from maintainers
    on Jun 8, 2021
  7. added this to the 1.17.0 milestone on Jun 8, 2021
  8. heitorlessa commented on Jun 8, 2021

    @heitorlessa
    Contributor

    hey @gwlester this is now available! Added an example in the release notes as well as the docs: https://github.com/awslabs/aws-lambda-powertools-python/releases/tag/v1.17.0

    Closing this now as it's already available in PyPi too :)

    Thanks a lot @michaelbrewer for the implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions