UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

28 lines (27 loc) 1.64 kB
import { AmplifyServer } from '@aws-amplify/core/internals/adapter-core'; import { GetPropertiesInput, GetPropertiesOutput, GetPropertiesWithPathInput, GetPropertiesWithPathOutput } from '../../types'; /** * Gets the properties of a file. The properties include S3 system metadata and * the user metadata that was provided when uploading the file. * * @param contextSpec - The isolated server context. * @param input - The `GetPropertiesWithPathInput` object. * @returns Requested object properties. * @throws An `S3Exception` when the underlying S3 service returned error. * @throws A `StorageValidationErrorCode` when API call parameters are invalid. */ export declare function getProperties(contextSpec: AmplifyServer.ContextSpec, input: GetPropertiesWithPathInput): Promise<GetPropertiesWithPathOutput>; /** * @deprecated The `key` and `accessLevel` parameters are deprecated and may be removed in the next major version. * Please use {@link https://docs.amplify.aws/javascript/build-a-backend/storage/get-properties/ | path} instead. * * Gets the properties of a file. The properties include S3 system metadata and * the user metadata that was provided when uploading the file. * * @param contextSpec - The isolated server context. * @param input - The `GetPropertiesInput` object. * @returns Requested object properties. * @throws An `S3Exception` when the underlying S3 service returned error. * @throws A `StorageValidationErrorCode` when API call parameters are invalid. */ export declare function getProperties(contextSpec: AmplifyServer.ContextSpec, input: GetPropertiesInput): Promise<GetPropertiesOutput>;