ALIYUN::OSS::ObjectAcl is used to modify the access control list (ACL) of an Object Storage Service (OSS) object.
Syntax
{
"Type": "ALIYUN::OSS::ObjectAcl",
"Properties": {
"Bucket": String,
"ObjectAcl": String,
"ObjectKey": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Bucket | String | Yes | No | The bucket name. | None. |
ObjectAcl | String | Yes | Yes | The ACL of the object. | Valid values:
|
ObjectKey | String | Yes | No | The object key. | The object key specifies the full path that includes the object extension. Example: |
Return values
Fn::GetAtt
None.
Examples
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
OSSObjectAcl:
Type: ALIYUN::OSS::ObjectAcl
Properties:
ObjectAcl: private
Bucket: demo
ObjectKey: demo/efg/123.jpg
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"OSSObjectAcl": {
"Type": "ALIYUN::OSS::ObjectAcl",
"Properties": {
"ObjectAcl": "private",
"Bucket": "demo",
"ObjectKey": "demo/efg/123.jpg"
}
}
}
}