@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Interface B2S3Config

    Configuration for deriving S3-compatible client settings from B2 auth state.

    Per B2's S3-compatible API contract, the S3 accessKeyId is the applicationKeyId and the S3 secretAccessKey is the applicationKey. These are NOT the native accountId / authorizationToken returned by b2_authorize_account — those won't authenticate against the S3 endpoint. Both must be supplied here because AccountInfo doesn't retain the application key after authorization for security reasons.

    interface B2S3Config {
        accountInfo: AccountInfo;
        applicationKey: string;
        applicationKeyId: string;
        region?: string;
    }
    Index

    Properties

    accountInfo: AccountInfo

    The authorized AccountInfo containing the S3 endpoint URL.

    applicationKey: string

    B2 application key (secret). Used as the S3 secretAccessKey.

    applicationKeyId: string

    B2 application key ID. Used as the S3 accessKeyId.

    region?: string

    Override the S3 region. If omitted, extracted from the S3 API URL.