@aws-sdk/client-s3 3.353.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 +57 -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 +9 -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/CopyObjectCommand.d.ts +26 -23
- package/dist-types/commands/CreateBucketCommand.d.ts +32 -103
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +3 -1
- package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +3 -3
- package/dist-types/commands/GetObjectCommand.d.ts +48 -47
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -19
- package/dist-types/commands/HeadObjectCommand.d.ts +19 -12
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +34 -32
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +2 -0
- package/dist-types/commands/ListObjectsCommand.d.ts +1 -0
- package/dist-types/commands/ListObjectsV2Command.d.ts +1 -0
- package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +11 -10
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +7 -6
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutObjectCommand.d.ts +39 -41
- package/dist-types/commands/RestoreObjectCommand.d.ts +5 -5
- package/dist-types/commands/SelectObjectContentCommand.d.ts +9 -4
- package/dist-types/commands/UploadPartCommand.d.ts +3 -6
- package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +3 -6
- package/dist-types/models/models_0.d.ts +107 -56
- package/dist-types/models/models_1.d.ts +9 -9
- 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/models/models_0.d.ts +8 -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
|
@@ -684,6 +684,7 @@ const se_GetBucketAccelerateConfigurationCommand = async (input, context) => {
|
|
|
684
684
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
685
685
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
686
686
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
687
|
+
"x-amz-request-payer": input.RequestPayer,
|
|
687
688
|
});
|
|
688
689
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
689
690
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
@@ -1588,6 +1589,7 @@ const se_ListMultipartUploadsCommand = async (input, context) => {
|
|
|
1588
1589
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1589
1590
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1590
1591
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
1592
|
+
"x-amz-request-payer": input.RequestPayer,
|
|
1591
1593
|
});
|
|
1592
1594
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
1593
1595
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
@@ -1676,6 +1678,7 @@ const se_ListObjectVersionsCommand = async (input, context) => {
|
|
|
1676
1678
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1677
1679
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1678
1680
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
1681
|
+
"x-amz-request-payer": input.RequestPayer,
|
|
1679
1682
|
});
|
|
1680
1683
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
1681
1684
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
@@ -3008,7 +3011,7 @@ const de_AbortMultipartUploadCommand = async (output, context) => {
|
|
|
3008
3011
|
$metadata: deserializeMetadata(output),
|
|
3009
3012
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
3010
3013
|
});
|
|
3011
|
-
await collectBody(output.body, context);
|
|
3014
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3012
3015
|
return contents;
|
|
3013
3016
|
};
|
|
3014
3017
|
exports.de_AbortMultipartUploadCommand = de_AbortMultipartUploadCommand;
|
|
@@ -3140,7 +3143,7 @@ const de_CreateBucketCommand = async (output, context) => {
|
|
|
3140
3143
|
$metadata: deserializeMetadata(output),
|
|
3141
3144
|
Location: [, output.headers["location"]],
|
|
3142
3145
|
});
|
|
3143
|
-
await collectBody(output.body, context);
|
|
3146
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3144
3147
|
return contents;
|
|
3145
3148
|
};
|
|
3146
3149
|
exports.de_CreateBucketCommand = de_CreateBucketCommand;
|
|
@@ -3222,7 +3225,7 @@ const de_DeleteBucketCommand = async (output, context) => {
|
|
|
3222
3225
|
const contents = (0, smithy_client_1.map)({
|
|
3223
3226
|
$metadata: deserializeMetadata(output),
|
|
3224
3227
|
});
|
|
3225
|
-
await collectBody(output.body, context);
|
|
3228
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3226
3229
|
return contents;
|
|
3227
3230
|
};
|
|
3228
3231
|
exports.de_DeleteBucketCommand = de_DeleteBucketCommand;
|
|
@@ -3246,7 +3249,7 @@ const de_DeleteBucketAnalyticsConfigurationCommand = async (output, context) =>
|
|
|
3246
3249
|
const contents = (0, smithy_client_1.map)({
|
|
3247
3250
|
$metadata: deserializeMetadata(output),
|
|
3248
3251
|
});
|
|
3249
|
-
await collectBody(output.body, context);
|
|
3252
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3250
3253
|
return contents;
|
|
3251
3254
|
};
|
|
3252
3255
|
exports.de_DeleteBucketAnalyticsConfigurationCommand = de_DeleteBucketAnalyticsConfigurationCommand;
|
|
@@ -3270,7 +3273,7 @@ const de_DeleteBucketCorsCommand = async (output, context) => {
|
|
|
3270
3273
|
const contents = (0, smithy_client_1.map)({
|
|
3271
3274
|
$metadata: deserializeMetadata(output),
|
|
3272
3275
|
});
|
|
3273
|
-
await collectBody(output.body, context);
|
|
3276
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3274
3277
|
return contents;
|
|
3275
3278
|
};
|
|
3276
3279
|
exports.de_DeleteBucketCorsCommand = de_DeleteBucketCorsCommand;
|
|
@@ -3294,7 +3297,7 @@ const de_DeleteBucketEncryptionCommand = async (output, context) => {
|
|
|
3294
3297
|
const contents = (0, smithy_client_1.map)({
|
|
3295
3298
|
$metadata: deserializeMetadata(output),
|
|
3296
3299
|
});
|
|
3297
|
-
await collectBody(output.body, context);
|
|
3300
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3298
3301
|
return contents;
|
|
3299
3302
|
};
|
|
3300
3303
|
exports.de_DeleteBucketEncryptionCommand = de_DeleteBucketEncryptionCommand;
|
|
@@ -3318,7 +3321,7 @@ const de_DeleteBucketIntelligentTieringConfigurationCommand = async (output, con
|
|
|
3318
3321
|
const contents = (0, smithy_client_1.map)({
|
|
3319
3322
|
$metadata: deserializeMetadata(output),
|
|
3320
3323
|
});
|
|
3321
|
-
await collectBody(output.body, context);
|
|
3324
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3322
3325
|
return contents;
|
|
3323
3326
|
};
|
|
3324
3327
|
exports.de_DeleteBucketIntelligentTieringConfigurationCommand = de_DeleteBucketIntelligentTieringConfigurationCommand;
|
|
@@ -3342,7 +3345,7 @@ const de_DeleteBucketInventoryConfigurationCommand = async (output, context) =>
|
|
|
3342
3345
|
const contents = (0, smithy_client_1.map)({
|
|
3343
3346
|
$metadata: deserializeMetadata(output),
|
|
3344
3347
|
});
|
|
3345
|
-
await collectBody(output.body, context);
|
|
3348
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3346
3349
|
return contents;
|
|
3347
3350
|
};
|
|
3348
3351
|
exports.de_DeleteBucketInventoryConfigurationCommand = de_DeleteBucketInventoryConfigurationCommand;
|
|
@@ -3366,7 +3369,7 @@ const de_DeleteBucketLifecycleCommand = async (output, context) => {
|
|
|
3366
3369
|
const contents = (0, smithy_client_1.map)({
|
|
3367
3370
|
$metadata: deserializeMetadata(output),
|
|
3368
3371
|
});
|
|
3369
|
-
await collectBody(output.body, context);
|
|
3372
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3370
3373
|
return contents;
|
|
3371
3374
|
};
|
|
3372
3375
|
exports.de_DeleteBucketLifecycleCommand = de_DeleteBucketLifecycleCommand;
|
|
@@ -3390,7 +3393,7 @@ const de_DeleteBucketMetricsConfigurationCommand = async (output, context) => {
|
|
|
3390
3393
|
const contents = (0, smithy_client_1.map)({
|
|
3391
3394
|
$metadata: deserializeMetadata(output),
|
|
3392
3395
|
});
|
|
3393
|
-
await collectBody(output.body, context);
|
|
3396
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3394
3397
|
return contents;
|
|
3395
3398
|
};
|
|
3396
3399
|
exports.de_DeleteBucketMetricsConfigurationCommand = de_DeleteBucketMetricsConfigurationCommand;
|
|
@@ -3414,7 +3417,7 @@ const de_DeleteBucketOwnershipControlsCommand = async (output, context) => {
|
|
|
3414
3417
|
const contents = (0, smithy_client_1.map)({
|
|
3415
3418
|
$metadata: deserializeMetadata(output),
|
|
3416
3419
|
});
|
|
3417
|
-
await collectBody(output.body, context);
|
|
3420
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3418
3421
|
return contents;
|
|
3419
3422
|
};
|
|
3420
3423
|
exports.de_DeleteBucketOwnershipControlsCommand = de_DeleteBucketOwnershipControlsCommand;
|
|
@@ -3438,7 +3441,7 @@ const de_DeleteBucketPolicyCommand = async (output, context) => {
|
|
|
3438
3441
|
const contents = (0, smithy_client_1.map)({
|
|
3439
3442
|
$metadata: deserializeMetadata(output),
|
|
3440
3443
|
});
|
|
3441
|
-
await collectBody(output.body, context);
|
|
3444
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3442
3445
|
return contents;
|
|
3443
3446
|
};
|
|
3444
3447
|
exports.de_DeleteBucketPolicyCommand = de_DeleteBucketPolicyCommand;
|
|
@@ -3462,7 +3465,7 @@ const de_DeleteBucketReplicationCommand = async (output, context) => {
|
|
|
3462
3465
|
const contents = (0, smithy_client_1.map)({
|
|
3463
3466
|
$metadata: deserializeMetadata(output),
|
|
3464
3467
|
});
|
|
3465
|
-
await collectBody(output.body, context);
|
|
3468
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3466
3469
|
return contents;
|
|
3467
3470
|
};
|
|
3468
3471
|
exports.de_DeleteBucketReplicationCommand = de_DeleteBucketReplicationCommand;
|
|
@@ -3486,7 +3489,7 @@ const de_DeleteBucketTaggingCommand = async (output, context) => {
|
|
|
3486
3489
|
const contents = (0, smithy_client_1.map)({
|
|
3487
3490
|
$metadata: deserializeMetadata(output),
|
|
3488
3491
|
});
|
|
3489
|
-
await collectBody(output.body, context);
|
|
3492
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3490
3493
|
return contents;
|
|
3491
3494
|
};
|
|
3492
3495
|
exports.de_DeleteBucketTaggingCommand = de_DeleteBucketTaggingCommand;
|
|
@@ -3510,7 +3513,7 @@ const de_DeleteBucketWebsiteCommand = async (output, context) => {
|
|
|
3510
3513
|
const contents = (0, smithy_client_1.map)({
|
|
3511
3514
|
$metadata: deserializeMetadata(output),
|
|
3512
3515
|
});
|
|
3513
|
-
await collectBody(output.body, context);
|
|
3516
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3514
3517
|
return contents;
|
|
3515
3518
|
};
|
|
3516
3519
|
exports.de_DeleteBucketWebsiteCommand = de_DeleteBucketWebsiteCommand;
|
|
@@ -3540,7 +3543,7 @@ const de_DeleteObjectCommand = async (output, context) => {
|
|
|
3540
3543
|
VersionId: [, output.headers["x-amz-version-id"]],
|
|
3541
3544
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
3542
3545
|
});
|
|
3543
|
-
await collectBody(output.body, context);
|
|
3546
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3544
3547
|
return contents;
|
|
3545
3548
|
};
|
|
3546
3549
|
exports.de_DeleteObjectCommand = de_DeleteObjectCommand;
|
|
@@ -3602,7 +3605,7 @@ const de_DeleteObjectTaggingCommand = async (output, context) => {
|
|
|
3602
3605
|
$metadata: deserializeMetadata(output),
|
|
3603
3606
|
VersionId: [, output.headers["x-amz-version-id"]],
|
|
3604
3607
|
});
|
|
3605
|
-
await collectBody(output.body, context);
|
|
3608
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3606
3609
|
return contents;
|
|
3607
3610
|
};
|
|
3608
3611
|
exports.de_DeleteObjectTaggingCommand = de_DeleteObjectTaggingCommand;
|
|
@@ -3626,7 +3629,7 @@ const de_DeletePublicAccessBlockCommand = async (output, context) => {
|
|
|
3626
3629
|
const contents = (0, smithy_client_1.map)({
|
|
3627
3630
|
$metadata: deserializeMetadata(output),
|
|
3628
3631
|
});
|
|
3629
|
-
await collectBody(output.body, context);
|
|
3632
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3630
3633
|
return contents;
|
|
3631
3634
|
};
|
|
3632
3635
|
exports.de_DeletePublicAccessBlockCommand = de_DeletePublicAccessBlockCommand;
|
|
@@ -3649,6 +3652,7 @@ const de_GetBucketAccelerateConfigurationCommand = async (output, context) => {
|
|
|
3649
3652
|
}
|
|
3650
3653
|
const contents = (0, smithy_client_1.map)({
|
|
3651
3654
|
$metadata: deserializeMetadata(output),
|
|
3655
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
3652
3656
|
});
|
|
3653
3657
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3654
3658
|
if (data["Status"] !== undefined) {
|
|
@@ -4578,7 +4582,7 @@ const de_HeadBucketCommand = async (output, context) => {
|
|
|
4578
4582
|
const contents = (0, smithy_client_1.map)({
|
|
4579
4583
|
$metadata: deserializeMetadata(output),
|
|
4580
4584
|
});
|
|
4581
|
-
await collectBody(output.body, context);
|
|
4585
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4582
4586
|
return contents;
|
|
4583
4587
|
};
|
|
4584
4588
|
exports.de_HeadBucketCommand = de_HeadBucketCommand;
|
|
@@ -4674,7 +4678,7 @@ const de_HeadObjectCommand = async (output, context) => {
|
|
|
4674
4678
|
}, {}),
|
|
4675
4679
|
],
|
|
4676
4680
|
});
|
|
4677
|
-
await collectBody(output.body, context);
|
|
4681
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4678
4682
|
return contents;
|
|
4679
4683
|
};
|
|
4680
4684
|
exports.de_HeadObjectCommand = de_HeadObjectCommand;
|
|
@@ -4892,6 +4896,7 @@ const de_ListMultipartUploadsCommand = async (output, context) => {
|
|
|
4892
4896
|
}
|
|
4893
4897
|
const contents = (0, smithy_client_1.map)({
|
|
4894
4898
|
$metadata: deserializeMetadata(output),
|
|
4899
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
4895
4900
|
});
|
|
4896
4901
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4897
4902
|
if (data["Bucket"] !== undefined) {
|
|
@@ -4958,6 +4963,7 @@ const de_ListObjectsCommand = async (output, context) => {
|
|
|
4958
4963
|
}
|
|
4959
4964
|
const contents = (0, smithy_client_1.map)({
|
|
4960
4965
|
$metadata: deserializeMetadata(output),
|
|
4966
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
4961
4967
|
});
|
|
4962
4968
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4963
4969
|
if (data.CommonPrefixes === "") {
|
|
@@ -5024,6 +5030,7 @@ const de_ListObjectsV2Command = async (output, context) => {
|
|
|
5024
5030
|
}
|
|
5025
5031
|
const contents = (0, smithy_client_1.map)({
|
|
5026
5032
|
$metadata: deserializeMetadata(output),
|
|
5033
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5027
5034
|
});
|
|
5028
5035
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5029
5036
|
if (data.CommonPrefixes === "") {
|
|
@@ -5096,6 +5103,7 @@ const de_ListObjectVersionsCommand = async (output, context) => {
|
|
|
5096
5103
|
}
|
|
5097
5104
|
const contents = (0, smithy_client_1.map)({
|
|
5098
5105
|
$metadata: deserializeMetadata(output),
|
|
5106
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5099
5107
|
});
|
|
5100
5108
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5101
5109
|
if (data.CommonPrefixes === "") {
|
|
@@ -5238,7 +5246,7 @@ const de_PutBucketAccelerateConfigurationCommand = async (output, context) => {
|
|
|
5238
5246
|
const contents = (0, smithy_client_1.map)({
|
|
5239
5247
|
$metadata: deserializeMetadata(output),
|
|
5240
5248
|
});
|
|
5241
|
-
await collectBody(output.body, context);
|
|
5249
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5242
5250
|
return contents;
|
|
5243
5251
|
};
|
|
5244
5252
|
exports.de_PutBucketAccelerateConfigurationCommand = de_PutBucketAccelerateConfigurationCommand;
|
|
@@ -5262,7 +5270,7 @@ const de_PutBucketAclCommand = async (output, context) => {
|
|
|
5262
5270
|
const contents = (0, smithy_client_1.map)({
|
|
5263
5271
|
$metadata: deserializeMetadata(output),
|
|
5264
5272
|
});
|
|
5265
|
-
await collectBody(output.body, context);
|
|
5273
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5266
5274
|
return contents;
|
|
5267
5275
|
};
|
|
5268
5276
|
exports.de_PutBucketAclCommand = de_PutBucketAclCommand;
|
|
@@ -5286,7 +5294,7 @@ const de_PutBucketAnalyticsConfigurationCommand = async (output, context) => {
|
|
|
5286
5294
|
const contents = (0, smithy_client_1.map)({
|
|
5287
5295
|
$metadata: deserializeMetadata(output),
|
|
5288
5296
|
});
|
|
5289
|
-
await collectBody(output.body, context);
|
|
5297
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5290
5298
|
return contents;
|
|
5291
5299
|
};
|
|
5292
5300
|
exports.de_PutBucketAnalyticsConfigurationCommand = de_PutBucketAnalyticsConfigurationCommand;
|
|
@@ -5310,7 +5318,7 @@ const de_PutBucketCorsCommand = async (output, context) => {
|
|
|
5310
5318
|
const contents = (0, smithy_client_1.map)({
|
|
5311
5319
|
$metadata: deserializeMetadata(output),
|
|
5312
5320
|
});
|
|
5313
|
-
await collectBody(output.body, context);
|
|
5321
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5314
5322
|
return contents;
|
|
5315
5323
|
};
|
|
5316
5324
|
exports.de_PutBucketCorsCommand = de_PutBucketCorsCommand;
|
|
@@ -5334,7 +5342,7 @@ const de_PutBucketEncryptionCommand = async (output, context) => {
|
|
|
5334
5342
|
const contents = (0, smithy_client_1.map)({
|
|
5335
5343
|
$metadata: deserializeMetadata(output),
|
|
5336
5344
|
});
|
|
5337
|
-
await collectBody(output.body, context);
|
|
5345
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5338
5346
|
return contents;
|
|
5339
5347
|
};
|
|
5340
5348
|
exports.de_PutBucketEncryptionCommand = de_PutBucketEncryptionCommand;
|
|
@@ -5358,7 +5366,7 @@ const de_PutBucketIntelligentTieringConfigurationCommand = async (output, contex
|
|
|
5358
5366
|
const contents = (0, smithy_client_1.map)({
|
|
5359
5367
|
$metadata: deserializeMetadata(output),
|
|
5360
5368
|
});
|
|
5361
|
-
await collectBody(output.body, context);
|
|
5369
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5362
5370
|
return contents;
|
|
5363
5371
|
};
|
|
5364
5372
|
exports.de_PutBucketIntelligentTieringConfigurationCommand = de_PutBucketIntelligentTieringConfigurationCommand;
|
|
@@ -5382,7 +5390,7 @@ const de_PutBucketInventoryConfigurationCommand = async (output, context) => {
|
|
|
5382
5390
|
const contents = (0, smithy_client_1.map)({
|
|
5383
5391
|
$metadata: deserializeMetadata(output),
|
|
5384
5392
|
});
|
|
5385
|
-
await collectBody(output.body, context);
|
|
5393
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5386
5394
|
return contents;
|
|
5387
5395
|
};
|
|
5388
5396
|
exports.de_PutBucketInventoryConfigurationCommand = de_PutBucketInventoryConfigurationCommand;
|
|
@@ -5406,7 +5414,7 @@ const de_PutBucketLifecycleConfigurationCommand = async (output, context) => {
|
|
|
5406
5414
|
const contents = (0, smithy_client_1.map)({
|
|
5407
5415
|
$metadata: deserializeMetadata(output),
|
|
5408
5416
|
});
|
|
5409
|
-
await collectBody(output.body, context);
|
|
5417
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5410
5418
|
return contents;
|
|
5411
5419
|
};
|
|
5412
5420
|
exports.de_PutBucketLifecycleConfigurationCommand = de_PutBucketLifecycleConfigurationCommand;
|
|
@@ -5430,7 +5438,7 @@ const de_PutBucketLoggingCommand = async (output, context) => {
|
|
|
5430
5438
|
const contents = (0, smithy_client_1.map)({
|
|
5431
5439
|
$metadata: deserializeMetadata(output),
|
|
5432
5440
|
});
|
|
5433
|
-
await collectBody(output.body, context);
|
|
5441
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5434
5442
|
return contents;
|
|
5435
5443
|
};
|
|
5436
5444
|
exports.de_PutBucketLoggingCommand = de_PutBucketLoggingCommand;
|
|
@@ -5454,7 +5462,7 @@ const de_PutBucketMetricsConfigurationCommand = async (output, context) => {
|
|
|
5454
5462
|
const contents = (0, smithy_client_1.map)({
|
|
5455
5463
|
$metadata: deserializeMetadata(output),
|
|
5456
5464
|
});
|
|
5457
|
-
await collectBody(output.body, context);
|
|
5465
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5458
5466
|
return contents;
|
|
5459
5467
|
};
|
|
5460
5468
|
exports.de_PutBucketMetricsConfigurationCommand = de_PutBucketMetricsConfigurationCommand;
|
|
@@ -5478,7 +5486,7 @@ const de_PutBucketNotificationConfigurationCommand = async (output, context) =>
|
|
|
5478
5486
|
const contents = (0, smithy_client_1.map)({
|
|
5479
5487
|
$metadata: deserializeMetadata(output),
|
|
5480
5488
|
});
|
|
5481
|
-
await collectBody(output.body, context);
|
|
5489
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5482
5490
|
return contents;
|
|
5483
5491
|
};
|
|
5484
5492
|
exports.de_PutBucketNotificationConfigurationCommand = de_PutBucketNotificationConfigurationCommand;
|
|
@@ -5502,7 +5510,7 @@ const de_PutBucketOwnershipControlsCommand = async (output, context) => {
|
|
|
5502
5510
|
const contents = (0, smithy_client_1.map)({
|
|
5503
5511
|
$metadata: deserializeMetadata(output),
|
|
5504
5512
|
});
|
|
5505
|
-
await collectBody(output.body, context);
|
|
5513
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5506
5514
|
return contents;
|
|
5507
5515
|
};
|
|
5508
5516
|
exports.de_PutBucketOwnershipControlsCommand = de_PutBucketOwnershipControlsCommand;
|
|
@@ -5526,7 +5534,7 @@ const de_PutBucketPolicyCommand = async (output, context) => {
|
|
|
5526
5534
|
const contents = (0, smithy_client_1.map)({
|
|
5527
5535
|
$metadata: deserializeMetadata(output),
|
|
5528
5536
|
});
|
|
5529
|
-
await collectBody(output.body, context);
|
|
5537
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5530
5538
|
return contents;
|
|
5531
5539
|
};
|
|
5532
5540
|
exports.de_PutBucketPolicyCommand = de_PutBucketPolicyCommand;
|
|
@@ -5550,7 +5558,7 @@ const de_PutBucketReplicationCommand = async (output, context) => {
|
|
|
5550
5558
|
const contents = (0, smithy_client_1.map)({
|
|
5551
5559
|
$metadata: deserializeMetadata(output),
|
|
5552
5560
|
});
|
|
5553
|
-
await collectBody(output.body, context);
|
|
5561
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5554
5562
|
return contents;
|
|
5555
5563
|
};
|
|
5556
5564
|
exports.de_PutBucketReplicationCommand = de_PutBucketReplicationCommand;
|
|
@@ -5574,7 +5582,7 @@ const de_PutBucketRequestPaymentCommand = async (output, context) => {
|
|
|
5574
5582
|
const contents = (0, smithy_client_1.map)({
|
|
5575
5583
|
$metadata: deserializeMetadata(output),
|
|
5576
5584
|
});
|
|
5577
|
-
await collectBody(output.body, context);
|
|
5585
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5578
5586
|
return contents;
|
|
5579
5587
|
};
|
|
5580
5588
|
exports.de_PutBucketRequestPaymentCommand = de_PutBucketRequestPaymentCommand;
|
|
@@ -5598,7 +5606,7 @@ const de_PutBucketTaggingCommand = async (output, context) => {
|
|
|
5598
5606
|
const contents = (0, smithy_client_1.map)({
|
|
5599
5607
|
$metadata: deserializeMetadata(output),
|
|
5600
5608
|
});
|
|
5601
|
-
await collectBody(output.body, context);
|
|
5609
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5602
5610
|
return contents;
|
|
5603
5611
|
};
|
|
5604
5612
|
exports.de_PutBucketTaggingCommand = de_PutBucketTaggingCommand;
|
|
@@ -5622,7 +5630,7 @@ const de_PutBucketVersioningCommand = async (output, context) => {
|
|
|
5622
5630
|
const contents = (0, smithy_client_1.map)({
|
|
5623
5631
|
$metadata: deserializeMetadata(output),
|
|
5624
5632
|
});
|
|
5625
|
-
await collectBody(output.body, context);
|
|
5633
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5626
5634
|
return contents;
|
|
5627
5635
|
};
|
|
5628
5636
|
exports.de_PutBucketVersioningCommand = de_PutBucketVersioningCommand;
|
|
@@ -5646,7 +5654,7 @@ const de_PutBucketWebsiteCommand = async (output, context) => {
|
|
|
5646
5654
|
const contents = (0, smithy_client_1.map)({
|
|
5647
5655
|
$metadata: deserializeMetadata(output),
|
|
5648
5656
|
});
|
|
5649
|
-
await collectBody(output.body, context);
|
|
5657
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5650
5658
|
return contents;
|
|
5651
5659
|
};
|
|
5652
5660
|
exports.de_PutBucketWebsiteCommand = de_PutBucketWebsiteCommand;
|
|
@@ -5687,7 +5695,7 @@ const de_PutObjectCommand = async (output, context) => {
|
|
|
5687
5695
|
],
|
|
5688
5696
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5689
5697
|
});
|
|
5690
|
-
await collectBody(output.body, context);
|
|
5698
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5691
5699
|
return contents;
|
|
5692
5700
|
};
|
|
5693
5701
|
exports.de_PutObjectCommand = de_PutObjectCommand;
|
|
@@ -5712,7 +5720,7 @@ const de_PutObjectAclCommand = async (output, context) => {
|
|
|
5712
5720
|
$metadata: deserializeMetadata(output),
|
|
5713
5721
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5714
5722
|
});
|
|
5715
|
-
await collectBody(output.body, context);
|
|
5723
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5716
5724
|
return contents;
|
|
5717
5725
|
};
|
|
5718
5726
|
exports.de_PutObjectAclCommand = de_PutObjectAclCommand;
|
|
@@ -5743,7 +5751,7 @@ const de_PutObjectLegalHoldCommand = async (output, context) => {
|
|
|
5743
5751
|
$metadata: deserializeMetadata(output),
|
|
5744
5752
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5745
5753
|
});
|
|
5746
|
-
await collectBody(output.body, context);
|
|
5754
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5747
5755
|
return contents;
|
|
5748
5756
|
};
|
|
5749
5757
|
exports.de_PutObjectLegalHoldCommand = de_PutObjectLegalHoldCommand;
|
|
@@ -5768,7 +5776,7 @@ const de_PutObjectLockConfigurationCommand = async (output, context) => {
|
|
|
5768
5776
|
$metadata: deserializeMetadata(output),
|
|
5769
5777
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5770
5778
|
});
|
|
5771
|
-
await collectBody(output.body, context);
|
|
5779
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5772
5780
|
return contents;
|
|
5773
5781
|
};
|
|
5774
5782
|
exports.de_PutObjectLockConfigurationCommand = de_PutObjectLockConfigurationCommand;
|
|
@@ -5793,7 +5801,7 @@ const de_PutObjectRetentionCommand = async (output, context) => {
|
|
|
5793
5801
|
$metadata: deserializeMetadata(output),
|
|
5794
5802
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5795
5803
|
});
|
|
5796
|
-
await collectBody(output.body, context);
|
|
5804
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5797
5805
|
return contents;
|
|
5798
5806
|
};
|
|
5799
5807
|
exports.de_PutObjectRetentionCommand = de_PutObjectRetentionCommand;
|
|
@@ -5818,7 +5826,7 @@ const de_PutObjectTaggingCommand = async (output, context) => {
|
|
|
5818
5826
|
$metadata: deserializeMetadata(output),
|
|
5819
5827
|
VersionId: [, output.headers["x-amz-version-id"]],
|
|
5820
5828
|
});
|
|
5821
|
-
await collectBody(output.body, context);
|
|
5829
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5822
5830
|
return contents;
|
|
5823
5831
|
};
|
|
5824
5832
|
exports.de_PutObjectTaggingCommand = de_PutObjectTaggingCommand;
|
|
@@ -5842,7 +5850,7 @@ const de_PutPublicAccessBlockCommand = async (output, context) => {
|
|
|
5842
5850
|
const contents = (0, smithy_client_1.map)({
|
|
5843
5851
|
$metadata: deserializeMetadata(output),
|
|
5844
5852
|
});
|
|
5845
|
-
await collectBody(output.body, context);
|
|
5853
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5846
5854
|
return contents;
|
|
5847
5855
|
};
|
|
5848
5856
|
exports.de_PutPublicAccessBlockCommand = de_PutPublicAccessBlockCommand;
|
|
@@ -5868,7 +5876,7 @@ const de_RestoreObjectCommand = async (output, context) => {
|
|
|
5868
5876
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5869
5877
|
RestoreOutputPath: [, output.headers["x-amz-restore-output-path"]],
|
|
5870
5878
|
});
|
|
5871
|
-
await collectBody(output.body, context);
|
|
5879
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5872
5880
|
return contents;
|
|
5873
5881
|
};
|
|
5874
5882
|
exports.de_RestoreObjectCommand = de_RestoreObjectCommand;
|
|
@@ -5937,7 +5945,7 @@ const de_UploadPartCommand = async (output, context) => {
|
|
|
5937
5945
|
],
|
|
5938
5946
|
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
5939
5947
|
});
|
|
5940
|
-
await collectBody(output.body, context);
|
|
5948
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5941
5949
|
return contents;
|
|
5942
5950
|
};
|
|
5943
5951
|
exports.de_UploadPartCommand = de_UploadPartCommand;
|
|
@@ -5996,7 +6004,7 @@ const de_WriteGetObjectResponseCommand = async (output, context) => {
|
|
|
5996
6004
|
const contents = (0, smithy_client_1.map)({
|
|
5997
6005
|
$metadata: deserializeMetadata(output),
|
|
5998
6006
|
});
|
|
5999
|
-
await collectBody(output.body, context);
|
|
6007
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
6000
6008
|
return contents;
|
|
6001
6009
|
};
|
|
6002
6010
|
exports.de_WriteGetObjectResponseCommand = de_WriteGetObjectResponseCommand;
|
|
@@ -9607,13 +9615,7 @@ const deserializeMetadata = (output) => ({
|
|
|
9607
9615
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
9608
9616
|
cfId: output.headers["x-amz-cf-id"],
|
|
9609
9617
|
});
|
|
9610
|
-
const
|
|
9611
|
-
if (streamBody instanceof Uint8Array) {
|
|
9612
|
-
return Promise.resolve(streamBody);
|
|
9613
|
-
}
|
|
9614
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
9615
|
-
};
|
|
9616
|
-
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));
|
|
9617
9619
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
9618
9620
|
value !== null &&
|
|
9619
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";
|
|
@@ -656,6 +656,7 @@ export const se_GetBucketAccelerateConfigurationCommand = async (input, context)
|
|
|
656
656
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
657
657
|
const headers = map({}, isSerializableHeaderValue, {
|
|
658
658
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
659
|
+
"x-amz-request-payer": input.RequestPayer,
|
|
659
660
|
});
|
|
660
661
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
661
662
|
resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
@@ -1524,6 +1525,7 @@ export const se_ListMultipartUploadsCommand = async (input, context) => {
|
|
|
1524
1525
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1525
1526
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1526
1527
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
1528
|
+
"x-amz-request-payer": input.RequestPayer,
|
|
1527
1529
|
});
|
|
1528
1530
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
1529
1531
|
resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
@@ -1609,6 +1611,7 @@ export const se_ListObjectVersionsCommand = async (input, context) => {
|
|
|
1609
1611
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1610
1612
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1611
1613
|
"x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
|
|
1614
|
+
"x-amz-request-payer": input.RequestPayer,
|
|
1612
1615
|
});
|
|
1613
1616
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/";
|
|
1614
1617
|
resolvedPath = __resolvedPath(resolvedPath, input, "Bucket", () => input.Bucket, "{Bucket}", false);
|
|
@@ -3528,6 +3531,7 @@ export const de_GetBucketAccelerateConfigurationCommand = async (output, context
|
|
|
3528
3531
|
}
|
|
3529
3532
|
const contents = map({
|
|
3530
3533
|
$metadata: deserializeMetadata(output),
|
|
3534
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
3531
3535
|
});
|
|
3532
3536
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3533
3537
|
if (data["Status"] !== undefined) {
|
|
@@ -4735,6 +4739,7 @@ export const de_ListMultipartUploadsCommand = async (output, context) => {
|
|
|
4735
4739
|
}
|
|
4736
4740
|
const contents = map({
|
|
4737
4741
|
$metadata: deserializeMetadata(output),
|
|
4742
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
4738
4743
|
});
|
|
4739
4744
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4740
4745
|
if (data["Bucket"] !== undefined) {
|
|
@@ -4800,6 +4805,7 @@ export const de_ListObjectsCommand = async (output, context) => {
|
|
|
4800
4805
|
}
|
|
4801
4806
|
const contents = map({
|
|
4802
4807
|
$metadata: deserializeMetadata(output),
|
|
4808
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
4803
4809
|
});
|
|
4804
4810
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4805
4811
|
if (data.CommonPrefixes === "") {
|
|
@@ -4865,6 +4871,7 @@ export const de_ListObjectsV2Command = async (output, context) => {
|
|
|
4865
4871
|
}
|
|
4866
4872
|
const contents = map({
|
|
4867
4873
|
$metadata: deserializeMetadata(output),
|
|
4874
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
4868
4875
|
});
|
|
4869
4876
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4870
4877
|
if (data.CommonPrefixes === "") {
|
|
@@ -4936,6 +4943,7 @@ export const de_ListObjectVersionsCommand = async (output, context) => {
|
|
|
4936
4943
|
}
|
|
4937
4944
|
const contents = map({
|
|
4938
4945
|
$metadata: deserializeMetadata(output),
|
|
4946
|
+
RequestCharged: [, output.headers["x-amz-request-charged"]],
|
|
4939
4947
|
});
|
|
4940
4948
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4941
4949
|
if (data.CommonPrefixes === "") {
|
|
@@ -9415,12 +9423,6 @@ const deserializeMetadata = (output) => ({
|
|
|
9415
9423
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
9416
9424
|
cfId: output.headers["x-amz-cf-id"],
|
|
9417
9425
|
});
|
|
9418
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
9419
|
-
if (streamBody instanceof Uint8Array) {
|
|
9420
|
-
return Promise.resolve(streamBody);
|
|
9421
|
-
}
|
|
9422
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
9423
|
-
};
|
|
9424
9426
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
9425
9427
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
9426
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,
|