Home > @hapoosjs/aws-buckets > AWSBuckets > setVersioning

AWSBuckets.setVersioning() method

Turn on/off versioning of files in a bucket

Signature:

setVersioning(bucketName: string, flag: boolean): Promise<void>;

Parameters

Parameter Type Description
bucketName string Bucket name
flag boolean true to turn file versioning on, false to disable it

Returns:

Promise<void>