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

AWSBuckets.blockPublicAccess() method

Block or unblock public access

Signature:

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

Parameters

Parameter Type Description
bucketName string Bucket name
blockAccess boolean true if you want to block public access, false otherwise

Returns:

Promise<void>