Skip to content

Return empty messageAttributes map for SQSEvent #514

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scaredcat
Copy link

Issue #, if available: n/a

Description of changes:

This change copies across the getMessageAttributes implementation from the SQS sdk. Return an empty list instead of null if no message attributes are available.

https://github.com/aws/aws-sdk-java/blob/3c367441d1c5d2f21e10d54cb4f2b308a8b00c59/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/Message.java#L684-L686

Target (OCI, Managed Runtime, both):

both?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant