Questions tagged [aws-java-sdk-2.x]

The AWS SDK for Java provides a Java API for Amazon Web Services. Using the SDK, you can easily build Java applications that work with Amazon S3, Amazon EC2, DynamoDB, and more.

Version 2.x is a major rewrite of the 1.11.x code base. Built with support for Java 8+, 2.x adds several frequently requested features, like nonblocking I/O, improved start-up performance and automatic iteration over paginated responses. In addition, many aspects of the SDK have been updated with a focus on consistency, immutability, and ease of use.

Links

125 questions
0
votes
1 answer

How to create a serial numbers autogenerated in dynamoDb using annotations

I have created a pojo class in my java spring boot app and with respective annotations for doing create/update it's working fine but when i use the autogenerated key annotation it is creating some random id but i want those id column as serial…
0
votes
1 answer

How to create a user and password while launching AWS instance

Azure allows one to create the user and password during the creation of a virtual machine which can later be used for SSH into that VM. How to create a user and password during run instance in AWS using Java SDK which can be used for SSH. Currently…
0
votes
1 answer

How to submit a new step to a running EMR cluster in java sdk v2

I am trying to submit a HadoopJarStep to a running EMR cluster with the java sdk v2. From reading the api docs / examples I can't seem to figure out how to reference a running cluster instead of spinning up a new one. Can anyone point me to the…
foobarbaz
  • 508
  • 1
  • 10
  • 27
0
votes
1 answer

how to Pass aws credential keys to KinesisProducerConfiguration to create kinesis producer in java

this is code i found on aws documentation. KinesisProducerConfiguration config = new KinesisProducerConfiguration(); config.setRegion("us-west-1"); config.setMaxConnections(1); config.setCredentialsProvider(new…
0
votes
0 answers

Mono ignored when using AWS SDK DynamoDB enhanced Kotlin

I am playing around with Spring WebFlux, AWS SDK 2.X, Kotlin, and DynamoDB Enhanced client. I want to return 201 with the Location header but I am getting a 200. It seems that the AWS SDK is messing my actual…
0
votes
1 answer

Java : How to print the content of s3 bucket

I am using jdk 11 and virtual-host-style-access (AWS SDK for Java version 2) to create/access objects in AWS s3 bucket following : https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/examples-s3-objects.html#list-object While I was able to…
VictorGram
  • 2,521
  • 7
  • 48
  • 82
0
votes
1 answer

Get subscriptions from AWS SNS using java

How to get the list of subscriptions from AWS SNS belongs to particular topic using java code? Is it possible to get it? If possible kindly some one suggest how to achieve this? Thanks in advance
Mohan vel
  • 505
  • 9
  • 29
0
votes
1 answer

AWS Java SDK isn't found at runtime

I am attempting to run boilerplate code with dynamo db. I am using maven shade and everything works fine at compile time, but I get java.lang.NoClassDefFoundError: software/amazon/awssdk/services/dynamodb/DynamoDbClient at run time. I have spent at…
0
votes
1 answer

Location of com.amazonaws.services.simpleemailv2 package in AWS SES Java SDK jars

I want to make use of the AWS-SES sdk's putAccountSuppressionAttributes functionality. From AWS' documentation they say that this functionality is available in the AWS Java SDK. I have managed to find the class and method in their javadoc, but…
Matt Williams
  • 1,198
  • 1
  • 10
  • 27
0
votes
1 answer

AWS Java SDK v2.10: QuickSightClient throws SdkClientException When Delete is Successful

quickSightClient.deleteUser(deleteUserRequest) throws a null pointer exception because it fails to marshall the 204 No Content response, which AWS Quicksight returns after successfully deleting a user. My Questions: Is there a better way to…
0
votes
1 answer

How to resolve 'protocol must not be null' for CopySnapshotRequest across regions

I am attempting to move an EC2 snapshot from one region to another. When creating a basic Ec2 snapshot copy and copying it to a second Region I get the error protocol must not be null. It appears that the host is also null when you get to the point…
0
votes
1 answer

AWS API integration with Cloudwatch returning blank datapoints

I am currently trying to create a Java application that can call and reference the Amazon AWS API through the AWS Java SDK. I have been able to make calls directly to services like S3 and EC2 but when I try to pull data from Cloudwatch, I am unable…
0
votes
1 answer

How to get endpoint of AWS API gateway created through SAM using javascript

I am creating an api gateway from a SAM template. I need a separate web page to make get requests to the api using javascript. However, I am unsure how to make requests if I don't know the endpoint since the endpoint is created dynamically on…
0
votes
1 answer

How to detach an IAM role into AWS running instance and attach a new IAM role into that particular instance using java

I am creating an Amazon EC2 instance with a specific IAM Role. Now I want to detach that IAM role and attach a new IAM Role or replace with a new IAM Role. I am finding the options to do with CLI but I am not able to find any option when the…
0
votes
1 answer

List objects with AWS S3 SDK for Java 2.x

I have a bucket (logs) in Amazon S3 (us-east-1) with, unsurprisingly, logs, partitioned by application and date: logs ├── peacekeepers │   └── year=2018 │   ├── month=11 │   │   ├── day=01 │   │   ├── day=… │   │   └── day=30 │   …
madhead
  • 31,729
  • 16
  • 153
  • 201
1 2 3
8
9