UNPKG

1.12 kBSource Map (JSON)View Raw
1{"version":3,"file":"copy.mjs","sources":["../../../../../src/providers/s3/apis/copy.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Amplify } from '@aws-amplify/core';\nimport { copy as copyInternal } from './internal/copy';\n/**\n * Copy an object from a source object to a new object within the same bucket. Can optionally copy files across\n * different level or identityId (if source object's level is 'protected').\n *\n * @param input - The CopyInput object.\n * @returns Output containing the destination key.\n * @throws service: {@link S3Exception} - Thrown when checking for existence of the object\n * @throws validation: {@link StorageValidationErrorCode } - Thrown when\n * source or destination key are not defined.\n */\nexport const copy = async (input) => {\n return copyInternal(Amplify, input);\n};\n"],"names":["copyInternal"],"mappings":";;;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,IAAI,GAAG,OAAO,KAAK,KAAK;AACrC,IAAI,OAAOA,MAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AACxC;;;;"}
\No newline at end of file