2016/04/05 - Amazon Simple Storage Service - 1 updated api methods
{'VersionId': 'string'}
uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket
Request Syntax
client.put_object_acl( ACL='private'|'public-read'|'public-read-write'|'authenticated-read'|'aws-exec-read'|'bucket-owner-read'|'bucket-owner-full-control', AccessControlPolicy={ 'Grants': [ { 'Grantee': { 'DisplayName': 'string', 'EmailAddress': 'string', 'ID': 'string', 'Type': 'CanonicalUser'|'AmazonCustomerByEmail'|'Group', 'URI': 'string' }, 'Permission': 'FULL_CONTROL'|'WRITE'|'WRITE_ACP'|'READ'|'READ_ACP' }, ], 'Owner': { 'DisplayName': 'string', 'ID': 'string' } }, Bucket='string', ContentMD5='string', GrantFullControl='string', GrantRead='string', GrantReadACP='string', GrantWrite='string', GrantWriteACP='string', Key='string', RequestPayer='requester', VersionId='string' )
string
The canned ACL to apply to the object.
dict
Grants (list) -- A list of grants.
(dict) --
Grantee (dict) --
DisplayName (string) -- Screen name of the grantee.
EmailAddress (string) -- Email address of the grantee.
ID (string) -- The canonical user ID of the grantee.
Type (string) -- [REQUIRED] Type of grantee
URI (string) -- URI of the grantee group.
Permission (string) -- Specifies the permission given to the grantee.
Owner (dict) --
DisplayName (string) --
ID (string) --
string
[REQUIRED]
string
string
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
string
Allows grantee to list the objects in the bucket.
string
Allows grantee to read the bucket ACL.
string
Allows grantee to create, overwrite, and delete any object in the bucket.
string
Allows grantee to write the ACL for the applicable bucket.
string
[REQUIRED]
string
Confirms that the requester knows that she or he will be charged for the request. Bucket owners need not specify this parameter in their requests. Documentation on downloading objects from requester pays buckets can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
string
VersionId used to reference a specific version of the object.
dict
Response Syntax
{ 'RequestCharged': 'requester' }
Response Structure
(dict) --
RequestCharged (string) -- If present, indicates that the requester was successfully charged for the request.