cos_set_bucket_private
Sets a Tencent Cloud COS bucket ACL to private read-write, eliminating anonymous access to sensitive objects caused by public-read permissions.
Instructions
将腾讯云 COS 存储桶 ACL 设为「私有读写」(覆盖式 PUT,ACL='private')。用于修复因「公有读」导致敏感对象可被匿名访问的安全风险。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | 存储桶名称 | |
| region | No | 存储桶地域,不填则用全局配置 region |