@aws-sdk/client-cloudfront 3.179.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 +26 -0
- package/dist-cjs/protocols/Aws_restXml.js +109 -101
- package/dist-es/protocols/Aws_restXml.js +119 -104
- package/package.json +7 -7
|
@@ -2365,7 +2365,7 @@ exports.deserializeAws_restXmlAssociateAliasCommand = deserializeAws_restXmlAsso
|
|
|
2365
2365
|
const deserializeAws_restXmlAssociateAliasCommandError = async (output, context) => {
|
|
2366
2366
|
const parsedOutput = {
|
|
2367
2367
|
...output,
|
|
2368
|
-
body: await
|
|
2368
|
+
body: await parseErrorBody(output.body, context),
|
|
2369
2369
|
};
|
|
2370
2370
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2371
2371
|
switch (errorCode) {
|
|
@@ -2411,7 +2411,7 @@ exports.deserializeAws_restXmlCreateCachePolicyCommand = deserializeAws_restXmlC
|
|
|
2411
2411
|
const deserializeAws_restXmlCreateCachePolicyCommandError = async (output, context) => {
|
|
2412
2412
|
const parsedOutput = {
|
|
2413
2413
|
...output,
|
|
2414
|
-
body: await
|
|
2414
|
+
body: await parseErrorBody(output.body, context),
|
|
2415
2415
|
};
|
|
2416
2416
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2417
2417
|
switch (errorCode) {
|
|
@@ -2466,7 +2466,7 @@ exports.deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = dese
|
|
|
2466
2466
|
const deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommandError = async (output, context) => {
|
|
2467
2467
|
const parsedOutput = {
|
|
2468
2468
|
...output,
|
|
2469
|
-
body: await
|
|
2469
|
+
body: await parseErrorBody(output.body, context),
|
|
2470
2470
|
};
|
|
2471
2471
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2472
2472
|
switch (errorCode) {
|
|
@@ -2512,7 +2512,7 @@ exports.deserializeAws_restXmlCreateDistributionCommand = deserializeAws_restXml
|
|
|
2512
2512
|
const deserializeAws_restXmlCreateDistributionCommandError = async (output, context) => {
|
|
2513
2513
|
const parsedOutput = {
|
|
2514
2514
|
...output,
|
|
2515
|
-
body: await
|
|
2515
|
+
body: await parseErrorBody(output.body, context),
|
|
2516
2516
|
};
|
|
2517
2517
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2518
2518
|
switch (errorCode) {
|
|
@@ -2732,7 +2732,7 @@ exports.deserializeAws_restXmlCreateDistributionWithTagsCommand = deserializeAws
|
|
|
2732
2732
|
const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (output, context) => {
|
|
2733
2733
|
const parsedOutput = {
|
|
2734
2734
|
...output,
|
|
2735
|
-
body: await
|
|
2735
|
+
body: await parseErrorBody(output.body, context),
|
|
2736
2736
|
};
|
|
2737
2737
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2738
2738
|
switch (errorCode) {
|
|
@@ -2814,12 +2814,12 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
|
|
|
2814
2814
|
case "InvalidResponseCode":
|
|
2815
2815
|
case "com.amazonaws.cloudfront#InvalidResponseCode":
|
|
2816
2816
|
throw await deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context);
|
|
2817
|
-
case "InvalidTagging":
|
|
2818
|
-
case "com.amazonaws.cloudfront#InvalidTagging":
|
|
2819
|
-
throw await deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context);
|
|
2820
2817
|
case "InvalidTTLOrder":
|
|
2821
2818
|
case "com.amazonaws.cloudfront#InvalidTTLOrder":
|
|
2822
2819
|
throw await deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context);
|
|
2820
|
+
case "InvalidTagging":
|
|
2821
|
+
case "com.amazonaws.cloudfront#InvalidTagging":
|
|
2822
|
+
throw await deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context);
|
|
2823
2823
|
case "InvalidViewerCertificate":
|
|
2824
2824
|
case "com.amazonaws.cloudfront#InvalidViewerCertificate":
|
|
2825
2825
|
throw await deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context);
|
|
@@ -2949,7 +2949,7 @@ exports.deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = deserial
|
|
|
2949
2949
|
const deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommandError = async (output, context) => {
|
|
2950
2950
|
const parsedOutput = {
|
|
2951
2951
|
...output,
|
|
2952
|
-
body: await
|
|
2952
|
+
body: await parseErrorBody(output.body, context),
|
|
2953
2953
|
};
|
|
2954
2954
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2955
2955
|
switch (errorCode) {
|
|
@@ -3004,7 +3004,7 @@ exports.deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = deseria
|
|
|
3004
3004
|
const deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommandError = async (output, context) => {
|
|
3005
3005
|
const parsedOutput = {
|
|
3006
3006
|
...output,
|
|
3007
|
-
body: await
|
|
3007
|
+
body: await parseErrorBody(output.body, context),
|
|
3008
3008
|
};
|
|
3009
3009
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3010
3010
|
switch (errorCode) {
|
|
@@ -3059,7 +3059,7 @@ exports.deserializeAws_restXmlCreateFunctionCommand = deserializeAws_restXmlCrea
|
|
|
3059
3059
|
const deserializeAws_restXmlCreateFunctionCommandError = async (output, context) => {
|
|
3060
3060
|
const parsedOutput = {
|
|
3061
3061
|
...output,
|
|
3062
|
-
body: await
|
|
3062
|
+
body: await parseErrorBody(output.body, context),
|
|
3063
3063
|
};
|
|
3064
3064
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3065
3065
|
switch (errorCode) {
|
|
@@ -3104,7 +3104,7 @@ exports.deserializeAws_restXmlCreateInvalidationCommand = deserializeAws_restXml
|
|
|
3104
3104
|
const deserializeAws_restXmlCreateInvalidationCommandError = async (output, context) => {
|
|
3105
3105
|
const parsedOutput = {
|
|
3106
3106
|
...output,
|
|
3107
|
-
body: await
|
|
3107
|
+
body: await parseErrorBody(output.body, context),
|
|
3108
3108
|
};
|
|
3109
3109
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3110
3110
|
switch (errorCode) {
|
|
@@ -3156,7 +3156,7 @@ exports.deserializeAws_restXmlCreateKeyGroupCommand = deserializeAws_restXmlCrea
|
|
|
3156
3156
|
const deserializeAws_restXmlCreateKeyGroupCommandError = async (output, context) => {
|
|
3157
3157
|
const parsedOutput = {
|
|
3158
3158
|
...output,
|
|
3159
|
-
body: await
|
|
3159
|
+
body: await parseErrorBody(output.body, context),
|
|
3160
3160
|
};
|
|
3161
3161
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3162
3162
|
switch (errorCode) {
|
|
@@ -3197,7 +3197,7 @@ exports.deserializeAws_restXmlCreateMonitoringSubscriptionCommand = deserializeA
|
|
|
3197
3197
|
const deserializeAws_restXmlCreateMonitoringSubscriptionCommandError = async (output, context) => {
|
|
3198
3198
|
const parsedOutput = {
|
|
3199
3199
|
...output,
|
|
3200
|
-
body: await
|
|
3200
|
+
body: await parseErrorBody(output.body, context),
|
|
3201
3201
|
};
|
|
3202
3202
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3203
3203
|
switch (errorCode) {
|
|
@@ -3240,7 +3240,7 @@ exports.deserializeAws_restXmlCreateOriginAccessControlCommand = deserializeAws_
|
|
|
3240
3240
|
const deserializeAws_restXmlCreateOriginAccessControlCommandError = async (output, context) => {
|
|
3241
3241
|
const parsedOutput = {
|
|
3242
3242
|
...output,
|
|
3243
|
-
body: await
|
|
3243
|
+
body: await parseErrorBody(output.body, context),
|
|
3244
3244
|
};
|
|
3245
3245
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3246
3246
|
switch (errorCode) {
|
|
@@ -3280,7 +3280,7 @@ exports.deserializeAws_restXmlCreateOriginRequestPolicyCommand = deserializeAws_
|
|
|
3280
3280
|
const deserializeAws_restXmlCreateOriginRequestPolicyCommandError = async (output, context) => {
|
|
3281
3281
|
const parsedOutput = {
|
|
3282
3282
|
...output,
|
|
3283
|
-
body: await
|
|
3283
|
+
body: await parseErrorBody(output.body, context),
|
|
3284
3284
|
};
|
|
3285
3285
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3286
3286
|
switch (errorCode) {
|
|
@@ -3335,7 +3335,7 @@ exports.deserializeAws_restXmlCreatePublicKeyCommand = deserializeAws_restXmlCre
|
|
|
3335
3335
|
const deserializeAws_restXmlCreatePublicKeyCommandError = 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
|
switch (errorCode) {
|
|
@@ -3375,7 +3375,7 @@ exports.deserializeAws_restXmlCreateRealtimeLogConfigCommand = deserializeAws_re
|
|
|
3375
3375
|
const deserializeAws_restXmlCreateRealtimeLogConfigCommandError = async (output, context) => {
|
|
3376
3376
|
const parsedOutput = {
|
|
3377
3377
|
...output,
|
|
3378
|
-
body: await
|
|
3378
|
+
body: await parseErrorBody(output.body, context),
|
|
3379
3379
|
};
|
|
3380
3380
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3381
3381
|
switch (errorCode) {
|
|
@@ -3418,7 +3418,7 @@ exports.deserializeAws_restXmlCreateResponseHeadersPolicyCommand = deserializeAw
|
|
|
3418
3418
|
const deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = async (output, context) => {
|
|
3419
3419
|
const parsedOutput = {
|
|
3420
3420
|
...output,
|
|
3421
|
-
body: await
|
|
3421
|
+
body: await parseErrorBody(output.body, context),
|
|
3422
3422
|
};
|
|
3423
3423
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3424
3424
|
switch (errorCode) {
|
|
@@ -3470,7 +3470,7 @@ exports.deserializeAws_restXmlCreateStreamingDistributionCommand = deserializeAw
|
|
|
3470
3470
|
const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (output, context) => {
|
|
3471
3471
|
const parsedOutput = {
|
|
3472
3472
|
...output,
|
|
3473
|
-
body: await
|
|
3473
|
+
body: await parseErrorBody(output.body, context),
|
|
3474
3474
|
};
|
|
3475
3475
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3476
3476
|
switch (errorCode) {
|
|
@@ -3540,7 +3540,7 @@ exports.deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand = deser
|
|
|
3540
3540
|
const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = async (output, context) => {
|
|
3541
3541
|
const parsedOutput = {
|
|
3542
3542
|
...output,
|
|
3543
|
-
body: await
|
|
3543
|
+
body: await parseErrorBody(output.body, context),
|
|
3544
3544
|
};
|
|
3545
3545
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3546
3546
|
switch (errorCode) {
|
|
@@ -3610,7 +3610,7 @@ exports.deserializeAws_restXmlDeleteCachePolicyCommand = deserializeAws_restXmlD
|
|
|
3610
3610
|
const deserializeAws_restXmlDeleteCachePolicyCommandError = async (output, context) => {
|
|
3611
3611
|
const parsedOutput = {
|
|
3612
3612
|
...output,
|
|
3613
|
-
body: await
|
|
3613
|
+
body: await parseErrorBody(output.body, context),
|
|
3614
3614
|
};
|
|
3615
3615
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3616
3616
|
switch (errorCode) {
|
|
@@ -3656,7 +3656,7 @@ exports.deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = dese
|
|
|
3656
3656
|
const deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommandError = async (output, context) => {
|
|
3657
3657
|
const parsedOutput = {
|
|
3658
3658
|
...output,
|
|
3659
|
-
body: await
|
|
3659
|
+
body: await parseErrorBody(output.body, context),
|
|
3660
3660
|
};
|
|
3661
3661
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3662
3662
|
switch (errorCode) {
|
|
@@ -3699,7 +3699,7 @@ exports.deserializeAws_restXmlDeleteDistributionCommand = deserializeAws_restXml
|
|
|
3699
3699
|
const deserializeAws_restXmlDeleteDistributionCommandError = async (output, context) => {
|
|
3700
3700
|
const parsedOutput = {
|
|
3701
3701
|
...output,
|
|
3702
|
-
body: await
|
|
3702
|
+
body: await parseErrorBody(output.body, context),
|
|
3703
3703
|
};
|
|
3704
3704
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3705
3705
|
switch (errorCode) {
|
|
@@ -3742,7 +3742,7 @@ exports.deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = deserial
|
|
|
3742
3742
|
const deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommandError = async (output, context) => {
|
|
3743
3743
|
const parsedOutput = {
|
|
3744
3744
|
...output,
|
|
3745
|
-
body: await
|
|
3745
|
+
body: await parseErrorBody(output.body, context),
|
|
3746
3746
|
};
|
|
3747
3747
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3748
3748
|
switch (errorCode) {
|
|
@@ -3785,7 +3785,7 @@ exports.deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = deseria
|
|
|
3785
3785
|
const deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommandError = async (output, context) => {
|
|
3786
3786
|
const parsedOutput = {
|
|
3787
3787
|
...output,
|
|
3788
|
-
body: await
|
|
3788
|
+
body: await parseErrorBody(output.body, context),
|
|
3789
3789
|
};
|
|
3790
3790
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3791
3791
|
switch (errorCode) {
|
|
@@ -3828,7 +3828,7 @@ exports.deserializeAws_restXmlDeleteFunctionCommand = deserializeAws_restXmlDele
|
|
|
3828
3828
|
const deserializeAws_restXmlDeleteFunctionCommandError = async (output, context) => {
|
|
3829
3829
|
const parsedOutput = {
|
|
3830
3830
|
...output,
|
|
3831
|
-
body: await
|
|
3831
|
+
body: await parseErrorBody(output.body, context),
|
|
3832
3832
|
};
|
|
3833
3833
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3834
3834
|
switch (errorCode) {
|
|
@@ -3871,7 +3871,7 @@ exports.deserializeAws_restXmlDeleteKeyGroupCommand = deserializeAws_restXmlDele
|
|
|
3871
3871
|
const deserializeAws_restXmlDeleteKeyGroupCommandError = async (output, context) => {
|
|
3872
3872
|
const parsedOutput = {
|
|
3873
3873
|
...output,
|
|
3874
|
-
body: await
|
|
3874
|
+
body: await parseErrorBody(output.body, context),
|
|
3875
3875
|
};
|
|
3876
3876
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3877
3877
|
switch (errorCode) {
|
|
@@ -3911,7 +3911,7 @@ exports.deserializeAws_restXmlDeleteMonitoringSubscriptionCommand = deserializeA
|
|
|
3911
3911
|
const deserializeAws_restXmlDeleteMonitoringSubscriptionCommandError = 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
|
switch (errorCode) {
|
|
@@ -3951,7 +3951,7 @@ exports.deserializeAws_restXmlDeleteOriginAccessControlCommand = deserializeAws_
|
|
|
3951
3951
|
const deserializeAws_restXmlDeleteOriginAccessControlCommandError = async (output, context) => {
|
|
3952
3952
|
const parsedOutput = {
|
|
3953
3953
|
...output,
|
|
3954
|
-
body: await
|
|
3954
|
+
body: await parseErrorBody(output.body, context),
|
|
3955
3955
|
};
|
|
3956
3956
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3957
3957
|
switch (errorCode) {
|
|
@@ -3994,7 +3994,7 @@ exports.deserializeAws_restXmlDeleteOriginRequestPolicyCommand = deserializeAws_
|
|
|
3994
3994
|
const deserializeAws_restXmlDeleteOriginRequestPolicyCommandError = async (output, context) => {
|
|
3995
3995
|
const parsedOutput = {
|
|
3996
3996
|
...output,
|
|
3997
|
-
body: await
|
|
3997
|
+
body: await parseErrorBody(output.body, context),
|
|
3998
3998
|
};
|
|
3999
3999
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4000
4000
|
switch (errorCode) {
|
|
@@ -4040,7 +4040,7 @@ exports.deserializeAws_restXmlDeletePublicKeyCommand = deserializeAws_restXmlDel
|
|
|
4040
4040
|
const deserializeAws_restXmlDeletePublicKeyCommandError = async (output, context) => {
|
|
4041
4041
|
const parsedOutput = {
|
|
4042
4042
|
...output,
|
|
4043
|
-
body: await
|
|
4043
|
+
body: await parseErrorBody(output.body, context),
|
|
4044
4044
|
};
|
|
4045
4045
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4046
4046
|
switch (errorCode) {
|
|
@@ -4083,7 +4083,7 @@ exports.deserializeAws_restXmlDeleteRealtimeLogConfigCommand = deserializeAws_re
|
|
|
4083
4083
|
const deserializeAws_restXmlDeleteRealtimeLogConfigCommandError = async (output, context) => {
|
|
4084
4084
|
const parsedOutput = {
|
|
4085
4085
|
...output,
|
|
4086
|
-
body: await
|
|
4086
|
+
body: await parseErrorBody(output.body, context),
|
|
4087
4087
|
};
|
|
4088
4088
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4089
4089
|
switch (errorCode) {
|
|
@@ -4123,7 +4123,7 @@ exports.deserializeAws_restXmlDeleteResponseHeadersPolicyCommand = deserializeAw
|
|
|
4123
4123
|
const deserializeAws_restXmlDeleteResponseHeadersPolicyCommandError = async (output, context) => {
|
|
4124
4124
|
const parsedOutput = {
|
|
4125
4125
|
...output,
|
|
4126
|
-
body: await
|
|
4126
|
+
body: await parseErrorBody(output.body, context),
|
|
4127
4127
|
};
|
|
4128
4128
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4129
4129
|
switch (errorCode) {
|
|
@@ -4169,7 +4169,7 @@ exports.deserializeAws_restXmlDeleteStreamingDistributionCommand = deserializeAw
|
|
|
4169
4169
|
const deserializeAws_restXmlDeleteStreamingDistributionCommandError = async (output, context) => {
|
|
4170
4170
|
const parsedOutput = {
|
|
4171
4171
|
...output,
|
|
4172
|
-
body: await
|
|
4172
|
+
body: await parseErrorBody(output.body, context),
|
|
4173
4173
|
};
|
|
4174
4174
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4175
4175
|
switch (errorCode) {
|
|
@@ -4214,7 +4214,7 @@ exports.deserializeAws_restXmlDescribeFunctionCommand = deserializeAws_restXmlDe
|
|
|
4214
4214
|
const deserializeAws_restXmlDescribeFunctionCommandError = async (output, context) => {
|
|
4215
4215
|
const parsedOutput = {
|
|
4216
4216
|
...output,
|
|
4217
|
-
body: await
|
|
4217
|
+
body: await parseErrorBody(output.body, context),
|
|
4218
4218
|
};
|
|
4219
4219
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4220
4220
|
switch (errorCode) {
|
|
@@ -4250,7 +4250,7 @@ exports.deserializeAws_restXmlGetCachePolicyCommand = deserializeAws_restXmlGetC
|
|
|
4250
4250
|
const deserializeAws_restXmlGetCachePolicyCommandError = async (output, context) => {
|
|
4251
4251
|
const parsedOutput = {
|
|
4252
4252
|
...output,
|
|
4253
|
-
body: await
|
|
4253
|
+
body: await parseErrorBody(output.body, context),
|
|
4254
4254
|
};
|
|
4255
4255
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4256
4256
|
switch (errorCode) {
|
|
@@ -4286,7 +4286,7 @@ exports.deserializeAws_restXmlGetCachePolicyConfigCommand = deserializeAws_restX
|
|
|
4286
4286
|
const deserializeAws_restXmlGetCachePolicyConfigCommandError = async (output, context) => {
|
|
4287
4287
|
const parsedOutput = {
|
|
4288
4288
|
...output,
|
|
4289
|
-
body: await
|
|
4289
|
+
body: await parseErrorBody(output.body, context),
|
|
4290
4290
|
};
|
|
4291
4291
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4292
4292
|
switch (errorCode) {
|
|
@@ -4322,7 +4322,7 @@ exports.deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand = deseria
|
|
|
4322
4322
|
const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommandError = async (output, context) => {
|
|
4323
4323
|
const parsedOutput = {
|
|
4324
4324
|
...output,
|
|
4325
|
-
body: await
|
|
4325
|
+
body: await parseErrorBody(output.body, context),
|
|
4326
4326
|
};
|
|
4327
4327
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4328
4328
|
switch (errorCode) {
|
|
@@ -4358,7 +4358,7 @@ exports.deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = d
|
|
|
4358
4358
|
const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError = async (output, context) => {
|
|
4359
4359
|
const parsedOutput = {
|
|
4360
4360
|
...output,
|
|
4361
|
-
body: await
|
|
4361
|
+
body: await parseErrorBody(output.body, context),
|
|
4362
4362
|
};
|
|
4363
4363
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4364
4364
|
switch (errorCode) {
|
|
@@ -4394,7 +4394,7 @@ exports.deserializeAws_restXmlGetDistributionCommand = deserializeAws_restXmlGet
|
|
|
4394
4394
|
const deserializeAws_restXmlGetDistributionCommandError = async (output, context) => {
|
|
4395
4395
|
const parsedOutput = {
|
|
4396
4396
|
...output,
|
|
4397
|
-
body: await
|
|
4397
|
+
body: await parseErrorBody(output.body, context),
|
|
4398
4398
|
};
|
|
4399
4399
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4400
4400
|
switch (errorCode) {
|
|
@@ -4430,7 +4430,7 @@ exports.deserializeAws_restXmlGetDistributionConfigCommand = deserializeAws_rest
|
|
|
4430
4430
|
const deserializeAws_restXmlGetDistributionConfigCommandError = async (output, context) => {
|
|
4431
4431
|
const parsedOutput = {
|
|
4432
4432
|
...output,
|
|
4433
|
-
body: await
|
|
4433
|
+
body: await parseErrorBody(output.body, context),
|
|
4434
4434
|
};
|
|
4435
4435
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4436
4436
|
switch (errorCode) {
|
|
@@ -4466,7 +4466,7 @@ exports.deserializeAws_restXmlGetFieldLevelEncryptionCommand = deserializeAws_re
|
|
|
4466
4466
|
const deserializeAws_restXmlGetFieldLevelEncryptionCommandError = async (output, context) => {
|
|
4467
4467
|
const parsedOutput = {
|
|
4468
4468
|
...output,
|
|
4469
|
-
body: await
|
|
4469
|
+
body: await parseErrorBody(output.body, context),
|
|
4470
4470
|
};
|
|
4471
4471
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4472
4472
|
switch (errorCode) {
|
|
@@ -4502,7 +4502,7 @@ exports.deserializeAws_restXmlGetFieldLevelEncryptionConfigCommand = deserialize
|
|
|
4502
4502
|
const deserializeAws_restXmlGetFieldLevelEncryptionConfigCommandError = async (output, context) => {
|
|
4503
4503
|
const parsedOutput = {
|
|
4504
4504
|
...output,
|
|
4505
|
-
body: await
|
|
4505
|
+
body: await parseErrorBody(output.body, context),
|
|
4506
4506
|
};
|
|
4507
4507
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4508
4508
|
switch (errorCode) {
|
|
@@ -4538,7 +4538,7 @@ exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileCommand = deserializ
|
|
|
4538
4538
|
const deserializeAws_restXmlGetFieldLevelEncryptionProfileCommandError = async (output, context) => {
|
|
4539
4539
|
const parsedOutput = {
|
|
4540
4540
|
...output,
|
|
4541
|
-
body: await
|
|
4541
|
+
body: await parseErrorBody(output.body, context),
|
|
4542
4542
|
};
|
|
4543
4543
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4544
4544
|
switch (errorCode) {
|
|
@@ -4574,7 +4574,7 @@ exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommand = dese
|
|
|
4574
4574
|
const deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommandError = async (output, context) => {
|
|
4575
4575
|
const parsedOutput = {
|
|
4576
4576
|
...output,
|
|
4577
|
-
body: await
|
|
4577
|
+
body: await parseErrorBody(output.body, context),
|
|
4578
4578
|
};
|
|
4579
4579
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4580
4580
|
switch (errorCode) {
|
|
@@ -4611,7 +4611,7 @@ exports.deserializeAws_restXmlGetFunctionCommand = deserializeAws_restXmlGetFunc
|
|
|
4611
4611
|
const deserializeAws_restXmlGetFunctionCommandError = async (output, context) => {
|
|
4612
4612
|
const parsedOutput = {
|
|
4613
4613
|
...output,
|
|
4614
|
-
body: await
|
|
4614
|
+
body: await parseErrorBody(output.body, context),
|
|
4615
4615
|
};
|
|
4616
4616
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4617
4617
|
switch (errorCode) {
|
|
@@ -4646,7 +4646,7 @@ exports.deserializeAws_restXmlGetInvalidationCommand = deserializeAws_restXmlGet
|
|
|
4646
4646
|
const deserializeAws_restXmlGetInvalidationCommandError = async (output, context) => {
|
|
4647
4647
|
const parsedOutput = {
|
|
4648
4648
|
...output,
|
|
4649
|
-
body: await
|
|
4649
|
+
body: await parseErrorBody(output.body, context),
|
|
4650
4650
|
};
|
|
4651
4651
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4652
4652
|
switch (errorCode) {
|
|
@@ -4685,7 +4685,7 @@ exports.deserializeAws_restXmlGetKeyGroupCommand = deserializeAws_restXmlGetKeyG
|
|
|
4685
4685
|
const deserializeAws_restXmlGetKeyGroupCommandError = async (output, context) => {
|
|
4686
4686
|
const parsedOutput = {
|
|
4687
4687
|
...output,
|
|
4688
|
-
body: await
|
|
4688
|
+
body: await parseErrorBody(output.body, context),
|
|
4689
4689
|
};
|
|
4690
4690
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4691
4691
|
switch (errorCode) {
|
|
@@ -4718,7 +4718,7 @@ exports.deserializeAws_restXmlGetKeyGroupConfigCommand = deserializeAws_restXmlG
|
|
|
4718
4718
|
const deserializeAws_restXmlGetKeyGroupConfigCommandError = async (output, context) => {
|
|
4719
4719
|
const parsedOutput = {
|
|
4720
4720
|
...output,
|
|
4721
|
-
body: await
|
|
4721
|
+
body: await parseErrorBody(output.body, context),
|
|
4722
4722
|
};
|
|
4723
4723
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4724
4724
|
switch (errorCode) {
|
|
@@ -4750,7 +4750,7 @@ exports.deserializeAws_restXmlGetMonitoringSubscriptionCommand = deserializeAws_
|
|
|
4750
4750
|
const deserializeAws_restXmlGetMonitoringSubscriptionCommandError = async (output, context) => {
|
|
4751
4751
|
const parsedOutput = {
|
|
4752
4752
|
...output,
|
|
4753
|
-
body: await
|
|
4753
|
+
body: await parseErrorBody(output.body, context),
|
|
4754
4754
|
};
|
|
4755
4755
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4756
4756
|
switch (errorCode) {
|
|
@@ -4792,7 +4792,7 @@ exports.deserializeAws_restXmlGetOriginAccessControlCommand = deserializeAws_res
|
|
|
4792
4792
|
const deserializeAws_restXmlGetOriginAccessControlCommandError = async (output, context) => {
|
|
4793
4793
|
const parsedOutput = {
|
|
4794
4794
|
...output,
|
|
4795
|
-
body: await
|
|
4795
|
+
body: await parseErrorBody(output.body, context),
|
|
4796
4796
|
};
|
|
4797
4797
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4798
4798
|
switch (errorCode) {
|
|
@@ -4828,7 +4828,7 @@ exports.deserializeAws_restXmlGetOriginAccessControlConfigCommand = deserializeA
|
|
|
4828
4828
|
const deserializeAws_restXmlGetOriginAccessControlConfigCommandError = async (output, context) => {
|
|
4829
4829
|
const parsedOutput = {
|
|
4830
4830
|
...output,
|
|
4831
|
-
body: await
|
|
4831
|
+
body: await parseErrorBody(output.body, context),
|
|
4832
4832
|
};
|
|
4833
4833
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4834
4834
|
switch (errorCode) {
|
|
@@ -4864,7 +4864,7 @@ exports.deserializeAws_restXmlGetOriginRequestPolicyCommand = deserializeAws_res
|
|
|
4864
4864
|
const deserializeAws_restXmlGetOriginRequestPolicyCommandError = async (output, context) => {
|
|
4865
4865
|
const parsedOutput = {
|
|
4866
4866
|
...output,
|
|
4867
|
-
body: await
|
|
4867
|
+
body: await parseErrorBody(output.body, context),
|
|
4868
4868
|
};
|
|
4869
4869
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4870
4870
|
switch (errorCode) {
|
|
@@ -4900,7 +4900,7 @@ exports.deserializeAws_restXmlGetOriginRequestPolicyConfigCommand = deserializeA
|
|
|
4900
4900
|
const deserializeAws_restXmlGetOriginRequestPolicyConfigCommandError = async (output, context) => {
|
|
4901
4901
|
const parsedOutput = {
|
|
4902
4902
|
...output,
|
|
4903
|
-
body: await
|
|
4903
|
+
body: await parseErrorBody(output.body, context),
|
|
4904
4904
|
};
|
|
4905
4905
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4906
4906
|
switch (errorCode) {
|
|
@@ -4936,7 +4936,7 @@ exports.deserializeAws_restXmlGetPublicKeyCommand = deserializeAws_restXmlGetPub
|
|
|
4936
4936
|
const deserializeAws_restXmlGetPublicKeyCommandError = async (output, context) => {
|
|
4937
4937
|
const parsedOutput = {
|
|
4938
4938
|
...output,
|
|
4939
|
-
body: await
|
|
4939
|
+
body: await parseErrorBody(output.body, context),
|
|
4940
4940
|
};
|
|
4941
4941
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4942
4942
|
switch (errorCode) {
|
|
@@ -4972,7 +4972,7 @@ exports.deserializeAws_restXmlGetPublicKeyConfigCommand = deserializeAws_restXml
|
|
|
4972
4972
|
const deserializeAws_restXmlGetPublicKeyConfigCommandError = async (output, context) => {
|
|
4973
4973
|
const parsedOutput = {
|
|
4974
4974
|
...output,
|
|
4975
|
-
body: await
|
|
4975
|
+
body: await parseErrorBody(output.body, context),
|
|
4976
4976
|
};
|
|
4977
4977
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4978
4978
|
switch (errorCode) {
|
|
@@ -5009,7 +5009,7 @@ exports.deserializeAws_restXmlGetRealtimeLogConfigCommand = deserializeAws_restX
|
|
|
5009
5009
|
const deserializeAws_restXmlGetRealtimeLogConfigCommandError = async (output, context) => {
|
|
5010
5010
|
const parsedOutput = {
|
|
5011
5011
|
...output,
|
|
5012
|
-
body: await
|
|
5012
|
+
body: await parseErrorBody(output.body, context),
|
|
5013
5013
|
};
|
|
5014
5014
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5015
5015
|
switch (errorCode) {
|
|
@@ -5048,7 +5048,7 @@ exports.deserializeAws_restXmlGetResponseHeadersPolicyCommand = deserializeAws_r
|
|
|
5048
5048
|
const deserializeAws_restXmlGetResponseHeadersPolicyCommandError = async (output, context) => {
|
|
5049
5049
|
const parsedOutput = {
|
|
5050
5050
|
...output,
|
|
5051
|
-
body: await
|
|
5051
|
+
body: await parseErrorBody(output.body, context),
|
|
5052
5052
|
};
|
|
5053
5053
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5054
5054
|
switch (errorCode) {
|
|
@@ -5084,7 +5084,7 @@ exports.deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand = deserializ
|
|
|
5084
5084
|
const deserializeAws_restXmlGetResponseHeadersPolicyConfigCommandError = async (output, context) => {
|
|
5085
5085
|
const parsedOutput = {
|
|
5086
5086
|
...output,
|
|
5087
|
-
body: await
|
|
5087
|
+
body: await parseErrorBody(output.body, context),
|
|
5088
5088
|
};
|
|
5089
5089
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5090
5090
|
switch (errorCode) {
|
|
@@ -5120,7 +5120,7 @@ exports.deserializeAws_restXmlGetStreamingDistributionCommand = deserializeAws_r
|
|
|
5120
5120
|
const deserializeAws_restXmlGetStreamingDistributionCommandError = async (output, context) => {
|
|
5121
5121
|
const parsedOutput = {
|
|
5122
5122
|
...output,
|
|
5123
|
-
body: await
|
|
5123
|
+
body: await parseErrorBody(output.body, context),
|
|
5124
5124
|
};
|
|
5125
5125
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5126
5126
|
switch (errorCode) {
|
|
@@ -5156,7 +5156,7 @@ exports.deserializeAws_restXmlGetStreamingDistributionConfigCommand = deserializ
|
|
|
5156
5156
|
const deserializeAws_restXmlGetStreamingDistributionConfigCommandError = async (output, context) => {
|
|
5157
5157
|
const parsedOutput = {
|
|
5158
5158
|
...output,
|
|
5159
|
-
body: await
|
|
5159
|
+
body: await parseErrorBody(output.body, context),
|
|
5160
5160
|
};
|
|
5161
5161
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5162
5162
|
switch (errorCode) {
|
|
@@ -5191,7 +5191,7 @@ exports.deserializeAws_restXmlListCachePoliciesCommand = deserializeAws_restXmlL
|
|
|
5191
5191
|
const deserializeAws_restXmlListCachePoliciesCommandError = async (output, context) => {
|
|
5192
5192
|
const parsedOutput = {
|
|
5193
5193
|
...output,
|
|
5194
|
-
body: await
|
|
5194
|
+
body: await parseErrorBody(output.body, context),
|
|
5195
5195
|
};
|
|
5196
5196
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5197
5197
|
switch (errorCode) {
|
|
@@ -5229,7 +5229,7 @@ exports.deserializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = dese
|
|
|
5229
5229
|
const deserializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommandError = async (output, context) => {
|
|
5230
5230
|
const parsedOutput = {
|
|
5231
5231
|
...output,
|
|
5232
|
-
body: await
|
|
5232
|
+
body: await parseErrorBody(output.body, context),
|
|
5233
5233
|
};
|
|
5234
5234
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5235
5235
|
switch (errorCode) {
|
|
@@ -5261,7 +5261,7 @@ exports.deserializeAws_restXmlListConflictingAliasesCommand = deserializeAws_res
|
|
|
5261
5261
|
const deserializeAws_restXmlListConflictingAliasesCommandError = async (output, context) => {
|
|
5262
5262
|
const parsedOutput = {
|
|
5263
5263
|
...output,
|
|
5264
|
-
body: await
|
|
5264
|
+
body: await parseErrorBody(output.body, context),
|
|
5265
5265
|
};
|
|
5266
5266
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5267
5267
|
switch (errorCode) {
|
|
@@ -5296,7 +5296,7 @@ exports.deserializeAws_restXmlListDistributionsCommand = deserializeAws_restXmlL
|
|
|
5296
5296
|
const deserializeAws_restXmlListDistributionsCommandError = async (output, context) => {
|
|
5297
5297
|
const parsedOutput = {
|
|
5298
5298
|
...output,
|
|
5299
|
-
body: await
|
|
5299
|
+
body: await parseErrorBody(output.body, context),
|
|
5300
5300
|
};
|
|
5301
5301
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5302
5302
|
switch (errorCode) {
|
|
@@ -5328,7 +5328,7 @@ exports.deserializeAws_restXmlListDistributionsByCachePolicyIdCommand = deserial
|
|
|
5328
5328
|
const deserializeAws_restXmlListDistributionsByCachePolicyIdCommandError = async (output, context) => {
|
|
5329
5329
|
const parsedOutput = {
|
|
5330
5330
|
...output,
|
|
5331
|
-
body: await
|
|
5331
|
+
body: await parseErrorBody(output.body, context),
|
|
5332
5332
|
};
|
|
5333
5333
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5334
5334
|
switch (errorCode) {
|
|
@@ -5366,7 +5366,7 @@ exports.deserializeAws_restXmlListDistributionsByKeyGroupCommand = deserializeAw
|
|
|
5366
5366
|
const deserializeAws_restXmlListDistributionsByKeyGroupCommandError = async (output, context) => {
|
|
5367
5367
|
const parsedOutput = {
|
|
5368
5368
|
...output,
|
|
5369
|
-
body: await
|
|
5369
|
+
body: await parseErrorBody(output.body, context),
|
|
5370
5370
|
};
|
|
5371
5371
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5372
5372
|
switch (errorCode) {
|
|
@@ -5401,7 +5401,7 @@ exports.deserializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommand =
|
|
|
5401
5401
|
const deserializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommandError = async (output, context) => {
|
|
5402
5402
|
const parsedOutput = {
|
|
5403
5403
|
...output,
|
|
5404
|
-
body: await
|
|
5404
|
+
body: await parseErrorBody(output.body, context),
|
|
5405
5405
|
};
|
|
5406
5406
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5407
5407
|
switch (errorCode) {
|
|
@@ -5439,7 +5439,7 @@ exports.deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = dese
|
|
|
5439
5439
|
const deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommandError = async (output, context) => {
|
|
5440
5440
|
const parsedOutput = {
|
|
5441
5441
|
...output,
|
|
5442
|
-
body: await
|
|
5442
|
+
body: await parseErrorBody(output.body, context),
|
|
5443
5443
|
};
|
|
5444
5444
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5445
5445
|
switch (errorCode) {
|
|
@@ -5471,7 +5471,7 @@ exports.deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand
|
|
|
5471
5471
|
const deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommandError = async (output, context) => {
|
|
5472
5472
|
const parsedOutput = {
|
|
5473
5473
|
...output,
|
|
5474
|
-
body: await
|
|
5474
|
+
body: await parseErrorBody(output.body, context),
|
|
5475
5475
|
};
|
|
5476
5476
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5477
5477
|
switch (errorCode) {
|
|
@@ -5509,7 +5509,7 @@ exports.deserializeAws_restXmlListDistributionsByWebACLIdCommand = deserializeAw
|
|
|
5509
5509
|
const deserializeAws_restXmlListDistributionsByWebACLIdCommandError = async (output, context) => {
|
|
5510
5510
|
const parsedOutput = {
|
|
5511
5511
|
...output,
|
|
5512
|
-
body: await
|
|
5512
|
+
body: await parseErrorBody(output.body, context),
|
|
5513
5513
|
};
|
|
5514
5514
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5515
5515
|
switch (errorCode) {
|
|
@@ -5544,7 +5544,7 @@ exports.deserializeAws_restXmlListFieldLevelEncryptionConfigsCommand = deseriali
|
|
|
5544
5544
|
const deserializeAws_restXmlListFieldLevelEncryptionConfigsCommandError = async (output, context) => {
|
|
5545
5545
|
const parsedOutput = {
|
|
5546
5546
|
...output,
|
|
5547
|
-
body: await
|
|
5547
|
+
body: await parseErrorBody(output.body, context),
|
|
5548
5548
|
};
|
|
5549
5549
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5550
5550
|
switch (errorCode) {
|
|
@@ -5576,7 +5576,7 @@ exports.deserializeAws_restXmlListFieldLevelEncryptionProfilesCommand = deserial
|
|
|
5576
5576
|
const deserializeAws_restXmlListFieldLevelEncryptionProfilesCommandError = async (output, context) => {
|
|
5577
5577
|
const parsedOutput = {
|
|
5578
5578
|
...output,
|
|
5579
|
-
body: await
|
|
5579
|
+
body: await parseErrorBody(output.body, context),
|
|
5580
5580
|
};
|
|
5581
5581
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5582
5582
|
switch (errorCode) {
|
|
@@ -5608,7 +5608,7 @@ exports.deserializeAws_restXmlListFunctionsCommand = deserializeAws_restXmlListF
|
|
|
5608
5608
|
const deserializeAws_restXmlListFunctionsCommandError = async (output, context) => {
|
|
5609
5609
|
const parsedOutput = {
|
|
5610
5610
|
...output,
|
|
5611
|
-
body: await
|
|
5611
|
+
body: await parseErrorBody(output.body, context),
|
|
5612
5612
|
};
|
|
5613
5613
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5614
5614
|
switch (errorCode) {
|
|
@@ -5643,7 +5643,7 @@ exports.deserializeAws_restXmlListInvalidationsCommand = deserializeAws_restXmlL
|
|
|
5643
5643
|
const deserializeAws_restXmlListInvalidationsCommandError = async (output, context) => {
|
|
5644
5644
|
const parsedOutput = {
|
|
5645
5645
|
...output,
|
|
5646
|
-
body: await
|
|
5646
|
+
body: await parseErrorBody(output.body, context),
|
|
5647
5647
|
};
|
|
5648
5648
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5649
5649
|
switch (errorCode) {
|
|
@@ -5681,7 +5681,7 @@ exports.deserializeAws_restXmlListKeyGroupsCommand = deserializeAws_restXmlListK
|
|
|
5681
5681
|
const deserializeAws_restXmlListKeyGroupsCommandError = async (output, context) => {
|
|
5682
5682
|
const parsedOutput = {
|
|
5683
5683
|
...output,
|
|
5684
|
-
body: await
|
|
5684
|
+
body: await parseErrorBody(output.body, context),
|
|
5685
5685
|
};
|
|
5686
5686
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5687
5687
|
switch (errorCode) {
|
|
@@ -5713,7 +5713,7 @@ exports.deserializeAws_restXmlListOriginAccessControlsCommand = deserializeAws_r
|
|
|
5713
5713
|
const deserializeAws_restXmlListOriginAccessControlsCommandError = async (output, context) => {
|
|
5714
5714
|
const parsedOutput = {
|
|
5715
5715
|
...output,
|
|
5716
|
-
body: await
|
|
5716
|
+
body: await parseErrorBody(output.body, context),
|
|
5717
5717
|
};
|
|
5718
5718
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5719
5719
|
switch (errorCode) {
|
|
@@ -5745,7 +5745,7 @@ exports.deserializeAws_restXmlListOriginRequestPoliciesCommand = deserializeAws_
|
|
|
5745
5745
|
const deserializeAws_restXmlListOriginRequestPoliciesCommandError = async (output, context) => {
|
|
5746
5746
|
const parsedOutput = {
|
|
5747
5747
|
...output,
|
|
5748
|
-
body: await
|
|
5748
|
+
body: await parseErrorBody(output.body, context),
|
|
5749
5749
|
};
|
|
5750
5750
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5751
5751
|
switch (errorCode) {
|
|
@@ -5783,7 +5783,7 @@ exports.deserializeAws_restXmlListPublicKeysCommand = deserializeAws_restXmlList
|
|
|
5783
5783
|
const deserializeAws_restXmlListPublicKeysCommandError = async (output, context) => {
|
|
5784
5784
|
const parsedOutput = {
|
|
5785
5785
|
...output,
|
|
5786
|
-
body: await
|
|
5786
|
+
body: await parseErrorBody(output.body, context),
|
|
5787
5787
|
};
|
|
5788
5788
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5789
5789
|
switch (errorCode) {
|
|
@@ -5815,7 +5815,7 @@ exports.deserializeAws_restXmlListRealtimeLogConfigsCommand = deserializeAws_res
|
|
|
5815
5815
|
const deserializeAws_restXmlListRealtimeLogConfigsCommandError = async (output, context) => {
|
|
5816
5816
|
const parsedOutput = {
|
|
5817
5817
|
...output,
|
|
5818
|
-
body: await
|
|
5818
|
+
body: await parseErrorBody(output.body, context),
|
|
5819
5819
|
};
|
|
5820
5820
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5821
5821
|
switch (errorCode) {
|
|
@@ -5853,7 +5853,7 @@ exports.deserializeAws_restXmlListResponseHeadersPoliciesCommand = deserializeAw
|
|
|
5853
5853
|
const deserializeAws_restXmlListResponseHeadersPoliciesCommandError = async (output, context) => {
|
|
5854
5854
|
const parsedOutput = {
|
|
5855
5855
|
...output,
|
|
5856
|
-
body: await
|
|
5856
|
+
body: await parseErrorBody(output.body, context),
|
|
5857
5857
|
};
|
|
5858
5858
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5859
5859
|
switch (errorCode) {
|
|
@@ -5891,7 +5891,7 @@ exports.deserializeAws_restXmlListStreamingDistributionsCommand = deserializeAws
|
|
|
5891
5891
|
const deserializeAws_restXmlListStreamingDistributionsCommandError = async (output, context) => {
|
|
5892
5892
|
const parsedOutput = {
|
|
5893
5893
|
...output,
|
|
5894
|
-
body: await
|
|
5894
|
+
body: await parseErrorBody(output.body, context),
|
|
5895
5895
|
};
|
|
5896
5896
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5897
5897
|
switch (errorCode) {
|
|
@@ -5923,7 +5923,7 @@ exports.deserializeAws_restXmlListTagsForResourceCommand = deserializeAws_restXm
|
|
|
5923
5923
|
const deserializeAws_restXmlListTagsForResourceCommandError = async (output, context) => {
|
|
5924
5924
|
const parsedOutput = {
|
|
5925
5925
|
...output,
|
|
5926
|
-
body: await
|
|
5926
|
+
body: await parseErrorBody(output.body, context),
|
|
5927
5927
|
};
|
|
5928
5928
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5929
5929
|
switch (errorCode) {
|
|
@@ -5964,7 +5964,7 @@ exports.deserializeAws_restXmlPublishFunctionCommand = deserializeAws_restXmlPub
|
|
|
5964
5964
|
const deserializeAws_restXmlPublishFunctionCommandError = async (output, context) => {
|
|
5965
5965
|
const parsedOutput = {
|
|
5966
5966
|
...output,
|
|
5967
|
-
body: await
|
|
5967
|
+
body: await parseErrorBody(output.body, context),
|
|
5968
5968
|
};
|
|
5969
5969
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5970
5970
|
switch (errorCode) {
|
|
@@ -6007,7 +6007,7 @@ exports.deserializeAws_restXmlTagResourceCommand = deserializeAws_restXmlTagReso
|
|
|
6007
6007
|
const deserializeAws_restXmlTagResourceCommandError = async (output, context) => {
|
|
6008
6008
|
const parsedOutput = {
|
|
6009
6009
|
...output,
|
|
6010
|
-
body: await
|
|
6010
|
+
body: await parseErrorBody(output.body, context),
|
|
6011
6011
|
};
|
|
6012
6012
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6013
6013
|
switch (errorCode) {
|
|
@@ -6048,7 +6048,7 @@ exports.deserializeAws_restXmlTestFunctionCommand = deserializeAws_restXmlTestFu
|
|
|
6048
6048
|
const deserializeAws_restXmlTestFunctionCommandError = async (output, context) => {
|
|
6049
6049
|
const parsedOutput = {
|
|
6050
6050
|
...output,
|
|
6051
|
-
body: await
|
|
6051
|
+
body: await parseErrorBody(output.body, context),
|
|
6052
6052
|
};
|
|
6053
6053
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6054
6054
|
switch (errorCode) {
|
|
@@ -6091,7 +6091,7 @@ exports.deserializeAws_restXmlUntagResourceCommand = deserializeAws_restXmlUntag
|
|
|
6091
6091
|
const deserializeAws_restXmlUntagResourceCommandError = async (output, context) => {
|
|
6092
6092
|
const parsedOutput = {
|
|
6093
6093
|
...output,
|
|
6094
|
-
body: await
|
|
6094
|
+
body: await parseErrorBody(output.body, context),
|
|
6095
6095
|
};
|
|
6096
6096
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6097
6097
|
switch (errorCode) {
|
|
@@ -6133,7 +6133,7 @@ exports.deserializeAws_restXmlUpdateCachePolicyCommand = deserializeAws_restXmlU
|
|
|
6133
6133
|
const deserializeAws_restXmlUpdateCachePolicyCommandError = async (output, context) => {
|
|
6134
6134
|
const parsedOutput = {
|
|
6135
6135
|
...output,
|
|
6136
|
-
body: await
|
|
6136
|
+
body: await parseErrorBody(output.body, context),
|
|
6137
6137
|
};
|
|
6138
6138
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6139
6139
|
switch (errorCode) {
|
|
@@ -6196,7 +6196,7 @@ exports.deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = dese
|
|
|
6196
6196
|
const deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommandError = async (output, context) => {
|
|
6197
6197
|
const parsedOutput = {
|
|
6198
6198
|
...output,
|
|
6199
|
-
body: await
|
|
6199
|
+
body: await parseErrorBody(output.body, context),
|
|
6200
6200
|
};
|
|
6201
6201
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6202
6202
|
switch (errorCode) {
|
|
@@ -6250,7 +6250,7 @@ exports.deserializeAws_restXmlUpdateDistributionCommand = deserializeAws_restXml
|
|
|
6250
6250
|
const deserializeAws_restXmlUpdateDistributionCommandError = async (output, context) => {
|
|
6251
6251
|
const parsedOutput = {
|
|
6252
6252
|
...output,
|
|
6253
|
-
body: await
|
|
6253
|
+
body: await parseErrorBody(output.body, context),
|
|
6254
6254
|
};
|
|
6255
6255
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6256
6256
|
switch (errorCode) {
|
|
@@ -6466,7 +6466,7 @@ exports.deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = deserial
|
|
|
6466
6466
|
const deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommandError = async (output, context) => {
|
|
6467
6467
|
const parsedOutput = {
|
|
6468
6468
|
...output,
|
|
6469
|
-
body: await
|
|
6469
|
+
body: await parseErrorBody(output.body, context),
|
|
6470
6470
|
};
|
|
6471
6471
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6472
6472
|
switch (errorCode) {
|
|
@@ -6529,7 +6529,7 @@ exports.deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = deseria
|
|
|
6529
6529
|
const deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommandError = async (output, context) => {
|
|
6530
6530
|
const parsedOutput = {
|
|
6531
6531
|
...output,
|
|
6532
|
-
body: await
|
|
6532
|
+
body: await parseErrorBody(output.body, context),
|
|
6533
6533
|
};
|
|
6534
6534
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6535
6535
|
switch (errorCode) {
|
|
@@ -6595,7 +6595,7 @@ exports.deserializeAws_restXmlUpdateFunctionCommand = deserializeAws_restXmlUpda
|
|
|
6595
6595
|
const deserializeAws_restXmlUpdateFunctionCommandError = async (output, context) => {
|
|
6596
6596
|
const parsedOutput = {
|
|
6597
6597
|
...output,
|
|
6598
|
-
body: await
|
|
6598
|
+
body: await parseErrorBody(output.body, context),
|
|
6599
6599
|
};
|
|
6600
6600
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6601
6601
|
switch (errorCode) {
|
|
@@ -6643,7 +6643,7 @@ exports.deserializeAws_restXmlUpdateKeyGroupCommand = deserializeAws_restXmlUpda
|
|
|
6643
6643
|
const deserializeAws_restXmlUpdateKeyGroupCommandError = async (output, context) => {
|
|
6644
6644
|
const parsedOutput = {
|
|
6645
6645
|
...output,
|
|
6646
|
-
body: await
|
|
6646
|
+
body: await parseErrorBody(output.body, context),
|
|
6647
6647
|
};
|
|
6648
6648
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6649
6649
|
switch (errorCode) {
|
|
@@ -6691,7 +6691,7 @@ exports.deserializeAws_restXmlUpdateOriginAccessControlCommand = deserializeAws_
|
|
|
6691
6691
|
const deserializeAws_restXmlUpdateOriginAccessControlCommandError = async (output, context) => {
|
|
6692
6692
|
const parsedOutput = {
|
|
6693
6693
|
...output,
|
|
6694
|
-
body: await
|
|
6694
|
+
body: await parseErrorBody(output.body, context),
|
|
6695
6695
|
};
|
|
6696
6696
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6697
6697
|
switch (errorCode) {
|
|
@@ -6742,7 +6742,7 @@ exports.deserializeAws_restXmlUpdateOriginRequestPolicyCommand = deserializeAws_
|
|
|
6742
6742
|
const deserializeAws_restXmlUpdateOriginRequestPolicyCommandError = async (output, context) => {
|
|
6743
6743
|
const parsedOutput = {
|
|
6744
6744
|
...output,
|
|
6745
|
-
body: await
|
|
6745
|
+
body: await parseErrorBody(output.body, context),
|
|
6746
6746
|
};
|
|
6747
6747
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6748
6748
|
switch (errorCode) {
|
|
@@ -6805,7 +6805,7 @@ exports.deserializeAws_restXmlUpdatePublicKeyCommand = deserializeAws_restXmlUpd
|
|
|
6805
6805
|
const deserializeAws_restXmlUpdatePublicKeyCommandError = async (output, context) => {
|
|
6806
6806
|
const parsedOutput = {
|
|
6807
6807
|
...output,
|
|
6808
|
-
body: await
|
|
6808
|
+
body: await parseErrorBody(output.body, context),
|
|
6809
6809
|
};
|
|
6810
6810
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6811
6811
|
switch (errorCode) {
|
|
@@ -6857,7 +6857,7 @@ exports.deserializeAws_restXmlUpdateRealtimeLogConfigCommand = deserializeAws_re
|
|
|
6857
6857
|
const deserializeAws_restXmlUpdateRealtimeLogConfigCommandError = async (output, context) => {
|
|
6858
6858
|
const parsedOutput = {
|
|
6859
6859
|
...output,
|
|
6860
|
-
body: await
|
|
6860
|
+
body: await parseErrorBody(output.body, context),
|
|
6861
6861
|
};
|
|
6862
6862
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6863
6863
|
switch (errorCode) {
|
|
@@ -6896,7 +6896,7 @@ exports.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = deserializeAw
|
|
|
6896
6896
|
const deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = async (output, context) => {
|
|
6897
6897
|
const parsedOutput = {
|
|
6898
6898
|
...output,
|
|
6899
|
-
body: await
|
|
6899
|
+
body: await parseErrorBody(output.body, context),
|
|
6900
6900
|
};
|
|
6901
6901
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6902
6902
|
switch (errorCode) {
|
|
@@ -6956,7 +6956,7 @@ exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = deserializeAw
|
|
|
6956
6956
|
const deserializeAws_restXmlUpdateStreamingDistributionCommandError = async (output, context) => {
|
|
6957
6957
|
const parsedOutput = {
|
|
6958
6958
|
...output,
|
|
6959
|
-
body: await
|
|
6959
|
+
body: await parseErrorBody(output.body, context),
|
|
6960
6960
|
};
|
|
6961
6961
|
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6962
6962
|
switch (errorCode) {
|
|
@@ -14068,6 +14068,14 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
14068
14068
|
}
|
|
14069
14069
|
return {};
|
|
14070
14070
|
});
|
|
14071
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
14072
|
+
var _a;
|
|
14073
|
+
const value = await parseBody(errorBody, context);
|
|
14074
|
+
if (value.Error) {
|
|
14075
|
+
value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
|
|
14076
|
+
}
|
|
14077
|
+
return value;
|
|
14078
|
+
};
|
|
14071
14079
|
const loadRestXmlErrorCode = (output, data) => {
|
|
14072
14080
|
if (data.Error.Code !== undefined) {
|
|
14073
14081
|
return data.Error.Code;
|