aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.2k stars 850 forks source link

No documentation of `stsClient` method for StsAssumeRoleCredentialsProvider.Builder #3998

Open tmccombs opened 1 year ago

tmccombs commented 1 year ago

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 commented 1 year ago

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

debora-ito commented 1 year ago

Noted. Thank you for reaching out.