Java IOs for AWS SDK v1 already have support for STS assume role credentials. Scope of this ticket is to add similar support for AWS SDK v2.
However, it's critical to note that support will be limited.
- After deserialization the StsAssumeRoleCredentialsProvider will always use the default STS client, regardless of what client was configured. The same limitation applies to the current support for AWS SDK v1.
- Also, the StsAssumeRoleCredentialsProvider may be configured to provide a AssumeRoleRequest on demand through a Supplier function. After deserialization the StsAssumeRoleCredentialsProvider will always use the AssumeRoleRequest that was provided during serialization.