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

AWSBuckets.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>