Created
June 22, 2019 14:01
-
-
Save rbk/926bfd3d886b2c25c53818eeb6e77d6a to your computer and use it in GitHub Desktop.
S3 argument reference for S3 operations including upload.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = client.copy_object( | |
ACL='private'|'public-read'|'public-read-write'|'authenticated-read'|'aws-exec-read'|'bucket-owner-read'|'bucket-owner-full-control', | |
Bucket='string', | |
CacheControl='string', | |
ContentDisposition='string', | |
ContentEncoding='string', | |
ContentLanguage='string', | |
ContentType='string', | |
CopySource='string' or {'Bucket': 'string', 'Key': 'string', 'VersionId': 'string'}, | |
CopySourceIfMatch='string', | |
CopySourceIfModifiedSince=datetime(2015, 1, 1), | |
CopySourceIfNoneMatch='string', | |
CopySourceIfUnmodifiedSince=datetime(2015, 1, 1), | |
Expires=datetime(2015, 1, 1), | |
GrantFullControl='string', | |
GrantRead='string', | |
GrantReadACP='string', | |
GrantWriteACP='string', | |
Key='string', | |
Metadata={ | |
'string': 'string' | |
}, | |
MetadataDirective='COPY'|'REPLACE', | |
TaggingDirective='COPY'|'REPLACE', | |
ServerSideEncryption='AES256'|'aws:kms', | |
StorageClass='STANDARD'|'REDUCED_REDUNDANCY'|'STANDARD_IA'|'ONEZONE_IA'|'INTELLIGENT_TIERING'|'GLACIER'|'DEEP_ARCHIVE', | |
WebsiteRedirectLocation='string', | |
SSECustomerAlgorithm='string', | |
SSECustomerKey='string', | |
SSEKMSKeyId='string', | |
CopySourceSSECustomerAlgorithm='string', | |
CopySourceSSECustomerKey='string', | |
RequestPayer='requester', | |
Tagging='string', | |
ObjectLockMode='GOVERNANCE'|'COMPLIANCE', | |
ObjectLockRetainUntilDate=datetime(2015, 1, 1), | |
ObjectLockLegalHoldStatus='ON'|'OFF' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment