UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

24 lines (23 loc) 1.41 kB
import { AmplifyServer } from '@aws-amplify/core/internals/adapter-core'; import { ListAllInput, ListPaginateInput, ListAllOutput, ListPaginateOutput } from '../../types'; type ListApi = { /** * Lists bucket objects with pagination. * @param {ListPaginateInput} The input object * @return {Promise<ListPaginateOutput>} - Promise resolves to list of keys and metadata with * pageSize defaulting to 1000. Additionally the result will include a nextToken if there are more items to retrieve * @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 */ (contextSpec: AmplifyServer.ContextSpec, input?: ListPaginateInput): Promise<ListPaginateOutput>; /** * Lists all bucket objects. * @param {ListAllInput} The input object * @return {Promise<ListAllOutput>} - Promise resolves to 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 */ (contextSpec: AmplifyServer.ContextSpec, input?: ListAllInput): Promise<ListAllOutput>; }; export declare const list: ListApi; export {};