Home > @hapoosjs/api-buckets > Buckets > blockPublicAccess
(Un) Block ACLs/Policies that provide public bucket access
Signature:
blockPublicAccess(bucketName: string, blockAccess: boolean): Promise<void>;
Parameter | Type | Description |
---|---|---|
bucketName | string | Bucket name |
blockAccess | boolean | If true, any policies/ACLs that enable public access will be blocked |
Returns:
Promise<void>