@aws-amplify/storage
Version:
Storage category of aws-amplify
23 lines (22 loc) • 1.24 kB
TypeScript
import { ListAllInput, ListPaginateInput, ListAllOutput, ListPaginateOutput } from '../types';
type ListApi = {
/**
* List files with given prefix in pages
* pageSize defaulted to 1000. Additionally, the result will include a nextToken if there are more items to retrieve.
* @param input - The ListPaginateInput object.
* @returns A list of keys and metadata with
* @throws service: {@link S3Exception} - S3 service errors thrown when checking for existence of bucket
* @throws validation: {@link StorageValidationErrorCode } - thrown when there are issues with credentials
*/
(input?: ListPaginateInput): Promise<ListPaginateOutput>;
/**
* List all files from S3. You can set `listAll` to true in `options` to get all the files from S3.
* @param input - The ListAllInput object.
* @returns A list of keys and metadata for all objects in path
* @throws service: {@link S3Exception} - S3 service errors thrown when checking for existence of bucket
* @throws validation: {@link StorageValidationErrorCode } - thrown when there are issues with credentials
*/
(input?: ListAllInput): Promise<ListAllOutput>;
};
export declare const list: ListApi;
export {};