dcloud s3 bucket-access set-blockSet the four Block Public Access flags (all true on a new bucket)
blockPublicPolicy refuses a policy that would make the bucket public; restrictPublicBuckets makes the public statements of an existing policy have no effect. Turn both off only for a bucket meant for everyone.
Synopsis
dcloud s3 bucket-access set-block name --block-public-acls blockPublicAcls --ignore-public-acls ignorePublicAcls --block-public-policy blockPublicPolicy --restrict-public-buckets restrictPublicBucketsArguments
<name>Requiredstring
Also accepted as
--name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Flags
--block-public-aclsRequiredboolean (--block-public-acls / --no-block-public-acls)
Refuse public ACLs (Deutsche Cloud has no ACLs; stored for S3 tools)
--ignore-public-aclsRequiredboolean (--ignore-public-acls / --no-ignore-public-acls)
Ignore public ACLs (Deutsche Cloud has no ACLs; stored for S3 tools)
--block-public-policyRequiredboolean (--block-public-policy / --no-block-public-policy)
Refuse a bucket policy that would make the bucket public
--restrict-public-bucketsRequiredboolean (--restrict-public-buckets / --no-restrict-public-buckets)
Ignore the public statements of the bucket policy for anyone outside the organization
Example
dcloud s3 bucket-access set-block name --block-public-acls --ignore-public-acls --block-public-policy --restrict-public-bucketsGenerated from the API description, the same one the API checks requests against and the CLI is built from.