@aws-sdk/client-s3 3.354.0 → 3.357.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/protocols/Aws_restXml.js +49 -55
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/protocols/Aws_restXml.js +1 -7
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/S3Client.d.ts +1 -1
- package/dist-types/commands/CreateBucketCommand.d.ts +13 -13
- package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -19
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +32 -32
- package/dist-types/commands/PutObjectCommand.d.ts +53 -56
- package/dist-types/commands/UploadPartCommand.d.ts +3 -6
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +3 -6
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +6 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +6 -6
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -0
- package/package.json +43 -44
|
@@ -3011,7 +3011,7 @@ const de_AbortMultipartUploadCommand = async (output, context) => {
|
|
|
3011
3011
|
$metadata: deserializeMetadata(output),
|
|
3012
3012
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
3013
3013
|
});
|
|
3014
|
-
await collectBody(output.body, context);
|
|
3014
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3015
3015
|
return contents;
|
|
3016
3016
|
};
|
|
3017
3017
|
exports.de_AbortMultipartUploadCommand = de_AbortMultipartUploadCommand;
|
|
@@ -3143,7 +3143,7 @@ const de_CreateBucketCommand = async (output, context) => {
|
|
|
3143
3143
|
$metadata: deserializeMetadata(output),
|
|
3144
3144
|
Location: [, output.headers["location"]],
|
|
3145
3145
|
});
|
|
3146
|
-
await collectBody(output.body, context);
|
|
3146
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3147
3147
|
return contents;
|
|
3148
3148
|
};
|
|
3149
3149
|
exports.de_CreateBucketCommand = de_CreateBucketCommand;
|
|
@@ -3225,7 +3225,7 @@ const de_DeleteBucketCommand = async (output, context) => {
|
|
|
3225
3225
|
const contents = (0, smithy_client_1.map)({
|
|
3226
3226
|
$metadata: deserializeMetadata(output),
|
|
3227
3227
|
});
|
|
3228
|
-
await collectBody(output.body, context);
|
|
3228
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3229
3229
|
return contents;
|
|
3230
3230
|
};
|
|
3231
3231
|
exports.de_DeleteBucketCommand = de_DeleteBucketCommand;
|
|
@@ -3249,7 +3249,7 @@ const de_DeleteBucketAnalyticsConfigurationCommand = async (output, context) =>
|
|
|
3249
3249
|
const contents = (0, smithy_client_1.map)({
|
|
3250
3250
|
$metadata: deserializeMetadata(output),
|
|
3251
3251
|
});
|
|
3252
|
-
await collectBody(output.body, context);
|
|
3252
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3253
3253
|
return contents;
|
|
3254
3254
|
};
|
|
3255
3255
|
exports.de_DeleteBucketAnalyticsConfigurationCommand = de_DeleteBucketAnalyticsConfigurationCommand;
|
|
@@ -3273,7 +3273,7 @@ const de_DeleteBucketCorsCommand = async (output, context) => {
|
|
|
3273
3273
|
const contents = (0, smithy_client_1.map)({
|
|
3274
3274
|
$metadata: deserializeMetadata(output),
|
|
3275
3275
|
});
|
|
3276
|
-
await collectBody(output.body, context);
|
|
3276
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3277
3277
|
return contents;
|
|
3278
3278
|
};
|
|
3279
3279
|
exports.de_DeleteBucketCorsCommand = de_DeleteBucketCorsCommand;
|
|
@@ -3297,7 +3297,7 @@ const de_DeleteBucketEncryptionCommand = async (output, context) => {
|
|
|
3297
3297
|
const contents = (0, smithy_client_1.map)({
|
|
3298
3298
|
$metadata: deserializeMetadata(output),
|
|
3299
3299
|
});
|
|
3300
|
-
await collectBody(output.body, context);
|
|
3300
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3301
3301
|
return contents;
|
|
3302
3302
|
};
|
|
3303
3303
|
exports.de_DeleteBucketEncryptionCommand = de_DeleteBucketEncryptionCommand;
|
|
@@ -3321,7 +3321,7 @@ const de_DeleteBucketIntelligentTieringConfigurationCommand = async (output, con
|
|
|
3321
3321
|
const contents = (0, smithy_client_1.map)({
|
|
3322
3322
|
$metadata: deserializeMetadata(output),
|
|
3323
3323
|
});
|
|
3324
|
-
await collectBody(output.body, context);
|
|
3324
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3325
3325
|
return contents;
|
|
3326
3326
|
};
|
|
3327
3327
|
exports.de_DeleteBucketIntelligentTieringConfigurationCommand = de_DeleteBucketIntelligentTieringConfigurationCommand;
|
|
@@ -3345,7 +3345,7 @@ const de_DeleteBucketInventoryConfigurationCommand = async (output, context) =>
|
|
|
3345
3345
|
const contents = (0, smithy_client_1.map)({
|
|
3346
3346
|
$metadata: deserializeMetadata(output),
|
|
3347
3347
|
});
|
|
3348
|
-
await collectBody(output.body, context);
|
|
3348
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3349
3349
|
return contents;
|
|
3350
3350
|
};
|
|
3351
3351
|
exports.de_DeleteBucketInventoryConfigurationCommand = de_DeleteBucketInventoryConfigurationCommand;
|
|
@@ -3369,7 +3369,7 @@ const de_DeleteBucketLifecycleCommand = async (output, context) => {
|
|
|
3369
3369
|
const contents = (0, smithy_client_1.map)({
|
|
3370
3370
|
$metadata: deserializeMetadata(output),
|
|
3371
3371
|
});
|
|
3372
|
-
await collectBody(output.body, context);
|
|
3372
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3373
3373
|
return contents;
|
|
3374
3374
|
};
|
|
3375
3375
|
exports.de_DeleteBucketLifecycleCommand = de_DeleteBucketLifecycleCommand;
|
|
@@ -3393,7 +3393,7 @@ const de_DeleteBucketMetricsConfigurationCommand = async (output, context) => {
|
|
|
3393
3393
|
const contents = (0, smithy_client_1.map)({
|
|
3394
3394
|
$metadata: deserializeMetadata(output),
|
|
3395
3395
|
});
|
|
3396
|
-
await collectBody(output.body, context);
|
|
3396
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3397
3397
|
return contents;
|
|
3398
3398
|
};
|
|
3399
3399
|
exports.de_DeleteBucketMetricsConfigurationCommand = de_DeleteBucketMetricsConfigurationCommand;
|
|
@@ -3417,7 +3417,7 @@ const de_DeleteBucketOwnershipControlsCommand = async (output, context) => {
|
|
|
3417
3417
|
const contents = (0, smithy_client_1.map)({
|
|
3418
3418
|
$metadata: deserializeMetadata(output),
|
|
3419
3419
|
});
|
|
3420
|
-
await collectBody(output.body, context);
|
|
3420
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3421
3421
|
return contents;
|
|
3422
3422
|
};
|
|
3423
3423
|
exports.de_DeleteBucketOwnershipControlsCommand = de_DeleteBucketOwnershipControlsCommand;
|
|
@@ -3441,7 +3441,7 @@ const de_DeleteBucketPolicyCommand = async (output, context) => {
|
|
|
3441
3441
|
const contents = (0, smithy_client_1.map)({
|
|
3442
3442
|
$metadata: deserializeMetadata(output),
|
|
3443
3443
|
});
|
|
3444
|
-
await collectBody(output.body, context);
|
|
3444
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3445
3445
|
return contents;
|
|
3446
3446
|
};
|
|
3447
3447
|
exports.de_DeleteBucketPolicyCommand = de_DeleteBucketPolicyCommand;
|
|
@@ -3465,7 +3465,7 @@ const de_DeleteBucketReplicationCommand = async (output, context) => {
|
|
|
3465
3465
|
const contents = (0, smithy_client_1.map)({
|
|
3466
3466
|
$metadata: deserializeMetadata(output),
|
|
3467
3467
|
});
|
|
3468
|
-
await collectBody(output.body, context);
|
|
3468
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3469
3469
|
return contents;
|
|
3470
3470
|
};
|
|
3471
3471
|
exports.de_DeleteBucketReplicationCommand = de_DeleteBucketReplicationCommand;
|
|
@@ -3489,7 +3489,7 @@ const de_DeleteBucketTaggingCommand = async (output, context) => {
|
|
|
3489
3489
|
const contents = (0, smithy_client_1.map)({
|
|
3490
3490
|
$metadata: deserializeMetadata(output),
|
|
3491
3491
|
});
|
|
3492
|
-
await collectBody(output.body, context);
|
|
3492
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3493
3493
|
return contents;
|
|
3494
3494
|
};
|
|
3495
3495
|
exports.de_DeleteBucketTaggingCommand = de_DeleteBucketTaggingCommand;
|
|
@@ -3513,7 +3513,7 @@ const de_DeleteBucketWebsiteCommand = async (output, context) => {
|
|
|
3513
3513
|
const contents = (0, smithy_client_1.map)({
|
|
3514
3514
|
$metadata: deserializeMetadata(output),
|
|
3515
3515
|
});
|
|
3516
|
-
await collectBody(output.body, context);
|
|
3516
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3517
3517
|
return contents;
|
|
3518
3518
|
};
|
|
3519
3519
|
exports.de_DeleteBucketWebsiteCommand = de_DeleteBucketWebsiteCommand;
|
|
@@ -3543,7 +3543,7 @@ const de_DeleteObjectCommand = async (output, context) => {
|
|
|
3543
3543
|
VersionId: [, output.headers["x-amz-version-id"]],
|
|
3544
3544
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
3545
3545
|
});
|
|
3546
|
-
await collectBody(output.body, context);
|
|
3546
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3547
3547
|
return contents;
|
|
3548
3548
|
};
|
|
3549
3549
|
exports.de_DeleteObjectCommand = de_DeleteObjectCommand;
|
|
@@ -3605,7 +3605,7 @@ const de_DeleteObjectTaggingCommand = async (output, context) => {
|
|
|
3605
3605
|
$metadata: deserializeMetadata(output),
|
|
3606
3606
|
VersionId: [, output.headers["x-amz-version-id"]],
|
|
3607
3607
|
});
|
|
3608
|
-
await collectBody(output.body, context);
|
|
3608
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3609
3609
|
return contents;
|
|
3610
3610
|
};
|
|
3611
3611
|
exports.de_DeleteObjectTaggingCommand = de_DeleteObjectTaggingCommand;
|
|
@@ -3629,7 +3629,7 @@ const de_DeletePublicAccessBlockCommand = async (output, context) => {
|
|
|
3629
3629
|
const contents = (0, smithy_client_1.map)({
|
|
3630
3630
|
$metadata: deserializeMetadata(output),
|
|
3631
3631
|
});
|
|
3632
|
-
await collectBody(output.body, context);
|
|
3632
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3633
3633
|
return contents;
|
|
3634
3634
|
};
|
|
3635
3635
|
exports.de_DeletePublicAccessBlockCommand = de_DeletePublicAccessBlockCommand;
|
|
@@ -4582,7 +4582,7 @@ const de_HeadBucketCommand = async (output, context) => {
|
|
|
4582
4582
|
const contents = (0, smithy_client_1.map)({
|
|
4583
4583
|
$metadata: deserializeMetadata(output),
|
|
4584
4584
|
});
|
|
4585
|
-
await collectBody(output.body, context);
|
|
4585
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4586
4586
|
return contents;
|
|
4587
4587
|
};
|
|
4588
4588
|
exports.de_HeadBucketCommand = de_HeadBucketCommand;
|
|
@@ -4678,7 +4678,7 @@ const de_HeadObjectCommand = async (output, context) => {
|
|
|
4678
4678
|
}, {}),
|
|
4679
4679
|
],
|
|
4680
4680
|
});
|
|
4681
|
-
await collectBody(output.body, context);
|
|
4681
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4682
4682
|
return contents;
|
|
4683
4683
|
};
|
|
4684
4684
|
exports.de_HeadObjectCommand = de_HeadObjectCommand;
|
|
@@ -5246,7 +5246,7 @@ const de_PutBucketAccelerateConfigurationCommand = async (output, context) => {
|
|
|
5246
5246
|
const contents = (0, smithy_client_1.map)({
|
|
5247
5247
|
$metadata: deserializeMetadata(output),
|
|
5248
5248
|
});
|
|
5249
|
-
await collectBody(output.body, context);
|
|
5249
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5250
5250
|
return contents;
|
|
5251
5251
|
};
|
|
5252
5252
|
exports.de_PutBucketAccelerateConfigurationCommand = de_PutBucketAccelerateConfigurationCommand;
|
|
@@ -5270,7 +5270,7 @@ const de_PutBucketAclCommand = async (output, context) => {
|
|
|
5270
5270
|
const contents = (0, smithy_client_1.map)({
|
|
5271
5271
|
$metadata: deserializeMetadata(output),
|
|
5272
5272
|
});
|
|
5273
|
-
await collectBody(output.body, context);
|
|
5273
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5274
5274
|
return contents;
|
|
5275
5275
|
};
|
|
5276
5276
|
exports.de_PutBucketAclCommand = de_PutBucketAclCommand;
|
|
@@ -5294,7 +5294,7 @@ const de_PutBucketAnalyticsConfigurationCommand = async (output, context) => {
|
|
|
5294
5294
|
const contents = (0, smithy_client_1.map)({
|
|
5295
5295
|
$metadata: deserializeMetadata(output),
|
|
5296
5296
|
});
|
|
5297
|
-
await collectBody(output.body, context);
|
|
5297
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5298
5298
|
return contents;
|
|
5299
5299
|
};
|
|
5300
5300
|
exports.de_PutBucketAnalyticsConfigurationCommand = de_PutBucketAnalyticsConfigurationCommand;
|
|
@@ -5318,7 +5318,7 @@ const de_PutBucketCorsCommand = async (output, context) => {
|
|
|
5318
5318
|
const contents = (0, smithy_client_1.map)({
|
|
5319
5319
|
$metadata: deserializeMetadata(output),
|
|
5320
5320
|
});
|
|
5321
|
-
await collectBody(output.body, context);
|
|
5321
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5322
5322
|
return contents;
|
|
5323
5323
|
};
|
|
5324
5324
|
exports.de_PutBucketCorsCommand = de_PutBucketCorsCommand;
|
|
@@ -5342,7 +5342,7 @@ const de_PutBucketEncryptionCommand = async (output, context) => {
|
|
|
5342
5342
|
const contents = (0, smithy_client_1.map)({
|
|
5343
5343
|
$metadata: deserializeMetadata(output),
|
|
5344
5344
|
});
|
|
5345
|
-
await collectBody(output.body, context);
|
|
5345
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5346
5346
|
return contents;
|
|
5347
5347
|
};
|
|
5348
5348
|
exports.de_PutBucketEncryptionCommand = de_PutBucketEncryptionCommand;
|
|
@@ -5366,7 +5366,7 @@ const de_PutBucketIntelligentTieringConfigurationCommand = async (output, contex
|
|
|
5366
5366
|
const contents = (0, smithy_client_1.map)({
|
|
5367
5367
|
$metadata: deserializeMetadata(output),
|
|
5368
5368
|
});
|
|
5369
|
-
await collectBody(output.body, context);
|
|
5369
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5370
5370
|
return contents;
|
|
5371
5371
|
};
|
|
5372
5372
|
exports.de_PutBucketIntelligentTieringConfigurationCommand = de_PutBucketIntelligentTieringConfigurationCommand;
|
|
@@ -5390,7 +5390,7 @@ const de_PutBucketInventoryConfigurationCommand = async (output, context) => {
|
|
|
5390
5390
|
const contents = (0, smithy_client_1.map)({
|
|
5391
5391
|
$metadata: deserializeMetadata(output),
|
|
5392
5392
|
});
|
|
5393
|
-
await collectBody(output.body, context);
|
|
5393
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5394
5394
|
return contents;
|
|
5395
5395
|
};
|
|
5396
5396
|
exports.de_PutBucketInventoryConfigurationCommand = de_PutBucketInventoryConfigurationCommand;
|
|
@@ -5414,7 +5414,7 @@ const de_PutBucketLifecycleConfigurationCommand = async (output, context) => {
|
|
|
5414
5414
|
const contents = (0, smithy_client_1.map)({
|
|
5415
5415
|
$metadata: deserializeMetadata(output),
|
|
5416
5416
|
});
|
|
5417
|
-
await collectBody(output.body, context);
|
|
5417
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5418
5418
|
return contents;
|
|
5419
5419
|
};
|
|
5420
5420
|
exports.de_PutBucketLifecycleConfigurationCommand = de_PutBucketLifecycleConfigurationCommand;
|
|
@@ -5438,7 +5438,7 @@ const de_PutBucketLoggingCommand = async (output, context) => {
|
|
|
5438
5438
|
const contents = (0, smithy_client_1.map)({
|
|
5439
5439
|
$metadata: deserializeMetadata(output),
|
|
5440
5440
|
});
|
|
5441
|
-
await collectBody(output.body, context);
|
|
5441
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5442
5442
|
return contents;
|
|
5443
5443
|
};
|
|
5444
5444
|
exports.de_PutBucketLoggingCommand = de_PutBucketLoggingCommand;
|
|
@@ -5462,7 +5462,7 @@ const de_PutBucketMetricsConfigurationCommand = async (output, context) => {
|
|
|
5462
5462
|
const contents = (0, smithy_client_1.map)({
|
|
5463
5463
|
$metadata: deserializeMetadata(output),
|
|
5464
5464
|
});
|
|
5465
|
-
await collectBody(output.body, context);
|
|
5465
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5466
5466
|
return contents;
|
|
5467
5467
|
};
|
|
5468
5468
|
exports.de_PutBucketMetricsConfigurationCommand = de_PutBucketMetricsConfigurationCommand;
|
|
@@ -5486,7 +5486,7 @@ const de_PutBucketNotificationConfigurationCommand = async (output, context) =>
|
|
|
5486
5486
|
const contents = (0, smithy_client_1.map)({
|
|
5487
5487
|
$metadata: deserializeMetadata(output),
|
|
5488
5488
|
});
|
|
5489
|
-
await collectBody(output.body, context);
|
|
5489
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5490
5490
|
return contents;
|
|
5491
5491
|
};
|
|
5492
5492
|
exports.de_PutBucketNotificationConfigurationCommand = de_PutBucketNotificationConfigurationCommand;
|
|
@@ -5510,7 +5510,7 @@ const de_PutBucketOwnershipControlsCommand = async (output, context) => {
|
|
|
5510
5510
|
const contents = (0, smithy_client_1.map)({
|
|
5511
5511
|
$metadata: deserializeMetadata(output),
|
|
5512
5512
|
});
|
|
5513
|
-
await collectBody(output.body, context);
|
|
5513
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5514
5514
|
return contents;
|
|
5515
5515
|
};
|
|
5516
5516
|
exports.de_PutBucketOwnershipControlsCommand = de_PutBucketOwnershipControlsCommand;
|
|
@@ -5534,7 +5534,7 @@ const de_PutBucketPolicyCommand = async (output, context) => {
|
|
|
5534
5534
|
const contents = (0, smithy_client_1.map)({
|
|
5535
5535
|
$metadata: deserializeMetadata(output),
|
|
5536
5536
|
});
|
|
5537
|
-
await collectBody(output.body, context);
|
|
5537
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5538
5538
|
return contents;
|
|
5539
5539
|
};
|
|
5540
5540
|
exports.de_PutBucketPolicyCommand = de_PutBucketPolicyCommand;
|
|
@@ -5558,7 +5558,7 @@ const de_PutBucketReplicationCommand = async (output, context) => {
|
|
|
5558
5558
|
const contents = (0, smithy_client_1.map)({
|
|
5559
5559
|
$metadata: deserializeMetadata(output),
|
|
5560
5560
|
});
|
|
5561
|
-
await collectBody(output.body, context);
|
|
5561
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5562
5562
|
return contents;
|
|
5563
5563
|
};
|
|
5564
5564
|
exports.de_PutBucketReplicationCommand = de_PutBucketReplicationCommand;
|
|
@@ -5582,7 +5582,7 @@ const de_PutBucketRequestPaymentCommand = async (output, context) => {
|
|
|
5582
5582
|
const contents = (0, smithy_client_1.map)({
|
|
5583
5583
|
$metadata: deserializeMetadata(output),
|
|
5584
5584
|
});
|
|
5585
|
-
await collectBody(output.body, context);
|
|
5585
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5586
5586
|
return contents;
|
|
5587
5587
|
};
|
|
5588
5588
|
exports.de_PutBucketRequestPaymentCommand = de_PutBucketRequestPaymentCommand;
|
|
@@ -5606,7 +5606,7 @@ const de_PutBucketTaggingCommand = async (output, context) => {
|
|
|
5606
5606
|
const contents = (0, smithy_client_1.map)({
|
|
5607
5607
|
$metadata: deserializeMetadata(output),
|
|
5608
5608
|
});
|
|
5609
|
-
await collectBody(output.body, context);
|
|
5609
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5610
5610
|
return contents;
|
|
5611
5611
|
};
|
|
5612
5612
|
exports.de_PutBucketTaggingCommand = de_PutBucketTaggingCommand;
|
|
@@ -5630,7 +5630,7 @@ const de_PutBucketVersioningCommand = async (output, context) => {
|
|
|
5630
5630
|
const contents = (0, smithy_client_1.map)({
|
|
5631
5631
|
$metadata: deserializeMetadata(output),
|
|
5632
5632
|
});
|
|
5633
|
-
await collectBody(output.body, context);
|
|
5633
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5634
5634
|
return contents;
|
|
5635
5635
|
};
|
|
5636
5636
|
exports.de_PutBucketVersioningCommand = de_PutBucketVersioningCommand;
|
|
@@ -5654,7 +5654,7 @@ const de_PutBucketWebsiteCommand = async (output, context) => {
|
|
|
5654
5654
|
const contents = (0, smithy_client_1.map)({
|
|
5655
5655
|
$metadata: deserializeMetadata(output),
|
|
5656
5656
|
});
|
|
5657
|
-
await collectBody(output.body, context);
|
|
5657
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5658
5658
|
return contents;
|
|
5659
5659
|
};
|
|
5660
5660
|
exports.de_PutBucketWebsiteCommand = de_PutBucketWebsiteCommand;
|
|
@@ -5695,7 +5695,7 @@ const de_PutObjectCommand = async (output, context) => {
|
|
|
5695
5695
|
],
|
|
5696
5696
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5697
5697
|
});
|
|
5698
|
-
await collectBody(output.body, context);
|
|
5698
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5699
5699
|
return contents;
|
|
5700
5700
|
};
|
|
5701
5701
|
exports.de_PutObjectCommand = de_PutObjectCommand;
|
|
@@ -5720,7 +5720,7 @@ const de_PutObjectAclCommand = async (output, context) => {
|
|
|
5720
5720
|
$metadata: deserializeMetadata(output),
|
|
5721
5721
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5722
5722
|
});
|
|
5723
|
-
await collectBody(output.body, context);
|
|
5723
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5724
5724
|
return contents;
|
|
5725
5725
|
};
|
|
5726
5726
|
exports.de_PutObjectAclCommand = de_PutObjectAclCommand;
|
|
@@ -5751,7 +5751,7 @@ const de_PutObjectLegalHoldCommand = async (output, context) => {
|
|
|
5751
5751
|
$metadata: deserializeMetadata(output),
|
|
5752
5752
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5753
5753
|
});
|
|
5754
|
-
await collectBody(output.body, context);
|
|
5754
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5755
5755
|
return contents;
|
|
5756
5756
|
};
|
|
5757
5757
|
exports.de_PutObjectLegalHoldCommand = de_PutObjectLegalHoldCommand;
|
|
@@ -5776,7 +5776,7 @@ const de_PutObjectLockConfigurationCommand = async (output, context) => {
|
|
|
5776
5776
|
$metadata: deserializeMetadata(output),
|
|
5777
5777
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5778
5778
|
});
|
|
5779
|
-
await collectBody(output.body, context);
|
|
5779
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5780
5780
|
return contents;
|
|
5781
5781
|
};
|
|
5782
5782
|
exports.de_PutObjectLockConfigurationCommand = de_PutObjectLockConfigurationCommand;
|
|
@@ -5801,7 +5801,7 @@ const de_PutObjectRetentionCommand = async (output, context) => {
|
|
|
5801
5801
|
$metadata: deserializeMetadata(output),
|
|
5802
5802
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5803
5803
|
});
|
|
5804
|
-
await collectBody(output.body, context);
|
|
5804
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5805
5805
|
return contents;
|
|
5806
5806
|
};
|
|
5807
5807
|
exports.de_PutObjectRetentionCommand = de_PutObjectRetentionCommand;
|
|
@@ -5826,7 +5826,7 @@ const de_PutObjectTaggingCommand = async (output, context) => {
|
|
|
5826
5826
|
$metadata: deserializeMetadata(output),
|
|
5827
5827
|
VersionId: [, output.headers["x-amz-version-id"]],
|
|
5828
5828
|
});
|
|
5829
|
-
await collectBody(output.body, context);
|
|
5829
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5830
5830
|
return contents;
|
|
5831
5831
|
};
|
|
5832
5832
|
exports.de_PutObjectTaggingCommand = de_PutObjectTaggingCommand;
|
|
@@ -5850,7 +5850,7 @@ const de_PutPublicAccessBlockCommand = async (output, context) => {
|
|
|
5850
5850
|
const contents = (0, smithy_client_1.map)({
|
|
5851
5851
|
$metadata: deserializeMetadata(output),
|
|
5852
5852
|
});
|
|
5853
|
-
await collectBody(output.body, context);
|
|
5853
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5854
5854
|
return contents;
|
|
5855
5855
|
};
|
|
5856
5856
|
exports.de_PutPublicAccessBlockCommand = de_PutPublicAccessBlockCommand;
|
|
@@ -5876,7 +5876,7 @@ const de_RestoreObjectCommand = async (output, context) => {
|
|
|
5876
5876
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5877
5877
|
RestoreOutputPath: [, output.headers["x-amz-restore-output-path"]],
|
|
5878
5878
|
});
|
|
5879
|
-
await collectBody(output.body, context);
|
|
5879
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5880
5880
|
return contents;
|
|
5881
5881
|
};
|
|
5882
5882
|
exports.de_RestoreObjectCommand = de_RestoreObjectCommand;
|
|
@@ -5945,7 +5945,7 @@ const de_UploadPartCommand = async (output, context) => {
|
|
|
5945
5945
|
],
|
|
5946
5946
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5947
5947
|
});
|
|
5948
|
-
await collectBody(output.body, context);
|
|
5948
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5949
5949
|
return contents;
|
|
5950
5950
|
};
|
|
5951
5951
|
exports.de_UploadPartCommand = de_UploadPartCommand;
|
|
@@ -6004,7 +6004,7 @@ const de_WriteGetObjectResponseCommand = async (output, context) => {
|
|
|
6004
6004
|
const contents = (0, smithy_client_1.map)({
|
|
6005
6005
|
$metadata: deserializeMetadata(output),
|
|
6006
6006
|
});
|
|
6007
|
-
await collectBody(output.body, context);
|
|
6007
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
6008
6008
|
return contents;
|
|
6009
6009
|
};
|
|
6010
6010
|
exports.de_WriteGetObjectResponseCommand = de_WriteGetObjectResponseCommand;
|
|
@@ -9615,13 +9615,7 @@ const deserializeMetadata = (output) => ({
|
|
|
9615
9615
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
9616
9616
|
cfId: output.headers["x-amz-cf-id"],
|
|
9617
9617
|
});
|
|
9618
|
-
const
|
|
9619
|
-
if (streamBody instanceof Uint8Array) {
|
|
9620
|
-
return Promise.resolve(streamBody);
|
|
9621
|
-
}
|
|
9622
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
9623
|
-
};
|
|
9624
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
9618
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
9625
9619
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
9626
9620
|
value !== null &&
|
|
9627
9621
|
value !== "" &&
|
|
@@ -13,7 +13,6 @@ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
|
13
13
|
const md5_js_1 = require("@aws-sdk/md5-js");
|
|
14
14
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
15
15
|
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
16
|
-
const util_stream_browser_1 = require("@aws-sdk/util-stream-browser");
|
|
17
16
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
18
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
@@ -32,13 +31,11 @@ const getRuntimeConfig = (config) => {
|
|
|
32
31
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
33
32
|
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
34
33
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
35
|
-
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_browser_1.getAwsChunkedEncodingStream,
|
|
36
34
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
37
35
|
md5: config?.md5 ?? md5_js_1.Md5,
|
|
38
36
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
39
37
|
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
40
38
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
41
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_browser_1.sdkStreamMixin,
|
|
42
39
|
sha1: config?.sha1 ?? sha1_browser_1.Sha1,
|
|
43
40
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
44
41
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
@@ -15,7 +15,6 @@ const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
|
15
15
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
16
16
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
17
17
|
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
18
|
-
const util_stream_node_1 = require("@aws-sdk/util-stream-node");
|
|
19
18
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
20
19
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
21
20
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
@@ -36,7 +35,6 @@ const getRuntimeConfig = (config) => {
|
|
|
36
35
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
37
36
|
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
38
37
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
39
|
-
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_node_1.getAwsChunkedEncodingStream,
|
|
40
38
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
41
39
|
md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"),
|
|
42
40
|
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
@@ -46,7 +44,6 @@ const getRuntimeConfig = (config) => {
|
|
|
46
44
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
47
45
|
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
48
46
|
}),
|
|
49
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_node_1.sdkStreamMixin,
|
|
50
47
|
sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
|
|
51
48
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
52
49
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
@@ -5,6 +5,7 @@ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region"
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
7
7
|
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
8
|
+
const util_stream_1 = require("@aws-sdk/util-stream");
|
|
8
9
|
const util_utf8_1 = require("@aws-sdk/util-utf8");
|
|
9
10
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
10
11
|
const getRuntimeConfig = (config) => ({
|
|
@@ -13,7 +14,9 @@ const getRuntimeConfig = (config) => ({
|
|
|
13
14
|
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
15
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
16
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
17
|
+
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_1.getAwsChunkedEncodingStream,
|
|
16
18
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
19
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
|
|
17
20
|
serviceId: config?.serviceId ?? "S3",
|
|
18
21
|
signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
|
|
19
22
|
signingEscapePath: config?.signingEscapePath ?? false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dateToUtcString as __dateToUtcString, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, parseRfc7231DateTime as __parseRfc7231DateTime, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { collectBody, dateToUtcString as __dateToUtcString, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, parseRfc7231DateTime as __parseRfc7231DateTime, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder";
|
|
3
3
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
4
4
|
import { XMLParser } from "fast-xml-parser";
|
|
@@ -9423,12 +9423,6 @@ const deserializeMetadata = (output) => ({
|
|
|
9423
9423
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
9424
9424
|
cfId: output.headers["x-amz-cf-id"],
|
|
9425
9425
|
});
|
|
9426
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
9427
|
-
if (streamBody instanceof Uint8Array) {
|
|
9428
|
-
return Promise.resolve(streamBody);
|
|
9429
|
-
}
|
|
9430
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
9431
|
-
};
|
|
9432
9426
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
9433
9427
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
9434
9428
|
value !== null &&
|
|
@@ -9,7 +9,6 @@ import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
|
9
9
|
import { Md5 } from "@aws-sdk/md5-js";
|
|
10
10
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
11
11
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
12
|
-
import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-browser";
|
|
13
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
14
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
14
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
@@ -28,13 +27,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
27
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
28
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
29
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
31
|
-
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream,
|
|
32
30
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
33
31
|
md5: config?.md5 ?? Md5,
|
|
34
32
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
35
33
|
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
34
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
37
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
38
35
|
sha1: config?.sha1 ?? Sha1,
|
|
39
36
|
sha256: config?.sha256 ?? Sha256,
|
|
40
37
|
streamCollector: config?.streamCollector ?? streamCollector,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -11,7 +11,6 @@ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
|
11
11
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
12
12
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
13
13
|
import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
14
|
-
import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-node";
|
|
15
14
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
16
15
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
17
16
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
@@ -32,7 +31,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
31
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
33
32
|
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
34
33
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
35
|
-
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream,
|
|
36
34
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
37
35
|
md5: config?.md5 ?? Hash.bind(null, "md5"),
|
|
38
36
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
@@ -42,7 +40,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
42
40
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
41
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
44
42
|
}),
|
|
45
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
46
43
|
sha1: config?.sha1 ?? Hash.bind(null, "sha1"),
|
|
47
44
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
48
45
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
@@ -2,6 +2,7 @@ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
|
2
2
|
import { NoOpLogger } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
4
4
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
5
|
+
import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream";
|
|
5
6
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8";
|
|
6
7
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
7
8
|
export const getRuntimeConfig = (config) => ({
|
|
@@ -10,7 +11,9 @@ export const getRuntimeConfig = (config) => ({
|
|
|
10
11
|
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
12
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
13
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
14
|
+
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream,
|
|
13
15
|
logger: config?.logger ?? new NoOpLogger(),
|
|
16
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
14
17
|
serviceId: config?.serviceId ?? "S3",
|
|
15
18
|
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
16
19
|
signingEscapePath: config?.signingEscapePath ?? false,
|
package/dist-types/S3Client.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
170
170
|
*/
|
|
171
171
|
runtime?: string;
|
|
172
172
|
/**
|
|
173
|
-
* Disable
|
|
173
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
174
174
|
* trait of an operation.
|
|
175
175
|
*/
|
|
176
176
|
disableHostPrefix?: boolean;
|
|
@@ -155,39 +155,39 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat
|
|
|
155
155
|
* @throws {@link S3ServiceException}
|
|
156
156
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
157
157
|
*
|
|
158
|
-
* @example To create a bucket
|
|
158
|
+
* @example To create a bucket
|
|
159
159
|
* ```javascript
|
|
160
|
-
* // The following example creates a bucket.
|
|
160
|
+
* // The following example creates a bucket.
|
|
161
161
|
* const input = {
|
|
162
|
-
* "Bucket": "examplebucket"
|
|
163
|
-
* "CreateBucketConfiguration": {
|
|
164
|
-
* "LocationConstraint": "eu-west-1"
|
|
165
|
-
* }
|
|
162
|
+
* "Bucket": "examplebucket"
|
|
166
163
|
* };
|
|
167
164
|
* const command = new CreateBucketCommand(input);
|
|
168
165
|
* const response = await client.send(command);
|
|
169
166
|
* /* response ==
|
|
170
167
|
* {
|
|
171
|
-
* "Location": "
|
|
168
|
+
* "Location": "/examplebucket"
|
|
172
169
|
* }
|
|
173
170
|
* *\/
|
|
174
|
-
* // example id: to-create-a-bucket
|
|
171
|
+
* // example id: to-create-a-bucket--1472851826060
|
|
175
172
|
* ```
|
|
176
173
|
*
|
|
177
|
-
* @example To create a bucket
|
|
174
|
+
* @example To create a bucket in a specific region
|
|
178
175
|
* ```javascript
|
|
179
|
-
* // The following example creates a bucket.
|
|
176
|
+
* // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
|
180
177
|
* const input = {
|
|
181
|
-
* "Bucket": "examplebucket"
|
|
178
|
+
* "Bucket": "examplebucket",
|
|
179
|
+
* "CreateBucketConfiguration": {
|
|
180
|
+
* "LocationConstraint": "eu-west-1"
|
|
181
|
+
* }
|
|
182
182
|
* };
|
|
183
183
|
* const command = new CreateBucketCommand(input);
|
|
184
184
|
* const response = await client.send(command);
|
|
185
185
|
* /* response ==
|
|
186
186
|
* {
|
|
187
|
-
* "Location": "/
|
|
187
|
+
* "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
|
|
188
188
|
* }
|
|
189
189
|
* *\/
|
|
190
|
-
* // example id: to-create-a-bucket
|
|
190
|
+
* // example id: to-create-a-bucket-in-a-specific-region-1483399072992
|
|
191
191
|
* ```
|
|
192
192
|
*
|
|
193
193
|
*/
|