Questions tagged [aws-sdk-java-2.0]
164 questions
0
votes
1 answer
Overriding FUTURE_COMPLETION_EXECUTOR in AWS SDK Java V2
I have previously overridden FUTURE_COMPLETION_EXECUTOR with Runnable::run as I want to process the response on the calling thread, which has worked fine. Now, however, after upgrading to 2.2.0 the same configuration results in ForkJoin.commonPool…

Anvar
- 1,110
- 2
- 10
- 22
0
votes
1 answer
Extract AWS Glue credentials from created glue client Scala
I am attempting to extract emmbedded connection credentials in reference to this question.
But I get the following error.
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.types._ //import everything from the package
import…

jayrythium
- 679
- 4
- 11
0
votes
1 answer
AWS S3 v2 GetObject Unable to unmarshall response (java.net.SocketTimeoutException)
I'm trying to get a large object from S3 and steam the output straight to an HttpServletResponse output stream.
However it always fails on this object due to a SocketTimeoutException.
Here's the code that uses the S3Client to get the object:
…

ndtreviv
- 3,473
- 1
- 31
- 45
0
votes
1 answer
ForbiddenException while creating mediaconvert job with aws java sdk
I want to use aws mediaconvert service for video stitching.
Have an paid account with AWS having access to mediaConvert service.
Able to create the video stitching JOB via mediaConvert console.
Now i am trying the same thing with AWS java…

Akshay
- 3
- 2
0
votes
1 answer
AmazonAutoScalingAsync client not seeing ASGs (Auto scaling Groups)
I've set up AmazonAutoScalingAsync client as well as many others but I'm unable to retrieve the existing ASGs.
BasicSessionCredentials sessionCredentials =
new BasicSessionCredentials(
credentials.getAccessKeyId(),
…

javydreamercsw
- 5,363
- 13
- 61
- 106
0
votes
1 answer
How to check if AWS Security Hub integration is enabled for particular AWS_ACCOUNT_ID and Region by SDK?
I want to check if AWS Security Hub integration is enabled for particular aws account ID and particular region using AWS Security Hub SDK?

Kailas Andhale
- 53
- 8
0
votes
1 answer
Query Request: EC2 Version
In StartInstances - Amazon Elastic Compute Cloud Amazon describes how to make a request to Start Instances of EC2 service.
To write the parameters of request with a Signature Version 4, I followed Common Query Parameters - Amazon Elastic Compute…
0
votes
1 answer
Override AWS SDK API Call
I want to implement caching mechanism for AWS SDK calls like describeReservations() in EC2 and so on.
I can create a wrapper around SDK and create custom SDK but that's a long process. So, I was looking for something like overriding API calls in AWS…

Dhananjay Kaushik
- 89
- 1
- 3
0
votes
1 answer
AWS SDK for Java version 2 - HTTP Transport Configuration
I cannot use the netty-nio-client with software.amazon.awssdk - 2.10.33 as it breaks my application built in Play Framework 2.5.x.
According to the AWS docs, the Http Client can be changed…

lohiarahul
- 1,432
- 3
- 22
- 35
0
votes
0 answers
Dynamodb Cross-account put_item
I have two AWS accounts (account A, and account B). Account A has an EC2 instance, and that instance wants to do a put item to a dynamodb located in account B.
Since it is cross-account access, I created an IAM role on account B to allow account A…

A.Ho
- 27
- 1
- 5
0
votes
1 answer
Get latest Amazon RDS snapshot using AWS SDK
I'm trying to obtain the latest RDS Snapshot using the AWS SDK (Java, specifically). This has been asked and solved before using the AWS CLI (How to find latest or most recent AWS RDS snapshot?)
The proposed solutions all involve the --query param…

nao
- 1,128
- 1
- 14
- 37
0
votes
3 answers
AWS Secrets Manager Update Secret Request Using AWS-SDK Java
I want to update existing secret's secret string in AWS secrets manager using AWS-SDK for Java. From the example request https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_UpdateSecret.html#API_UpdateSecret_Examples I could figure…

Raghav Sharma
- 31
- 7
0
votes
1 answer
AWS SDK - purpose of async configuration SdkAdvancedAsyncClientOption.FUTURE_COMPLETION_EXECUTOR
What is the purpose of asyncConfiguration SdkAdvancedAsyncClientOption.FUTURE_COMPLETION_EXECUTOR?
in which use cases should we use it?
from java doc on FUTURE_COMPLETION_EXECUTOR, I see: Configure the executor that should be used to complete the…

Vasyl Sarzhynskyi
- 3,689
- 2
- 22
- 55
0
votes
1 answer
Can't register AWS-SDK on Jboss modules correctly
I found the dependency aws-java-sdk was being compiled on a legacy code, having as result a very heavy EAR.
I declared this dependency as provided and wanted to put it as part of the Jboss modules, but no matter where I put it, I'm still having the…

Rafael
- 104
- 8
0
votes
1 answer
Upload file to S3 bucket using IAM credentials and policy Java AWS SDK
I'm trying to upload a file to a S3 bucket. First I create an AmazonS3 client using InstanceProfileCredentialsProvider and I get IAM credentials from the instance metadata:
final AmazonS3 s3Client = AmazonS3ClientBuilder.standard()
…

Jones
- 1,036
- 5
- 20
- 37