UNPKG

799 BJavaScriptView Raw
1import { Amplify } from '@aws-amplify/core';
2import { getProperties as getProperties$1 } from './internal/getProperties.mjs';
3
4// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5// SPDX-License-Identifier: Apache-2.0
6/**
7 * Gets the properties of a file. The properties include S3 system metadata and
8 * the user metadata that was provided when uploading the file.
9 *
10 * @param input - The GetPropertiesInput object.
11 * @returns Requested object properties.
12 * @throws A {@link S3Exception} when the underlying S3 service returned error.
13 * @throws A {@link StorageValidationErrorCode} when API call parameters are invalid.
14 */
15const getProperties = (input) => {
16 return getProperties$1(Amplify, input);
17};
18
19export { getProperties };
20//# sourceMappingURL=getProperties.mjs.map