@FunctionalInterface public interface ChildProfileCredentialsProviderFactory
AwsCredentialsProviders that are derived from another set of credentials in a profile file. Currently this is used to allow a
Profileconfigured with a role that should be assumed to create a credentials provider via the 'software.amazon.awssdk.services.sts.internal.StsProfileCredentialsProviderFactory', assuming STS is on the classpath.
|Modifier and Type||Method and Description|
Create a credentials provider for the provided profile, using the provided source credentials provider to authenticate with AWS.
AwsCredentialsProvider create(AwsCredentialsProvider sourceCredentialsProvider, Profile profile)
sourceCredentialsProvider- The credentials provider that should be used to authenticate the child credentials provider. This credentials provider should be closed when it is no longer used.
profile- The profile that should be used to load the configuration necessary to create the child credentials provider.