@aws-amplify/storage
Version:
Storage category of aws-amplify
29 lines (28 loc) • 1.83 kB
TypeScript
import { Endpoint, HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
import type { ListPartsCommandInput, ListPartsCommandOutput } from './types';
export type ListPartsInput = Pick<ListPartsCommandInput, 'Bucket' | 'Key' | 'UploadId'>;
export type ListPartsOutput = Pick<ListPartsCommandOutput, 'Parts' | 'UploadId' | '$metadata'>;
export declare const listParts: (config: {
responseType?: "blob" | "text" | undefined;
service?: string | undefined;
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => Endpoint) & ((options: import("./base").S3EndpointResolverOptions, apiInput?: {
Bucket?: string | undefined;
} | undefined) => {
url: URL;
})) | undefined;
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown) => Promise<boolean>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<boolean>)) | undefined;
computeDelay?: ((attempt: number) => number) | undefined;
userAgentValue?: string | undefined;
useAccelerateEndpoint?: boolean | undefined;
uriEscapePath?: boolean | undefined;
} & {
onDownloadProgress?: ((event: import("../../../..").TransferProgressEvent) => void) | undefined;
onUploadProgress?: ((event: import("../../../..").TransferProgressEvent) => void) | undefined;
abortSignal?: AbortSignal | undefined;
userAgentHeader?: string | undefined;
maxAttempts?: number | undefined;
credentials: import("@aws-amplify/core/internals/aws-client-utils").Credentials | (() => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
region: string;
customEndpoint?: string | undefined;
forcePathStyle?: boolean | undefined;
}, input: ListPartsInput) => Promise<ListPartsOutput>;