Create Bucket Instance

To perform bucket level operations, you need to create a bucket instance. We will refer to this component instance in various code snippets of working with Buckets in Stratus. The Stratus reference used in the below code snippet is the component instance.

Ensure the following packages are imported:

    
copy
import com.zc.component.stratus.ZCBucket;
    
copy
ZCBucket bucket = stratus.bucketInstance("bucketName");

Last Updated 2025-06-20 16:21:48 +0530 +0530