DefaultChainCredentialsProvider
Default AWS credential provider chain used by most AWS SDKs.
Resolution order:
System properties (SystemPropertyCredentialsProvider)
Environment variables (EnvironmentCredentialsProvider)
Web Identity Tokens (StsWebIdentityCredentialsProvider]
Profile (ProfileCredentialsProvider)
ECS (IAM roles for tasks) (EcsCredentialsProvider)
EC2 Instance Metadata (IMDSv2) (ImdsCredentialsProvider)
The chain is decorated with a CachedCredentialsProvider.
Closing the chain will close all child providers that implement Closeable.
Return
the newly-constructed credentials provider
Parameters
Override the profile name to use. If not provided it will be resolved internally via environment (see AwsSdkSetting.AwsProfile) or defaulted to default
if not configured.
The platform API provider
the HttpClientEngine instance to use to make requests. NOTE: This engine's resources and lifetime are NOT managed by the provider. Caller is responsible for closing.
the region to make credentials requests to.