Home > @hapoosjs/api-buckets > Buckets > setEncryption
Turn default server side encryption of bucket files on or off
Signature:
setEncryption(bucketName: string, flag: boolean, options?: SetEncryptionOptions): Promise<void>;
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>