aws-sdk-java-v2 icon indicating copy to clipboard operation
aws-sdk-java-v2 copied to clipboard

No documentation of `stsClient` method for StsAssumeRoleCredentialsProvider.Builder

Open tmccombs opened this issue 2 years ago • 2 comments

Describe the issue

It appears that in order to use the StsAssumeRoleCredehntialsProvider.Builder you need to call an stsClient method to set the client that it uses. Failing to do so results in a NullPointerException.

However, that method is not mentioned at all in the documentation for the Builder class or the credentials provider class. I was only able to discover the need for calling this method, due to a stack overflow answer and the source code for StsCredentialsProvider.

Links

https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/sts/auth/StsAssumeRoleCredentialsProvider.Builder.html

tmccombs avatar May 11 '23 20:05 tmccombs

This is probably related to the fact that stsClient is a public method inherited from a protected internal class.

tmccombs avatar May 11 '23 20:05 tmccombs

Noted. Thank you for reaching out.

debora-ito avatar May 15 '23 14:05 debora-ito