@aws-sdk/client-s3 3.722.0 → 3.726.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +489 -369
- package/dist-es/S3Client.js +1 -0
- package/dist-es/models/models_0.js +18 -16
- package/dist-es/models/models_1.js +10 -10
- package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +32 -32
- package/dist-types/commands/PutObjectCommand.d.ts +44 -44
- package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +29 -11
- package/package.json +62 -62
|
@@ -288,111 +288,107 @@ declare const PutObjectCommand_base: {
|
|
|
288
288
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
289
289
|
*
|
|
290
290
|
* @public
|
|
291
|
-
* @example To upload an object
|
|
291
|
+
* @example To upload an object and specify canned ACL.
|
|
292
292
|
* ```javascript
|
|
293
|
-
* // The following example uploads
|
|
293
|
+
* // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
294
294
|
* const input = {
|
|
295
|
-
* "
|
|
295
|
+
* "ACL": "authenticated-read",
|
|
296
|
+
* "Body": "filetoupload",
|
|
296
297
|
* "Bucket": "examplebucket",
|
|
297
|
-
* "Key": "
|
|
298
|
-
* "ServerSideEncryption": "AES256",
|
|
299
|
-
* "StorageClass": "STANDARD_IA"
|
|
298
|
+
* "Key": "exampleobject"
|
|
300
299
|
* };
|
|
301
300
|
* const command = new PutObjectCommand(input);
|
|
302
301
|
* const response = await client.send(command);
|
|
303
302
|
* /* response ==
|
|
304
303
|
* {
|
|
305
304
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
306
|
-
* "
|
|
307
|
-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
305
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
308
306
|
* }
|
|
309
307
|
* *\/
|
|
310
|
-
* // example id: to-upload-an-object-
|
|
308
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
311
309
|
* ```
|
|
312
310
|
*
|
|
313
|
-
* @example To
|
|
311
|
+
* @example To create an object.
|
|
314
312
|
* ```javascript
|
|
315
|
-
* // The following example
|
|
313
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
316
314
|
* const input = {
|
|
317
315
|
* "Body": "filetoupload",
|
|
318
316
|
* "Bucket": "examplebucket",
|
|
319
|
-
* "Key": "
|
|
320
|
-
* "ServerSideEncryption": "AES256",
|
|
321
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
317
|
+
* "Key": "objectkey"
|
|
322
318
|
* };
|
|
323
319
|
* const command = new PutObjectCommand(input);
|
|
324
320
|
* const response = await client.send(command);
|
|
325
321
|
* /* response ==
|
|
326
322
|
* {
|
|
327
323
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
328
|
-
* "
|
|
329
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
324
|
+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
330
325
|
* }
|
|
331
326
|
* *\/
|
|
332
|
-
* // example id: to-
|
|
327
|
+
* // example id: to-create-an-object-1483147613675
|
|
333
328
|
* ```
|
|
334
329
|
*
|
|
335
|
-
* @example To upload object and specify
|
|
330
|
+
* @example To upload an object and specify optional tags
|
|
336
331
|
* ```javascript
|
|
337
|
-
* // The following example
|
|
332
|
+
* // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
|
|
338
333
|
* const input = {
|
|
339
|
-
* "Body": "
|
|
334
|
+
* "Body": "c:\\HappyFace.jpg",
|
|
340
335
|
* "Bucket": "examplebucket",
|
|
341
|
-
* "Key": "
|
|
342
|
-
* "
|
|
343
|
-
* "metadata1": "value1",
|
|
344
|
-
* "metadata2": "value2"
|
|
345
|
-
* }
|
|
336
|
+
* "Key": "HappyFace.jpg",
|
|
337
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
346
338
|
* };
|
|
347
339
|
* const command = new PutObjectCommand(input);
|
|
348
340
|
* const response = await client.send(command);
|
|
349
341
|
* /* response ==
|
|
350
342
|
* {
|
|
351
343
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
352
|
-
* "VersionId": "
|
|
344
|
+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
|
|
353
345
|
* }
|
|
354
346
|
* *\/
|
|
355
|
-
* // example id: to-upload-object-and-specify-
|
|
347
|
+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
356
348
|
* ```
|
|
357
349
|
*
|
|
358
|
-
* @example To upload an object and specify
|
|
350
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
359
351
|
* ```javascript
|
|
360
|
-
* // The following example uploads
|
|
352
|
+
* // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
361
353
|
* const input = {
|
|
362
|
-
* "ACL": "authenticated-read",
|
|
363
354
|
* "Body": "filetoupload",
|
|
364
355
|
* "Bucket": "examplebucket",
|
|
365
|
-
* "Key": "exampleobject"
|
|
356
|
+
* "Key": "exampleobject",
|
|
357
|
+
* "ServerSideEncryption": "AES256",
|
|
358
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
366
359
|
* };
|
|
367
360
|
* const command = new PutObjectCommand(input);
|
|
368
361
|
* const response = await client.send(command);
|
|
369
362
|
* /* response ==
|
|
370
363
|
* {
|
|
371
364
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
372
|
-
* "
|
|
365
|
+
* "ServerSideEncryption": "AES256",
|
|
366
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
373
367
|
* }
|
|
374
368
|
* *\/
|
|
375
|
-
* // example id: to-upload-an-object-and-specify-
|
|
369
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
376
370
|
* ```
|
|
377
371
|
*
|
|
378
|
-
* @example To upload an object
|
|
372
|
+
* @example To upload an object (specify optional headers)
|
|
379
373
|
* ```javascript
|
|
380
|
-
* // The following example uploads an object. The request specifies optional
|
|
374
|
+
* // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
|
|
381
375
|
* const input = {
|
|
382
|
-
* "Body": "
|
|
376
|
+
* "Body": "HappyFace.jpg",
|
|
383
377
|
* "Bucket": "examplebucket",
|
|
384
378
|
* "Key": "HappyFace.jpg",
|
|
385
|
-
* "
|
|
379
|
+
* "ServerSideEncryption": "AES256",
|
|
380
|
+
* "StorageClass": "STANDARD_IA"
|
|
386
381
|
* };
|
|
387
382
|
* const command = new PutObjectCommand(input);
|
|
388
383
|
* const response = await client.send(command);
|
|
389
384
|
* /* response ==
|
|
390
385
|
* {
|
|
391
386
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
392
|
-
* "
|
|
387
|
+
* "ServerSideEncryption": "AES256",
|
|
388
|
+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
393
389
|
* }
|
|
394
390
|
* *\/
|
|
395
|
-
* // example id: to-upload-an-object-
|
|
391
|
+
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
396
392
|
* ```
|
|
397
393
|
*
|
|
398
394
|
* @example To upload an object
|
|
@@ -414,23 +410,27 @@ declare const PutObjectCommand_base: {
|
|
|
414
410
|
* // example id: to-upload-an-object-1481760101010
|
|
415
411
|
* ```
|
|
416
412
|
*
|
|
417
|
-
* @example To
|
|
413
|
+
* @example To upload object and specify user-defined metadata
|
|
418
414
|
* ```javascript
|
|
419
|
-
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
415
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
420
416
|
* const input = {
|
|
421
417
|
* "Body": "filetoupload",
|
|
422
418
|
* "Bucket": "examplebucket",
|
|
423
|
-
* "Key": "
|
|
419
|
+
* "Key": "exampleobject",
|
|
420
|
+
* "Metadata": {
|
|
421
|
+
* "metadata1": "value1",
|
|
422
|
+
* "metadata2": "value2"
|
|
423
|
+
* }
|
|
424
424
|
* };
|
|
425
425
|
* const command = new PutObjectCommand(input);
|
|
426
426
|
* const response = await client.send(command);
|
|
427
427
|
* /* response ==
|
|
428
428
|
* {
|
|
429
429
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
430
|
-
* "VersionId": "
|
|
430
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
431
431
|
* }
|
|
432
432
|
* *\/
|
|
433
|
-
* // example id: to-
|
|
433
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
434
434
|
* ```
|
|
435
435
|
*
|
|
436
436
|
*/
|
|
@@ -312,15 +312,14 @@ declare const UploadPartCopyCommand_base: {
|
|
|
312
312
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
313
313
|
*
|
|
314
314
|
* @public
|
|
315
|
-
* @example To upload a part by copying
|
|
315
|
+
* @example To upload a part by copying data from an existing object as data source
|
|
316
316
|
* ```javascript
|
|
317
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
317
|
+
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
318
318
|
* const input = {
|
|
319
319
|
* "Bucket": "examplebucket",
|
|
320
320
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
321
|
-
* "CopySourceRange": "bytes=1-100000",
|
|
322
321
|
* "Key": "examplelargeobject",
|
|
323
|
-
* "PartNumber": "
|
|
322
|
+
* "PartNumber": "1",
|
|
324
323
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
325
324
|
* };
|
|
326
325
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -328,22 +327,23 @@ declare const UploadPartCopyCommand_base: {
|
|
|
328
327
|
* /* response ==
|
|
329
328
|
* {
|
|
330
329
|
* "CopyPartResult": {
|
|
331
|
-
* "ETag": "\"
|
|
332
|
-
* "LastModified": "2016-12-29T21:
|
|
330
|
+
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
|
331
|
+
* "LastModified": "2016-12-29T21:24:43.000Z"
|
|
333
332
|
* }
|
|
334
333
|
* }
|
|
335
334
|
* *\/
|
|
336
|
-
* // example id: to-upload-a-part-by-copying-
|
|
335
|
+
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
|
|
337
336
|
* ```
|
|
338
337
|
*
|
|
339
|
-
* @example To upload a part by copying
|
|
338
|
+
* @example To upload a part by copying byte range from an existing object as data source
|
|
340
339
|
* ```javascript
|
|
341
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
340
|
+
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
|
|
342
341
|
* const input = {
|
|
343
342
|
* "Bucket": "examplebucket",
|
|
344
343
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
344
|
+
* "CopySourceRange": "bytes=1-100000",
|
|
345
345
|
* "Key": "examplelargeobject",
|
|
346
|
-
* "PartNumber": "
|
|
346
|
+
* "PartNumber": "2",
|
|
347
347
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
348
348
|
* };
|
|
349
349
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -351,12 +351,12 @@ declare const UploadPartCopyCommand_base: {
|
|
|
351
351
|
* /* response ==
|
|
352
352
|
* {
|
|
353
353
|
* "CopyPartResult": {
|
|
354
|
-
* "ETag": "\"
|
|
355
|
-
* "LastModified": "2016-12-29T21:
|
|
354
|
+
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
|
|
355
|
+
* "LastModified": "2016-12-29T21:44:28.000Z"
|
|
356
356
|
* }
|
|
357
357
|
* }
|
|
358
358
|
* *\/
|
|
359
|
-
* // example id: to-upload-a-part-by-copying-
|
|
359
|
+
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
|
|
360
360
|
* ```
|
|
361
361
|
*
|
|
362
362
|
*/
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
8
8
|
runtime: string;
|
|
9
9
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
10
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
11
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
12
12
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
13
13
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
14
14
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
9
9
|
runtime: string;
|
|
10
10
|
defaultsMode: import("@aws-sdk/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
11
11
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
|
-
credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@aws-sdk/types").MemoizedProvider<import("@aws-sdk/types").AwsCredentialIdentity
|
|
12
|
+
credentialDefaultProvider: ((input: any) => import("@aws-sdk/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@aws-sdk/types").MemoizedProvider<import("@aws-sdk/types").AwsCredentialIdentity>);
|
|
13
13
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
disableS3ExpressSessionAuth: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
15
15
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
@@ -27,7 +27,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
27
27
|
md5: import("@smithy/types").HashConstructor;
|
|
28
28
|
sha1: import("@smithy/types").HashConstructor;
|
|
29
29
|
getAwsChunkedEncodingStream: import("@smithy/types").GetAwsChunkedEncodingStream<any> | import("@smithy/types").GetAwsChunkedEncodingStream<import("stream").Readable>;
|
|
30
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
30
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
31
31
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
32
32
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
33
33
|
logger: import("@smithy/types").Logger;
|
|
@@ -42,7 +42,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
42
42
|
requestChecksumCalculation?: import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation> | undefined;
|
|
43
43
|
responseChecksumValidation?: import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/middleware-flexible-checksums").ResponseChecksumValidation> | undefined;
|
|
44
44
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
45
|
-
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
45
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
46
46
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
47
47
|
logger?: import("@smithy/types").Logger | undefined;
|
|
48
48
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -56,9 +56,9 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
56
56
|
signingRegion?: string | undefined;
|
|
57
57
|
signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
58
58
|
sigv4aSigningRegionSet?: string[] | import("@smithy/types").Provider<string[] | undefined> | undefined;
|
|
59
|
-
forcePathStyle?: boolean | undefined;
|
|
60
|
-
useAccelerateEndpoint?: boolean | undefined;
|
|
61
|
-
disableMultiregionAccessPoints?: boolean | undefined;
|
|
59
|
+
forcePathStyle?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
|
|
60
|
+
useAccelerateEndpoint?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
|
|
61
|
+
disableMultiregionAccessPoints?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
|
|
62
62
|
followRegionRedirects?: boolean | undefined;
|
|
63
63
|
s3ExpressIdentityProvider?: import("@aws-sdk/middleware-sdk-s3").S3ExpressIdentityProvider | undefined;
|
|
64
64
|
bucketEndpoint?: boolean | undefined;
|
|
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
6
6
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
7
7
|
>;
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
|
-
credentialDefaultProvider:
|
|
10
|
-
input: any
|
|
11
|
-
|
|
9
|
+
credentialDefaultProvider:
|
|
10
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
11
|
+
| ((
|
|
12
|
+
_: unknown
|
|
13
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
12
14
|
defaultUserAgentProvider: (
|
|
13
15
|
config?:
|
|
14
16
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
@@ -7,13 +7,15 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
7
7
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
8
8
|
>;
|
|
9
9
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
credentialDefaultProvider:
|
|
11
|
+
| ((input: any) => import("@aws-sdk/types").AwsCredentialIdentityProvider)
|
|
12
|
+
| ((
|
|
13
|
+
init?:
|
|
14
|
+
| import("@aws-sdk/credential-provider-node").DefaultProviderInit
|
|
15
|
+
| undefined
|
|
16
|
+
) => import("@aws-sdk/types").MemoizedProvider<
|
|
17
|
+
import("@aws-sdk/types").AwsCredentialIdentity
|
|
18
|
+
>);
|
|
17
19
|
defaultUserAgentProvider: (
|
|
18
20
|
config?:
|
|
19
21
|
| import("@aws-sdk/util-user-agent-node").PreviouslyResolved
|
|
@@ -38,9 +38,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
38
38
|
| import("@smithy/types").GetAwsChunkedEncodingStream<
|
|
39
39
|
import("stream").Readable
|
|
40
40
|
>;
|
|
41
|
-
credentialDefaultProvider:
|
|
42
|
-
input: any
|
|
43
|
-
|
|
41
|
+
credentialDefaultProvider:
|
|
42
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
43
|
+
| ((
|
|
44
|
+
_: unknown
|
|
45
|
+
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
44
46
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
45
47
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
46
48
|
logger: import("@smithy/types").Logger;
|
|
@@ -76,11 +78,21 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
76
78
|
| import("@smithy/types").RetryStrategyV2
|
|
77
79
|
| undefined;
|
|
78
80
|
endpoint?:
|
|
79
|
-
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
| ((
|
|
82
|
+
| string
|
|
83
|
+
| import("@smithy/types").Endpoint
|
|
84
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
85
|
+
| import("@smithy/types").EndpointV2
|
|
86
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
87
|
+
) &
|
|
88
|
+
(
|
|
89
|
+
| string
|
|
90
|
+
| import("@smithy/types").Provider<string>
|
|
91
|
+
| import("@smithy/types").Endpoint
|
|
92
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
93
|
+
| import("@smithy/types").EndpointV2
|
|
94
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
95
|
+
))
|
|
84
96
|
| undefined;
|
|
85
97
|
endpointProvider: (
|
|
86
98
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -114,9 +126,15 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
114
126
|
| string[]
|
|
115
127
|
| import("@smithy/types").Provider<string[] | undefined>
|
|
116
128
|
| undefined;
|
|
117
|
-
forcePathStyle?:
|
|
118
|
-
|
|
119
|
-
|
|
129
|
+
forcePathStyle?:
|
|
130
|
+
| (boolean & (boolean | import("@smithy/types").Provider<boolean>))
|
|
131
|
+
| undefined;
|
|
132
|
+
useAccelerateEndpoint?:
|
|
133
|
+
| (boolean & (boolean | import("@smithy/types").Provider<boolean>))
|
|
134
|
+
| undefined;
|
|
135
|
+
disableMultiregionAccessPoints?:
|
|
136
|
+
| (boolean & (boolean | import("@smithy/types").Provider<boolean>))
|
|
137
|
+
| undefined;
|
|
120
138
|
followRegionRedirects?: boolean | undefined;
|
|
121
139
|
s3ExpressIdentityProvider?:
|
|
122
140
|
| import("@aws-sdk/middleware-sdk-s3").S3ExpressIdentityProvider
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.726.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
14
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo s3",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
|
-
"test:browser": "node ./test/browser-build/esbuild && vitest run -c vitest.config.browser.ts
|
|
16
|
+
"test:browser": "node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts",
|
|
17
17
|
"test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts",
|
|
18
|
-
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts
|
|
18
|
+
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser",
|
|
19
19
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts",
|
|
20
20
|
"test:watch": "yarn g:vitest watch"
|
|
21
21
|
},
|
|
@@ -27,73 +27,73 @@
|
|
|
27
27
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
31
|
-
"@aws-sdk/client-sts": "3.
|
|
32
|
-
"@aws-sdk/core": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
34
|
-
"@aws-sdk/middleware-bucket-endpoint": "3.
|
|
35
|
-
"@aws-sdk/middleware-expect-continue": "3.
|
|
36
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-location-constraint": "3.
|
|
39
|
-
"@aws-sdk/middleware-logger": "3.
|
|
40
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
41
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
42
|
-
"@aws-sdk/middleware-ssec": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
45
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
46
|
-
"@aws-sdk/types": "3.
|
|
47
|
-
"@aws-sdk/util-endpoints": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
-
"@aws-sdk/xml-builder": "3.
|
|
51
|
-
"@smithy/config-resolver": "^
|
|
52
|
-
"@smithy/core": "^
|
|
53
|
-
"@smithy/eventstream-serde-browser": "^
|
|
54
|
-
"@smithy/eventstream-serde-config-resolver": "^
|
|
55
|
-
"@smithy/eventstream-serde-node": "^
|
|
56
|
-
"@smithy/fetch-http-handler": "^
|
|
57
|
-
"@smithy/hash-blob-browser": "^
|
|
58
|
-
"@smithy/hash-node": "^
|
|
59
|
-
"@smithy/hash-stream-node": "^
|
|
60
|
-
"@smithy/invalid-dependency": "^
|
|
61
|
-
"@smithy/md5-js": "^
|
|
62
|
-
"@smithy/middleware-content-length": "^
|
|
63
|
-
"@smithy/middleware-endpoint": "^
|
|
64
|
-
"@smithy/middleware-retry": "^
|
|
65
|
-
"@smithy/middleware-serde": "^
|
|
66
|
-
"@smithy/middleware-stack": "^
|
|
67
|
-
"@smithy/node-config-provider": "^
|
|
68
|
-
"@smithy/node-http-handler": "^
|
|
69
|
-
"@smithy/protocol-http": "^
|
|
70
|
-
"@smithy/smithy-client": "^
|
|
71
|
-
"@smithy/types": "^
|
|
72
|
-
"@smithy/url-parser": "^
|
|
73
|
-
"@smithy/util-base64": "^
|
|
74
|
-
"@smithy/util-body-length-browser": "^
|
|
75
|
-
"@smithy/util-body-length-node": "^
|
|
76
|
-
"@smithy/util-defaults-mode-browser": "^
|
|
77
|
-
"@smithy/util-defaults-mode-node": "^
|
|
78
|
-
"@smithy/util-endpoints": "^
|
|
79
|
-
"@smithy/util-middleware": "^
|
|
80
|
-
"@smithy/util-retry": "^
|
|
81
|
-
"@smithy/util-stream": "^
|
|
82
|
-
"@smithy/util-utf8": "^
|
|
83
|
-
"@smithy/util-waiter": "^
|
|
30
|
+
"@aws-sdk/client-sso-oidc": "3.726.0",
|
|
31
|
+
"@aws-sdk/client-sts": "3.726.0",
|
|
32
|
+
"@aws-sdk/core": "3.723.0",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "3.726.0",
|
|
34
|
+
"@aws-sdk/middleware-bucket-endpoint": "3.726.0",
|
|
35
|
+
"@aws-sdk/middleware-expect-continue": "3.723.0",
|
|
36
|
+
"@aws-sdk/middleware-flexible-checksums": "3.723.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.723.0",
|
|
38
|
+
"@aws-sdk/middleware-location-constraint": "3.723.0",
|
|
39
|
+
"@aws-sdk/middleware-logger": "3.723.0",
|
|
40
|
+
"@aws-sdk/middleware-recursion-detection": "3.723.0",
|
|
41
|
+
"@aws-sdk/middleware-sdk-s3": "3.723.0",
|
|
42
|
+
"@aws-sdk/middleware-ssec": "3.723.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.726.0",
|
|
44
|
+
"@aws-sdk/region-config-resolver": "3.723.0",
|
|
45
|
+
"@aws-sdk/signature-v4-multi-region": "3.723.0",
|
|
46
|
+
"@aws-sdk/types": "3.723.0",
|
|
47
|
+
"@aws-sdk/util-endpoints": "3.726.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.723.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.726.0",
|
|
50
|
+
"@aws-sdk/xml-builder": "3.723.0",
|
|
51
|
+
"@smithy/config-resolver": "^4.0.0",
|
|
52
|
+
"@smithy/core": "^3.0.0",
|
|
53
|
+
"@smithy/eventstream-serde-browser": "^4.0.0",
|
|
54
|
+
"@smithy/eventstream-serde-config-resolver": "^4.0.0",
|
|
55
|
+
"@smithy/eventstream-serde-node": "^4.0.0",
|
|
56
|
+
"@smithy/fetch-http-handler": "^5.0.0",
|
|
57
|
+
"@smithy/hash-blob-browser": "^4.0.0",
|
|
58
|
+
"@smithy/hash-node": "^4.0.0",
|
|
59
|
+
"@smithy/hash-stream-node": "^4.0.0",
|
|
60
|
+
"@smithy/invalid-dependency": "^4.0.0",
|
|
61
|
+
"@smithy/md5-js": "^4.0.0",
|
|
62
|
+
"@smithy/middleware-content-length": "^4.0.0",
|
|
63
|
+
"@smithy/middleware-endpoint": "^4.0.0",
|
|
64
|
+
"@smithy/middleware-retry": "^4.0.0",
|
|
65
|
+
"@smithy/middleware-serde": "^4.0.0",
|
|
66
|
+
"@smithy/middleware-stack": "^4.0.0",
|
|
67
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
68
|
+
"@smithy/node-http-handler": "^4.0.0",
|
|
69
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
70
|
+
"@smithy/smithy-client": "^4.0.0",
|
|
71
|
+
"@smithy/types": "^4.0.0",
|
|
72
|
+
"@smithy/url-parser": "^4.0.0",
|
|
73
|
+
"@smithy/util-base64": "^4.0.0",
|
|
74
|
+
"@smithy/util-body-length-browser": "^4.0.0",
|
|
75
|
+
"@smithy/util-body-length-node": "^4.0.0",
|
|
76
|
+
"@smithy/util-defaults-mode-browser": "^4.0.0",
|
|
77
|
+
"@smithy/util-defaults-mode-node": "^4.0.0",
|
|
78
|
+
"@smithy/util-endpoints": "^3.0.0",
|
|
79
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
80
|
+
"@smithy/util-retry": "^4.0.0",
|
|
81
|
+
"@smithy/util-stream": "^4.0.0",
|
|
82
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
83
|
+
"@smithy/util-waiter": "^4.0.0",
|
|
84
84
|
"tslib": "^2.6.2"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
88
|
-
"@tsconfig/
|
|
89
|
-
"@types/node": "^
|
|
87
|
+
"@aws-sdk/signature-v4-crt": "3.726.0",
|
|
88
|
+
"@tsconfig/node18": "18.2.4",
|
|
89
|
+
"@types/node": "^18.19.69",
|
|
90
90
|
"concurrently": "7.0.0",
|
|
91
91
|
"downlevel-dts": "0.10.1",
|
|
92
92
|
"rimraf": "3.0.2",
|
|
93
|
-
"typescript": "~
|
|
93
|
+
"typescript": "~5.2.2"
|
|
94
94
|
},
|
|
95
95
|
"engines": {
|
|
96
|
-
"node": ">=
|
|
96
|
+
"node": ">=18.0.0"
|
|
97
97
|
},
|
|
98
98
|
"typesVersions": {
|
|
99
99
|
"<4.0": {
|