May 4, 2017

[HDGEM] How to fix: The constructor AmazonSQSClient(AWSCredentials) is deprecated

//AmazonSQS sqs = new AmazonSQSClient(credentials);
AmazonSQS sqs  = AmazonSQSClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(credentials)).build();

--
Posted By Blogger to HDGEM at 5/04/2017 04:02:00 PM