Interface AwsSecurityCredentialsSupplier (1.30.1)

publicinterface AwsSecurityCredentialsSupplierextendsSerializable

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

Implements

Serializable

Methods

getCredentials(ExternalAccountSupplierContext context)

publicabstractAwsSecurityCredentialsgetCredentials(ExternalAccountSupplierContextcontext)

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)

publicabstractStringgetRegion(ExternalAccountSupplierContextcontext)

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.