How to pass AWSSessionCredentialsProvider in aws-sdk-java-v2 #5402
-
Describe the bugIn the earlier version of aws java SDK, we used to connect with aws s3 using the following code snippet
Expected BehaviorAs it used to support AWSSessionCredentialsProvider in earlier versions so was expecting it to work with new version as well Current BehaviorGetting error that credentialProvider() in aws-sdk-java-v2 does not take AwsSessionCredentialsProvider as input Reproduction StepsNA Possible SolutionNo response Additional Information/ContextNo response AWS Java SDK version used2.25.10 JDK version usedjava17 Operating System and versionrhel8 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @dreamerHarshit, There is no equivalent of v1 Regards, |
Beta Was this translation helpful? Give feedback.
Hi @dreamerHarshit,
There is no equivalent of v1
AWSSessionCredentialsProvider
in v2. But you will find all the implementing classes ofAWSSessionCredentialsProvider
implemented in v2 as well. Kindly refer to AwsCredentialsProvider for more details.Regards,
Chaitanya