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

AWSBuckets.getVersioning() method

Check if versioning of files is enabled for a bucket

Signature:

getVersioning(bucketName: string): Promise<boolean>;

Parameters

Parameter Type Description
bucketName string Bucket name

Returns:

Promise<boolean>

true if versioning is enabled, false otherwise