-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[NEW EXAMPLE REQUEST] <<ItemUtils for dynamoDB sdkv2>> #889
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
Comments
This is an interesting use case. That is, working with the AWS APIs in a Spring app. I will work on this and post back my findings. |
Have you tried using Spring APIs and AWS APIs in an IDE such as the IntelliJ IDE? When doing so, ensure that you have properly setup the POM file to include the proper dependencies. For example: I successfully got the AWS Dynamo API working within a Spring project. I built the application by using the IntelliJ IDE. You can see the following illustration that shows the application rendering a value retrieved from a Dynamo table: We will look at adding this use case to AWS developer docs. |
Sorry i could have provided you a reference code . so that you can understand what exactly i am doing. I am using a spring-boot application with spring webflux . Please find the controller code below:
here is the error stack trace:
I am using AWS V2 |
AN update - i am seeing an issue too with this code:
I am going to keep working on this. |
Your issue was code was not correct. I tried to compile your example and it was not working. Here is code that successfully retrieves data from a Dynamo table using DynamoDbAsyncClient. **
** The following illustration shows this code running and successfully retrieving a value from the same table as shown above. Hope this helps you. We will update the AWS code catalog too. |
Thanks for response. But You printing the Map<String,AttributeValue> in console not sending the data via REST Endpoint. I had to write this below class to convert it into Map<String,Object> for Rest Endpoint
|
Uh oh!
There was an error while loading. Please reload this page.
What are you trying to accomplish?
I have created a spring boot application. I am sending response in Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> . It shows
No serializer found for class software.amazon.awssdk.services.dynamodb.model.AttributeValue
error in postman when hitting endpointWhich AWS services, if known, should this code example use?
https://aws.amazon.com/dynamodb/
Which AWS SDKs or tools, if known, should this code example use?
AWS SDK v2 dynamodb
Are there any similar code examples that could be leveraged?
https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/javav2/example_code/dynamodb/src/main/java/com/example/dynamodb/GetItem.java
Any other related details we should know about?
No
The text was updated successfully, but these errors were encountered: