@aws-sdk/client-greengrass 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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +98 -92
- package/dist-es/protocols/Aws_restJson1.js +105 -92
- package/package.json +3 -3
|
@@ -2021,7 +2021,7 @@ exports.deserializeAws_restJson1AssociateRoleToGroupCommand = deserializeAws_res
|
|
|
2021
2021
|
const deserializeAws_restJson1AssociateRoleToGroupCommandError = async (output, context) => {
|
|
2022
2022
|
const parsedOutput = {
|
|
2023
2023
|
...output,
|
|
2024
|
-
body: await
|
|
2024
|
+
body: await parseErrorBody(output.body, context),
|
|
2025
2025
|
};
|
|
2026
2026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
2027
|
switch (errorCode) {
|
|
@@ -2058,7 +2058,7 @@ exports.deserializeAws_restJson1AssociateServiceRoleToAccountCommand = deseriali
|
|
|
2058
2058
|
const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async (output, context) => {
|
|
2059
2059
|
const parsedOutput = {
|
|
2060
2060
|
...output,
|
|
2061
|
-
body: await
|
|
2061
|
+
body: await parseErrorBody(output.body, context),
|
|
2062
2062
|
};
|
|
2063
2063
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
2064
|
switch (errorCode) {
|
|
@@ -2113,7 +2113,7 @@ exports.deserializeAws_restJson1CreateConnectorDefinitionCommand = deserializeAw
|
|
|
2113
2113
|
const deserializeAws_restJson1CreateConnectorDefinitionCommandError = async (output, context) => {
|
|
2114
2114
|
const parsedOutput = {
|
|
2115
2115
|
...output,
|
|
2116
|
-
body: await
|
|
2116
|
+
body: await parseErrorBody(output.body, context),
|
|
2117
2117
|
};
|
|
2118
2118
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2119
|
switch (errorCode) {
|
|
@@ -2156,7 +2156,7 @@ exports.deserializeAws_restJson1CreateConnectorDefinitionVersionCommand = deseri
|
|
|
2156
2156
|
const deserializeAws_restJson1CreateConnectorDefinitionVersionCommandError = async (output, context) => {
|
|
2157
2157
|
const parsedOutput = {
|
|
2158
2158
|
...output,
|
|
2159
|
-
body: await
|
|
2159
|
+
body: await parseErrorBody(output.body, context),
|
|
2160
2160
|
};
|
|
2161
2161
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2162
|
switch (errorCode) {
|
|
@@ -2208,7 +2208,7 @@ exports.deserializeAws_restJson1CreateCoreDefinitionCommand = deserializeAws_res
|
|
|
2208
2208
|
const deserializeAws_restJson1CreateCoreDefinitionCommandError = async (output, context) => {
|
|
2209
2209
|
const parsedOutput = {
|
|
2210
2210
|
...output,
|
|
2211
|
-
body: await
|
|
2211
|
+
body: await parseErrorBody(output.body, context),
|
|
2212
2212
|
};
|
|
2213
2213
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
2214
|
switch (errorCode) {
|
|
@@ -2251,7 +2251,7 @@ exports.deserializeAws_restJson1CreateCoreDefinitionVersionCommand = deserialize
|
|
|
2251
2251
|
const deserializeAws_restJson1CreateCoreDefinitionVersionCommandError = async (output, context) => {
|
|
2252
2252
|
const parsedOutput = {
|
|
2253
2253
|
...output,
|
|
2254
|
-
body: await
|
|
2254
|
+
body: await parseErrorBody(output.body, context),
|
|
2255
2255
|
};
|
|
2256
2256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
2257
|
switch (errorCode) {
|
|
@@ -2288,7 +2288,7 @@ exports.deserializeAws_restJson1CreateDeploymentCommand = deserializeAws_restJso
|
|
|
2288
2288
|
const deserializeAws_restJson1CreateDeploymentCommandError = async (output, context) => {
|
|
2289
2289
|
const parsedOutput = {
|
|
2290
2290
|
...output,
|
|
2291
|
-
body: await
|
|
2291
|
+
body: await parseErrorBody(output.body, context),
|
|
2292
2292
|
};
|
|
2293
2293
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2294
2294
|
switch (errorCode) {
|
|
@@ -2340,7 +2340,7 @@ exports.deserializeAws_restJson1CreateDeviceDefinitionCommand = deserializeAws_r
|
|
|
2340
2340
|
const deserializeAws_restJson1CreateDeviceDefinitionCommandError = async (output, context) => {
|
|
2341
2341
|
const parsedOutput = {
|
|
2342
2342
|
...output,
|
|
2343
|
-
body: await
|
|
2343
|
+
body: await parseErrorBody(output.body, context),
|
|
2344
2344
|
};
|
|
2345
2345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
2346
|
switch (errorCode) {
|
|
@@ -2383,7 +2383,7 @@ exports.deserializeAws_restJson1CreateDeviceDefinitionVersionCommand = deseriali
|
|
|
2383
2383
|
const deserializeAws_restJson1CreateDeviceDefinitionVersionCommandError = async (output, context) => {
|
|
2384
2384
|
const parsedOutput = {
|
|
2385
2385
|
...output,
|
|
2386
|
-
body: await
|
|
2386
|
+
body: await parseErrorBody(output.body, context),
|
|
2387
2387
|
};
|
|
2388
2388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
2389
|
switch (errorCode) {
|
|
@@ -2435,7 +2435,7 @@ exports.deserializeAws_restJson1CreateFunctionDefinitionCommand = deserializeAws
|
|
|
2435
2435
|
const deserializeAws_restJson1CreateFunctionDefinitionCommandError = async (output, context) => {
|
|
2436
2436
|
const parsedOutput = {
|
|
2437
2437
|
...output,
|
|
2438
|
-
body: await
|
|
2438
|
+
body: await parseErrorBody(output.body, context),
|
|
2439
2439
|
};
|
|
2440
2440
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2441
|
switch (errorCode) {
|
|
@@ -2478,7 +2478,7 @@ exports.deserializeAws_restJson1CreateFunctionDefinitionVersionCommand = deseria
|
|
|
2478
2478
|
const deserializeAws_restJson1CreateFunctionDefinitionVersionCommandError = async (output, context) => {
|
|
2479
2479
|
const parsedOutput = {
|
|
2480
2480
|
...output,
|
|
2481
|
-
body: await
|
|
2481
|
+
body: await parseErrorBody(output.body, context),
|
|
2482
2482
|
};
|
|
2483
2483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
2484
|
switch (errorCode) {
|
|
@@ -2530,7 +2530,7 @@ exports.deserializeAws_restJson1CreateGroupCommand = deserializeAws_restJson1Cre
|
|
|
2530
2530
|
const deserializeAws_restJson1CreateGroupCommandError = async (output, context) => {
|
|
2531
2531
|
const parsedOutput = {
|
|
2532
2532
|
...output,
|
|
2533
|
-
body: await
|
|
2533
|
+
body: await parseErrorBody(output.body, context),
|
|
2534
2534
|
};
|
|
2535
2535
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
2536
|
switch (errorCode) {
|
|
@@ -2564,7 +2564,7 @@ exports.deserializeAws_restJson1CreateGroupCertificateAuthorityCommand = deseria
|
|
|
2564
2564
|
const deserializeAws_restJson1CreateGroupCertificateAuthorityCommandError = async (output, context) => {
|
|
2565
2565
|
const parsedOutput = {
|
|
2566
2566
|
...output,
|
|
2567
|
-
body: await
|
|
2567
|
+
body: await parseErrorBody(output.body, context),
|
|
2568
2568
|
};
|
|
2569
2569
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2570
2570
|
switch (errorCode) {
|
|
@@ -2610,7 +2610,7 @@ exports.deserializeAws_restJson1CreateGroupVersionCommand = deserializeAws_restJ
|
|
|
2610
2610
|
const deserializeAws_restJson1CreateGroupVersionCommandError = async (output, context) => {
|
|
2611
2611
|
const parsedOutput = {
|
|
2612
2612
|
...output,
|
|
2613
|
-
body: await
|
|
2613
|
+
body: await parseErrorBody(output.body, context),
|
|
2614
2614
|
};
|
|
2615
2615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2616
|
switch (errorCode) {
|
|
@@ -2662,7 +2662,7 @@ exports.deserializeAws_restJson1CreateLoggerDefinitionCommand = deserializeAws_r
|
|
|
2662
2662
|
const deserializeAws_restJson1CreateLoggerDefinitionCommandError = async (output, context) => {
|
|
2663
2663
|
const parsedOutput = {
|
|
2664
2664
|
...output,
|
|
2665
|
-
body: await
|
|
2665
|
+
body: await parseErrorBody(output.body, context),
|
|
2666
2666
|
};
|
|
2667
2667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
2668
|
switch (errorCode) {
|
|
@@ -2705,7 +2705,7 @@ exports.deserializeAws_restJson1CreateLoggerDefinitionVersionCommand = deseriali
|
|
|
2705
2705
|
const deserializeAws_restJson1CreateLoggerDefinitionVersionCommandError = async (output, context) => {
|
|
2706
2706
|
const parsedOutput = {
|
|
2707
2707
|
...output,
|
|
2708
|
-
body: await
|
|
2708
|
+
body: await parseErrorBody(output.body, context),
|
|
2709
2709
|
};
|
|
2710
2710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
2711
|
switch (errorCode) {
|
|
@@ -2757,7 +2757,7 @@ exports.deserializeAws_restJson1CreateResourceDefinitionCommand = deserializeAws
|
|
|
2757
2757
|
const deserializeAws_restJson1CreateResourceDefinitionCommandError = async (output, context) => {
|
|
2758
2758
|
const parsedOutput = {
|
|
2759
2759
|
...output,
|
|
2760
|
-
body: await
|
|
2760
|
+
body: await parseErrorBody(output.body, context),
|
|
2761
2761
|
};
|
|
2762
2762
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
2763
|
switch (errorCode) {
|
|
@@ -2800,7 +2800,7 @@ exports.deserializeAws_restJson1CreateResourceDefinitionVersionCommand = deseria
|
|
|
2800
2800
|
const deserializeAws_restJson1CreateResourceDefinitionVersionCommandError = async (output, context) => {
|
|
2801
2801
|
const parsedOutput = {
|
|
2802
2802
|
...output,
|
|
2803
|
-
body: await
|
|
2803
|
+
body: await parseErrorBody(output.body, context),
|
|
2804
2804
|
};
|
|
2805
2805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
2806
|
switch (errorCode) {
|
|
@@ -2840,7 +2840,7 @@ exports.deserializeAws_restJson1CreateSoftwareUpdateJobCommand = deserializeAws_
|
|
|
2840
2840
|
const deserializeAws_restJson1CreateSoftwareUpdateJobCommandError = async (output, context) => {
|
|
2841
2841
|
const parsedOutput = {
|
|
2842
2842
|
...output,
|
|
2843
|
-
body: await
|
|
2843
|
+
body: await parseErrorBody(output.body, context),
|
|
2844
2844
|
};
|
|
2845
2845
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
2846
|
switch (errorCode) {
|
|
@@ -2895,7 +2895,7 @@ exports.deserializeAws_restJson1CreateSubscriptionDefinitionCommand = deserializ
|
|
|
2895
2895
|
const deserializeAws_restJson1CreateSubscriptionDefinitionCommandError = async (output, context) => {
|
|
2896
2896
|
const parsedOutput = {
|
|
2897
2897
|
...output,
|
|
2898
|
-
body: await
|
|
2898
|
+
body: await parseErrorBody(output.body, context),
|
|
2899
2899
|
};
|
|
2900
2900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
2901
|
switch (errorCode) {
|
|
@@ -2938,7 +2938,7 @@ exports.deserializeAws_restJson1CreateSubscriptionDefinitionVersionCommand = des
|
|
|
2938
2938
|
const deserializeAws_restJson1CreateSubscriptionDefinitionVersionCommandError = async (output, context) => {
|
|
2939
2939
|
const parsedOutput = {
|
|
2940
2940
|
...output,
|
|
2941
|
-
body: await
|
|
2941
|
+
body: await parseErrorBody(output.body, context),
|
|
2942
2942
|
};
|
|
2943
2943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2944
2944
|
switch (errorCode) {
|
|
@@ -2969,7 +2969,7 @@ exports.deserializeAws_restJson1DeleteConnectorDefinitionCommand = deserializeAw
|
|
|
2969
2969
|
const deserializeAws_restJson1DeleteConnectorDefinitionCommandError = async (output, context) => {
|
|
2970
2970
|
const parsedOutput = {
|
|
2971
2971
|
...output,
|
|
2972
|
-
body: await
|
|
2972
|
+
body: await parseErrorBody(output.body, context),
|
|
2973
2973
|
};
|
|
2974
2974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
2975
|
switch (errorCode) {
|
|
@@ -3000,7 +3000,7 @@ exports.deserializeAws_restJson1DeleteCoreDefinitionCommand = deserializeAws_res
|
|
|
3000
3000
|
const deserializeAws_restJson1DeleteCoreDefinitionCommandError = async (output, context) => {
|
|
3001
3001
|
const parsedOutput = {
|
|
3002
3002
|
...output,
|
|
3003
|
-
body: await
|
|
3003
|
+
body: await parseErrorBody(output.body, context),
|
|
3004
3004
|
};
|
|
3005
3005
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
3006
|
switch (errorCode) {
|
|
@@ -3031,7 +3031,7 @@ exports.deserializeAws_restJson1DeleteDeviceDefinitionCommand = deserializeAws_r
|
|
|
3031
3031
|
const deserializeAws_restJson1DeleteDeviceDefinitionCommandError = async (output, context) => {
|
|
3032
3032
|
const parsedOutput = {
|
|
3033
3033
|
...output,
|
|
3034
|
-
body: await
|
|
3034
|
+
body: await parseErrorBody(output.body, context),
|
|
3035
3035
|
};
|
|
3036
3036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3037
3037
|
switch (errorCode) {
|
|
@@ -3062,7 +3062,7 @@ exports.deserializeAws_restJson1DeleteFunctionDefinitionCommand = deserializeAws
|
|
|
3062
3062
|
const deserializeAws_restJson1DeleteFunctionDefinitionCommandError = async (output, context) => {
|
|
3063
3063
|
const parsedOutput = {
|
|
3064
3064
|
...output,
|
|
3065
|
-
body: await
|
|
3065
|
+
body: await parseErrorBody(output.body, context),
|
|
3066
3066
|
};
|
|
3067
3067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3068
3068
|
switch (errorCode) {
|
|
@@ -3093,7 +3093,7 @@ exports.deserializeAws_restJson1DeleteGroupCommand = deserializeAws_restJson1Del
|
|
|
3093
3093
|
const deserializeAws_restJson1DeleteGroupCommandError = async (output, context) => {
|
|
3094
3094
|
const parsedOutput = {
|
|
3095
3095
|
...output,
|
|
3096
|
-
body: await
|
|
3096
|
+
body: await parseErrorBody(output.body, context),
|
|
3097
3097
|
};
|
|
3098
3098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
3099
|
switch (errorCode) {
|
|
@@ -3124,7 +3124,7 @@ exports.deserializeAws_restJson1DeleteLoggerDefinitionCommand = deserializeAws_r
|
|
|
3124
3124
|
const deserializeAws_restJson1DeleteLoggerDefinitionCommandError = async (output, context) => {
|
|
3125
3125
|
const parsedOutput = {
|
|
3126
3126
|
...output,
|
|
3127
|
-
body: await
|
|
3127
|
+
body: await parseErrorBody(output.body, context),
|
|
3128
3128
|
};
|
|
3129
3129
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3130
3130
|
switch (errorCode) {
|
|
@@ -3155,7 +3155,7 @@ exports.deserializeAws_restJson1DeleteResourceDefinitionCommand = deserializeAws
|
|
|
3155
3155
|
const deserializeAws_restJson1DeleteResourceDefinitionCommandError = async (output, context) => {
|
|
3156
3156
|
const parsedOutput = {
|
|
3157
3157
|
...output,
|
|
3158
|
-
body: await
|
|
3158
|
+
body: await parseErrorBody(output.body, context),
|
|
3159
3159
|
};
|
|
3160
3160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3161
3161
|
switch (errorCode) {
|
|
@@ -3186,7 +3186,7 @@ exports.deserializeAws_restJson1DeleteSubscriptionDefinitionCommand = deserializ
|
|
|
3186
3186
|
const deserializeAws_restJson1DeleteSubscriptionDefinitionCommandError = async (output, context) => {
|
|
3187
3187
|
const parsedOutput = {
|
|
3188
3188
|
...output,
|
|
3189
|
-
body: await
|
|
3189
|
+
body: await parseErrorBody(output.body, context),
|
|
3190
3190
|
};
|
|
3191
3191
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3192
3192
|
switch (errorCode) {
|
|
@@ -3220,7 +3220,7 @@ exports.deserializeAws_restJson1DisassociateRoleFromGroupCommand = deserializeAw
|
|
|
3220
3220
|
const deserializeAws_restJson1DisassociateRoleFromGroupCommandError = async (output, context) => {
|
|
3221
3221
|
const parsedOutput = {
|
|
3222
3222
|
...output,
|
|
3223
|
-
body: await
|
|
3223
|
+
body: await parseErrorBody(output.body, context),
|
|
3224
3224
|
};
|
|
3225
3225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3226
3226
|
switch (errorCode) {
|
|
@@ -3257,7 +3257,7 @@ exports.deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = dese
|
|
|
3257
3257
|
const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = async (output, context) => {
|
|
3258
3258
|
const parsedOutput = {
|
|
3259
3259
|
...output,
|
|
3260
|
-
body: await
|
|
3260
|
+
body: await parseErrorBody(output.body, context),
|
|
3261
3261
|
};
|
|
3262
3262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3263
3263
|
switch (errorCode) {
|
|
@@ -3294,7 +3294,7 @@ exports.deserializeAws_restJson1GetAssociatedRoleCommand = deserializeAws_restJs
|
|
|
3294
3294
|
const deserializeAws_restJson1GetAssociatedRoleCommandError = async (output, context) => {
|
|
3295
3295
|
const parsedOutput = {
|
|
3296
3296
|
...output,
|
|
3297
|
-
body: await
|
|
3297
|
+
body: await parseErrorBody(output.body, context),
|
|
3298
3298
|
};
|
|
3299
3299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3300
3300
|
switch (errorCode) {
|
|
@@ -3346,7 +3346,7 @@ exports.deserializeAws_restJson1GetBulkDeploymentStatusCommand = deserializeAws_
|
|
|
3346
3346
|
const deserializeAws_restJson1GetBulkDeploymentStatusCommandError = async (output, context) => {
|
|
3347
3347
|
const parsedOutput = {
|
|
3348
3348
|
...output,
|
|
3349
|
-
body: await
|
|
3349
|
+
body: await parseErrorBody(output.body, context),
|
|
3350
3350
|
};
|
|
3351
3351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3352
3352
|
switch (errorCode) {
|
|
@@ -3383,7 +3383,7 @@ exports.deserializeAws_restJson1GetConnectivityInfoCommand = deserializeAws_rest
|
|
|
3383
3383
|
const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, context) => {
|
|
3384
3384
|
const parsedOutput = {
|
|
3385
3385
|
...output,
|
|
3386
|
-
body: await
|
|
3386
|
+
body: await parseErrorBody(output.body, context),
|
|
3387
3387
|
};
|
|
3388
3388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3389
3389
|
switch (errorCode) {
|
|
@@ -3441,7 +3441,7 @@ exports.deserializeAws_restJson1GetConnectorDefinitionCommand = deserializeAws_r
|
|
|
3441
3441
|
const deserializeAws_restJson1GetConnectorDefinitionCommandError = async (output, context) => {
|
|
3442
3442
|
const parsedOutput = {
|
|
3443
3443
|
...output,
|
|
3444
|
-
body: await
|
|
3444
|
+
body: await parseErrorBody(output.body, context),
|
|
3445
3445
|
};
|
|
3446
3446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3447
3447
|
switch (errorCode) {
|
|
@@ -3490,7 +3490,7 @@ exports.deserializeAws_restJson1GetConnectorDefinitionVersionCommand = deseriali
|
|
|
3490
3490
|
const deserializeAws_restJson1GetConnectorDefinitionVersionCommandError = async (output, context) => {
|
|
3491
3491
|
const parsedOutput = {
|
|
3492
3492
|
...output,
|
|
3493
|
-
body: await
|
|
3493
|
+
body: await parseErrorBody(output.body, context),
|
|
3494
3494
|
};
|
|
3495
3495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3496
3496
|
switch (errorCode) {
|
|
@@ -3545,7 +3545,7 @@ exports.deserializeAws_restJson1GetCoreDefinitionCommand = deserializeAws_restJs
|
|
|
3545
3545
|
const deserializeAws_restJson1GetCoreDefinitionCommandError = async (output, context) => {
|
|
3546
3546
|
const parsedOutput = {
|
|
3547
3547
|
...output,
|
|
3548
|
-
body: await
|
|
3548
|
+
body: await parseErrorBody(output.body, context),
|
|
3549
3549
|
};
|
|
3550
3550
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3551
3551
|
switch (errorCode) {
|
|
@@ -3594,7 +3594,7 @@ exports.deserializeAws_restJson1GetCoreDefinitionVersionCommand = deserializeAws
|
|
|
3594
3594
|
const deserializeAws_restJson1GetCoreDefinitionVersionCommandError = async (output, context) => {
|
|
3595
3595
|
const parsedOutput = {
|
|
3596
3596
|
...output,
|
|
3597
|
-
body: await
|
|
3597
|
+
body: await parseErrorBody(output.body, context),
|
|
3598
3598
|
};
|
|
3599
3599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3600
3600
|
switch (errorCode) {
|
|
@@ -3640,7 +3640,7 @@ exports.deserializeAws_restJson1GetDeploymentStatusCommand = deserializeAws_rest
|
|
|
3640
3640
|
const deserializeAws_restJson1GetDeploymentStatusCommandError = async (output, context) => {
|
|
3641
3641
|
const parsedOutput = {
|
|
3642
3642
|
...output,
|
|
3643
|
-
body: await
|
|
3643
|
+
body: await parseErrorBody(output.body, context),
|
|
3644
3644
|
};
|
|
3645
3645
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3646
3646
|
switch (errorCode) {
|
|
@@ -3695,7 +3695,7 @@ exports.deserializeAws_restJson1GetDeviceDefinitionCommand = deserializeAws_rest
|
|
|
3695
3695
|
const deserializeAws_restJson1GetDeviceDefinitionCommandError = async (output, context) => {
|
|
3696
3696
|
const parsedOutput = {
|
|
3697
3697
|
...output,
|
|
3698
|
-
body: await
|
|
3698
|
+
body: await parseErrorBody(output.body, context),
|
|
3699
3699
|
};
|
|
3700
3700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3701
3701
|
switch (errorCode) {
|
|
@@ -3744,7 +3744,7 @@ exports.deserializeAws_restJson1GetDeviceDefinitionVersionCommand = deserializeA
|
|
|
3744
3744
|
const deserializeAws_restJson1GetDeviceDefinitionVersionCommandError = async (output, context) => {
|
|
3745
3745
|
const parsedOutput = {
|
|
3746
3746
|
...output,
|
|
3747
|
-
body: await
|
|
3747
|
+
body: await parseErrorBody(output.body, context),
|
|
3748
3748
|
};
|
|
3749
3749
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3750
3750
|
switch (errorCode) {
|
|
@@ -3799,7 +3799,7 @@ exports.deserializeAws_restJson1GetFunctionDefinitionCommand = deserializeAws_re
|
|
|
3799
3799
|
const deserializeAws_restJson1GetFunctionDefinitionCommandError = async (output, context) => {
|
|
3800
3800
|
const parsedOutput = {
|
|
3801
3801
|
...output,
|
|
3802
|
-
body: await
|
|
3802
|
+
body: await parseErrorBody(output.body, context),
|
|
3803
3803
|
};
|
|
3804
3804
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3805
3805
|
switch (errorCode) {
|
|
@@ -3848,7 +3848,7 @@ exports.deserializeAws_restJson1GetFunctionDefinitionVersionCommand = deserializ
|
|
|
3848
3848
|
const deserializeAws_restJson1GetFunctionDefinitionVersionCommandError = async (output, context) => {
|
|
3849
3849
|
const parsedOutput = {
|
|
3850
3850
|
...output,
|
|
3851
|
-
body: await
|
|
3851
|
+
body: await parseErrorBody(output.body, context),
|
|
3852
3852
|
};
|
|
3853
3853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3854
3854
|
switch (errorCode) {
|
|
@@ -3903,7 +3903,7 @@ exports.deserializeAws_restJson1GetGroupCommand = deserializeAws_restJson1GetGro
|
|
|
3903
3903
|
const deserializeAws_restJson1GetGroupCommandError = async (output, context) => {
|
|
3904
3904
|
const parsedOutput = {
|
|
3905
3905
|
...output,
|
|
3906
|
-
body: await
|
|
3906
|
+
body: await parseErrorBody(output.body, context),
|
|
3907
3907
|
};
|
|
3908
3908
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3909
3909
|
switch (errorCode) {
|
|
@@ -3943,7 +3943,7 @@ exports.deserializeAws_restJson1GetGroupCertificateAuthorityCommand = deserializ
|
|
|
3943
3943
|
const deserializeAws_restJson1GetGroupCertificateAuthorityCommandError = async (output, context) => {
|
|
3944
3944
|
const parsedOutput = {
|
|
3945
3945
|
...output,
|
|
3946
|
-
body: await
|
|
3946
|
+
body: await parseErrorBody(output.body, context),
|
|
3947
3947
|
};
|
|
3948
3948
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3949
3949
|
switch (errorCode) {
|
|
@@ -3986,7 +3986,7 @@ exports.deserializeAws_restJson1GetGroupCertificateConfigurationCommand = deseri
|
|
|
3986
3986
|
const deserializeAws_restJson1GetGroupCertificateConfigurationCommandError = async (output, context) => {
|
|
3987
3987
|
const parsedOutput = {
|
|
3988
3988
|
...output,
|
|
3989
|
-
body: await
|
|
3989
|
+
body: await parseErrorBody(output.body, context),
|
|
3990
3990
|
};
|
|
3991
3991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3992
3992
|
switch (errorCode) {
|
|
@@ -4035,7 +4035,7 @@ exports.deserializeAws_restJson1GetGroupVersionCommand = deserializeAws_restJson
|
|
|
4035
4035
|
const deserializeAws_restJson1GetGroupVersionCommandError = async (output, context) => {
|
|
4036
4036
|
const parsedOutput = {
|
|
4037
4037
|
...output,
|
|
4038
|
-
body: await
|
|
4038
|
+
body: await parseErrorBody(output.body, context),
|
|
4039
4039
|
};
|
|
4040
4040
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4041
4041
|
switch (errorCode) {
|
|
@@ -4090,7 +4090,7 @@ exports.deserializeAws_restJson1GetLoggerDefinitionCommand = deserializeAws_rest
|
|
|
4090
4090
|
const deserializeAws_restJson1GetLoggerDefinitionCommandError = async (output, context) => {
|
|
4091
4091
|
const parsedOutput = {
|
|
4092
4092
|
...output,
|
|
4093
|
-
body: await
|
|
4093
|
+
body: await parseErrorBody(output.body, context),
|
|
4094
4094
|
};
|
|
4095
4095
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4096
4096
|
switch (errorCode) {
|
|
@@ -4136,7 +4136,7 @@ exports.deserializeAws_restJson1GetLoggerDefinitionVersionCommand = deserializeA
|
|
|
4136
4136
|
const deserializeAws_restJson1GetLoggerDefinitionVersionCommandError = async (output, context) => {
|
|
4137
4137
|
const parsedOutput = {
|
|
4138
4138
|
...output,
|
|
4139
|
-
body: await
|
|
4139
|
+
body: await parseErrorBody(output.body, context),
|
|
4140
4140
|
};
|
|
4141
4141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4142
4142
|
switch (errorCode) {
|
|
@@ -4191,7 +4191,7 @@ exports.deserializeAws_restJson1GetResourceDefinitionCommand = deserializeAws_re
|
|
|
4191
4191
|
const deserializeAws_restJson1GetResourceDefinitionCommandError = async (output, context) => {
|
|
4192
4192
|
const parsedOutput = {
|
|
4193
4193
|
...output,
|
|
4194
|
-
body: await
|
|
4194
|
+
body: await parseErrorBody(output.body, context),
|
|
4195
4195
|
};
|
|
4196
4196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4197
4197
|
switch (errorCode) {
|
|
@@ -4237,7 +4237,7 @@ exports.deserializeAws_restJson1GetResourceDefinitionVersionCommand = deserializ
|
|
|
4237
4237
|
const deserializeAws_restJson1GetResourceDefinitionVersionCommandError = async (output, context) => {
|
|
4238
4238
|
const parsedOutput = {
|
|
4239
4239
|
...output,
|
|
4240
|
-
body: await
|
|
4240
|
+
body: await parseErrorBody(output.body, context),
|
|
4241
4241
|
};
|
|
4242
4242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4243
4243
|
switch (errorCode) {
|
|
@@ -4274,7 +4274,7 @@ exports.deserializeAws_restJson1GetServiceRoleForAccountCommand = deserializeAws
|
|
|
4274
4274
|
const deserializeAws_restJson1GetServiceRoleForAccountCommandError = async (output, context) => {
|
|
4275
4275
|
const parsedOutput = {
|
|
4276
4276
|
...output,
|
|
4277
|
-
body: await
|
|
4277
|
+
body: await parseErrorBody(output.body, context),
|
|
4278
4278
|
};
|
|
4279
4279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4280
4280
|
switch (errorCode) {
|
|
@@ -4329,7 +4329,7 @@ exports.deserializeAws_restJson1GetSubscriptionDefinitionCommand = deserializeAw
|
|
|
4329
4329
|
const deserializeAws_restJson1GetSubscriptionDefinitionCommandError = async (output, context) => {
|
|
4330
4330
|
const parsedOutput = {
|
|
4331
4331
|
...output,
|
|
4332
|
-
body: await
|
|
4332
|
+
body: await parseErrorBody(output.body, context),
|
|
4333
4333
|
};
|
|
4334
4334
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4335
4335
|
switch (errorCode) {
|
|
@@ -4378,7 +4378,7 @@ exports.deserializeAws_restJson1GetSubscriptionDefinitionVersionCommand = deseri
|
|
|
4378
4378
|
const deserializeAws_restJson1GetSubscriptionDefinitionVersionCommandError = async (output, context) => {
|
|
4379
4379
|
const parsedOutput = {
|
|
4380
4380
|
...output,
|
|
4381
|
-
body: await
|
|
4381
|
+
body: await parseErrorBody(output.body, context),
|
|
4382
4382
|
};
|
|
4383
4383
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4384
4384
|
switch (errorCode) {
|
|
@@ -4412,7 +4412,7 @@ exports.deserializeAws_restJson1GetThingRuntimeConfigurationCommand = deserializ
|
|
|
4412
4412
|
const deserializeAws_restJson1GetThingRuntimeConfigurationCommandError = async (output, context) => {
|
|
4413
4413
|
const parsedOutput = {
|
|
4414
4414
|
...output,
|
|
4415
|
-
body: await
|
|
4415
|
+
body: await parseErrorBody(output.body, context),
|
|
4416
4416
|
};
|
|
4417
4417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4418
4418
|
switch (errorCode) {
|
|
@@ -4452,7 +4452,7 @@ exports.deserializeAws_restJson1ListBulkDeploymentDetailedReportsCommand = deser
|
|
|
4452
4452
|
const deserializeAws_restJson1ListBulkDeploymentDetailedReportsCommandError = async (output, context) => {
|
|
4453
4453
|
const parsedOutput = {
|
|
4454
4454
|
...output,
|
|
4455
|
-
body: await
|
|
4455
|
+
body: await parseErrorBody(output.body, context),
|
|
4456
4456
|
};
|
|
4457
4457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4458
4458
|
switch (errorCode) {
|
|
@@ -4489,7 +4489,7 @@ exports.deserializeAws_restJson1ListBulkDeploymentsCommand = deserializeAws_rest
|
|
|
4489
4489
|
const deserializeAws_restJson1ListBulkDeploymentsCommandError = async (output, context) => {
|
|
4490
4490
|
const parsedOutput = {
|
|
4491
4491
|
...output,
|
|
4492
|
-
body: await
|
|
4492
|
+
body: await parseErrorBody(output.body, context),
|
|
4493
4493
|
};
|
|
4494
4494
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4495
4495
|
switch (errorCode) {
|
|
@@ -4526,7 +4526,7 @@ exports.deserializeAws_restJson1ListConnectorDefinitionsCommand = deserializeAws
|
|
|
4526
4526
|
const deserializeAws_restJson1ListConnectorDefinitionsCommandError = async (output, context) => {
|
|
4527
4527
|
const parsedOutput = {
|
|
4528
4528
|
...output,
|
|
4529
|
-
body: await
|
|
4529
|
+
body: await parseErrorBody(output.body, context),
|
|
4530
4530
|
};
|
|
4531
4531
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4532
4532
|
const parsedBody = parsedOutput.body;
|
|
@@ -4557,7 +4557,7 @@ exports.deserializeAws_restJson1ListConnectorDefinitionVersionsCommand = deseria
|
|
|
4557
4557
|
const deserializeAws_restJson1ListConnectorDefinitionVersionsCommandError = 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 = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4563
4563
|
switch (errorCode) {
|
|
@@ -4594,7 +4594,7 @@ exports.deserializeAws_restJson1ListCoreDefinitionsCommand = deserializeAws_rest
|
|
|
4594
4594
|
const deserializeAws_restJson1ListCoreDefinitionsCommandError = async (output, context) => {
|
|
4595
4595
|
const parsedOutput = {
|
|
4596
4596
|
...output,
|
|
4597
|
-
body: await
|
|
4597
|
+
body: await parseErrorBody(output.body, context),
|
|
4598
4598
|
};
|
|
4599
4599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4600
4600
|
const parsedBody = parsedOutput.body;
|
|
@@ -4625,7 +4625,7 @@ exports.deserializeAws_restJson1ListCoreDefinitionVersionsCommand = deserializeA
|
|
|
4625
4625
|
const deserializeAws_restJson1ListCoreDefinitionVersionsCommandError = async (output, context) => {
|
|
4626
4626
|
const parsedOutput = {
|
|
4627
4627
|
...output,
|
|
4628
|
-
body: await
|
|
4628
|
+
body: await parseErrorBody(output.body, context),
|
|
4629
4629
|
};
|
|
4630
4630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4631
4631
|
switch (errorCode) {
|
|
@@ -4662,7 +4662,7 @@ exports.deserializeAws_restJson1ListDeploymentsCommand = deserializeAws_restJson
|
|
|
4662
4662
|
const deserializeAws_restJson1ListDeploymentsCommandError = async (output, context) => {
|
|
4663
4663
|
const parsedOutput = {
|
|
4664
4664
|
...output,
|
|
4665
|
-
body: await
|
|
4665
|
+
body: await parseErrorBody(output.body, context),
|
|
4666
4666
|
};
|
|
4667
4667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4668
4668
|
switch (errorCode) {
|
|
@@ -4699,7 +4699,7 @@ exports.deserializeAws_restJson1ListDeviceDefinitionsCommand = deserializeAws_re
|
|
|
4699
4699
|
const deserializeAws_restJson1ListDeviceDefinitionsCommandError = async (output, context) => {
|
|
4700
4700
|
const parsedOutput = {
|
|
4701
4701
|
...output,
|
|
4702
|
-
body: await
|
|
4702
|
+
body: await parseErrorBody(output.body, context),
|
|
4703
4703
|
};
|
|
4704
4704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4705
4705
|
const parsedBody = parsedOutput.body;
|
|
@@ -4730,7 +4730,7 @@ exports.deserializeAws_restJson1ListDeviceDefinitionVersionsCommand = deserializ
|
|
|
4730
4730
|
const deserializeAws_restJson1ListDeviceDefinitionVersionsCommandError = async (output, context) => {
|
|
4731
4731
|
const parsedOutput = {
|
|
4732
4732
|
...output,
|
|
4733
|
-
body: await
|
|
4733
|
+
body: await parseErrorBody(output.body, context),
|
|
4734
4734
|
};
|
|
4735
4735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4736
4736
|
switch (errorCode) {
|
|
@@ -4767,7 +4767,7 @@ exports.deserializeAws_restJson1ListFunctionDefinitionsCommand = deserializeAws_
|
|
|
4767
4767
|
const deserializeAws_restJson1ListFunctionDefinitionsCommandError = async (output, context) => {
|
|
4768
4768
|
const parsedOutput = {
|
|
4769
4769
|
...output,
|
|
4770
|
-
body: await
|
|
4770
|
+
body: await parseErrorBody(output.body, context),
|
|
4771
4771
|
};
|
|
4772
4772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4773
4773
|
const parsedBody = parsedOutput.body;
|
|
@@ -4798,7 +4798,7 @@ exports.deserializeAws_restJson1ListFunctionDefinitionVersionsCommand = deserial
|
|
|
4798
4798
|
const deserializeAws_restJson1ListFunctionDefinitionVersionsCommandError = async (output, context) => {
|
|
4799
4799
|
const parsedOutput = {
|
|
4800
4800
|
...output,
|
|
4801
|
-
body: await
|
|
4801
|
+
body: await parseErrorBody(output.body, context),
|
|
4802
4802
|
};
|
|
4803
4803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4804
4804
|
switch (errorCode) {
|
|
@@ -4832,7 +4832,7 @@ exports.deserializeAws_restJson1ListGroupCertificateAuthoritiesCommand = deseria
|
|
|
4832
4832
|
const deserializeAws_restJson1ListGroupCertificateAuthoritiesCommandError = async (output, context) => {
|
|
4833
4833
|
const parsedOutput = {
|
|
4834
4834
|
...output,
|
|
4835
|
-
body: await
|
|
4835
|
+
body: await parseErrorBody(output.body, context),
|
|
4836
4836
|
};
|
|
4837
4837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4838
4838
|
switch (errorCode) {
|
|
@@ -4872,7 +4872,7 @@ exports.deserializeAws_restJson1ListGroupsCommand = deserializeAws_restJson1List
|
|
|
4872
4872
|
const deserializeAws_restJson1ListGroupsCommandError = async (output, context) => {
|
|
4873
4873
|
const parsedOutput = {
|
|
4874
4874
|
...output,
|
|
4875
|
-
body: await
|
|
4875
|
+
body: await parseErrorBody(output.body, context),
|
|
4876
4876
|
};
|
|
4877
4877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4878
4878
|
const parsedBody = parsedOutput.body;
|
|
@@ -4903,7 +4903,7 @@ exports.deserializeAws_restJson1ListGroupVersionsCommand = deserializeAws_restJs
|
|
|
4903
4903
|
const deserializeAws_restJson1ListGroupVersionsCommandError = async (output, context) => {
|
|
4904
4904
|
const parsedOutput = {
|
|
4905
4905
|
...output,
|
|
4906
|
-
body: await
|
|
4906
|
+
body: await parseErrorBody(output.body, context),
|
|
4907
4907
|
};
|
|
4908
4908
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4909
4909
|
switch (errorCode) {
|
|
@@ -4940,7 +4940,7 @@ exports.deserializeAws_restJson1ListLoggerDefinitionsCommand = deserializeAws_re
|
|
|
4940
4940
|
const deserializeAws_restJson1ListLoggerDefinitionsCommandError = async (output, context) => {
|
|
4941
4941
|
const parsedOutput = {
|
|
4942
4942
|
...output,
|
|
4943
|
-
body: await
|
|
4943
|
+
body: await parseErrorBody(output.body, context),
|
|
4944
4944
|
};
|
|
4945
4945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4946
4946
|
const parsedBody = parsedOutput.body;
|
|
@@ -4971,7 +4971,7 @@ exports.deserializeAws_restJson1ListLoggerDefinitionVersionsCommand = deserializ
|
|
|
4971
4971
|
const deserializeAws_restJson1ListLoggerDefinitionVersionsCommandError = async (output, context) => {
|
|
4972
4972
|
const parsedOutput = {
|
|
4973
4973
|
...output,
|
|
4974
|
-
body: await
|
|
4974
|
+
body: await parseErrorBody(output.body, context),
|
|
4975
4975
|
};
|
|
4976
4976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4977
4977
|
switch (errorCode) {
|
|
@@ -5008,7 +5008,7 @@ exports.deserializeAws_restJson1ListResourceDefinitionsCommand = deserializeAws_
|
|
|
5008
5008
|
const deserializeAws_restJson1ListResourceDefinitionsCommandError = async (output, context) => {
|
|
5009
5009
|
const parsedOutput = {
|
|
5010
5010
|
...output,
|
|
5011
|
-
body: await
|
|
5011
|
+
body: await parseErrorBody(output.body, context),
|
|
5012
5012
|
};
|
|
5013
5013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5014
5014
|
const parsedBody = parsedOutput.body;
|
|
@@ -5039,7 +5039,7 @@ exports.deserializeAws_restJson1ListResourceDefinitionVersionsCommand = deserial
|
|
|
5039
5039
|
const deserializeAws_restJson1ListResourceDefinitionVersionsCommandError = async (output, context) => {
|
|
5040
5040
|
const parsedOutput = {
|
|
5041
5041
|
...output,
|
|
5042
|
-
body: await
|
|
5042
|
+
body: await parseErrorBody(output.body, context),
|
|
5043
5043
|
};
|
|
5044
5044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5045
5045
|
switch (errorCode) {
|
|
@@ -5076,7 +5076,7 @@ exports.deserializeAws_restJson1ListSubscriptionDefinitionsCommand = deserialize
|
|
|
5076
5076
|
const deserializeAws_restJson1ListSubscriptionDefinitionsCommandError = async (output, context) => {
|
|
5077
5077
|
const parsedOutput = {
|
|
5078
5078
|
...output,
|
|
5079
|
-
body: await
|
|
5079
|
+
body: await parseErrorBody(output.body, context),
|
|
5080
5080
|
};
|
|
5081
5081
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5082
5082
|
const parsedBody = parsedOutput.body;
|
|
@@ -5107,7 +5107,7 @@ exports.deserializeAws_restJson1ListSubscriptionDefinitionVersionsCommand = dese
|
|
|
5107
5107
|
const deserializeAws_restJson1ListSubscriptionDefinitionVersionsCommandError = async (output, context) => {
|
|
5108
5108
|
const parsedOutput = {
|
|
5109
5109
|
...output,
|
|
5110
|
-
body: await
|
|
5110
|
+
body: await parseErrorBody(output.body, context),
|
|
5111
5111
|
};
|
|
5112
5112
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5113
5113
|
switch (errorCode) {
|
|
@@ -5141,7 +5141,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
5141
5141
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
5142
5142
|
const parsedOutput = {
|
|
5143
5143
|
...output,
|
|
5144
|
-
body: await
|
|
5144
|
+
body: await parseErrorBody(output.body, context),
|
|
5145
5145
|
};
|
|
5146
5146
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5147
5147
|
switch (errorCode) {
|
|
@@ -5178,7 +5178,7 @@ exports.deserializeAws_restJson1ResetDeploymentsCommand = deserializeAws_restJso
|
|
|
5178
5178
|
const deserializeAws_restJson1ResetDeploymentsCommandError = async (output, context) => {
|
|
5179
5179
|
const parsedOutput = {
|
|
5180
5180
|
...output,
|
|
5181
|
-
body: await
|
|
5181
|
+
body: await parseErrorBody(output.body, context),
|
|
5182
5182
|
};
|
|
5183
5183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5184
5184
|
switch (errorCode) {
|
|
@@ -5215,7 +5215,7 @@ exports.deserializeAws_restJson1StartBulkDeploymentCommand = deserializeAws_rest
|
|
|
5215
5215
|
const deserializeAws_restJson1StartBulkDeploymentCommandError = async (output, context) => {
|
|
5216
5216
|
const parsedOutput = {
|
|
5217
5217
|
...output,
|
|
5218
|
-
body: await
|
|
5218
|
+
body: await parseErrorBody(output.body, context),
|
|
5219
5219
|
};
|
|
5220
5220
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5221
5221
|
switch (errorCode) {
|
|
@@ -5246,7 +5246,7 @@ exports.deserializeAws_restJson1StopBulkDeploymentCommand = deserializeAws_restJ
|
|
|
5246
5246
|
const deserializeAws_restJson1StopBulkDeploymentCommandError = async (output, context) => {
|
|
5247
5247
|
const parsedOutput = {
|
|
5248
5248
|
...output,
|
|
5249
|
-
body: await
|
|
5249
|
+
body: await parseErrorBody(output.body, context),
|
|
5250
5250
|
};
|
|
5251
5251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5252
5252
|
switch (errorCode) {
|
|
@@ -5277,7 +5277,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
5277
5277
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
5278
5278
|
const parsedOutput = {
|
|
5279
5279
|
...output,
|
|
5280
|
-
body: await
|
|
5280
|
+
body: await parseErrorBody(output.body, context),
|
|
5281
5281
|
};
|
|
5282
5282
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5283
5283
|
switch (errorCode) {
|
|
@@ -5308,7 +5308,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
5308
5308
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
5309
5309
|
const parsedOutput = {
|
|
5310
5310
|
...output,
|
|
5311
|
-
body: await
|
|
5311
|
+
body: await parseErrorBody(output.body, context),
|
|
5312
5312
|
};
|
|
5313
5313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5314
5314
|
switch (errorCode) {
|
|
@@ -5345,7 +5345,7 @@ exports.deserializeAws_restJson1UpdateConnectivityInfoCommand = deserializeAws_r
|
|
|
5345
5345
|
const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output, context) => {
|
|
5346
5346
|
const parsedOutput = {
|
|
5347
5347
|
...output,
|
|
5348
|
-
body: await
|
|
5348
|
+
body: await parseErrorBody(output.body, context),
|
|
5349
5349
|
};
|
|
5350
5350
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5351
5351
|
switch (errorCode) {
|
|
@@ -5379,7 +5379,7 @@ exports.deserializeAws_restJson1UpdateConnectorDefinitionCommand = deserializeAw
|
|
|
5379
5379
|
const deserializeAws_restJson1UpdateConnectorDefinitionCommandError = async (output, context) => {
|
|
5380
5380
|
const parsedOutput = {
|
|
5381
5381
|
...output,
|
|
5382
|
-
body: await
|
|
5382
|
+
body: await parseErrorBody(output.body, context),
|
|
5383
5383
|
};
|
|
5384
5384
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5385
5385
|
switch (errorCode) {
|
|
@@ -5410,7 +5410,7 @@ exports.deserializeAws_restJson1UpdateCoreDefinitionCommand = deserializeAws_res
|
|
|
5410
5410
|
const deserializeAws_restJson1UpdateCoreDefinitionCommandError = async (output, context) => {
|
|
5411
5411
|
const parsedOutput = {
|
|
5412
5412
|
...output,
|
|
5413
|
-
body: await
|
|
5413
|
+
body: await parseErrorBody(output.body, context),
|
|
5414
5414
|
};
|
|
5415
5415
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5416
5416
|
switch (errorCode) {
|
|
@@ -5441,7 +5441,7 @@ exports.deserializeAws_restJson1UpdateDeviceDefinitionCommand = deserializeAws_r
|
|
|
5441
5441
|
const deserializeAws_restJson1UpdateDeviceDefinitionCommandError = async (output, context) => {
|
|
5442
5442
|
const parsedOutput = {
|
|
5443
5443
|
...output,
|
|
5444
|
-
body: await
|
|
5444
|
+
body: await parseErrorBody(output.body, context),
|
|
5445
5445
|
};
|
|
5446
5446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5447
5447
|
switch (errorCode) {
|
|
@@ -5472,7 +5472,7 @@ exports.deserializeAws_restJson1UpdateFunctionDefinitionCommand = deserializeAws
|
|
|
5472
5472
|
const deserializeAws_restJson1UpdateFunctionDefinitionCommandError = async (output, context) => {
|
|
5473
5473
|
const parsedOutput = {
|
|
5474
5474
|
...output,
|
|
5475
|
-
body: await
|
|
5475
|
+
body: await parseErrorBody(output.body, context),
|
|
5476
5476
|
};
|
|
5477
5477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5478
5478
|
switch (errorCode) {
|
|
@@ -5503,7 +5503,7 @@ exports.deserializeAws_restJson1UpdateGroupCommand = deserializeAws_restJson1Upd
|
|
|
5503
5503
|
const deserializeAws_restJson1UpdateGroupCommandError = async (output, context) => {
|
|
5504
5504
|
const parsedOutput = {
|
|
5505
5505
|
...output,
|
|
5506
|
-
body: await
|
|
5506
|
+
body: await parseErrorBody(output.body, context),
|
|
5507
5507
|
};
|
|
5508
5508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5509
5509
|
switch (errorCode) {
|
|
@@ -5543,7 +5543,7 @@ exports.deserializeAws_restJson1UpdateGroupCertificateConfigurationCommand = des
|
|
|
5543
5543
|
const deserializeAws_restJson1UpdateGroupCertificateConfigurationCommandError = async (output, context) => {
|
|
5544
5544
|
const parsedOutput = {
|
|
5545
5545
|
...output,
|
|
5546
|
-
body: await
|
|
5546
|
+
body: await parseErrorBody(output.body, context),
|
|
5547
5547
|
};
|
|
5548
5548
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5549
5549
|
switch (errorCode) {
|
|
@@ -5577,7 +5577,7 @@ exports.deserializeAws_restJson1UpdateLoggerDefinitionCommand = deserializeAws_r
|
|
|
5577
5577
|
const deserializeAws_restJson1UpdateLoggerDefinitionCommandError = async (output, context) => {
|
|
5578
5578
|
const parsedOutput = {
|
|
5579
5579
|
...output,
|
|
5580
|
-
body: await
|
|
5580
|
+
body: await parseErrorBody(output.body, context),
|
|
5581
5581
|
};
|
|
5582
5582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5583
5583
|
switch (errorCode) {
|
|
@@ -5608,7 +5608,7 @@ exports.deserializeAws_restJson1UpdateResourceDefinitionCommand = deserializeAws
|
|
|
5608
5608
|
const deserializeAws_restJson1UpdateResourceDefinitionCommandError = 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 = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5614
5614
|
switch (errorCode) {
|
|
@@ -5639,7 +5639,7 @@ exports.deserializeAws_restJson1UpdateSubscriptionDefinitionCommand = deserializ
|
|
|
5639
5639
|
const deserializeAws_restJson1UpdateSubscriptionDefinitionCommandError = async (output, context) => {
|
|
5640
5640
|
const parsedOutput = {
|
|
5641
5641
|
...output,
|
|
5642
|
-
body: await
|
|
5642
|
+
body: await parseErrorBody(output.body, context),
|
|
5643
5643
|
};
|
|
5644
5644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5645
5645
|
switch (errorCode) {
|
|
@@ -5670,7 +5670,7 @@ exports.deserializeAws_restJson1UpdateThingRuntimeConfigurationCommand = deseria
|
|
|
5670
5670
|
const deserializeAws_restJson1UpdateThingRuntimeConfigurationCommandError = async (output, context) => {
|
|
5671
5671
|
const parsedOutput = {
|
|
5672
5672
|
...output,
|
|
5673
|
-
body: await
|
|
5673
|
+
body: await parseErrorBody(output.body, context),
|
|
5674
5674
|
};
|
|
5675
5675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5676
5676
|
switch (errorCode) {
|
|
@@ -6663,6 +6663,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6663
6663
|
}
|
|
6664
6664
|
return {};
|
|
6665
6665
|
});
|
|
6666
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6667
|
+
var _a;
|
|
6668
|
+
const value = await parseBody(errorBody, context);
|
|
6669
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6670
|
+
return value;
|
|
6671
|
+
};
|
|
6666
6672
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6667
6673
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6668
6674
|
const sanitizeErrorCode = (rawValue) => {
|