# boto3 1.44.15 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Copy an object from one S3 location to another.

    This is a managed transfer which will perform a multipart copy in
    multiple threads if necessary.

    Usage::

        import boto3
        s3 = boto3.resource('s3')
        copy_source = {
            'Bucket': 'amzn-s3-demo-bucket1',
            'Key': 'mykey'
        }
        s3.meta.client.copy(copy_source, 'amzn-s3-demo-bucket2', 'otherkey')

    :type CopySource: dict
    :param CopySource: The name of the source bucket, key name of the
        source object, and optional version ID of the source object. The
        dictionary format is:
        ``{'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'}``. Note
        that the ``VersionId`` key is optional and may be omitted.

    :type Bucket: str
    :param Bucket: The name of the bucket to copy to

    :type Key: str
    :param Key: The name of the key to copy to

    :type ExtraArgs: dict
    :param ExtraArgs: Extra arguments that may be passed to the
        client operation. For allowed copy arguments see
        :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_COPY_ARGS`.

    :type Callback: function
    :param Callback: A method which takes a number of bytes transferred to
        be periodically called during the copy.

    :type SourceClient: botocore or boto3 Client
    :param SourceClient: The client to be used for operations that
        may happen at the source object. For example, this client is
        used for the head_object that determines the size of the copy.
        If no client is provided, the current client is used as the
        client for the source object.  The current client still
        requires IAM permissions to access both buckets.

    :type Config: boto3.s3.transfer.TransferConfig
    :param Config: The transfer configuration to be used when performing the
        copy.
    
=== parse rest
short_description: 'Copy an object from one S3 location to another.'
long_description: |
  This is a managed transfer which will perform a multipart copy in
  multiple threads if necessary.
  
  Usage::
  
      import boto3
      s3 = boto3.resource('s3')
      copy_source = {
          'Bucket': 'amzn-s3-demo-bucket1',
          'Key': 'mykey'
      }
      s3.meta.client.copy(copy_source, 'amzn-s3-demo-bucket2', 'otherkey')
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    The name of the source bucket, key name of the
    source object, and optional version ID of the source object. The
    dictionary format is:
    ``{'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'}``. Note
    that the ``VersionId`` key is optional and may be omitted.
  kind: param
  key: 'param'
  arg_name: 'CopySource'
  type_name: 'dict'
  is_optional: False
- DocstringParam
  description: 'The name of the bucket to copy to'
  kind: param
  key: 'param'
  arg_name: 'Bucket'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: 'The name of the key to copy to'
  kind: param
  key: 'param'
  arg_name: 'Key'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: |
    Extra arguments that may be passed to the
    client operation. For allowed copy arguments see
    :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_COPY_ARGS`.
  kind: param
  key: 'param'
  arg_name: 'ExtraArgs'
  type_name: 'dict'
  is_optional: False
- DocstringParam
  description: |
    A method which takes a number of bytes transferred to
    be periodically called during the copy.
  kind: param
  key: 'param'
  arg_name: 'Callback'
  type_name: 'function'
  is_optional: False
- DocstringParam
  description: |
    The client to be used for operations that
    may happen at the source object. For example, this client is
    used for the head_object that determines the size of the copy.
    If no client is provided, the current client is used as the
    client for the source object.  The current client still
    requires IAM permissions to access both buckets.
  kind: param
  key: 'param'
  arg_name: 'SourceClient'
  type_name: 'botocore or boto3 Client'
  is_optional: False
- DocstringParam
  description: |
    The transfer configuration to be used when performing the
    copy.
  kind: param
  key: 'param'
  arg_name: 'Config'
  type_name: 'boto3.s3.transfer.TransferConfig'
  is_optional: False
=== detect
rest
=== compose rest
Copy an object from one S3 location to another.

This is a managed transfer which will perform a multipart copy in
multiple threads if necessary.

Usage::

    import boto3
    s3 = boto3.resource('s3')
    copy_source = {
        'Bucket': 'amzn-s3-demo-bucket1',
        'Key': 'mykey'
    }
    s3.meta.client.copy(copy_source, 'amzn-s3-demo-bucket2', 'otherkey')

:param dict CopySource: The name of the source bucket, key name of the
    source object, and optional version ID of the source object. The
    dictionary format is:
    ``{'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'}``. Note
    that the ``VersionId`` key is optional and may be omitted.
:param str Bucket: The name of the bucket to copy to
:param str Key: The name of the key to copy to
:param dict ExtraArgs: Extra arguments that may be passed to the
    client operation. For allowed copy arguments see
    :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_COPY_ARGS`.
:param function Callback: A method which takes a number of bytes transferred to
    be periodically called during the copy.
:param SourceClient: The client to be used for operations that
    may happen at the source object. For example, this client is
    used for the head_object that determines the size of the copy.
    If no client is provided, the current client is used as the
    client for the source object.  The current client still
    requires IAM permissions to access both buckets.
:type SourceClient: botocore or boto3 Client
:param boto3.s3.transfer.TransferConfig Config: The transfer configuration to be used when performing the
    copy.
