CmdID / aws / aws s3control
aws s3control put-public-access-block
This operation is not supported by directory buckets. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--account-idThe account ID for the Amazon Web Services account whose PublicAccessBlock configuration you want to set.--public-access-block-configurationThe PublicAccessBlock configuration that you want to apply to the specified Amazon Web Services account.