s3.d.ts (1504B)
1 import {Service} from '../service'; 2 import {ManagedUpload, ManagedUploadOptions, SendData} from '../s3/managed_upload'; 3 import S3 = require('../../clients/s3'); 4 export class S3Customizations extends Service { 5 /** 6 * Get a pre-signed URL for a given operation name. 7 */ 8 getSignedUrl(operation: string, params: any, callback: (err: Error, url: string) => void): void; 9 /** 10 * Get a pre-signed URL for a given operation name. 11 */ 12 getSignedUrl(operation: string, params: any): string; 13 14 /** 15 * Uploads an arbitrarily sized buffer, blob, or stream, using intelligent 16 * concurrent handling of parts if the payload is large enough. You can 17 * configure the concurrent queue size by setting `options`. Note that this 18 * is the only operation for which the SDK can retry requests with stream 19 * bodies. 20 */ 21 upload(params: S3.Types.PutObjectRequest, options?: ManagedUploadOptions, callback?: (err: Error, data: SendData) => void): ManagedUpload; 22 /** 23 * Uploads an arbitrarily sized buffer, blob, or stream, using intelligent 24 * concurrent handling of parts if the payload is large enough. You can 25 * configure the concurrent queue size by setting `options`. Note that this 26 * is the only operation for which the SDK can retry requests with stream 27 * bodies. 28 */ 29 upload(params: S3.Types.PutObjectRequest, callback?: (err: Error, data: SendData) => void): ManagedUpload; 30 static ManagedUpload: typeof ManagedUpload; 31 }