Reputation: 1
Follow https://docs.aws.amazon.com/AmazonS3/latest/userguide/AuthUsingTempSessionToken.html, but encountered error
Cannot resolve method 'withCredentials' in 'AWSSecurityTokenServiceClientBuilder'
AWSSecurityTokenService stsClient = AWSSecurityTokenServiceClientBuilder.standard()
.withCredentials(new ProfileCredentialsProvider())
.withRegion(REGION)
.build();
Tried change dependencies version but it didn't work.
Upvotes: 0
Views: 235