UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

75 lines (74 loc) 3.65 kB
import { StorageCopyInputWithKey, StorageCopyInputWithPath, StorageDownloadDataInputWithKey, StorageDownloadDataInputWithPath, StorageGetPropertiesInputWithKey, StorageGetPropertiesInputWithPath, StorageGetUrlInputWithKey, StorageGetUrlInputWithPath, StorageListInputWithPath, StorageListInputWithPrefix, StorageRemoveInputWithKey, StorageRemoveInputWithPath, StorageUploadDataInputWithKey, StorageUploadDataInputWithPath } from '../../../types'; import { CopyDestinationWithKeyOptions, CopySourceWithKeyOptions, DownloadDataWithKeyOptions, DownloadDataWithPathOptions, GetPropertiesWithKeyOptions, GetPropertiesWithPathOptions, GetUrlWithKeyOptions, GetUrlWithPathOptions, ListAllWithPathOptions, ListAllWithPrefixOptions, ListPaginateWithPathOptions, ListPaginateWithPrefixOptions, RemoveOptions, UploadDataWithKeyOptions, UploadDataWithPathOptions } from '../types'; /** * @deprecated Use {@link CopyWithPathInput} instead. * Input type for S3 copy API. */ export type CopyInput = StorageCopyInputWithKey<CopySourceWithKeyOptions, CopyDestinationWithKeyOptions>; /** * Input type with path for S3 copy API. */ export type CopyWithPathInput = StorageCopyInputWithPath; /** * @deprecated Use {@link GetPropertiesWithPathInput} instead. * Input type for S3 getProperties API. */ export type GetPropertiesInput = StorageGetPropertiesInputWithKey<GetPropertiesWithKeyOptions>; /** * Input type with for S3 getProperties API. */ export type GetPropertiesWithPathInput = StorageGetPropertiesInputWithPath<GetPropertiesWithPathOptions>; /** * @deprecated Use {@link GetUrlWithPathInput} instead. * Input type for S3 getUrl API. */ export type GetUrlInput = StorageGetUrlInputWithKey<GetUrlWithKeyOptions>; /** * Input type with path for S3 getUrl API. */ export type GetUrlWithPathInput = StorageGetUrlInputWithPath<GetUrlWithPathOptions>; /** * Input type with path for S3 list API. Lists all bucket objects. */ export type ListAllWithPathInput = StorageListInputWithPath<ListAllWithPathOptions>; /** * Input type with path for S3 list API. Lists bucket objects with pagination. */ export type ListPaginateWithPathInput = StorageListInputWithPath<ListPaginateWithPathOptions>; /** * @deprecated Use {@link ListAllWithPathInput} instead. * Input type for S3 list API. Lists all bucket objects. */ export type ListAllInput = StorageListInputWithPrefix<ListAllWithPrefixOptions>; /** * @deprecated Use {@link ListPaginateWithPathInput} instead. * Input type for S3 list API. Lists bucket objects with pagination. */ export type ListPaginateInput = StorageListInputWithPrefix<ListPaginateWithPrefixOptions>; /** * @deprecated Use {@link RemoveWithPathInput} instead. * Input type with key for S3 remove API. */ export type RemoveInput = StorageRemoveInputWithKey<RemoveOptions>; /** * Input type with path for S3 remove API. */ export type RemoveWithPathInput = StorageRemoveInputWithPath<Omit<RemoveOptions, 'accessLevel'>>; /** * @deprecated Use {@link DownloadDataWithPathInput} instead. * Input type for S3 downloadData API. */ export type DownloadDataInput = StorageDownloadDataInputWithKey<DownloadDataWithKeyOptions>; /** * Input type with path for S3 downloadData API. */ export type DownloadDataWithPathInput = StorageDownloadDataInputWithPath<DownloadDataWithPathOptions>; /** * @deprecated Use {@link UploadDataWithPathInput} instead. * Input type for S3 uploadData API. */ export type UploadDataInput = StorageUploadDataInputWithKey<UploadDataWithKeyOptions>; /** * Input type with path for S3 uploadData API. */ export type UploadDataWithPathInput = StorageUploadDataInputWithPath<UploadDataWithPathOptions>;