DynamoDB TypeDeserializer support encoding by aws step functions operations #4253
Labels
dynamodb
feature-request
This issue requests a feature.
p2
This is a standard priority issue
service-api
This issue is caused by the service API, not the SDK implementation.
stepfunctions
Describe the feature
The TypeDeserializer can't currently decode all items returned from
arn:aws:states:::aws-sdk:dynamodb:scan
by AWS step functions (and presumably other database operations).This is caused by non-standard encoding where
NULL
isNul
andBOOL
isBool
within a nested map. Top level attributes do however use the more standardNULL
andBOOL
.Use Case
To be able to handle this form of encoding provided by AWS without a custom wrapper which will need to be added by many users. It can easily lead to unexpected errors when this special encoding is not known by a developer. It would be great to have this abstracted by boto3.
The current implementation returns this exception or similar for
Bool
Proposed Solution
I believe a minor update to the TypeDeserializer to understand these two additional cases.
Other Information
No response
Acknowledgements
SDK version used
1.34.107
Environment details (OS name and version, etc.)
Python 3.12 on AWS Lambda
The text was updated successfully, but these errors were encountered: