gravitino.api.credential.s3_token_credential.S3TokenCredential

class gravitino.api.credential.s3_token_credential.S3TokenCredential(credential_info: Dict[str, str], expire_time_in_ms: int)

Bases: Credential, ABC

Represents the S3 token credential.

__init__(credential_info: Dict[str, str], expire_time_in_ms: int)

Methods

__init__(credential_info, expire_time_in_ms)

access_key_id()

The S3 access key id.

credential_info()

The credential information.

credential_type()

The type of the credential.

expire_time_in_ms()

Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.

secret_access_key()

The S3 secret access key.

session_token()

The S3 session token.

Attributes

S3_TOKEN_CREDENTIAL_TYPE

access_key_id() str

The S3 access key id.

Returns:

The S3 access key id.

credential_info() Dict[str, str]

The credential information.

Returns:

The credential information.

credential_type() str

The type of the credential.

Returns:

the type of the credential.

expire_time_in_ms() int

Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.

Returns:

The expiration time of the credential.

secret_access_key() str

The S3 secret access key.

Returns:

The S3 secret access key.

session_token() str

The S3 session token.

Returns:

The S3 session token.