Configuring block public access settings for your account - Amazon Simple Storage Service
You can use the S3 console, AWS CLI, AWS SDKs, and REST API to configure block public access settings for all the buckets in your account. For more information, see the sections below.