Home > @hapoosjs/api-buckets > Buckets > setPolicy

Buckets.setPolicy() method

Set bucket permission policy

Signature:

setPolicy(bucketName: string, policy: any): Promise<void>;

Parameters

Parameter Type Description
bucketName string Bucket name
policy any Object representing bucket permission policy

Returns:

Promise<void>