UNPKG

620 BTypeScriptView Raw
1import { CopyInput, CopyOutput } from '../types';
2/**
3 * Copy an object from a source object to a new object within the same bucket. Can optionally copy files across
4 * different level or identityId (if source object's level is 'protected').
5 *
6 * @param input - The CopyInput object.
7 * @returns Output containing the destination key.
8 * @throws service: {@link S3Exception} - Thrown when checking for existence of the object
9 * @throws validation: {@link StorageValidationErrorCode } - Thrown when
10 * source or destination key are not defined.
11 */
12export declare const copy: (input: CopyInput) => Promise<CopyOutput>;