Questions tagged [aws-sdk-java-2.0]

164 questions
21
votes
7 answers

Delete a folder and its content AWS S3 java

Is it possible to delete a folder(In S3 bucket) and all its content with a single api request using java sdk for aws. For browser console we can delete and folder and its content with a single click and I hope that same behavior should be available…
Munish Dhiman
  • 511
  • 1
  • 7
  • 22
11
votes
1 answer

AWS Lambda RequestHandler for a void output

Consider a simple Lambda written in Java: import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; public class Hello implements RequestHandler{ public String…
ttulka
  • 10,309
  • 7
  • 41
  • 52
10
votes
1 answer

How to use Project Reactor's Scheduler with Executor based libraries?

Project Reactor provides a great way to define which thread pool for code to run on, by defining a Scheduler. It also provides a bridge to libraries that use CompletableFuture's though Mono.fromFuture(..). AWS's async client for DyanmoDB, executes…
peterl
  • 1,881
  • 4
  • 21
  • 34
9
votes
2 answers

Spring-Cloud-AWS vs AWS-SDK-Java 2

Ours is a Spring-Boot based application. For integration with AWS SNS and SQS, we have couple of options: Use Spring-Cloud-AWS Use AWS-SDK-Java 2 I wanted to know if there is any advantage in using one or the other. When I ask AWS guys, they tell…
9
votes
3 answers

How to convert between Json and Map in

I want to save an object that is encoded as a Json string to DynamoDB using the AWS Java SDK 2.0. In the AWS Java SDK 1.n, it is possible to convert standard Json strings to DynamoDB AttributeValues using…
6
votes
1 answer

Alternative for TransferManager in AWS sdk Java 2.x

TransferManager class has been removed from AWS sdk Java 2.x. What is the alternative for TransferManager and how it can be used
5
votes
3 answers

How enable force global bucket access in aws s3 sdk java 2.0?

Here is a link to the documentation for java 3 sdk version 1. Does version 2.0 has something similar or they removed such option?
Cherry
  • 31,309
  • 66
  • 224
  • 364
4
votes
3 answers

AWS SDK for Java version 2 - Delete S3 "folder" or Delete multiple S3 objects

I am searching how to delete a S3 folder using AWS SDK for Java version 2. I only managed to find AWS SDK version 1 examples. I know that S3 is an object store and that the concept of folder does not exist. What I mean here is : List the S3 objects…
Comencau
  • 1,084
  • 15
  • 35
4
votes
0 answers

view file contents from aws s3 in web browser

I am storing images in the s3 bucket using java spring-boot and storing the file path in the DB. I am giving the path to the client so that they can view the file instead of download it.I am able to generate pre-signed URL for the s3 object. So,…
3
votes
1 answer

How to configure Region when using Java2 aws sdk?

I wrote the below controller to generate PreSigned S3 upload links. case class S3Controller(private val s3Config: S3Config, private val awsConfig: AwsConfig) { val URL_TIMEOUT_IN_MILLIS: Long = 60 * 5 * 1000 def…
asds_asds
  • 990
  • 1
  • 10
  • 19
3
votes
2 answers

QuickSight not showing DataSource created with API

I've recently started looking into creating dashboards and analysis with the Quicksight API. I tried creating a datasource using the AWS SDK, the response was successful and I was also able to double-check this by calling a describe on the…
3
votes
0 answers

AWS SQS Java SDK: Endpoint Override With A Path

I am using the AWS SDK version 2.14.26. I want to be able to point it to my simulator for AWS SQS, which allows for me to do fancy things such as return errors, delay responses, ect. I do have ElasticMQ, but I also want to do the fancy things, for…
3
votes
3 answers

Access AWS session token from profile with DefaultCredentialsProvider

My AWS profile in ~/.aws/credentials contains session credentials created by STS. [default] aws_session_token=XXX aws_access_key_id=XXX aws_secret_access_key=XXX I am trying to access these credentials using the AWS SDK Java v2 Using the…
user5633550
  • 95
  • 2
  • 6
3
votes
0 answers

java.lang.NoSuchMethodError: software.amazon.awssdk.utils.IoUtils.closeQuietly

I am trying to index files on S3 with Lucene and. I found this question Integrating Lucene Index and Amazon AWS, with some code, where one can replace the FSDirectory call with S3Directory dir = new S3Directory("my-lucene-index"); dir.create(); //…
3
votes
1 answer

How to dynamically change table name in DynamoDbEnhancedClient (Aws Sdk V2 for Java)

In Aws SDK V1 for java when creating DynamoDBMapperConfig you could set withTableNameResolver(...) and withObjectTableNameResolver(...) to dynamically change table name before save operation occurred even if a bean had @DynamoDBTable…
Kivan
  • 1,712
  • 1
  • 14
  • 30
1
2 3
10 11