Skip to main content
Version: 1.9.1

HMACCredentials

class HMACCredentials(access_key: str | Secret, secret_key: str | Secret)

Bases: Credentials

Categories: credentials

Generic HMAC credentials consisting of an access key and a secret key.

These credentials follow the same shape as AWS S3 access keys and are compatible with any service that uses HMAC-based authentication over the S3-compatible API, such as GCS HMAC keys or MinIO credentials.

Attributes: access_key (Secret): The HMAC access key id. secret_key (Secret): The HMAC secret key.

Methods: to_dict() -> dict: Convert the HMACCredentials object to a dictionary.

Initialize the HMACCredentials object.

Parameters

parameter
access_keystr | Secret

The HMAC access key id.

parameter
secret_keystr | Secret

The HMAC secret key.

Properties

property
access_keySecret

The HMAC access key id.

property
secret_keySecret

The HMAC secret key.