All Questions
Tagged with aws-java-sdk-2.x java
57 questions
-1
votes
0
answers
16
views
API Gateway Access Errors with Java SDK
I'm using the AWS SDK v2 in my Java program to send a request to an API Gateway I've hosted. I'm seeing some unexpected errors where I'm receiving a 403 Forbidden response from my gateway, but only in ...
0
votes
1
answer
281
views
Issues with Region in S3AsyncClient and S3TransferManager using Minio with AWS SDK for Java
I encountered an issue while configuring S3AsyncClient using the AWS SDK for Java in a Spring Boot application. Despite setting all the necessary properties, I keep receiving the following error ...
2
votes
1
answer
414
views
Cannot find symbol class ResponseHeaderOverrides location: package software.amazon.awssdk.services.s3.model Java SDK v2 AWS
I am a beginner to Java programming.
I am trying to do a GET on a object in S3 using the AWS Java SDK v2. The code is staightforward hello world code that I have from a video tutorial.
//get ...
1
vote
0
answers
546
views
Unable to acquire further connections in AWS S3 Async client after failure
Using V2 of the Java AWS SDK, with V2 of the netty nio client, we hit a scenario where we DDOS our application and then get the error:
"Caused by: java.lang.Throwable: Acquire operation took ...
0
votes
1
answer
84
views
Fetch records from DynamoDb db table
I have a Dynamodb records example
{
"cDate":"2024-03-04",
"myList":[
{
"M" : {
"rt":{"N":"1.06"},
...
0
votes
1
answer
622
views
AWS S3 Java 2.X Client configuration issue
StaticCredentialsProvider provider = StaticCredentialsProvider.create(AwsBasicCredentials.create("Access key ID", "Access secret key"));
S3Client s3 = S3Client.builder()....
0
votes
1
answer
165
views
Stream a large SQL ResultSet directly to an S3 bucket in java
I have a (possibly) quite large ResultSet when querying a (Vertica) SQL Database, and because it won't fit in memory I'm trying to find a way to stream the results (in CSV form) directly to an S3 ...
0
votes
1
answer
133
views
AWS SDK Java Tagging Run Instances
Our AWS team enabled tags in INSTANCE and VOLUME and now we have to modify our codes to add tagging. I tried to tag an EC2 instance but I got the following error below and hopefully someone can point ...
0
votes
1
answer
558
views
How to make SqsClient region agnostic
I see that in docs that for SqsClient, the region must be set in advance, making this client tied to a specific region only. my question is, is it possible to make SqsClient region agnostic, so, ...
0
votes
1
answer
534
views
DynamoDB Java SDK - QueryRequest with IN clause
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 ...
2
votes
2
answers
6k
views
How do I use localstack with the aws java sdk?
I'm attempting to use localstack for development with SQS.
Aws client v2.20.60
localstack v2.0.2.
I'm following this blog post, but no matter what I try, I always get the error:
exception while ...
0
votes
0
answers
125
views
Set "Description" in RestoreRequest for S3 object retrieval from GDA to Standard storage using AWS Java SDK v2
Creating an Object Restore request from AWS S3 Glacier Deep Archieve to AWS S3 standard storage using AWS Java SDK V2 with the following code. Which works successfully with these parameters specified ...
0
votes
1
answer
952
views
How to escape reserved keywords in DynamoDB ExecuteStatementRequest?
I'm trying to issue an update ExecuteStatementRequest using DynamoDB and Java SDK 2.0. I'm struggling to escape keywords that are columns in my table schema.
The following statement:
var response = ...
0
votes
0
answers
707
views
Getting `S3Exception` when executing download operation with `S3TransferManager` AWS SDK 2.19
I am using the S3TransferManager with S3AsyncClient in my service code. I am testing this code with localstack docker S3 service. I have the local stack S3 service and created the bucket test and ...
0
votes
1
answer
804
views
How to fix JSON string uploading to S3 with contents of "[value: string]" rather than actual data
In Scala, I'm using the AWS Java SDK to upload a simple JSON string (containing a few rows of data from a database). The upload appears to work fine but the content of the uploaded file once it's in ...