0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.117.151.127


Current Path : /proc/thread-self/root/usr/share/doc/awscli/examples/s3api/
Upload File :
Current File : //proc/thread-self/root/usr/share/doc/awscli/examples/s3api/put-public-access-block.rst

**To set the block public access configuration for a bucket**

The following ``put-public-access-block`` example sets a restrictive block public access configuration for the specified bucket. ::

    aws s3api put-public-access-block \
        --bucket my-bucket \
        --public-access-block-configuration "BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true"

This command produces no output.