Questions tagged [aws-sdk-java]

56 questions
0
votes
0 answers

How to tag API calls to Amazon Rekognition?

Each of my customers pays for its part of my total AWS costs. Therefore, I tagged all my resources (EC2, EBS, S3, ...) and I created an AWS Cost and Usage Report for each of my customer. But I couldn't find a way to tag API calls to Amazon…
dur
  • 15,689
  • 25
  • 79
  • 125
0
votes
1 answer

AWS SQS JMS SDK MessageListener onMessage() Not Assigning Different Thread For Each Invocation

I have a requirement where I have to write a sqs consumer which consumes messages asynchronously from AWS SQS. My assumption is that JMS is multi threaded and for each invocation of MessageListener's onMessage(), it will assign a new thread to…
0
votes
0 answers

A query on repeated usage of AWS KMS Key programmatically

We have a back end program in Java which processes thousands of requests per minute where encryption and decryption via AWS KMS is involved. What we are avoiding is multiple calls to AWS KMS programmatically which might have a considerable effect in…
0
votes
0 answers

How to make sdk calls for eks api

Do we have any code example for amazon eks APIs using amazon-sdk-java-eks I tired to check on https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javav2/example_code But didn't got any for eks.
0
votes
1 answer

InvalidBucketName with Java AWS SDK 1.x using S3 Access points

I am trying to perform GetObject operation on a bucket via configured accesspoint through AWS SDK version 1.x (tried with 1.12.348 and 1.11.1004): com.amazonaws aws-java-sdk-s3
adesai
  • 370
  • 3
  • 22
0
votes
0 answers

Configure metrics for the S3TransferManager

We are running a Kotlin service that regularly uploads large files to S3. Currently we have our own multipart upload logic that uses the S3AsyncClient, but we want to use S3TransferManager as it already contains multipart logic. We have configured…
fafl
  • 7,222
  • 3
  • 27
  • 50
0
votes
0 answers

how to track request metrics in aws-java-sdk AmazonS3 client in micrometer?

I'm using a spring boot app with micrometer and trying to collect request metrics from the AmazonS3 client. I can see AmazonS3ClientBuilder#withMetricsCollector which accepts a RequestMetricCollector I'm wondering if there's a prebuilt micrometer…
0
votes
0 answers

AWS Web ACL Rule Update

I want to update a rule in webAcl using AWS java sdk but in that we have only one option which is UpdateWebACL so how can we use it to update the rule. I have tried to flow this Article but I am not sure how to update a single rule of WebACL in…
0
votes
1 answer

create a file.pem containing the private key when creating a Key Pair using AWS SDK for Java

I am trying to create Key Pairs using the AWS SDK for Java. Usually if you are using the Management Console on AWS website and when you create a new Key Pair, you are provided with a YourKeypairName.pem file containing the private RSA key that you…
0
votes
1 answer

Migrate AmazonWebServiceClient to ApiGatewayAsyncClient in aws-sdk-java-v2

I'm currently using an AWS java client to request a gateway API. The actual code relies on "aws-sdk-java" and I want to migrate the more modern version "aws-sdk-java-v2". The client would then benefit from a non blocking I/O API. Turns out,…
0
votes
0 answers

Passing Parameters to AWS Glue Worklfow

Looking into AWS Glue Workflow for Automation of an ETL pipeline process. I have defined some workflow parameters to define which customer to run this job for and would like to pass this as input to the Workflow. I am confused as to how I can…
Patrick Bray
  • 552
  • 2
  • 7
  • 20
0
votes
1 answer

Upload with high level multipart still gives no content length specified warning

Even though I'm using the high level multipart I'm still getting the warning in the console: WARN - com.amazonaws.services.s3.AmazonS3Client - No content length specified for stream data. Stream contents will be buffered in memory and could result…
shinzou
  • 5,850
  • 10
  • 60
  • 124
0
votes
3 answers

How to use the Amazon S3 Java API to perform getObject using an asynchronous call

I need to download a lot of files from S3 so I wrapped many calls to s3Client.getObject(request, destination) with futures, but there's no mention of it being blocking so I'm afraid I might run into a race condition where all the download calls were…
shinzou
  • 5,850
  • 10
  • 60
  • 124
0
votes
1 answer

AWS ProfileCredentialProvides AWS SDK1 VS AWS SDK 2 JAVA

Can someone please explain the difference between the two libraries below - I have two pieces of code, both trying to list s3 buckets in an account. JAVA 1 Library. that uses CredentialProvider from …
user3867198
  • 1
  • 1
  • 3
0
votes
1 answer

Unable to set Expiry Time of File Object on AWS S3 Bucket

I am setting an expiry time of 30 minutes while uploading a FileInputStream to S3 bucket using AWS SDK , but the file was not deleted after 30 minutes . I even tried the next day at 12:00AM thinking maybe the queue is refreshed at night but still…