Package-level declarations

Types

Link copied to clipboard
class AssumeRoleParameters(val roleArn: String, val roleSessionName: String? = null, val externalId: String? = null, val duration: <Error class: unknown class> = DEFAULT_CREDENTIALS_REFRESH_SECONDS.seconds, val policyArns: List<String>? = null, val policy: String? = null, val tags: Map<String, String>? = null, val transitiveTagKeys: List<String>? = null, val serialNumber: String? = null, val tokenCode: String? = null, val sourceIdentity: String? = null)

Parameters passed to an AssumeRole call

Link copied to clipboard
class AssumeRoleWithWebIdentityParameters(val roleArn: String, val webIdentityTokenFilePath: String, val roleSessionName: String? = null, val duration: <Error class: unknown class> = DEFAULT_CREDENTIALS_REFRESH_SECONDS.seconds, val providerId: String? = null, val policyArns: List<String>? = null, val policy: String? = null)

Parameters passed to an AssumeRoleWithWebIdentity call

Link copied to clipboard
class CredentialsNotLoadedException(message: String?, cause: Throwable? = null)

No credentials were available from this CredentialsProvider

Link copied to clipboard
class DefaultChainBearerTokenProvider(val profileName: String? = null, val platformProvider: <Error class: unknown class> = PlatformProvider.System, val httpClient: <Error class: unknown class>? = null)

Default AWS bearer token provider chain used by services marked with @httpBearerAuth

Link copied to clipboard
class DefaultChainCredentialsProvider(val profileName: String? = null, val platformProvider: <Error class: unknown class> = PlatformProvider.System, httpClient: <Error class: unknown class>? = null, val region: String? = null)

Default AWS credential provider chain used by most AWS SDKs.

Link copied to clipboard
class EcsCredentialsProvider(val platformProvider: <Error class: unknown class> = PlatformProvider.System, httpClient: <Error class: unknown class>? = null, hostResolver: <Error class: unknown class> = HostResolver.Default)

A CredentialsProvider that sources credentials from a local metadata service.

Link copied to clipboard
class EnvironmentCredentialsProvider(val getEnv: (String) -> String? = PlatformProvider.System::getenv)

A CredentialsProvider which reads from the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN environment variables. Note that the AWS_SESSION_TOKEN is only necessary if the credentials are temporary.

Link copied to clipboard
class ImdsCredentialsProvider(val profileOverride: String? = null, val client: <Error class: unknown class><InstanceMetadataProvider> = lazy { ImdsClient() }, val platformProvider: <Error class: unknown class> = PlatformProvider.System, clock: <Error class: unknown class> = Clock.System)

CredentialsProvider that uses EC2 instance metadata service (IMDS) to provide credentials information. This provider requires that the EC2 instance has an instance profile configured.

Link copied to clipboard
class InvalidJsonCredentialsException(message: String, cause: Throwable? = null)

Exception thrown when credentials from response do not contain valid credentials or malformed JSON

Link copied to clipboard
class InvalidLoginTokenException(message: String, cause: Throwable? = null)
Link copied to clipboard
class InvalidSsoTokenException(message: String, cause: Throwable? = null)

An error associated with a cached SSO token from ~/.aws/sso/cache/

Link copied to clipboard
class LoginCredentialsProvider(val loginSession: String, val region: String? = null, val httpClient: <Error class: unknown class>? = null, val platformProvider: <Error class: unknown class> = PlatformProvider.System, clock: <Error class: unknown class> = Clock.System)

CredentialsProvider that uses AWS Login to source credentials.

Link copied to clipboard
class ProcessCredentialsProvider(credentialProcess: String, platformProvider: <Error class: unknown class> = PlatformProvider.System, maxOutputLengthBytes: Long = 64 * 1024, timeoutMillis: Long)

CredentialsProvider that invokes a command to retrieve Credentials from stdout. If the exit code is non-zero, log and throw an exception including the stderr from the command.

Link copied to clipboard
class ProfileCredentialsProvider(val profileName: String? = null, val region: String? = null, val platformProvider: <Error class: unknown class> = PlatformProvider.System, val httpClient: <Error class: unknown class>? = null, val configurationSource: AwsConfigurationSource? = null)

A CredentialsProvider that gets credentials from a profile in ~/.aws/config or the shared credentials file ~/.aws/credentials. The locations of these files are configurable via environment or system property on the JVM (see AwsSdkSetting.AwsConfigFile and AwsSdkSetting.AwsSharedCredentialsFile).

Link copied to clipboard
class ProviderConfigurationException(message: String, cause: Throwable? = null)

The CredentialsProvider was given an invalid configuration (e.g. invalid aws configuration file, invalid IMDS endpoint, etc)

Link copied to clipboard
class SsoCredentialsProvider(val accountId: String, val roleName: String, val startUrl: String, val ssoRegion: String, val ssoSessionName: String? = null, val httpClient: <Error class: unknown class>? = null, val platformProvider: <Error class: unknown class> = PlatformProvider.System, clock: <Error class: unknown class> = Clock.System)

CredentialsProvider that uses AWS Single Sign-On (AWS SSO) to source credentials. The provider is expected to be configured for the AWS Region where the AWS SSO user portal is hosted.

Link copied to clipboard
class SsoTokenProvider(val ssoSessionName: String, val startUrl: String, val ssoRegion: String, val refreshBufferWindow: <Error class: unknown class> = DEFAULT_SSO_TOKEN_REFRESH_BUFFER_SECONDS.seconds, val httpClient: <Error class: unknown class>? = null, val platformProvider: <Error class: unknown class> = PlatformProvider.System, clock: <Error class: unknown class> = Clock.System)

SsoTokenProvider provides a utility for refreshing SSO AccessTokens for Bearer Authentication. The provider can only be used to refresh already cached SSO Tokens. This utility cannot perform the initial SSO create token flow.

Link copied to clipboard
class StaticCredentialsProvider(val credentials: <Error class: unknown class>)

A credentials provider for a fixed set of credentials

Link copied to clipboard
class StsAssumeRoleCredentialsProvider(val bootstrapCredentialsProvider: <Error class: unknown class>, val assumeRoleParameters: AssumeRoleParameters, val region: String? = null, val httpClient: <Error class: unknown class>? = null)

A CredentialsProvider that uses another provider to assume a role from the AWS Security Token Service (STS).

Link copied to clipboard
class StsWebIdentityCredentialsProvider(val webIdentityParameters: AssumeRoleWithWebIdentityParameters, val region: String?, val platformProvider: <Error class: unknown class> = PlatformProvider.System, val httpClient: <Error class: unknown class>? = null)

A CredentialsProvider that exchanges a Web Identity Token for credentials from the AWS Security Token Service (STS).

Link copied to clipboard
class StsWebIdentityProvider(val platformProvider: <Error class: unknown class> = PlatformProvider.System, val httpClient: <Error class: unknown class>? = null, val region: String? = null)

Wrapper around StsWebIdentityCredentialsProvider that delays any exceptions until resolve is invoked. This allows it to be part of the default chain and any failures result in the chain to move onto the next provider.

Link copied to clipboard
class SystemPropertyCredentialsProvider(val getProperty: (String) -> String? = PlatformProvider.System::getProperty)

A CredentialsProvider which reads aws.accessKeyId, aws.secretAccessKey, and aws.sessionToken from system properties.