Home > @hapoosjs/api-buckets > Buckets > setEncryption

Buckets.setEncryption() method

Turn default server side encryption of bucket files on or off

Signature:

setEncryption(bucketName: string, flag: boolean, options?: SetEncryptionOptions): Promise<void>;

Parameters

Parameter Type Description
bucketName string Bucket name
flag boolean true if you want to encrypt files in this bucket by default
options SetEncryptionOptions (Optional)

Returns:

Promise<void>