ExtraArgs(dict)--可以传递给客户端操作的额外参数我正在查看文档https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.copy,但我看不到任何关于我们可以为该参数传递哪些可能值的信息。有什么想法吗
wmtdaxz31#
来自Boto3 1.26.161文档:请注意,docsCopy()API调用提到它允许ALLOWED_DOWNLOAD_ARGShttps://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']
1条答案
按热度按时间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