python boto3 s3客户端复制函数中可能的ExtraArgs值

rta7y2nd  于 2023-06-28  发布在  Python
关注(0)|答案(1)|浏览(118)

ExtraArgs(dict)--可以传递给客户端操作的额外参数
我正在查看文档https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.copy,但我看不到任何关于我们可以为该参数传递哪些可能值的信息。有什么想法吗

wmtdaxz3

wmtdaxz31#

来自Boto3 1.26.161文档:
请注意,docsCopy()API调用提到它允许ALLOWED_DOWNLOAD_ARGS
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/customizations/s3.html#boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS

ALLOWED_DOWNLOAD_ARGS = ['ChecksumMode', 'VersionId', 'SSECustomerAlgorithm', 'SSECustomerKey', 'SSECustomerKeyMD5', 'RequestPayer', 'ExpectedBucketOwner']

ALLOWED_UPLOAD_ARGS = ['ACL', 'CacheControl', 'ChecksumAlgorithm', 'ContentDisposition', 'ContentEncoding', 'ContentLanguage', 'ContentType', 'ExpectedBucketOwner', 'Expires', 'GrantFullControl', 'GrantRead', 'GrantReadACP', 'GrantWriteACP', 'Metadata', 'ObjectLockLegalHoldStatus', 'ObjectLockMode', 'ObjectLockRetainUntilDate', 'RequestPayer', 'ServerSideEncryption', 'StorageClass', 'SSECustomerAlgorithm', 'SSECustomerKey', 'SSECustomerKeyMD5', 'SSEKMSKeyId', 'SSEKMSEncryptionContext', 'Tagging', 'WebsiteRedirectLocation']

相关问题