• Copy an object from a source to a destination object within the same bucket.

    Parameters

    Returns Promise<CopyWithPathOutput>

    Output containing the destination object path.

    Throws

    service: S3Exception - Thrown when checking for existence of the object

    Throws

    validation: StorageValidationErrorCode - Thrown when source or destination path is not defined.

  • Parameters

    Returns Promise<CopyOutput>

    Output containing the destination object key.

    Deprecated

    The key and accessLevel parameters are deprecated and may be removed in the next major version. Please use path instead.

    Copy an object from a source to a destination object within the same bucket. Can optionally copy files across different accessLevel or identityId (if source object's accessLevel is 'protected').

    Throws

    service: S3Exception - Thrown when checking for existence of the object

    Throws

    validation: StorageValidationErrorCode - Thrown when source or destination key is not defined.