Interface AwsSecurityCredentialsSupplier (1.27.0)

public interface AwsSecurityCredentialsSupplier extends Serializable

Supplier for retrieving AWS Security credentials for AwsCredentials to exchange for GCP access tokens.

Implements

Serializable

Methods

getCredentials(ExternalAccountSupplierContext context)

public abstract AwsSecurityCredentials getCredentials(ExternalAccountSupplierContext context)

Gets AWS security credentials.

Parameter
Name Description
context ExternalAccountSupplierContext

relevant context from the calling credential.

Returns
Type Description
AwsSecurityCredentials

valid AWS security credentials that can be exchanged for a GCP access token.

Exceptions
Type Description
IOException

getRegion(ExternalAccountSupplierContext context)

public abstract String getRegion(ExternalAccountSupplierContext context)

Gets the AWS region to use.

Parameter
Name Description
context ExternalAccountSupplierContext

relevant context from the calling credential.

Returns
Type Description
String

the AWS region that should be used for the credential.

Exceptions
Type Description
IOException