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

Buckets.blockPublicAccess() method

(Un) Block ACLs/Policies that provide public bucket access

Signature:

blockPublicAccess(bucketName: string, blockAccess: boolean): Promise<void>;

Parameters

Parameter Type Description
bucketName string Bucket name
blockAccess boolean If true, any policies/ACLs that enable public access will be blocked

Returns:

Promise<void>