Questions tagged [aws-sdk-java-2.0]
164 questions
2
votes
0 answers
Trying to do resume upload for AWS S3 with java sdk. But it is starting from scratch always to upload
I am trying to upload a file with AWS SDK to demonstrate upload break due to any reason. But I see it is uploading from the beginning always. The code there is pretty straight-forward, but the problem comes with saving persistent obj status so that…

Raj
- 21
- 3
2
votes
1 answer
S3Exception with AWS SDK for Java version 2 - The request signature we calculated does not match the signature you provided
I am trying to get list of object in an S3 bucket using AWS SDK for Java version 2.
Getting following exception:
software.amazon.awssdk.services.s3.model.S3Exception:
The request signature we calculated does not match the signature you…

Kuldeep Jain
- 8,409
- 8
- 48
- 73
2
votes
0 answers
How to get the aws s3 objects metadata from java sdk based on Last modified time
I need to fetch the object metadata based on the last modified time from Java SDK
I can fetch the data based on last modified time from AWS CLI but I need the same thing from java SDK
I used the following command to get the data
s3api list-objects…

Veluguri sai ram
- 29
- 3
2
votes
0 answers
Overriding default SdkClientOption.SCHEDULED_EXECUTOR_SERVICE in AWS SDK for Java 2
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 the threadpools are reused across all…

harivis
- 72
- 3
2
votes
1 answer
java.lang.IllegalStateException: Connection pool shut down exception from spring-integration-aws library
We are using spring-integration-aws-2.0.0 for connecting to kinesis to listen to stream. While stopping the application, always getting the following exception.
a.i.k.KinesisMessageDrivenChannelAdapter : Got an exception…

Shafiul
- 1,452
- 14
- 21
2
votes
2 answers
Connecting to AWS RDS from java without exposing password
I was successfully able to connect to RDS like any other database connection.
I use spring jpa data ( repository ) to do CRUD operation on postgres db.
currently I provide the db url and the credential in the properties file
spring:
datasource:
…

arvin_v_s
- 1,036
- 1
- 12
- 18
2
votes
1 answer
Cannot Archive Data from AWS Kinesis to Glacier
I am working on a Data processing application hosted as a web service on an EC2, each second a small data file (less than 10KB) in .csv format is generated.
Problem Statement:
Archive all the data files generated to Amazon Glacier.
My Approach :
As…

Rajat Khandelwal
- 477
- 1
- 5
- 19
1
vote
1 answer
Create Instance of GetRequestObject AWS S3 for Mock
I have written this function to get object from S3, now I want to write Unit Test cases for the same. I am not able to mock "s3Client.getObjectAsBytes(objectRequest)" so that I can get mock response for "ResponseBytes objectBytes" and continue…

Chetan Krishna
- 131
- 1
- 2
- 8
1
vote
0 answers
Is it possible to use dyanmodb streams with encrypted data?
I am doing some investigation on whether it is possible to use DynamoDB streams with encrypted data using the latest DynamoDB sdk updates i.e. can DynamoDB streams decrypt data that was encrypted using the DynamoDB enhanced API.
Typically, when you…

Seagull
- 2,219
- 6
- 25
- 33
1
vote
1 answer
How to detect Comprehend Service failure and test with SDK
My application consumes many AWS services, and some services like Comprehend needs the region to be defined while building the client. I want to know specifically about Comprehend:
how to detect if the Comprehend Service has been failed in the …

Débora
- 5,816
- 28
- 99
- 171
1
vote
1 answer
AWS Java SDK - Is it possible to create an REST API with lambda backend
Is it possible to create a REST API with lambda backend using AWS Java SDK?
I have been able to create HTTP API using software.amazon.awssdk.services.apigatewayv2.ApiGatewayV2Client with a lambda backend, but havent found the right sdk functions to…

Sandeep
- 95
- 9
1
vote
0 answers
High latency observed while calling AWS sagemaker and online feature-store service
We have recently done an integration with AWS SageMaker and FeatureStore for one of our use-case. On Cloudwatch, we could see the p99: 50-60ms(Overhead + Model) for sagemaker and p99: 15-20ms for feature-store.
But we are observing the high…

tusharRawat
- 719
- 10
- 24
1
vote
2 answers
DynamoDB - DynamoDbAtomicCounter return always null
I am following this document:
https://aws.amazon.com/blogs/developer/using-atomic-counters-in-the-enhanced-dynamodb-aws-sdk-for-java-2-x-client/
My goal is to use AtomicCounter to generate unique IDs, but I always get null for both examples:
My code…

Doesn't Matter
- 1,061
- 3
- 11
- 29
1
vote
0 answers
How to set an interceptor for all sqs routes in apache Camel
I would like to set an interceptor to intercept all SQS messages coming through my app in one place regardless of how many queues I have.
I am using Spring Boot.
via spring-cloud-aws-messaging I am able to do it by extending QueueMessageHandler and…

Samet Baskıcı
- 1,090
- 3
- 13
- 26
1
vote
1 answer
Returning list of objects inside S3 bucket using S3AsynClient and SdkPublisher
I am trying to retrive the list of contents inside the S3 bucket using aws-java sdk 2 and S3 async client. However after running the below code, I dont see any output even though the bucket has one object inside it. Am I missing something…

ghostrider
- 2,046
- 3
- 23
- 46