Returns the lifecycle policy stored on a bucket.
Fails with NoSuchLifecycleConfiguration when the bucket has no policy.
These rules expire previous versions of objects, not the current one. Turn versioning on or there is nothing for the policy to act on. Standard buckets only. Returns FeatureNotEnabled if lifecycle is off for the project.
The unique identifier of the bucket.
const { data, error } = await supabase
.storage
.getBucketLifecycle('avatars')