Help Center> Object Storage Service> SDK Reference> Go> Data Types> Request Parameter of Setting an Object ACL

Request Parameter of Setting an Object ACL

Type Definition

type SetObjectAclInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

Key

string

Mandatory

Object name

VersionId

string

Optional

Object version ID

ACL

AclType

Optional

Pre-defined ACL

Owner

Owner

Optional

Object owner

Grants

[]Grant

Optional

Grantees' ACL information

Delivered

string

Optional

Whether an object inherits the ACL of its bucket

Owner and Grants must be used together and they cannot be used with ACL.