Home > @hapoosjs/aws-buckets > AWSBuckets > setPolicy
Set bucket permission policy
Signature:
setPolicy(bucketName: string, policy: any): Promise<void>;
Parameter | Type | Description |
---|---|---|
bucketName | string | Bucket name |
policy | any | Object representing bucket permission policy |
Returns:
Promise<void>