1 | import { ListAllInput, ListAllOutput, ListAllWithPathInput, ListAllWithPathOutput, ListPaginateInput, ListPaginateOutput, ListPaginateWithPathInput, ListPaginateWithPathOutput } from '../types';
|
2 | /**
|
3 | * List files in pages with the given `path`.
|
4 | * `pageSize` is defaulted to 1000. Additionally, the result will include a `nextToken` if there are more items to retrieve.
|
5 | * @param input - The `ListPaginateWithPathInput` object.
|
6 | * @returns A list of objects with path and metadata
|
7 | * @throws service: `S3Exception` - S3 service errors thrown when checking for existence of bucket
|
8 | * @throws validation: `StorageValidationErrorCode` - thrown when there are issues with credentials
|
9 | */
|
10 | export declare function list(input: ListPaginateWithPathInput): Promise<ListPaginateWithPathOutput>;
|
11 | /**
|
12 | * List all files from S3 for a given `path`. You can set `listAll` to true in `options` to get all the files from S3.
|
13 | * @param input - The `ListAllWithPathInput` object.
|
14 | * @returns A list of all objects with path and metadata
|
15 | * @throws service: `S3Exception` - S3 service errors thrown when checking for existence of bucket
|
16 | * @throws validation: `StorageValidationErrorCode` - thrown when there are issues with credentials
|
17 | */
|
18 | export declare function list(input: ListAllWithPathInput): Promise<ListAllWithPathOutput>;
|
19 | /**
|
20 | * @deprecated The `prefix` and `accessLevel` parameters are deprecated and may be removed in the next major version.
|
21 | * Please use {@link https://docs.amplify.aws/react/build-a-backend/storage/list | path} instead.
|
22 | * List files in pages with the given `prefix`.
|
23 | * `pageSize` is defaulted to 1000. Additionally, the result will include a `nextToken` if there are more items to retrieve.
|
24 | * @param input - The `ListPaginateInput` object.
|
25 | * @returns A list of objects with key and metadata
|
26 | * @throws service: `S3Exception` - S3 service errors thrown when checking for existence of bucket
|
27 | * @throws validation: `StorageValidationErrorCode` - thrown when there are issues with credentials
|
28 | */
|
29 | export declare function list(input?: ListPaginateInput): Promise<ListPaginateOutput>;
|
30 | /**
|
31 | * @deprecated The `prefix` and `accessLevel` parameters are deprecated and may be removed in the next major version.
|
32 | * Please use {@link https://docs.amplify.aws/react/build-a-backend/storage/list | path} instead.
|
33 | * List all files from S3 for a given `prefix`. You can set `listAll` to true in `options` to get all the files from S3.
|
34 | * @param input - The `ListAllInput` object.
|
35 | * @returns A list of all objects with key and metadata
|
36 | * @throws service: `S3Exception` - S3 service errors thrown when checking for existence of bucket
|
37 | * @throws validation: `StorageValidationErrorCode` - thrown when there are issues with credentials
|
38 | */
|
39 | export declare function list(input?: ListAllInput): Promise<ListAllOutput>;
|