Class ProcessCredentialsProvider

java.lang.Object
software.amazon.awssdk.auth.credentials.ProcessCredentialsProvider
All Implemented Interfaces:
AutoCloseable, AwsCredentialsProvider, IdentityProvider<AwsCredentialsIdentity>, ToCopyableBuilder<ProcessCredentialsProvider.Builder,ProcessCredentialsProvider>, SdkAutoCloseable

A credentials provider that can load credentials from an external process. This is used to support the credential_process setting in the profile credentials file. See sourcing credentials from external processes for more information.

This class can be initialized using builder().

Available settings:

  • Command - The command that should be executed to retrieve credentials.
  • CredentialRefreshThreshold - The amount of time between when the credentials expire and when the credentials should start to be refreshed. This allows the credentials to be refreshed *before* they are reported to expire. Default: 15 seconds.
  • ProcessOutputLimit - The maximum amount of data that can be returned by the external process before an exception is raised. Default: 64000 bytes (64KB).