UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

22 lines (19 loc) 831 B
import { Amplify } from '@aws-amplify/core'; import { copy as copy$1 } from './internal/copy.mjs'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /** * Copy an object from a source object to a new object within the same bucket. Can optionally copy files across * different level or identityId (if source object's level is 'protected'). * * @param input - The CopyInput object. * @returns Output containing the destination key. * @throws service: {@link S3Exception} - Thrown when checking for existence of the object * @throws validation: {@link StorageValidationErrorCode } - Thrown when * source or destination key are not defined. */ const copy = async (input) => { return copy$1(Amplify, input); }; export { copy }; //# sourceMappingURL=copy.mjs.map