Bug: DynamoDBProvider not tokenizing projection values/names correctly #1238
Labels
bug
Something isn't working
completed
This item is complete and has been merged/shipped
parameters
This item relates to the Parameters Utility
Milestone
Expected Behaviour
As a customer, when using the
DynamoDBProvider
part of the Parameters utility, I want to be able to retrieve values from a DynamoDB Table that uses any of the reserved words as attribute name.In order to allow this, the provider should be able to transparently tokenize these words under the hood.
Current Behaviour
At the moment, using any of the reserved words as attribute name causes the SDK client to throw an error as they are not tokenized.
Code snippet
Possible Solution
Use the
ExpressionAttributeNames
field in the query requests.Steps to Reproduce
N/A
AWS Lambda Powertools for TypeScript version
latest
AWS Lambda function runtime
18.x
Packaging format used
Npm
Execution logs
No response
The text was updated successfully, but these errors were encountered: