Questions tagged [aws-sdk-java]
56 questions
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
Sign a Pdf document using AWS KMS
I have created in AWS KMS Console a Asymmetric key, RSA_2048, for Sign and verify.
I have created an IAM user to use this key and attached to it the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid":…

reshef_
- 41
- 5
1
vote
0 answers
AWS Marketplace : BatchMeterUsage Example Java API
My use case requires to publish metering data to AWS hourly, I am a seller on Marketplace where buyers can subscribe to my SaaS application.
Currently We are handling the use case by having a TaskTimer class and calling meter-usage command on aws to…

agaonsindhe
- 447
- 1
- 5
- 13
1
vote
1 answer
Performance difference in AWS S3 TransferManager multipart upload time when uploading file upload vs InputStream
I am using AWS SDK for java. Is there any difference in performance when passing InputStream instead of File in uploading to AWS S3 using TransferManager multipart upload? Should one be preferred over the other or is it just a matter of…

Faiz Kidwai
- 463
- 5
- 26
1
vote
1 answer
getInstanceTypesFromInstanceRequirements always return 0 instance types
I am running the following API:
GetInstanceTypesFromInstanceRequirementsResult instanceRequirementsResult = this.amazonEC2Client
.getInstanceTypesFromInstanceRequirements(new GetInstanceTypesFromInstanceRequirementsRequest()
…

Prashant Saraswat
- 838
- 1
- 8
- 20
1
vote
1 answer
AWS Cognito SDK for for USER_PASSWORD_AUTH flow
Cognito IDP allows below 3 AWS CLI to Signup, Confirm and Generate ID Token:
aws cognito-idp sign-up --region ap-south-1 --client-id xxx --username xx@xx.com --password xxx
aws cognito-idp confirm-sign-up --client-id xxxx --username xxx@xx.com…

Naveen Jadav
- 46
- 4
1
vote
1 answer
Java uploading file to AWS EC2 server
our use case needs to upload file from our on-premise server to an AWS EC2. Tried doing some research and could not find any available code samples on how to do this in Java. Has anyone done this before? and if yes and you direct me to some code…
1
vote
1 answer
AWS S3 authorization using STS JAVA SDK
I have an application instance running in EKS with the following variables set:
declare -x AWS_DEFAULT_REGION="us-west-2"
declare -x AWS_REGION="us-west-2"
declare -x AWS_ROLE_ARN="xxxxx"
declare -x…

Mikita Karaliou
- 86
- 6
1
vote
2 answers
Can't add new alternative domain name to CloudFront resource using AWS SDK for Java 2.x
I'm having difficulties trying to add a new Alternative Domain Name (CNAMEs) to an existing CloudFront resource using the AWS SDK for Java v2.x
This is the code snippet I'm using so far:
// First I get the actual resource from…

William Añez
- 730
- 6
- 25
1
vote
1 answer
AWS SDK S3Waiter waitUntilObjectExists usage guidance
I am new to AWS S3 SDK and need guidance on using S3Waiter.waitUntilObjectExists() I could not find any exact examples. I have a S3 bucket in which every four hours files uploaded by upstream processes. I have while(true) loop which polls for this…

Umesh K
- 13,436
- 25
- 87
- 129
1
vote
1 answer
Dynamo DB UPDATE_SKIP_NULL_ATTRIBUTES behavior updating the unmodeled Number attributes to '0'
Dynamo table item
id : number
Name : string
age : number
Address : sting
Java pojo is
id : int
Name : String
age : int
Address : String
My DynamoMapperConfig is
dynamoDBMapperConfig = new DynamoDBMapperConfig.Builder()
…

Vicky
- 1,135
- 1
- 17
- 37
1
vote
1 answer
Connect to AWS IoT MessageBroker with SigV4 presignedURL using Eclipse Paho MQTT client
I am trying to create a Java Mqtt Client using Eclipse Paho which can connect to an AWS IoT MessageBroker using a SigV4 presigned URL generated using AwsIotWebSocketUrlSigner's getSignedUrl method. This connection will be using MQTT over Websockets…

HariJustForFun
- 521
- 2
- 8
- 17
1
vote
1 answer
AWS(AwsCrypto) encryption result vary every time
The returned string vary every when I execute below code. Is there something I can config so that return fixed result?
final AwsCrypto crypto = new AwsCrypto();
new String(Base64.getEncoder().encode(crypto.encryptData(masterKeyProvider,…

Rockman12352
- 101
- 10
0
votes
0 answers
How can you pre-sign requests to AWS with credentials using the AWS Java SDK?
I have a situation where I need to take a Java application that currently uses Basic auth to access OpenSearch, and add the ability for a user to provide a Cognito user-pool user/pass instead of the Basic user/pass.
It appears that the way to do…

A.D.
- 1
- 1
0
votes
1 answer
pull the latest image tag from ECR repo using AWS SDK
Im trying to pull the latest image tag from the AWS ECR repo using AWS SDK
Im trying to write below code from the documentation and the google search
public class AwsECRTest {
public static void main(String[] args) {
// TODO…

user2315104
- 2,378
- 7
- 35
- 54