Xin Chen
Xin Chen

Reputation: 1

AWSSecurityTokenServiceClientBuilder cannot resolve method "withCredentials"

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

Answers (0)

Related Questions