Home > @hapoosjs/aws-buckets > AWSBuckets > blockPublicAccess
Block or unblock public access
Signature:
blockPublicAccess(bucketName: string, blockAccess: boolean): Promise<void>;
Parameter | Type | Description |
---|---|---|
bucketName | string | Bucket name |
blockAccess | boolean | true if you want to block public access, false otherwise |
Returns:
Promise<void>