storage / Client / put_object_copy

put_object_copy

storage.Client.put_object_copy(**kwargs)

オブジェクトのコピーを作成します。

See also: NIFCLOUD API Documentation

Request Syntax

response = client.put_object_copy(
    Bucket='string',
    Object='string',
    XAmzCopySource='string',
    XAmzCopySourceIfMatch='string',
    XAmzCopySourceIfModifiedSince='string',
    XAmzCopySourceIfNoneMatch='string',
    XAmzCopySourceIfUnmodifiedSince='string',
    XAmzCopySourceServerSideEncryptionCustomerAlgorithm='AES256',
    XAmzCopySourceServerSideEncryptionCustomerKey='string',
    XAmzCopySourceServerSideEncryptionCustomerKeyMd5='string',
    XAmzMetadataDirective='COPY'|'REPLACE',
    XAmzServerSideEncryption='string',
    XAmzServerSideEncryptionCustomerAlgorithm='AES256',
    XAmzServerSideEncryptionCustomerKey='string',
    XAmzServerSideEncryptionCustomerKeyMd5='string',
    XAmzStorageClass='STANDARD'|'REDUCED_REDUNDANCY',
    XAmzTagging='string',
    XAmzTaggingDirective='COPY'|'REPLACE'
)
Parameters:
  • Bucket (string) – [REQUIRED]

  • Object (string) – [REQUIRED]

  • XAmzCopySource (string) – [REQUIRED]

  • XAmzCopySourceIfMatch (string) –

  • XAmzCopySourceIfModifiedSince (string) –

  • XAmzCopySourceIfNoneMatch (string) –

  • XAmzCopySourceIfUnmodifiedSince (string) –

  • XAmzCopySourceServerSideEncryptionCustomerAlgorithm (string) –

  • XAmzCopySourceServerSideEncryptionCustomerKey (string) –

  • XAmzCopySourceServerSideEncryptionCustomerKeyMd5 (string) –

  • XAmzMetadataDirective (string) –

  • XAmzServerSideEncryption (string) –

  • XAmzServerSideEncryptionCustomerAlgorithm (string) –

  • XAmzServerSideEncryptionCustomerKey (string) –

  • XAmzServerSideEncryptionCustomerKeyMd5 (string) –

  • XAmzStorageClass (string) –

  • XAmzTagging (string) –

  • XAmzTaggingDirective (string) –

Return type:

dict

Returns:

Response Syntax

{
    'ContentType': 'string',
    'ETag': 'string',
    'LastModified': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • ContentType (string) –

    • ETag (string) –

    • LastModified (datetime) –