@aws-sdk/client-s3 3.180.0 → 3.181.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/CHANGELOG.md +13 -0
- package/dist-cjs/protocols/Aws_restXml.js +101 -93
- package/dist-es/protocols/Aws_restXml.js +108 -93
- package/package.json +3 -3
|
@@ -3016,7 +3016,7 @@ exports.deserializeAws_restXmlAbortMultipartUploadCommand = deserializeAws_restX
|
|
|
3016
3016
|
const deserializeAws_restXmlAbortMultipartUploadCommandError = async (output, context) => {
|
|
3017
3017
|
const parsedOutput = {
|
|
3018
3018
|
...output,
|
|
3019
|
-
body: await
|
|
3019
|
+
body: await parseErrorBody(output.body, context),
|
|
3020
3020
|
};
|
|
3021
3021
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3022
3022
|
switch (errorCode) {
|
|
@@ -3080,7 +3080,7 @@ exports.deserializeAws_restXmlCompleteMultipartUploadCommand = deserializeAws_re
|
|
|
3080
3080
|
const deserializeAws_restXmlCompleteMultipartUploadCommandError = async (output, context) => {
|
|
3081
3081
|
const parsedOutput = {
|
|
3082
3082
|
...output,
|
|
3083
|
-
body: await
|
|
3083
|
+
body: await parseErrorBody(output.body, context),
|
|
3084
3084
|
};
|
|
3085
3085
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3086
3086
|
const parsedBody = parsedOutput.body;
|
|
@@ -3119,7 +3119,7 @@ exports.deserializeAws_restXmlCopyObjectCommand = deserializeAws_restXmlCopyObje
|
|
|
3119
3119
|
const deserializeAws_restXmlCopyObjectCommandError = async (output, context) => {
|
|
3120
3120
|
const parsedOutput = {
|
|
3121
3121
|
...output,
|
|
3122
|
-
body: await
|
|
3122
|
+
body: await parseErrorBody(output.body, context),
|
|
3123
3123
|
};
|
|
3124
3124
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3125
3125
|
switch (errorCode) {
|
|
@@ -3151,7 +3151,7 @@ exports.deserializeAws_restXmlCreateBucketCommand = deserializeAws_restXmlCreate
|
|
|
3151
3151
|
const deserializeAws_restXmlCreateBucketCommandError = async (output, context) => {
|
|
3152
3152
|
const parsedOutput = {
|
|
3153
3153
|
...output,
|
|
3154
|
-
body: await
|
|
3154
|
+
body: await parseErrorBody(output.body, context),
|
|
3155
3155
|
};
|
|
3156
3156
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3157
3157
|
switch (errorCode) {
|
|
@@ -3210,7 +3210,7 @@ exports.deserializeAws_restXmlCreateMultipartUploadCommand = deserializeAws_rest
|
|
|
3210
3210
|
const deserializeAws_restXmlCreateMultipartUploadCommandError = async (output, context) => {
|
|
3211
3211
|
const parsedOutput = {
|
|
3212
3212
|
...output,
|
|
3213
|
-
body: await
|
|
3213
|
+
body: await parseErrorBody(output.body, context),
|
|
3214
3214
|
};
|
|
3215
3215
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3216
3216
|
const parsedBody = parsedOutput.body;
|
|
@@ -3235,7 +3235,7 @@ exports.deserializeAws_restXmlDeleteBucketCommand = deserializeAws_restXmlDelete
|
|
|
3235
3235
|
const deserializeAws_restXmlDeleteBucketCommandError = async (output, context) => {
|
|
3236
3236
|
const parsedOutput = {
|
|
3237
3237
|
...output,
|
|
3238
|
-
body: await
|
|
3238
|
+
body: await parseErrorBody(output.body, context),
|
|
3239
3239
|
};
|
|
3240
3240
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3241
3241
|
const parsedBody = parsedOutput.body;
|
|
@@ -3260,7 +3260,7 @@ exports.deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand = deseri
|
|
|
3260
3260
|
const deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommandError = async (output, context) => {
|
|
3261
3261
|
const parsedOutput = {
|
|
3262
3262
|
...output,
|
|
3263
|
-
body: await
|
|
3263
|
+
body: await parseErrorBody(output.body, context),
|
|
3264
3264
|
};
|
|
3265
3265
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3266
3266
|
const parsedBody = parsedOutput.body;
|
|
@@ -3285,7 +3285,7 @@ exports.deserializeAws_restXmlDeleteBucketCorsCommand = deserializeAws_restXmlDe
|
|
|
3285
3285
|
const deserializeAws_restXmlDeleteBucketCorsCommandError = async (output, context) => {
|
|
3286
3286
|
const parsedOutput = {
|
|
3287
3287
|
...output,
|
|
3288
|
-
body: await
|
|
3288
|
+
body: await parseErrorBody(output.body, context),
|
|
3289
3289
|
};
|
|
3290
3290
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3291
3291
|
const parsedBody = parsedOutput.body;
|
|
@@ -3310,7 +3310,7 @@ exports.deserializeAws_restXmlDeleteBucketEncryptionCommand = deserializeAws_res
|
|
|
3310
3310
|
const deserializeAws_restXmlDeleteBucketEncryptionCommandError = async (output, context) => {
|
|
3311
3311
|
const parsedOutput = {
|
|
3312
3312
|
...output,
|
|
3313
|
-
body: await
|
|
3313
|
+
body: await parseErrorBody(output.body, context),
|
|
3314
3314
|
};
|
|
3315
3315
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3316
3316
|
const parsedBody = parsedOutput.body;
|
|
@@ -3335,7 +3335,7 @@ exports.deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand
|
|
|
3335
3335
|
const deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommandError = async (output, context) => {
|
|
3336
3336
|
const parsedOutput = {
|
|
3337
3337
|
...output,
|
|
3338
|
-
body: await
|
|
3338
|
+
body: await parseErrorBody(output.body, context),
|
|
3339
3339
|
};
|
|
3340
3340
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3341
3341
|
const parsedBody = parsedOutput.body;
|
|
@@ -3360,7 +3360,7 @@ exports.deserializeAws_restXmlDeleteBucketInventoryConfigurationCommand = deseri
|
|
|
3360
3360
|
const deserializeAws_restXmlDeleteBucketInventoryConfigurationCommandError = async (output, context) => {
|
|
3361
3361
|
const parsedOutput = {
|
|
3362
3362
|
...output,
|
|
3363
|
-
body: await
|
|
3363
|
+
body: await parseErrorBody(output.body, context),
|
|
3364
3364
|
};
|
|
3365
3365
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3366
3366
|
const parsedBody = parsedOutput.body;
|
|
@@ -3385,7 +3385,7 @@ exports.deserializeAws_restXmlDeleteBucketLifecycleCommand = deserializeAws_rest
|
|
|
3385
3385
|
const deserializeAws_restXmlDeleteBucketLifecycleCommandError = async (output, context) => {
|
|
3386
3386
|
const parsedOutput = {
|
|
3387
3387
|
...output,
|
|
3388
|
-
body: await
|
|
3388
|
+
body: await parseErrorBody(output.body, context),
|
|
3389
3389
|
};
|
|
3390
3390
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3391
3391
|
const parsedBody = parsedOutput.body;
|
|
@@ -3410,7 +3410,7 @@ exports.deserializeAws_restXmlDeleteBucketMetricsConfigurationCommand = deserial
|
|
|
3410
3410
|
const deserializeAws_restXmlDeleteBucketMetricsConfigurationCommandError = async (output, context) => {
|
|
3411
3411
|
const parsedOutput = {
|
|
3412
3412
|
...output,
|
|
3413
|
-
body: await
|
|
3413
|
+
body: await parseErrorBody(output.body, context),
|
|
3414
3414
|
};
|
|
3415
3415
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3416
3416
|
const parsedBody = parsedOutput.body;
|
|
@@ -3435,7 +3435,7 @@ exports.deserializeAws_restXmlDeleteBucketOwnershipControlsCommand = deserialize
|
|
|
3435
3435
|
const deserializeAws_restXmlDeleteBucketOwnershipControlsCommandError = async (output, context) => {
|
|
3436
3436
|
const parsedOutput = {
|
|
3437
3437
|
...output,
|
|
3438
|
-
body: await
|
|
3438
|
+
body: await parseErrorBody(output.body, context),
|
|
3439
3439
|
};
|
|
3440
3440
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3441
3441
|
const parsedBody = parsedOutput.body;
|
|
@@ -3460,7 +3460,7 @@ exports.deserializeAws_restXmlDeleteBucketPolicyCommand = deserializeAws_restXml
|
|
|
3460
3460
|
const deserializeAws_restXmlDeleteBucketPolicyCommandError = async (output, context) => {
|
|
3461
3461
|
const parsedOutput = {
|
|
3462
3462
|
...output,
|
|
3463
|
-
body: await
|
|
3463
|
+
body: await parseErrorBody(output.body, context),
|
|
3464
3464
|
};
|
|
3465
3465
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3466
3466
|
const parsedBody = parsedOutput.body;
|
|
@@ -3485,7 +3485,7 @@ exports.deserializeAws_restXmlDeleteBucketReplicationCommand = deserializeAws_re
|
|
|
3485
3485
|
const deserializeAws_restXmlDeleteBucketReplicationCommandError = async (output, context) => {
|
|
3486
3486
|
const parsedOutput = {
|
|
3487
3487
|
...output,
|
|
3488
|
-
body: await
|
|
3488
|
+
body: await parseErrorBody(output.body, context),
|
|
3489
3489
|
};
|
|
3490
3490
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3491
3491
|
const parsedBody = parsedOutput.body;
|
|
@@ -3510,7 +3510,7 @@ exports.deserializeAws_restXmlDeleteBucketTaggingCommand = deserializeAws_restXm
|
|
|
3510
3510
|
const deserializeAws_restXmlDeleteBucketTaggingCommandError = async (output, context) => {
|
|
3511
3511
|
const parsedOutput = {
|
|
3512
3512
|
...output,
|
|
3513
|
-
body: await
|
|
3513
|
+
body: await parseErrorBody(output.body, context),
|
|
3514
3514
|
};
|
|
3515
3515
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3516
3516
|
const parsedBody = parsedOutput.body;
|
|
@@ -3535,7 +3535,7 @@ exports.deserializeAws_restXmlDeleteBucketWebsiteCommand = deserializeAws_restXm
|
|
|
3535
3535
|
const deserializeAws_restXmlDeleteBucketWebsiteCommandError = async (output, context) => {
|
|
3536
3536
|
const parsedOutput = {
|
|
3537
3537
|
...output,
|
|
3538
|
-
body: await
|
|
3538
|
+
body: await parseErrorBody(output.body, context),
|
|
3539
3539
|
};
|
|
3540
3540
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3541
3541
|
const parsedBody = parsedOutput.body;
|
|
@@ -3566,7 +3566,7 @@ exports.deserializeAws_restXmlDeleteObjectCommand = deserializeAws_restXmlDelete
|
|
|
3566
3566
|
const deserializeAws_restXmlDeleteObjectCommandError = async (output, context) => {
|
|
3567
3567
|
const parsedOutput = {
|
|
3568
3568
|
...output,
|
|
3569
|
-
body: await
|
|
3569
|
+
body: await parseErrorBody(output.body, context),
|
|
3570
3570
|
};
|
|
3571
3571
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3572
3572
|
const parsedBody = parsedOutput.body;
|
|
@@ -3604,7 +3604,7 @@ exports.deserializeAws_restXmlDeleteObjectsCommand = deserializeAws_restXmlDelet
|
|
|
3604
3604
|
const deserializeAws_restXmlDeleteObjectsCommandError = async (output, context) => {
|
|
3605
3605
|
const parsedOutput = {
|
|
3606
3606
|
...output,
|
|
3607
|
-
body: await
|
|
3607
|
+
body: await parseErrorBody(output.body, context),
|
|
3608
3608
|
};
|
|
3609
3609
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3610
3610
|
const parsedBody = parsedOutput.body;
|
|
@@ -3630,7 +3630,7 @@ exports.deserializeAws_restXmlDeleteObjectTaggingCommand = deserializeAws_restXm
|
|
|
3630
3630
|
const deserializeAws_restXmlDeleteObjectTaggingCommandError = async (output, context) => {
|
|
3631
3631
|
const parsedOutput = {
|
|
3632
3632
|
...output,
|
|
3633
|
-
body: await
|
|
3633
|
+
body: await parseErrorBody(output.body, context),
|
|
3634
3634
|
};
|
|
3635
3635
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3636
3636
|
const parsedBody = parsedOutput.body;
|
|
@@ -3655,7 +3655,7 @@ exports.deserializeAws_restXmlDeletePublicAccessBlockCommand = deserializeAws_re
|
|
|
3655
3655
|
const deserializeAws_restXmlDeletePublicAccessBlockCommandError = async (output, context) => {
|
|
3656
3656
|
const parsedOutput = {
|
|
3657
3657
|
...output,
|
|
3658
|
-
body: await
|
|
3658
|
+
body: await parseErrorBody(output.body, context),
|
|
3659
3659
|
};
|
|
3660
3660
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3661
3661
|
const parsedBody = parsedOutput.body;
|
|
@@ -3683,7 +3683,7 @@ exports.deserializeAws_restXmlGetBucketAccelerateConfigurationCommand = deserial
|
|
|
3683
3683
|
const deserializeAws_restXmlGetBucketAccelerateConfigurationCommandError = async (output, context) => {
|
|
3684
3684
|
const parsedOutput = {
|
|
3685
3685
|
...output,
|
|
3686
|
-
body: await
|
|
3686
|
+
body: await parseErrorBody(output.body, context),
|
|
3687
3687
|
};
|
|
3688
3688
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3689
3689
|
const parsedBody = parsedOutput.body;
|
|
@@ -3717,7 +3717,7 @@ exports.deserializeAws_restXmlGetBucketAclCommand = deserializeAws_restXmlGetBuc
|
|
|
3717
3717
|
const deserializeAws_restXmlGetBucketAclCommandError = async (output, context) => {
|
|
3718
3718
|
const parsedOutput = {
|
|
3719
3719
|
...output,
|
|
3720
|
-
body: await
|
|
3720
|
+
body: await parseErrorBody(output.body, context),
|
|
3721
3721
|
};
|
|
3722
3722
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3723
3723
|
const parsedBody = parsedOutput.body;
|
|
@@ -3743,7 +3743,7 @@ exports.deserializeAws_restXmlGetBucketAnalyticsConfigurationCommand = deseriali
|
|
|
3743
3743
|
const deserializeAws_restXmlGetBucketAnalyticsConfigurationCommandError = async (output, context) => {
|
|
3744
3744
|
const parsedOutput = {
|
|
3745
3745
|
...output,
|
|
3746
|
-
body: await
|
|
3746
|
+
body: await parseErrorBody(output.body, context),
|
|
3747
3747
|
};
|
|
3748
3748
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3749
3749
|
const parsedBody = parsedOutput.body;
|
|
@@ -3774,7 +3774,7 @@ exports.deserializeAws_restXmlGetBucketCorsCommand = deserializeAws_restXmlGetBu
|
|
|
3774
3774
|
const deserializeAws_restXmlGetBucketCorsCommandError = async (output, context) => {
|
|
3775
3775
|
const parsedOutput = {
|
|
3776
3776
|
...output,
|
|
3777
|
-
body: await
|
|
3777
|
+
body: await parseErrorBody(output.body, context),
|
|
3778
3778
|
};
|
|
3779
3779
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3780
3780
|
const parsedBody = parsedOutput.body;
|
|
@@ -3800,7 +3800,7 @@ exports.deserializeAws_restXmlGetBucketEncryptionCommand = deserializeAws_restXm
|
|
|
3800
3800
|
const deserializeAws_restXmlGetBucketEncryptionCommandError = async (output, context) => {
|
|
3801
3801
|
const parsedOutput = {
|
|
3802
3802
|
...output,
|
|
3803
|
-
body: await
|
|
3803
|
+
body: await parseErrorBody(output.body, context),
|
|
3804
3804
|
};
|
|
3805
3805
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3806
3806
|
const parsedBody = parsedOutput.body;
|
|
@@ -3826,7 +3826,7 @@ exports.deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand =
|
|
|
3826
3826
|
const deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommandError = async (output, context) => {
|
|
3827
3827
|
const parsedOutput = {
|
|
3828
3828
|
...output,
|
|
3829
|
-
body: await
|
|
3829
|
+
body: await parseErrorBody(output.body, context),
|
|
3830
3830
|
};
|
|
3831
3831
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3832
3832
|
const parsedBody = parsedOutput.body;
|
|
@@ -3852,7 +3852,7 @@ exports.deserializeAws_restXmlGetBucketInventoryConfigurationCommand = deseriali
|
|
|
3852
3852
|
const deserializeAws_restXmlGetBucketInventoryConfigurationCommandError = async (output, context) => {
|
|
3853
3853
|
const parsedOutput = {
|
|
3854
3854
|
...output,
|
|
3855
|
-
body: await
|
|
3855
|
+
body: await parseErrorBody(output.body, context),
|
|
3856
3856
|
};
|
|
3857
3857
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3858
3858
|
const parsedBody = parsedOutput.body;
|
|
@@ -3883,7 +3883,7 @@ exports.deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = deseriali
|
|
|
3883
3883
|
const deserializeAws_restXmlGetBucketLifecycleConfigurationCommandError = async (output, context) => {
|
|
3884
3884
|
const parsedOutput = {
|
|
3885
3885
|
...output,
|
|
3886
|
-
body: await
|
|
3886
|
+
body: await parseErrorBody(output.body, context),
|
|
3887
3887
|
};
|
|
3888
3888
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3889
3889
|
const parsedBody = parsedOutput.body;
|
|
@@ -3911,7 +3911,7 @@ exports.deserializeAws_restXmlGetBucketLocationCommand = deserializeAws_restXmlG
|
|
|
3911
3911
|
const deserializeAws_restXmlGetBucketLocationCommandError = async (output, context) => {
|
|
3912
3912
|
const parsedOutput = {
|
|
3913
3913
|
...output,
|
|
3914
|
-
body: await
|
|
3914
|
+
body: await parseErrorBody(output.body, context),
|
|
3915
3915
|
};
|
|
3916
3916
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3917
3917
|
const parsedBody = parsedOutput.body;
|
|
@@ -3939,7 +3939,7 @@ exports.deserializeAws_restXmlGetBucketLoggingCommand = deserializeAws_restXmlGe
|
|
|
3939
3939
|
const deserializeAws_restXmlGetBucketLoggingCommandError = async (output, context) => {
|
|
3940
3940
|
const parsedOutput = {
|
|
3941
3941
|
...output,
|
|
3942
|
-
body: await
|
|
3942
|
+
body: await parseErrorBody(output.body, context),
|
|
3943
3943
|
};
|
|
3944
3944
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3945
3945
|
const parsedBody = parsedOutput.body;
|
|
@@ -3965,7 +3965,7 @@ exports.deserializeAws_restXmlGetBucketMetricsConfigurationCommand = deserialize
|
|
|
3965
3965
|
const deserializeAws_restXmlGetBucketMetricsConfigurationCommandError = async (output, context) => {
|
|
3966
3966
|
const parsedOutput = {
|
|
3967
3967
|
...output,
|
|
3968
|
-
body: await
|
|
3968
|
+
body: await parseErrorBody(output.body, context),
|
|
3969
3969
|
};
|
|
3970
3970
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3971
3971
|
const parsedBody = parsedOutput.body;
|
|
@@ -4011,7 +4011,7 @@ exports.deserializeAws_restXmlGetBucketNotificationConfigurationCommand = deseri
|
|
|
4011
4011
|
const deserializeAws_restXmlGetBucketNotificationConfigurationCommandError = async (output, context) => {
|
|
4012
4012
|
const parsedOutput = {
|
|
4013
4013
|
...output,
|
|
4014
|
-
body: await
|
|
4014
|
+
body: await parseErrorBody(output.body, context),
|
|
4015
4015
|
};
|
|
4016
4016
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4017
4017
|
const parsedBody = parsedOutput.body;
|
|
@@ -4037,7 +4037,7 @@ exports.deserializeAws_restXmlGetBucketOwnershipControlsCommand = deserializeAws
|
|
|
4037
4037
|
const deserializeAws_restXmlGetBucketOwnershipControlsCommandError = async (output, context) => {
|
|
4038
4038
|
const parsedOutput = {
|
|
4039
4039
|
...output,
|
|
4040
|
-
body: await
|
|
4040
|
+
body: await parseErrorBody(output.body, context),
|
|
4041
4041
|
};
|
|
4042
4042
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4043
4043
|
const parsedBody = parsedOutput.body;
|
|
@@ -4063,7 +4063,7 @@ exports.deserializeAws_restXmlGetBucketPolicyCommand = deserializeAws_restXmlGet
|
|
|
4063
4063
|
const deserializeAws_restXmlGetBucketPolicyCommandError = async (output, context) => {
|
|
4064
4064
|
const parsedOutput = {
|
|
4065
4065
|
...output,
|
|
4066
|
-
body: await
|
|
4066
|
+
body: await parseErrorBody(output.body, context),
|
|
4067
4067
|
};
|
|
4068
4068
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4069
4069
|
const parsedBody = parsedOutput.body;
|
|
@@ -4089,7 +4089,7 @@ exports.deserializeAws_restXmlGetBucketPolicyStatusCommand = deserializeAws_rest
|
|
|
4089
4089
|
const deserializeAws_restXmlGetBucketPolicyStatusCommandError = async (output, context) => {
|
|
4090
4090
|
const parsedOutput = {
|
|
4091
4091
|
...output,
|
|
4092
|
-
body: await
|
|
4092
|
+
body: await parseErrorBody(output.body, context),
|
|
4093
4093
|
};
|
|
4094
4094
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4095
4095
|
const parsedBody = parsedOutput.body;
|
|
@@ -4115,7 +4115,7 @@ exports.deserializeAws_restXmlGetBucketReplicationCommand = deserializeAws_restX
|
|
|
4115
4115
|
const deserializeAws_restXmlGetBucketReplicationCommandError = async (output, context) => {
|
|
4116
4116
|
const parsedOutput = {
|
|
4117
4117
|
...output,
|
|
4118
|
-
body: await
|
|
4118
|
+
body: await parseErrorBody(output.body, context),
|
|
4119
4119
|
};
|
|
4120
4120
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4121
4121
|
const parsedBody = parsedOutput.body;
|
|
@@ -4143,7 +4143,7 @@ exports.deserializeAws_restXmlGetBucketRequestPaymentCommand = deserializeAws_re
|
|
|
4143
4143
|
const deserializeAws_restXmlGetBucketRequestPaymentCommandError = async (output, context) => {
|
|
4144
4144
|
const parsedOutput = {
|
|
4145
4145
|
...output,
|
|
4146
|
-
body: await
|
|
4146
|
+
body: await parseErrorBody(output.body, context),
|
|
4147
4147
|
};
|
|
4148
4148
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4149
4149
|
const parsedBody = parsedOutput.body;
|
|
@@ -4174,7 +4174,7 @@ exports.deserializeAws_restXmlGetBucketTaggingCommand = deserializeAws_restXmlGe
|
|
|
4174
4174
|
const deserializeAws_restXmlGetBucketTaggingCommandError = async (output, context) => {
|
|
4175
4175
|
const parsedOutput = {
|
|
4176
4176
|
...output,
|
|
4177
|
-
body: await
|
|
4177
|
+
body: await parseErrorBody(output.body, context),
|
|
4178
4178
|
};
|
|
4179
4179
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4180
4180
|
const parsedBody = parsedOutput.body;
|
|
@@ -4205,7 +4205,7 @@ exports.deserializeAws_restXmlGetBucketVersioningCommand = deserializeAws_restXm
|
|
|
4205
4205
|
const deserializeAws_restXmlGetBucketVersioningCommandError = async (output, context) => {
|
|
4206
4206
|
const parsedOutput = {
|
|
4207
4207
|
...output,
|
|
4208
|
-
body: await
|
|
4208
|
+
body: await parseErrorBody(output.body, context),
|
|
4209
4209
|
};
|
|
4210
4210
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4211
4211
|
const parsedBody = parsedOutput.body;
|
|
@@ -4245,7 +4245,7 @@ exports.deserializeAws_restXmlGetBucketWebsiteCommand = deserializeAws_restXmlGe
|
|
|
4245
4245
|
const deserializeAws_restXmlGetBucketWebsiteCommandError = async (output, context) => {
|
|
4246
4246
|
const parsedOutput = {
|
|
4247
4247
|
...output,
|
|
4248
|
-
body: await
|
|
4248
|
+
body: await parseErrorBody(output.body, context),
|
|
4249
4249
|
};
|
|
4250
4250
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4251
4251
|
const parsedBody = parsedOutput.body;
|
|
@@ -4341,7 +4341,7 @@ exports.deserializeAws_restXmlGetObjectCommand = deserializeAws_restXmlGetObject
|
|
|
4341
4341
|
const deserializeAws_restXmlGetObjectCommandError = async (output, context) => {
|
|
4342
4342
|
const parsedOutput = {
|
|
4343
4343
|
...output,
|
|
4344
|
-
body: await
|
|
4344
|
+
body: await parseErrorBody(output.body, context),
|
|
4345
4345
|
};
|
|
4346
4346
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4347
4347
|
switch (errorCode) {
|
|
@@ -4385,7 +4385,7 @@ exports.deserializeAws_restXmlGetObjectAclCommand = deserializeAws_restXmlGetObj
|
|
|
4385
4385
|
const deserializeAws_restXmlGetObjectAclCommandError = async (output, context) => {
|
|
4386
4386
|
const parsedOutput = {
|
|
4387
4387
|
...output,
|
|
4388
|
-
body: await
|
|
4388
|
+
body: await parseErrorBody(output.body, context),
|
|
4389
4389
|
};
|
|
4390
4390
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4391
4391
|
switch (errorCode) {
|
|
@@ -4441,7 +4441,7 @@ exports.deserializeAws_restXmlGetObjectAttributesCommand = deserializeAws_restXm
|
|
|
4441
4441
|
const deserializeAws_restXmlGetObjectAttributesCommandError = async (output, context) => {
|
|
4442
4442
|
const parsedOutput = {
|
|
4443
4443
|
...output,
|
|
4444
|
-
body: await
|
|
4444
|
+
body: await parseErrorBody(output.body, context),
|
|
4445
4445
|
};
|
|
4446
4446
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4447
4447
|
switch (errorCode) {
|
|
@@ -4473,7 +4473,7 @@ exports.deserializeAws_restXmlGetObjectLegalHoldCommand = deserializeAws_restXml
|
|
|
4473
4473
|
const deserializeAws_restXmlGetObjectLegalHoldCommandError = async (output, context) => {
|
|
4474
4474
|
const parsedOutput = {
|
|
4475
4475
|
...output,
|
|
4476
|
-
body: await
|
|
4476
|
+
body: await parseErrorBody(output.body, context),
|
|
4477
4477
|
};
|
|
4478
4478
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4479
4479
|
const parsedBody = parsedOutput.body;
|
|
@@ -4499,7 +4499,7 @@ exports.deserializeAws_restXmlGetObjectLockConfigurationCommand = deserializeAws
|
|
|
4499
4499
|
const deserializeAws_restXmlGetObjectLockConfigurationCommandError = async (output, context) => {
|
|
4500
4500
|
const parsedOutput = {
|
|
4501
4501
|
...output,
|
|
4502
|
-
body: await
|
|
4502
|
+
body: await parseErrorBody(output.body, context),
|
|
4503
4503
|
};
|
|
4504
4504
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4505
4505
|
const parsedBody = parsedOutput.body;
|
|
@@ -4525,7 +4525,7 @@ exports.deserializeAws_restXmlGetObjectRetentionCommand = deserializeAws_restXml
|
|
|
4525
4525
|
const deserializeAws_restXmlGetObjectRetentionCommandError = async (output, context) => {
|
|
4526
4526
|
const parsedOutput = {
|
|
4527
4527
|
...output,
|
|
4528
|
-
body: await
|
|
4528
|
+
body: await parseErrorBody(output.body, context),
|
|
4529
4529
|
};
|
|
4530
4530
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4531
4531
|
const parsedBody = parsedOutput.body;
|
|
@@ -4557,7 +4557,7 @@ exports.deserializeAws_restXmlGetObjectTaggingCommand = deserializeAws_restXmlGe
|
|
|
4557
4557
|
const deserializeAws_restXmlGetObjectTaggingCommandError = async (output, context) => {
|
|
4558
4558
|
const parsedOutput = {
|
|
4559
4559
|
...output,
|
|
4560
|
-
body: await
|
|
4560
|
+
body: await parseErrorBody(output.body, context),
|
|
4561
4561
|
};
|
|
4562
4562
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4563
4563
|
const parsedBody = parsedOutput.body;
|
|
@@ -4584,7 +4584,7 @@ exports.deserializeAws_restXmlGetObjectTorrentCommand = deserializeAws_restXmlGe
|
|
|
4584
4584
|
const deserializeAws_restXmlGetObjectTorrentCommandError = async (output, context) => {
|
|
4585
4585
|
const parsedOutput = {
|
|
4586
4586
|
...output,
|
|
4587
|
-
body: await
|
|
4587
|
+
body: await parseErrorBody(output.body, context),
|
|
4588
4588
|
};
|
|
4589
4589
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4590
4590
|
const parsedBody = parsedOutput.body;
|
|
@@ -4610,7 +4610,7 @@ exports.deserializeAws_restXmlGetPublicAccessBlockCommand = deserializeAws_restX
|
|
|
4610
4610
|
const deserializeAws_restXmlGetPublicAccessBlockCommandError = async (output, context) => {
|
|
4611
4611
|
const parsedOutput = {
|
|
4612
4612
|
...output,
|
|
4613
|
-
body: await
|
|
4613
|
+
body: await parseErrorBody(output.body, context),
|
|
4614
4614
|
};
|
|
4615
4615
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4616
4616
|
const parsedBody = parsedOutput.body;
|
|
@@ -4635,7 +4635,7 @@ exports.deserializeAws_restXmlHeadBucketCommand = deserializeAws_restXmlHeadBuck
|
|
|
4635
4635
|
const deserializeAws_restXmlHeadBucketCommandError = async (output, context) => {
|
|
4636
4636
|
const parsedOutput = {
|
|
4637
4637
|
...output,
|
|
4638
|
-
body: await
|
|
4638
|
+
body: await parseErrorBody(output.body, context),
|
|
4639
4639
|
};
|
|
4640
4640
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4641
4641
|
switch (errorCode) {
|
|
@@ -4732,7 +4732,7 @@ exports.deserializeAws_restXmlHeadObjectCommand = deserializeAws_restXmlHeadObje
|
|
|
4732
4732
|
const deserializeAws_restXmlHeadObjectCommandError = async (output, context) => {
|
|
4733
4733
|
const parsedOutput = {
|
|
4734
4734
|
...output,
|
|
4735
|
-
body: await
|
|
4735
|
+
body: await parseErrorBody(output.body, context),
|
|
4736
4736
|
};
|
|
4737
4737
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4738
4738
|
switch (errorCode) {
|
|
@@ -4778,7 +4778,7 @@ exports.deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand = deseria
|
|
|
4778
4778
|
const deserializeAws_restXmlListBucketAnalyticsConfigurationsCommandError = async (output, context) => {
|
|
4779
4779
|
const parsedOutput = {
|
|
4780
4780
|
...output,
|
|
4781
|
-
body: await
|
|
4781
|
+
body: await parseErrorBody(output.body, context),
|
|
4782
4782
|
};
|
|
4783
4783
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4784
4784
|
const parsedBody = parsedOutput.body;
|
|
@@ -4818,7 +4818,7 @@ exports.deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand
|
|
|
4818
4818
|
const deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommandError = async (output, context) => {
|
|
4819
4819
|
const parsedOutput = {
|
|
4820
4820
|
...output,
|
|
4821
|
-
body: await
|
|
4821
|
+
body: await parseErrorBody(output.body, context),
|
|
4822
4822
|
};
|
|
4823
4823
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4824
4824
|
const parsedBody = parsedOutput.body;
|
|
@@ -4858,7 +4858,7 @@ exports.deserializeAws_restXmlListBucketInventoryConfigurationsCommand = deseria
|
|
|
4858
4858
|
const deserializeAws_restXmlListBucketInventoryConfigurationsCommandError = async (output, context) => {
|
|
4859
4859
|
const parsedOutput = {
|
|
4860
4860
|
...output,
|
|
4861
|
-
body: await
|
|
4861
|
+
body: await parseErrorBody(output.body, context),
|
|
4862
4862
|
};
|
|
4863
4863
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4864
4864
|
const parsedBody = parsedOutput.body;
|
|
@@ -4898,7 +4898,7 @@ exports.deserializeAws_restXmlListBucketMetricsConfigurationsCommand = deseriali
|
|
|
4898
4898
|
const deserializeAws_restXmlListBucketMetricsConfigurationsCommandError = async (output, context) => {
|
|
4899
4899
|
const parsedOutput = {
|
|
4900
4900
|
...output,
|
|
4901
|
-
body: await
|
|
4901
|
+
body: await parseErrorBody(output.body, context),
|
|
4902
4902
|
};
|
|
4903
4903
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4904
4904
|
const parsedBody = parsedOutput.body;
|
|
@@ -4932,7 +4932,7 @@ exports.deserializeAws_restXmlListBucketsCommand = deserializeAws_restXmlListBuc
|
|
|
4932
4932
|
const deserializeAws_restXmlListBucketsCommandError = async (output, context) => {
|
|
4933
4933
|
const parsedOutput = {
|
|
4934
4934
|
...output,
|
|
4935
|
-
body: await
|
|
4935
|
+
body: await parseErrorBody(output.body, context),
|
|
4936
4936
|
};
|
|
4937
4937
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4938
4938
|
const parsedBody = parsedOutput.body;
|
|
@@ -4999,7 +4999,7 @@ exports.deserializeAws_restXmlListMultipartUploadsCommand = deserializeAws_restX
|
|
|
4999
4999
|
const deserializeAws_restXmlListMultipartUploadsCommandError = async (output, context) => {
|
|
5000
5000
|
const parsedOutput = {
|
|
5001
5001
|
...output,
|
|
5002
|
-
body: await
|
|
5002
|
+
body: await parseErrorBody(output.body, context),
|
|
5003
5003
|
};
|
|
5004
5004
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5005
5005
|
const parsedBody = parsedOutput.body;
|
|
@@ -5060,7 +5060,7 @@ exports.deserializeAws_restXmlListObjectsCommand = deserializeAws_restXmlListObj
|
|
|
5060
5060
|
const deserializeAws_restXmlListObjectsCommandError = async (output, context) => {
|
|
5061
5061
|
const parsedOutput = {
|
|
5062
5062
|
...output,
|
|
5063
|
-
body: await
|
|
5063
|
+
body: await parseErrorBody(output.body, context),
|
|
5064
5064
|
};
|
|
5065
5065
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5066
5066
|
switch (errorCode) {
|
|
@@ -5133,7 +5133,7 @@ exports.deserializeAws_restXmlListObjectsV2Command = deserializeAws_restXmlListO
|
|
|
5133
5133
|
const deserializeAws_restXmlListObjectsV2CommandError = async (output, context) => {
|
|
5134
5134
|
const parsedOutput = {
|
|
5135
5135
|
...output,
|
|
5136
|
-
body: await
|
|
5136
|
+
body: await parseErrorBody(output.body, context),
|
|
5137
5137
|
};
|
|
5138
5138
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5139
5139
|
switch (errorCode) {
|
|
@@ -5212,7 +5212,7 @@ exports.deserializeAws_restXmlListObjectVersionsCommand = deserializeAws_restXml
|
|
|
5212
5212
|
const deserializeAws_restXmlListObjectVersionsCommandError = async (output, context) => {
|
|
5213
5213
|
const parsedOutput = {
|
|
5214
5214
|
...output,
|
|
5215
|
-
body: await
|
|
5215
|
+
body: await parseErrorBody(output.body, context),
|
|
5216
5216
|
};
|
|
5217
5217
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5218
5218
|
const parsedBody = parsedOutput.body;
|
|
@@ -5282,7 +5282,7 @@ exports.deserializeAws_restXmlListPartsCommand = deserializeAws_restXmlListParts
|
|
|
5282
5282
|
const deserializeAws_restXmlListPartsCommandError = async (output, context) => {
|
|
5283
5283
|
const parsedOutput = {
|
|
5284
5284
|
...output,
|
|
5285
|
-
body: await
|
|
5285
|
+
body: await parseErrorBody(output.body, context),
|
|
5286
5286
|
};
|
|
5287
5287
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5288
5288
|
const parsedBody = parsedOutput.body;
|
|
@@ -5307,7 +5307,7 @@ exports.deserializeAws_restXmlPutBucketAccelerateConfigurationCommand = deserial
|
|
|
5307
5307
|
const deserializeAws_restXmlPutBucketAccelerateConfigurationCommandError = async (output, context) => {
|
|
5308
5308
|
const parsedOutput = {
|
|
5309
5309
|
...output,
|
|
5310
|
-
body: await
|
|
5310
|
+
body: await parseErrorBody(output.body, context),
|
|
5311
5311
|
};
|
|
5312
5312
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5313
5313
|
const parsedBody = parsedOutput.body;
|
|
@@ -5332,7 +5332,7 @@ exports.deserializeAws_restXmlPutBucketAclCommand = deserializeAws_restXmlPutBuc
|
|
|
5332
5332
|
const deserializeAws_restXmlPutBucketAclCommandError = async (output, context) => {
|
|
5333
5333
|
const parsedOutput = {
|
|
5334
5334
|
...output,
|
|
5335
|
-
body: await
|
|
5335
|
+
body: await parseErrorBody(output.body, context),
|
|
5336
5336
|
};
|
|
5337
5337
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5338
5338
|
const parsedBody = parsedOutput.body;
|
|
@@ -5357,7 +5357,7 @@ exports.deserializeAws_restXmlPutBucketAnalyticsConfigurationCommand = deseriali
|
|
|
5357
5357
|
const deserializeAws_restXmlPutBucketAnalyticsConfigurationCommandError = async (output, context) => {
|
|
5358
5358
|
const parsedOutput = {
|
|
5359
5359
|
...output,
|
|
5360
|
-
body: await
|
|
5360
|
+
body: await parseErrorBody(output.body, context),
|
|
5361
5361
|
};
|
|
5362
5362
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5363
5363
|
const parsedBody = parsedOutput.body;
|
|
@@ -5382,7 +5382,7 @@ exports.deserializeAws_restXmlPutBucketCorsCommand = deserializeAws_restXmlPutBu
|
|
|
5382
5382
|
const deserializeAws_restXmlPutBucketCorsCommandError = async (output, context) => {
|
|
5383
5383
|
const parsedOutput = {
|
|
5384
5384
|
...output,
|
|
5385
|
-
body: await
|
|
5385
|
+
body: await parseErrorBody(output.body, context),
|
|
5386
5386
|
};
|
|
5387
5387
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5388
5388
|
const parsedBody = parsedOutput.body;
|
|
@@ -5407,7 +5407,7 @@ exports.deserializeAws_restXmlPutBucketEncryptionCommand = deserializeAws_restXm
|
|
|
5407
5407
|
const deserializeAws_restXmlPutBucketEncryptionCommandError = async (output, context) => {
|
|
5408
5408
|
const parsedOutput = {
|
|
5409
5409
|
...output,
|
|
5410
|
-
body: await
|
|
5410
|
+
body: await parseErrorBody(output.body, context),
|
|
5411
5411
|
};
|
|
5412
5412
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5413
5413
|
const parsedBody = parsedOutput.body;
|
|
@@ -5432,7 +5432,7 @@ exports.deserializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand =
|
|
|
5432
5432
|
const deserializeAws_restXmlPutBucketIntelligentTieringConfigurationCommandError = async (output, context) => {
|
|
5433
5433
|
const parsedOutput = {
|
|
5434
5434
|
...output,
|
|
5435
|
-
body: await
|
|
5435
|
+
body: await parseErrorBody(output.body, context),
|
|
5436
5436
|
};
|
|
5437
5437
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5438
5438
|
const parsedBody = parsedOutput.body;
|
|
@@ -5457,7 +5457,7 @@ exports.deserializeAws_restXmlPutBucketInventoryConfigurationCommand = deseriali
|
|
|
5457
5457
|
const deserializeAws_restXmlPutBucketInventoryConfigurationCommandError = async (output, context) => {
|
|
5458
5458
|
const parsedOutput = {
|
|
5459
5459
|
...output,
|
|
5460
|
-
body: await
|
|
5460
|
+
body: await parseErrorBody(output.body, context),
|
|
5461
5461
|
};
|
|
5462
5462
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5463
5463
|
const parsedBody = parsedOutput.body;
|
|
@@ -5482,7 +5482,7 @@ exports.deserializeAws_restXmlPutBucketLifecycleConfigurationCommand = deseriali
|
|
|
5482
5482
|
const deserializeAws_restXmlPutBucketLifecycleConfigurationCommandError = async (output, context) => {
|
|
5483
5483
|
const parsedOutput = {
|
|
5484
5484
|
...output,
|
|
5485
|
-
body: await
|
|
5485
|
+
body: await parseErrorBody(output.body, context),
|
|
5486
5486
|
};
|
|
5487
5487
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5488
5488
|
const parsedBody = parsedOutput.body;
|
|
@@ -5507,7 +5507,7 @@ exports.deserializeAws_restXmlPutBucketLoggingCommand = deserializeAws_restXmlPu
|
|
|
5507
5507
|
const deserializeAws_restXmlPutBucketLoggingCommandError = async (output, context) => {
|
|
5508
5508
|
const parsedOutput = {
|
|
5509
5509
|
...output,
|
|
5510
|
-
body: await
|
|
5510
|
+
body: await parseErrorBody(output.body, context),
|
|
5511
5511
|
};
|
|
5512
5512
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5513
5513
|
const parsedBody = parsedOutput.body;
|
|
@@ -5532,7 +5532,7 @@ exports.deserializeAws_restXmlPutBucketMetricsConfigurationCommand = deserialize
|
|
|
5532
5532
|
const deserializeAws_restXmlPutBucketMetricsConfigurationCommandError = async (output, context) => {
|
|
5533
5533
|
const parsedOutput = {
|
|
5534
5534
|
...output,
|
|
5535
|
-
body: await
|
|
5535
|
+
body: await parseErrorBody(output.body, context),
|
|
5536
5536
|
};
|
|
5537
5537
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5538
5538
|
const parsedBody = parsedOutput.body;
|
|
@@ -5557,7 +5557,7 @@ exports.deserializeAws_restXmlPutBucketNotificationConfigurationCommand = deseri
|
|
|
5557
5557
|
const deserializeAws_restXmlPutBucketNotificationConfigurationCommandError = async (output, context) => {
|
|
5558
5558
|
const parsedOutput = {
|
|
5559
5559
|
...output,
|
|
5560
|
-
body: await
|
|
5560
|
+
body: await parseErrorBody(output.body, context),
|
|
5561
5561
|
};
|
|
5562
5562
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5563
5563
|
const parsedBody = parsedOutput.body;
|
|
@@ -5582,7 +5582,7 @@ exports.deserializeAws_restXmlPutBucketOwnershipControlsCommand = deserializeAws
|
|
|
5582
5582
|
const deserializeAws_restXmlPutBucketOwnershipControlsCommandError = async (output, context) => {
|
|
5583
5583
|
const parsedOutput = {
|
|
5584
5584
|
...output,
|
|
5585
|
-
body: await
|
|
5585
|
+
body: await parseErrorBody(output.body, context),
|
|
5586
5586
|
};
|
|
5587
5587
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5588
5588
|
const parsedBody = parsedOutput.body;
|
|
@@ -5607,7 +5607,7 @@ exports.deserializeAws_restXmlPutBucketPolicyCommand = deserializeAws_restXmlPut
|
|
|
5607
5607
|
const deserializeAws_restXmlPutBucketPolicyCommandError = async (output, context) => {
|
|
5608
5608
|
const parsedOutput = {
|
|
5609
5609
|
...output,
|
|
5610
|
-
body: await
|
|
5610
|
+
body: await parseErrorBody(output.body, context),
|
|
5611
5611
|
};
|
|
5612
5612
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5613
5613
|
const parsedBody = parsedOutput.body;
|
|
@@ -5632,7 +5632,7 @@ exports.deserializeAws_restXmlPutBucketReplicationCommand = deserializeAws_restX
|
|
|
5632
5632
|
const deserializeAws_restXmlPutBucketReplicationCommandError = async (output, context) => {
|
|
5633
5633
|
const parsedOutput = {
|
|
5634
5634
|
...output,
|
|
5635
|
-
body: await
|
|
5635
|
+
body: await parseErrorBody(output.body, context),
|
|
5636
5636
|
};
|
|
5637
5637
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5638
5638
|
const parsedBody = parsedOutput.body;
|
|
@@ -5657,7 +5657,7 @@ exports.deserializeAws_restXmlPutBucketRequestPaymentCommand = deserializeAws_re
|
|
|
5657
5657
|
const deserializeAws_restXmlPutBucketRequestPaymentCommandError = async (output, context) => {
|
|
5658
5658
|
const parsedOutput = {
|
|
5659
5659
|
...output,
|
|
5660
|
-
body: await
|
|
5660
|
+
body: await parseErrorBody(output.body, context),
|
|
5661
5661
|
};
|
|
5662
5662
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5663
5663
|
const parsedBody = parsedOutput.body;
|
|
@@ -5682,7 +5682,7 @@ exports.deserializeAws_restXmlPutBucketTaggingCommand = deserializeAws_restXmlPu
|
|
|
5682
5682
|
const deserializeAws_restXmlPutBucketTaggingCommandError = async (output, context) => {
|
|
5683
5683
|
const parsedOutput = {
|
|
5684
5684
|
...output,
|
|
5685
|
-
body: await
|
|
5685
|
+
body: await parseErrorBody(output.body, context),
|
|
5686
5686
|
};
|
|
5687
5687
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5688
5688
|
const parsedBody = parsedOutput.body;
|
|
@@ -5707,7 +5707,7 @@ exports.deserializeAws_restXmlPutBucketVersioningCommand = deserializeAws_restXm
|
|
|
5707
5707
|
const deserializeAws_restXmlPutBucketVersioningCommandError = async (output, context) => {
|
|
5708
5708
|
const parsedOutput = {
|
|
5709
5709
|
...output,
|
|
5710
|
-
body: await
|
|
5710
|
+
body: await parseErrorBody(output.body, context),
|
|
5711
5711
|
};
|
|
5712
5712
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5713
5713
|
const parsedBody = parsedOutput.body;
|
|
@@ -5732,7 +5732,7 @@ exports.deserializeAws_restXmlPutBucketWebsiteCommand = deserializeAws_restXmlPu
|
|
|
5732
5732
|
const deserializeAws_restXmlPutBucketWebsiteCommandError = async (output, context) => {
|
|
5733
5733
|
const parsedOutput = {
|
|
5734
5734
|
...output,
|
|
5735
|
-
body: await
|
|
5735
|
+
body: await parseErrorBody(output.body, context),
|
|
5736
5736
|
};
|
|
5737
5737
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5738
5738
|
const parsedBody = parsedOutput.body;
|
|
@@ -5774,7 +5774,7 @@ exports.deserializeAws_restXmlPutObjectCommand = deserializeAws_restXmlPutObject
|
|
|
5774
5774
|
const deserializeAws_restXmlPutObjectCommandError = async (output, context) => {
|
|
5775
5775
|
const parsedOutput = {
|
|
5776
5776
|
...output,
|
|
5777
|
-
body: await
|
|
5777
|
+
body: await parseErrorBody(output.body, context),
|
|
5778
5778
|
};
|
|
5779
5779
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5780
5780
|
const parsedBody = parsedOutput.body;
|
|
@@ -5800,7 +5800,7 @@ exports.deserializeAws_restXmlPutObjectAclCommand = deserializeAws_restXmlPutObj
|
|
|
5800
5800
|
const deserializeAws_restXmlPutObjectAclCommandError = async (output, context) => {
|
|
5801
5801
|
const parsedOutput = {
|
|
5802
5802
|
...output,
|
|
5803
|
-
body: await
|
|
5803
|
+
body: await parseErrorBody(output.body, context),
|
|
5804
5804
|
};
|
|
5805
5805
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5806
5806
|
switch (errorCode) {
|
|
@@ -5832,7 +5832,7 @@ exports.deserializeAws_restXmlPutObjectLegalHoldCommand = deserializeAws_restXml
|
|
|
5832
5832
|
const deserializeAws_restXmlPutObjectLegalHoldCommandError = async (output, context) => {
|
|
5833
5833
|
const parsedOutput = {
|
|
5834
5834
|
...output,
|
|
5835
|
-
body: await
|
|
5835
|
+
body: await parseErrorBody(output.body, context),
|
|
5836
5836
|
};
|
|
5837
5837
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5838
5838
|
const parsedBody = parsedOutput.body;
|
|
@@ -5858,7 +5858,7 @@ exports.deserializeAws_restXmlPutObjectLockConfigurationCommand = deserializeAws
|
|
|
5858
5858
|
const deserializeAws_restXmlPutObjectLockConfigurationCommandError = async (output, context) => {
|
|
5859
5859
|
const parsedOutput = {
|
|
5860
5860
|
...output,
|
|
5861
|
-
body: await
|
|
5861
|
+
body: await parseErrorBody(output.body, context),
|
|
5862
5862
|
};
|
|
5863
5863
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5864
5864
|
const parsedBody = parsedOutput.body;
|
|
@@ -5884,7 +5884,7 @@ exports.deserializeAws_restXmlPutObjectRetentionCommand = deserializeAws_restXml
|
|
|
5884
5884
|
const deserializeAws_restXmlPutObjectRetentionCommandError = async (output, context) => {
|
|
5885
5885
|
const parsedOutput = {
|
|
5886
5886
|
...output,
|
|
5887
|
-
body: await
|
|
5887
|
+
body: await parseErrorBody(output.body, context),
|
|
5888
5888
|
};
|
|
5889
5889
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5890
5890
|
const parsedBody = parsedOutput.body;
|
|
@@ -5910,7 +5910,7 @@ exports.deserializeAws_restXmlPutObjectTaggingCommand = deserializeAws_restXmlPu
|
|
|
5910
5910
|
const deserializeAws_restXmlPutObjectTaggingCommandError = async (output, context) => {
|
|
5911
5911
|
const parsedOutput = {
|
|
5912
5912
|
...output,
|
|
5913
|
-
body: await
|
|
5913
|
+
body: await parseErrorBody(output.body, context),
|
|
5914
5914
|
};
|
|
5915
5915
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5916
5916
|
const parsedBody = parsedOutput.body;
|
|
@@ -5935,7 +5935,7 @@ exports.deserializeAws_restXmlPutPublicAccessBlockCommand = deserializeAws_restX
|
|
|
5935
5935
|
const deserializeAws_restXmlPutPublicAccessBlockCommandError = async (output, context) => {
|
|
5936
5936
|
const parsedOutput = {
|
|
5937
5937
|
...output,
|
|
5938
|
-
body: await
|
|
5938
|
+
body: await parseErrorBody(output.body, context),
|
|
5939
5939
|
};
|
|
5940
5940
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5941
5941
|
const parsedBody = parsedOutput.body;
|
|
@@ -5962,7 +5962,7 @@ exports.deserializeAws_restXmlRestoreObjectCommand = deserializeAws_restXmlResto
|
|
|
5962
5962
|
const deserializeAws_restXmlRestoreObjectCommandError = async (output, context) => {
|
|
5963
5963
|
const parsedOutput = {
|
|
5964
5964
|
...output,
|
|
5965
|
-
body: await
|
|
5965
|
+
body: await parseErrorBody(output.body, context),
|
|
5966
5966
|
};
|
|
5967
5967
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5968
5968
|
switch (errorCode) {
|
|
@@ -5994,7 +5994,7 @@ exports.deserializeAws_restXmlSelectObjectContentCommand = deserializeAws_restXm
|
|
|
5994
5994
|
const deserializeAws_restXmlSelectObjectContentCommandError = async (output, context) => {
|
|
5995
5995
|
const parsedOutput = {
|
|
5996
5996
|
...output,
|
|
5997
|
-
body: await
|
|
5997
|
+
body: await parseErrorBody(output.body, context),
|
|
5998
5998
|
};
|
|
5999
5999
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6000
6000
|
const parsedBody = parsedOutput.body;
|
|
@@ -6033,7 +6033,7 @@ exports.deserializeAws_restXmlUploadPartCommand = deserializeAws_restXmlUploadPa
|
|
|
6033
6033
|
const deserializeAws_restXmlUploadPartCommandError = async (output, context) => {
|
|
6034
6034
|
const parsedOutput = {
|
|
6035
6035
|
...output,
|
|
6036
|
-
body: await
|
|
6036
|
+
body: await parseErrorBody(output.body, context),
|
|
6037
6037
|
};
|
|
6038
6038
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6039
6039
|
const parsedBody = parsedOutput.body;
|
|
@@ -6069,7 +6069,7 @@ exports.deserializeAws_restXmlUploadPartCopyCommand = deserializeAws_restXmlUplo
|
|
|
6069
6069
|
const deserializeAws_restXmlUploadPartCopyCommandError = async (output, context) => {
|
|
6070
6070
|
const parsedOutput = {
|
|
6071
6071
|
...output,
|
|
6072
|
-
body: await
|
|
6072
|
+
body: await parseErrorBody(output.body, context),
|
|
6073
6073
|
};
|
|
6074
6074
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6075
6075
|
const parsedBody = parsedOutput.body;
|
|
@@ -6094,7 +6094,7 @@ exports.deserializeAws_restXmlWriteGetObjectResponseCommand = deserializeAws_res
|
|
|
6094
6094
|
const deserializeAws_restXmlWriteGetObjectResponseCommandError = async (output, context) => {
|
|
6095
6095
|
const parsedOutput = {
|
|
6096
6096
|
...output,
|
|
6097
|
-
body: await
|
|
6097
|
+
body: await parseErrorBody(output.body, context),
|
|
6098
6098
|
};
|
|
6099
6099
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6100
6100
|
const parsedBody = parsedOutput.body;
|
|
@@ -10082,6 +10082,14 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
10082
10082
|
}
|
|
10083
10083
|
return {};
|
|
10084
10084
|
});
|
|
10085
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
10086
|
+
var _a;
|
|
10087
|
+
const value = await parseBody(errorBody, context);
|
|
10088
|
+
if (value.Error) {
|
|
10089
|
+
value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
|
|
10090
|
+
}
|
|
10091
|
+
return value;
|
|
10092
|
+
};
|
|
10085
10093
|
const loadRestXmlErrorCode = (output, data) => {
|
|
10086
10094
|
if (data.Code !== undefined) {
|
|
10087
10095
|
return data.Code;
|