-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add DynamoDB provider to parameters module #1091
Conversation
...-parameters/src/main/java/software/amazon/lambda/powertools/parameters/DynamoDBProvider.java
Outdated
Show resolved
Hide resolved
...-parameters/src/main/java/software/amazon/lambda/powertools/parameters/DynamoDBProvider.java
Outdated
Show resolved
Hide resolved
...-parameters/src/main/java/software/amazon/lambda/powertools/parameters/DynamoDbProvider.java
Show resolved
Hide resolved
...-parameters/src/main/java/software/amazon/lambda/powertools/parameters/DynamoDbProvider.java
Show resolved
Hide resolved
.../src/test/java/software/amazon/lambda/powertools/parameters/ParamManagerIntegrationTest.java
Show resolved
Hide resolved
...ameters/src/test/java/software/amazon/lambda/powertools/parameters/DynamoDbProviderTest.java
Show resolved
Hide resolved
...ters/src/test/java/software/amazon/lambda/powertools/parameters/DynamoDbProviderE2ETest.java
Show resolved
Hide resolved
...ameters/src/test/java/software/amazon/lambda/powertools/parameters/DynamoDbProviderTest.java
Outdated
Show resolved
Hide resolved
...ameters/src/test/java/software/amazon/lambda/powertools/parameters/DynamoDbProviderTest.java
Show resolved
Hide resolved
.item(responseData) | ||
.build()); | ||
// Act | ||
Assertions.assertThrows(NullPointerException.class, () -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure it should be nullpointer? Couldn't we have a better (eventually custom) one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throwing a DynamoDbProviderSchemaException
now with the error text describing the missing column
@jeromevdl I think that should be it! I've cleaned up the exceptions too. |
@jeromevdl anything else to polish? 👼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue #, if available:
#1083
Description of changes:
Adds a
DynamoDbProvider
to the parameters module. Follows the style of the existing parameters provider and the schema used in the python powertools.Checklist
Breaking change checklist
N/A - new functionality
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.