Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
165 views

I have a DDB table with the following structure: CustmerID (PK) emailId (SortKey) orderId (LSI) I want to get batch items using AWS DynamoDB Java SDK for the following 2 patterns: Get Items by a PK ...
Govinda Sakhare's user avatar
0 votes
0 answers
107 views

I am having trouble writing JUnits for my DynamoDB query. Here is the original code: PageIterable<AccountTableItem> pages = table.query(queryEnhancedRequest); for(Page<AccountTableItem> ...
UhHuhOkSure's user avatar
1 vote
1 answer
45 views

I have a dynamodb structure like below: { "PK" : "queue#1234#view", "SK" : "board#1234", "items" : [ "1234&...
Kalindu's user avatar
  • 293
0 votes
1 answer
602 views

The Javadoc of software.amazon.awssdk.services.dynamodb.model.QueryRequest.expressionAttributeValues() says a following query can be done: ProductStatus IN (:avail, :back, :disc) where the values are ...
ash's user avatar
  • 365
0 votes
1 answer
1k views

I'm trying to write a Query in DynamoDB with logic similar to a GROUP BY in SQL. Let's consider the following table with partition key simulation_id: Simulation (Table): simulation_id_1 - type_1 - ....
Nano's user avatar
  • 864
2 votes
1 answer
182 views

I'm trying to read an existing dynamo DB in Lambda function, but resources in YAML creates a new table. If I could do that, someone please help me how? Also I need to use an existing S3 bucket
Harsha D G's user avatar
0 votes
0 answers
340 views

I have a dynamoDB table in my aws account. I can create client like this. AmazonDynamoDB amazonDynamoDB = AmazonDynamoDBClient.builder().withRegion("eu-west-1").withCredentials(...
Pul kit's user avatar
  • 55
11 votes
1 answer
4k views

The answers to the question Converting DynamoDB JSON to Standard JSON with Java are obsolete in 2022. The problem is that both of these imports no longer work: import com.amazonaws.services.dynamodbv2....
Alex R's user avatar
  • 12.1k
1 vote
1 answer
1k views

I know the java DynamoDB's SDK is considered async non blocking but my question is: Q. Does the dynamo update still need to be on another thread with operator publishOn to be safer in a reactive ...
M_K's user avatar
  • 3,467
1 vote
1 answer
821 views

I'm trying convert Map<String, AttributeValue> to POJO. I do it like that: new DynamoDBMapper(awsConfiguration.amazonDynamoDbClient()).marshallIntoObject(MyClass.class, myMap); @DynamoDBTable(...
diego's user avatar
  • 150
0 votes
1 answer
3k views

I am trying to use v2 library to persist & retrieve data in non-blocking manner. Put method of DynamoDBEnhancedAsyncClient returns CompletableFuture object but scan and query methods return ...
Hrv's user avatar
  • 15
1 vote
1 answer
339 views

i am developing a small application in ASP.net MVC ,in which i am uploading file to s3 directly from browser ,below is my code , but the problem is since it is in JavaScript my Access key and Secret ...
Luke's user avatar
  • 161
7 votes
1 answer
14k views

In AWS DynamoDB, There are two options available to do the CRUD operations on the Table. DynamoDBMapper : com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper;. AmazonDynamoDB dbClient = ...
Lenzman's user avatar
  • 1,415
1 vote
2 answers
3k views

How can more than 100 items from a dynamodb table, matching a particular partition key, be queried using aws java sdk 2? If the number of rows that match a hash key exceeds 100 then the ...
Ramón J Romero y Vigil's user avatar
4 votes
2 answers
5k views

I have a DynamoDB table with partition key as userID and no sort key. The table also has a timestamp attribute in each item. I wanted to retrieve all the items having a timestamp in the specified ...
NotNotLogic's user avatar
5 votes
1 answer
3k views

I have an application which connects to AWS DynamoDB. I am trying to implement Redis connection using Jedis into this application. However, just after I add this dependency - <dependency> ...
bumi25's user avatar
  • 125
0 votes
1 answer
1k views

I am getting sometimes this error when calling load for DynamoDBMapper: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net....
Mouna's user avatar
  • 3,399
0 votes
1 answer
2k views

I have created a pojo class in my java spring boot app and with respective annotations for doing create/update it's working fine but when i use the autogenerated key annotation it is creating some ...
Mohan vel's user avatar
  • 543
0 votes
1 answer
1k views

I have created a class pojo class in java to create/update items in aws dynamodb when i was trying to create/update an item in dynamodb it is working fine but the column created in dynamodb datatype ...
Mohan vel's user avatar
  • 543
2 votes
1 answer
9k views

I have created a java service to get the details from dynamodb it is working fine but my challenge is i hardcoded the table name to the class file @DynamoDbTable annotation in order to work with ...
Mohan vel's user avatar
  • 543
2 votes
0 answers
1k views

I'm new to dynamoDB and currently trying to develop a module which writes into the dynamoDB database using transactWrite. Transactions are only allowed for a batch of 25 items but I want to add 500 ...
user13625773's user avatar
1 vote
1 answer
2k views

I am running same application with two different ports in my local. The code I have provided is only for testing. Here access_key and secret_key will be provided from environment variables in later ...
Arindam's user avatar
  • 583
2 votes
0 answers
315 views

Is there a way I can override the default SdkClientOption.SCHEDULED_EXECUTOR_SERVICE in AWS SDK for Java 2? I want to get rid of all the threadpools that are opaque to the application, and ensure that ...
harivis's user avatar
  • 82
1 vote
2 answers
2k views

I am trying to create csv files from a list of maps and uploading them to S3 bucket through a lambda function. Following is the code: public void createCSV(List<Map<String, AttributeValue>&...
miserable's user avatar
  • 725
2 votes
1 answer
2k views

Hi i have created a handler in java for getting the events from dynamo DB Here is my code package com.Lambda.dynamodb; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws....
Mohan vel's user avatar
  • 543
1 vote
1 answer
1k views

Given a DynamoDB entity like this @Data() @DynamoDBTable(tableName = "DynamoTable") public class DynamoTable implements Serializable { @DynamoDBAttribute(attributeName = "DATA_VALUE") private ...
Pratyush Prakash's user avatar
4 votes
1 answer
2k views

I want to implement numeric limit and offset based pagination in DynamoDB similar to Postgres. My API look something like this: http://foo.bar/user?offset=50&limit=20. What's the best way to do ...
gerrytan's user avatar
  • 41.2k