@aws-amplify/storage
Version:
Storage category of aws-amplify
32 lines (29 loc) • 1.22 kB
JavaScript
import { Amplify } from '@aws-amplify/core';
import { list as list$1 } from '../../providers/s3/apis/internal/list.mjs';
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
/**
* @internal
*/
function list(input) {
return list$1(Amplify, {
path: input.path,
options: {
bucket: input.options?.bucket,
subpathStrategy: input.options?.subpathStrategy,
useAccelerateEndpoint: input.options?.useAccelerateEndpoint,
listAll: input.options?.listAll,
expectedBucketOwner: input.options?.expectedBucketOwner,
// Pagination options
nextToken: input.options?.nextToken,
pageSize: input.options?.pageSize,
// Advanced options
locationCredentialsProvider: input.options?.locationCredentialsProvider,
customEndpoint: input?.options?.customEndpoint,
},
// Type casting is necessary because `listInternal` supports both Gen1 and Gen2 signatures, but here
// given in input can only be Gen2 signature, the return can only ben Gen2 signature.
});
}
export { list };
//# sourceMappingURL=list.mjs.map