@aws-sdk/client-iotsitewise 3.118.1 → 3.121.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +340 -273
- package/dist-es/protocols/Aws_restJson1.js +340 -273
- package/package.json +3 -3
|
@@ -2473,8 +2473,7 @@ const deserializeAws_restJson1AssociateAssetsCommandError = async (output, conte
|
|
|
2473
2473
|
body: await parseBody(output.body, context),
|
|
2474
2474
|
};
|
|
2475
2475
|
let response;
|
|
2476
|
-
|
|
2477
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
2477
|
switch (errorCode) {
|
|
2479
2478
|
case "ConflictingOperationException":
|
|
2480
2479
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -2496,10 +2495,12 @@ const deserializeAws_restJson1AssociateAssetsCommandError = async (output, conte
|
|
|
2496
2495
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2497
2496
|
default:
|
|
2498
2497
|
const parsedBody = parsedOutput.body;
|
|
2498
|
+
const $metadata = deserializeMetadata(output);
|
|
2499
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2499
2500
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2501
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2501
2502
|
$fault: "client",
|
|
2502
|
-
$metadata
|
|
2503
|
+
$metadata,
|
|
2503
2504
|
});
|
|
2504
2505
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2505
2506
|
}
|
|
@@ -2521,8 +2522,7 @@ const deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommandError = a
|
|
|
2521
2522
|
body: await parseBody(output.body, context),
|
|
2522
2523
|
};
|
|
2523
2524
|
let response;
|
|
2524
|
-
|
|
2525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
2526
|
switch (errorCode) {
|
|
2527
2527
|
case "ConflictingOperationException":
|
|
2528
2528
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -2541,10 +2541,12 @@ const deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommandError = a
|
|
|
2541
2541
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2542
2542
|
default:
|
|
2543
2543
|
const parsedBody = parsedOutput.body;
|
|
2544
|
+
const $metadata = deserializeMetadata(output);
|
|
2545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2544
2546
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2546
2548
|
$fault: "client",
|
|
2547
|
-
$metadata
|
|
2549
|
+
$metadata,
|
|
2548
2550
|
});
|
|
2549
2551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2550
2552
|
}
|
|
@@ -2570,8 +2572,7 @@ const deserializeAws_restJson1BatchAssociateProjectAssetsCommandError = async (o
|
|
|
2570
2572
|
body: await parseBody(output.body, context),
|
|
2571
2573
|
};
|
|
2572
2574
|
let response;
|
|
2573
|
-
|
|
2574
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
2576
|
switch (errorCode) {
|
|
2576
2577
|
case "InternalFailureException":
|
|
2577
2578
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -2590,10 +2591,12 @@ const deserializeAws_restJson1BatchAssociateProjectAssetsCommandError = async (o
|
|
|
2590
2591
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2591
2592
|
default:
|
|
2592
2593
|
const parsedBody = parsedOutput.body;
|
|
2594
|
+
const $metadata = deserializeMetadata(output);
|
|
2595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2593
2596
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2595
2598
|
$fault: "client",
|
|
2596
|
-
$metadata
|
|
2599
|
+
$metadata,
|
|
2597
2600
|
});
|
|
2598
2601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2599
2602
|
}
|
|
@@ -2619,8 +2622,7 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsCommandError = async
|
|
|
2619
2622
|
body: await parseBody(output.body, context),
|
|
2620
2623
|
};
|
|
2621
2624
|
let response;
|
|
2622
|
-
|
|
2623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
2626
|
switch (errorCode) {
|
|
2625
2627
|
case "InternalFailureException":
|
|
2626
2628
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -2636,10 +2638,12 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsCommandError = async
|
|
|
2636
2638
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2637
2639
|
default:
|
|
2638
2640
|
const parsedBody = parsedOutput.body;
|
|
2641
|
+
const $metadata = deserializeMetadata(output);
|
|
2642
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2639
2643
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2644
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2641
2645
|
$fault: "client",
|
|
2642
|
-
$metadata
|
|
2646
|
+
$metadata,
|
|
2643
2647
|
});
|
|
2644
2648
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2645
2649
|
}
|
|
@@ -2677,8 +2681,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommandError = asyn
|
|
|
2677
2681
|
body: await parseBody(output.body, context),
|
|
2678
2682
|
};
|
|
2679
2683
|
let response;
|
|
2680
|
-
|
|
2681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2684
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
2685
|
switch (errorCode) {
|
|
2683
2686
|
case "InternalFailureException":
|
|
2684
2687
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -2694,10 +2697,12 @@ const deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommandError = asyn
|
|
|
2694
2697
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2695
2698
|
default:
|
|
2696
2699
|
const parsedBody = parsedOutput.body;
|
|
2700
|
+
const $metadata = deserializeMetadata(output);
|
|
2701
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2697
2702
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2699
2704
|
$fault: "client",
|
|
2700
|
-
$metadata
|
|
2705
|
+
$metadata,
|
|
2701
2706
|
});
|
|
2702
2707
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2703
2708
|
}
|
|
@@ -2735,8 +2740,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueCommandError = async (ou
|
|
|
2735
2740
|
body: await parseBody(output.body, context),
|
|
2736
2741
|
};
|
|
2737
2742
|
let response;
|
|
2738
|
-
|
|
2739
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2740
2744
|
switch (errorCode) {
|
|
2741
2745
|
case "InternalFailureException":
|
|
2742
2746
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -2752,10 +2756,12 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueCommandError = async (ou
|
|
|
2752
2756
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2753
2757
|
default:
|
|
2754
2758
|
const parsedBody = parsedOutput.body;
|
|
2759
|
+
const $metadata = deserializeMetadata(output);
|
|
2760
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2755
2761
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2757
2763
|
$fault: "client",
|
|
2758
|
-
$metadata
|
|
2764
|
+
$metadata,
|
|
2759
2765
|
});
|
|
2760
2766
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2761
2767
|
}
|
|
@@ -2793,8 +2799,7 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommandError = as
|
|
|
2793
2799
|
body: await parseBody(output.body, context),
|
|
2794
2800
|
};
|
|
2795
2801
|
let response;
|
|
2796
|
-
|
|
2797
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
2803
|
switch (errorCode) {
|
|
2799
2804
|
case "InternalFailureException":
|
|
2800
2805
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -2810,10 +2815,12 @@ const deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommandError = as
|
|
|
2810
2815
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2811
2816
|
default:
|
|
2812
2817
|
const parsedBody = parsedOutput.body;
|
|
2818
|
+
const $metadata = deserializeMetadata(output);
|
|
2819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2813
2820
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2814
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2815
2822
|
$fault: "client",
|
|
2816
|
-
$metadata
|
|
2823
|
+
$metadata,
|
|
2817
2824
|
});
|
|
2818
2825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2819
2826
|
}
|
|
@@ -2839,8 +2846,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyValueCommandError = async (ou
|
|
|
2839
2846
|
body: await parseBody(output.body, context),
|
|
2840
2847
|
};
|
|
2841
2848
|
let response;
|
|
2842
|
-
|
|
2843
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
2850
|
switch (errorCode) {
|
|
2845
2851
|
case "ConflictingOperationException":
|
|
2846
2852
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -2865,10 +2871,12 @@ const deserializeAws_restJson1BatchPutAssetPropertyValueCommandError = async (ou
|
|
|
2865
2871
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2866
2872
|
default:
|
|
2867
2873
|
const parsedBody = parsedOutput.body;
|
|
2874
|
+
const $metadata = deserializeMetadata(output);
|
|
2875
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2868
2876
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2877
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2870
2878
|
$fault: "client",
|
|
2871
|
-
$metadata
|
|
2879
|
+
$metadata,
|
|
2872
2880
|
});
|
|
2873
2881
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2874
2882
|
}
|
|
@@ -2898,8 +2906,7 @@ const deserializeAws_restJson1CreateAccessPolicyCommandError = async (output, co
|
|
|
2898
2906
|
body: await parseBody(output.body, context),
|
|
2899
2907
|
};
|
|
2900
2908
|
let response;
|
|
2901
|
-
|
|
2902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
2910
|
switch (errorCode) {
|
|
2904
2911
|
case "InternalFailureException":
|
|
2905
2912
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -2918,10 +2925,12 @@ const deserializeAws_restJson1CreateAccessPolicyCommandError = async (output, co
|
|
|
2918
2925
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2919
2926
|
default:
|
|
2920
2927
|
const parsedBody = parsedOutput.body;
|
|
2928
|
+
const $metadata = deserializeMetadata(output);
|
|
2929
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2921
2930
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2931
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2923
2932
|
$fault: "client",
|
|
2924
|
-
$metadata
|
|
2933
|
+
$metadata,
|
|
2925
2934
|
});
|
|
2926
2935
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2927
2936
|
}
|
|
@@ -2955,8 +2964,7 @@ const deserializeAws_restJson1CreateAssetCommandError = async (output, context)
|
|
|
2955
2964
|
body: await parseBody(output.body, context),
|
|
2956
2965
|
};
|
|
2957
2966
|
let response;
|
|
2958
|
-
|
|
2959
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2960
2968
|
switch (errorCode) {
|
|
2961
2969
|
case "ConflictingOperationException":
|
|
2962
2970
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -2981,10 +2989,12 @@ const deserializeAws_restJson1CreateAssetCommandError = async (output, context)
|
|
|
2981
2989
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2982
2990
|
default:
|
|
2983
2991
|
const parsedBody = parsedOutput.body;
|
|
2992
|
+
const $metadata = deserializeMetadata(output);
|
|
2993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2984
2994
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
2985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2986
2996
|
$fault: "client",
|
|
2987
|
-
$metadata
|
|
2997
|
+
$metadata,
|
|
2988
2998
|
});
|
|
2989
2999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2990
3000
|
}
|
|
@@ -3018,8 +3028,7 @@ const deserializeAws_restJson1CreateAssetModelCommandError = async (output, cont
|
|
|
3018
3028
|
body: await parseBody(output.body, context),
|
|
3019
3029
|
};
|
|
3020
3030
|
let response;
|
|
3021
|
-
|
|
3022
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
3032
|
switch (errorCode) {
|
|
3024
3033
|
case "ConflictingOperationException":
|
|
3025
3034
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -3044,10 +3053,12 @@ const deserializeAws_restJson1CreateAssetModelCommandError = async (output, cont
|
|
|
3044
3053
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3045
3054
|
default:
|
|
3046
3055
|
const parsedBody = parsedOutput.body;
|
|
3056
|
+
const $metadata = deserializeMetadata(output);
|
|
3057
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3047
3058
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3059
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3049
3060
|
$fault: "client",
|
|
3050
|
-
$metadata
|
|
3061
|
+
$metadata,
|
|
3051
3062
|
});
|
|
3052
3063
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3053
3064
|
}
|
|
@@ -3077,8 +3088,7 @@ const deserializeAws_restJson1CreateDashboardCommandError = async (output, conte
|
|
|
3077
3088
|
body: await parseBody(output.body, context),
|
|
3078
3089
|
};
|
|
3079
3090
|
let response;
|
|
3080
|
-
|
|
3081
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3082
3092
|
switch (errorCode) {
|
|
3083
3093
|
case "InternalFailureException":
|
|
3084
3094
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3097,10 +3107,12 @@ const deserializeAws_restJson1CreateDashboardCommandError = async (output, conte
|
|
|
3097
3107
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3098
3108
|
default:
|
|
3099
3109
|
const parsedBody = parsedOutput.body;
|
|
3110
|
+
const $metadata = deserializeMetadata(output);
|
|
3111
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3100
3112
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3113
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3102
3114
|
$fault: "client",
|
|
3103
|
-
$metadata
|
|
3115
|
+
$metadata,
|
|
3104
3116
|
});
|
|
3105
3117
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3106
3118
|
}
|
|
@@ -3130,8 +3142,7 @@ const deserializeAws_restJson1CreateGatewayCommandError = async (output, context
|
|
|
3130
3142
|
body: await parseBody(output.body, context),
|
|
3131
3143
|
};
|
|
3132
3144
|
let response;
|
|
3133
|
-
|
|
3134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3135
3146
|
switch (errorCode) {
|
|
3136
3147
|
case "InternalFailureException":
|
|
3137
3148
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3150,10 +3161,12 @@ const deserializeAws_restJson1CreateGatewayCommandError = async (output, context
|
|
|
3150
3161
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3151
3162
|
default:
|
|
3152
3163
|
const parsedBody = parsedOutput.body;
|
|
3164
|
+
const $metadata = deserializeMetadata(output);
|
|
3165
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3153
3166
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3154
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3167
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3155
3168
|
$fault: "client",
|
|
3156
|
-
$metadata
|
|
3169
|
+
$metadata,
|
|
3157
3170
|
});
|
|
3158
3171
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3159
3172
|
}
|
|
@@ -3195,8 +3208,7 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
3195
3208
|
body: await parseBody(output.body, context),
|
|
3196
3209
|
};
|
|
3197
3210
|
let response;
|
|
3198
|
-
|
|
3199
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3211
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3200
3212
|
switch (errorCode) {
|
|
3201
3213
|
case "InternalFailureException":
|
|
3202
3214
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3215,10 +3227,12 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
3215
3227
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3216
3228
|
default:
|
|
3217
3229
|
const parsedBody = parsedOutput.body;
|
|
3230
|
+
const $metadata = deserializeMetadata(output);
|
|
3231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3218
3232
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3220
3234
|
$fault: "client",
|
|
3221
|
-
$metadata
|
|
3235
|
+
$metadata,
|
|
3222
3236
|
});
|
|
3223
3237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3224
3238
|
}
|
|
@@ -3248,8 +3262,7 @@ const deserializeAws_restJson1CreateProjectCommandError = async (output, context
|
|
|
3248
3262
|
body: await parseBody(output.body, context),
|
|
3249
3263
|
};
|
|
3250
3264
|
let response;
|
|
3251
|
-
|
|
3252
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3253
3266
|
switch (errorCode) {
|
|
3254
3267
|
case "InternalFailureException":
|
|
3255
3268
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3268,10 +3281,12 @@ const deserializeAws_restJson1CreateProjectCommandError = async (output, context
|
|
|
3268
3281
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3269
3282
|
default:
|
|
3270
3283
|
const parsedBody = parsedOutput.body;
|
|
3284
|
+
const $metadata = deserializeMetadata(output);
|
|
3285
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3271
3286
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3272
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3287
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3273
3288
|
$fault: "client",
|
|
3274
|
-
$metadata
|
|
3289
|
+
$metadata,
|
|
3275
3290
|
});
|
|
3276
3291
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3277
3292
|
}
|
|
@@ -3293,8 +3308,7 @@ const deserializeAws_restJson1DeleteAccessPolicyCommandError = async (output, co
|
|
|
3293
3308
|
body: await parseBody(output.body, context),
|
|
3294
3309
|
};
|
|
3295
3310
|
let response;
|
|
3296
|
-
|
|
3297
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3298
3312
|
switch (errorCode) {
|
|
3299
3313
|
case "InternalFailureException":
|
|
3300
3314
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3310,10 +3324,12 @@ const deserializeAws_restJson1DeleteAccessPolicyCommandError = async (output, co
|
|
|
3310
3324
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3311
3325
|
default:
|
|
3312
3326
|
const parsedBody = parsedOutput.body;
|
|
3327
|
+
const $metadata = deserializeMetadata(output);
|
|
3328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3313
3329
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3314
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3315
3331
|
$fault: "client",
|
|
3316
|
-
$metadata
|
|
3332
|
+
$metadata,
|
|
3317
3333
|
});
|
|
3318
3334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3319
3335
|
}
|
|
@@ -3339,8 +3355,7 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
3339
3355
|
body: await parseBody(output.body, context),
|
|
3340
3356
|
};
|
|
3341
3357
|
let response;
|
|
3342
|
-
|
|
3343
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3344
3359
|
switch (errorCode) {
|
|
3345
3360
|
case "ConflictingOperationException":
|
|
3346
3361
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -3359,10 +3374,12 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
3359
3374
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3360
3375
|
default:
|
|
3361
3376
|
const parsedBody = parsedOutput.body;
|
|
3377
|
+
const $metadata = deserializeMetadata(output);
|
|
3378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3362
3379
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3364
3381
|
$fault: "client",
|
|
3365
|
-
$metadata
|
|
3382
|
+
$metadata,
|
|
3366
3383
|
});
|
|
3367
3384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3368
3385
|
}
|
|
@@ -3388,8 +3405,7 @@ const deserializeAws_restJson1DeleteAssetModelCommandError = async (output, cont
|
|
|
3388
3405
|
body: await parseBody(output.body, context),
|
|
3389
3406
|
};
|
|
3390
3407
|
let response;
|
|
3391
|
-
|
|
3392
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3393
3409
|
switch (errorCode) {
|
|
3394
3410
|
case "ConflictingOperationException":
|
|
3395
3411
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -3408,10 +3424,12 @@ const deserializeAws_restJson1DeleteAssetModelCommandError = async (output, cont
|
|
|
3408
3424
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3409
3425
|
default:
|
|
3410
3426
|
const parsedBody = parsedOutput.body;
|
|
3427
|
+
const $metadata = deserializeMetadata(output);
|
|
3428
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3411
3429
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3413
3431
|
$fault: "client",
|
|
3414
|
-
$metadata
|
|
3432
|
+
$metadata,
|
|
3415
3433
|
});
|
|
3416
3434
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3417
3435
|
}
|
|
@@ -3433,8 +3451,7 @@ const deserializeAws_restJson1DeleteDashboardCommandError = async (output, conte
|
|
|
3433
3451
|
body: await parseBody(output.body, context),
|
|
3434
3452
|
};
|
|
3435
3453
|
let response;
|
|
3436
|
-
|
|
3437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3438
3455
|
switch (errorCode) {
|
|
3439
3456
|
case "InternalFailureException":
|
|
3440
3457
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3450,10 +3467,12 @@ const deserializeAws_restJson1DeleteDashboardCommandError = async (output, conte
|
|
|
3450
3467
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3451
3468
|
default:
|
|
3452
3469
|
const parsedBody = parsedOutput.body;
|
|
3470
|
+
const $metadata = deserializeMetadata(output);
|
|
3471
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3453
3472
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3473
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3455
3474
|
$fault: "client",
|
|
3456
|
-
$metadata
|
|
3475
|
+
$metadata,
|
|
3457
3476
|
});
|
|
3458
3477
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3459
3478
|
}
|
|
@@ -3475,8 +3494,7 @@ const deserializeAws_restJson1DeleteGatewayCommandError = async (output, context
|
|
|
3475
3494
|
body: await parseBody(output.body, context),
|
|
3476
3495
|
};
|
|
3477
3496
|
let response;
|
|
3478
|
-
|
|
3479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
3498
|
switch (errorCode) {
|
|
3481
3499
|
case "InternalFailureException":
|
|
3482
3500
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3492,10 +3510,12 @@ const deserializeAws_restJson1DeleteGatewayCommandError = async (output, context
|
|
|
3492
3510
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3493
3511
|
default:
|
|
3494
3512
|
const parsedBody = parsedOutput.body;
|
|
3513
|
+
const $metadata = deserializeMetadata(output);
|
|
3514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3495
3515
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3496
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3497
3517
|
$fault: "client",
|
|
3498
|
-
$metadata
|
|
3518
|
+
$metadata,
|
|
3499
3519
|
});
|
|
3500
3520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3501
3521
|
}
|
|
@@ -3521,8 +3541,7 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
3521
3541
|
body: await parseBody(output.body, context),
|
|
3522
3542
|
};
|
|
3523
3543
|
let response;
|
|
3524
|
-
|
|
3525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3526
3545
|
switch (errorCode) {
|
|
3527
3546
|
case "ConflictingOperationException":
|
|
3528
3547
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -3541,10 +3560,12 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
3541
3560
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3542
3561
|
default:
|
|
3543
3562
|
const parsedBody = parsedOutput.body;
|
|
3563
|
+
const $metadata = deserializeMetadata(output);
|
|
3564
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3544
3565
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3566
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3546
3567
|
$fault: "client",
|
|
3547
|
-
$metadata
|
|
3568
|
+
$metadata,
|
|
3548
3569
|
});
|
|
3549
3570
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3550
3571
|
}
|
|
@@ -3566,8 +3587,7 @@ const deserializeAws_restJson1DeleteProjectCommandError = async (output, context
|
|
|
3566
3587
|
body: await parseBody(output.body, context),
|
|
3567
3588
|
};
|
|
3568
3589
|
let response;
|
|
3569
|
-
|
|
3570
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3571
3591
|
switch (errorCode) {
|
|
3572
3592
|
case "InternalFailureException":
|
|
3573
3593
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3583,10 +3603,12 @@ const deserializeAws_restJson1DeleteProjectCommandError = async (output, context
|
|
|
3583
3603
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3584
3604
|
default:
|
|
3585
3605
|
const parsedBody = parsedOutput.body;
|
|
3606
|
+
const $metadata = deserializeMetadata(output);
|
|
3607
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3586
3608
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3587
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3588
3610
|
$fault: "client",
|
|
3589
|
-
$metadata
|
|
3611
|
+
$metadata,
|
|
3590
3612
|
});
|
|
3591
3613
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3592
3614
|
}
|
|
@@ -3608,8 +3630,7 @@ const deserializeAws_restJson1DeleteTimeSeriesCommandError = async (output, cont
|
|
|
3608
3630
|
body: await parseBody(output.body, context),
|
|
3609
3631
|
};
|
|
3610
3632
|
let response;
|
|
3611
|
-
|
|
3612
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3613
3634
|
switch (errorCode) {
|
|
3614
3635
|
case "ConflictingOperationException":
|
|
3615
3636
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -3628,10 +3649,12 @@ const deserializeAws_restJson1DeleteTimeSeriesCommandError = async (output, cont
|
|
|
3628
3649
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3629
3650
|
default:
|
|
3630
3651
|
const parsedBody = parsedOutput.body;
|
|
3652
|
+
const $metadata = deserializeMetadata(output);
|
|
3653
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3631
3654
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3632
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3633
3656
|
$fault: "client",
|
|
3634
|
-
$metadata
|
|
3657
|
+
$metadata,
|
|
3635
3658
|
});
|
|
3636
3659
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3637
3660
|
}
|
|
@@ -3681,8 +3704,7 @@ const deserializeAws_restJson1DescribeAccessPolicyCommandError = async (output,
|
|
|
3681
3704
|
body: await parseBody(output.body, context),
|
|
3682
3705
|
};
|
|
3683
3706
|
let response;
|
|
3684
|
-
|
|
3685
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3686
3708
|
switch (errorCode) {
|
|
3687
3709
|
case "InternalFailureException":
|
|
3688
3710
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3698,10 +3720,12 @@ const deserializeAws_restJson1DescribeAccessPolicyCommandError = async (output,
|
|
|
3698
3720
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3699
3721
|
default:
|
|
3700
3722
|
const parsedBody = parsedOutput.body;
|
|
3723
|
+
const $metadata = deserializeMetadata(output);
|
|
3724
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3701
3725
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3703
3727
|
$fault: "client",
|
|
3704
|
-
$metadata
|
|
3728
|
+
$metadata,
|
|
3705
3729
|
});
|
|
3706
3730
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3707
3731
|
}
|
|
@@ -3767,8 +3791,7 @@ const deserializeAws_restJson1DescribeAssetCommandError = async (output, context
|
|
|
3767
3791
|
body: await parseBody(output.body, context),
|
|
3768
3792
|
};
|
|
3769
3793
|
let response;
|
|
3770
|
-
|
|
3771
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3772
3795
|
switch (errorCode) {
|
|
3773
3796
|
case "InternalFailureException":
|
|
3774
3797
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3784,10 +3807,12 @@ const deserializeAws_restJson1DescribeAssetCommandError = async (output, context
|
|
|
3784
3807
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3785
3808
|
default:
|
|
3786
3809
|
const parsedBody = parsedOutput.body;
|
|
3810
|
+
const $metadata = deserializeMetadata(output);
|
|
3811
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3787
3812
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3788
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3813
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3789
3814
|
$fault: "client",
|
|
3790
|
-
$metadata
|
|
3815
|
+
$metadata,
|
|
3791
3816
|
});
|
|
3792
3817
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3793
3818
|
}
|
|
@@ -3849,8 +3874,7 @@ const deserializeAws_restJson1DescribeAssetModelCommandError = async (output, co
|
|
|
3849
3874
|
body: await parseBody(output.body, context),
|
|
3850
3875
|
};
|
|
3851
3876
|
let response;
|
|
3852
|
-
|
|
3853
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3854
3878
|
switch (errorCode) {
|
|
3855
3879
|
case "InternalFailureException":
|
|
3856
3880
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3866,10 +3890,12 @@ const deserializeAws_restJson1DescribeAssetModelCommandError = async (output, co
|
|
|
3866
3890
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3867
3891
|
default:
|
|
3868
3892
|
const parsedBody = parsedOutput.body;
|
|
3893
|
+
const $metadata = deserializeMetadata(output);
|
|
3894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3869
3895
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3870
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3871
3897
|
$fault: "client",
|
|
3872
|
-
$metadata
|
|
3898
|
+
$metadata,
|
|
3873
3899
|
});
|
|
3874
3900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3875
3901
|
}
|
|
@@ -3911,8 +3937,7 @@ const deserializeAws_restJson1DescribeAssetPropertyCommandError = async (output,
|
|
|
3911
3937
|
body: await parseBody(output.body, context),
|
|
3912
3938
|
};
|
|
3913
3939
|
let response;
|
|
3914
|
-
|
|
3915
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3916
3941
|
switch (errorCode) {
|
|
3917
3942
|
case "InternalFailureException":
|
|
3918
3943
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -3928,10 +3953,12 @@ const deserializeAws_restJson1DescribeAssetPropertyCommandError = async (output,
|
|
|
3928
3953
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3929
3954
|
default:
|
|
3930
3955
|
const parsedBody = parsedOutput.body;
|
|
3956
|
+
const $metadata = deserializeMetadata(output);
|
|
3957
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3931
3958
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3932
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3959
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3933
3960
|
$fault: "client",
|
|
3934
|
-
$metadata
|
|
3961
|
+
$metadata,
|
|
3935
3962
|
});
|
|
3936
3963
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3937
3964
|
}
|
|
@@ -3985,8 +4012,7 @@ const deserializeAws_restJson1DescribeDashboardCommandError = async (output, con
|
|
|
3985
4012
|
body: await parseBody(output.body, context),
|
|
3986
4013
|
};
|
|
3987
4014
|
let response;
|
|
3988
|
-
|
|
3989
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3990
4016
|
switch (errorCode) {
|
|
3991
4017
|
case "InternalFailureException":
|
|
3992
4018
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4002,10 +4028,12 @@ const deserializeAws_restJson1DescribeDashboardCommandError = async (output, con
|
|
|
4002
4028
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4003
4029
|
default:
|
|
4004
4030
|
const parsedBody = parsedOutput.body;
|
|
4031
|
+
const $metadata = deserializeMetadata(output);
|
|
4032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4005
4033
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4006
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4007
4035
|
$fault: "client",
|
|
4008
|
-
$metadata
|
|
4036
|
+
$metadata,
|
|
4009
4037
|
});
|
|
4010
4038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4011
4039
|
}
|
|
@@ -4039,8 +4067,7 @@ const deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommandError
|
|
|
4039
4067
|
body: await parseBody(output.body, context),
|
|
4040
4068
|
};
|
|
4041
4069
|
let response;
|
|
4042
|
-
|
|
4043
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4070
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4044
4071
|
switch (errorCode) {
|
|
4045
4072
|
case "InternalFailureException":
|
|
4046
4073
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4053,10 +4080,12 @@ const deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommandError
|
|
|
4053
4080
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4054
4081
|
default:
|
|
4055
4082
|
const parsedBody = parsedOutput.body;
|
|
4083
|
+
const $metadata = deserializeMetadata(output);
|
|
4084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4056
4085
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4057
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4058
4087
|
$fault: "client",
|
|
4059
|
-
$metadata
|
|
4088
|
+
$metadata,
|
|
4060
4089
|
});
|
|
4061
4090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4062
4091
|
}
|
|
@@ -4106,8 +4135,7 @@ const deserializeAws_restJson1DescribeGatewayCommandError = async (output, conte
|
|
|
4106
4135
|
body: await parseBody(output.body, context),
|
|
4107
4136
|
};
|
|
4108
4137
|
let response;
|
|
4109
|
-
|
|
4110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
4139
|
switch (errorCode) {
|
|
4112
4140
|
case "InternalFailureException":
|
|
4113
4141
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4123,10 +4151,12 @@ const deserializeAws_restJson1DescribeGatewayCommandError = async (output, conte
|
|
|
4123
4151
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4124
4152
|
default:
|
|
4125
4153
|
const parsedBody = parsedOutput.body;
|
|
4154
|
+
const $metadata = deserializeMetadata(output);
|
|
4155
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4126
4156
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4157
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4128
4158
|
$fault: "client",
|
|
4129
|
-
$metadata
|
|
4159
|
+
$metadata,
|
|
4130
4160
|
});
|
|
4131
4161
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4132
4162
|
}
|
|
@@ -4164,8 +4194,7 @@ const deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommandError
|
|
|
4164
4194
|
body: await parseBody(output.body, context),
|
|
4165
4195
|
};
|
|
4166
4196
|
let response;
|
|
4167
|
-
|
|
4168
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4197
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4169
4198
|
switch (errorCode) {
|
|
4170
4199
|
case "InternalFailureException":
|
|
4171
4200
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4181,10 +4210,12 @@ const deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommandError
|
|
|
4181
4210
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4182
4211
|
default:
|
|
4183
4212
|
const parsedBody = parsedOutput.body;
|
|
4213
|
+
const $metadata = deserializeMetadata(output);
|
|
4214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4184
4215
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4186
4217
|
$fault: "client",
|
|
4187
|
-
$metadata
|
|
4218
|
+
$metadata,
|
|
4188
4219
|
});
|
|
4189
4220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4190
4221
|
}
|
|
@@ -4210,8 +4241,7 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output
|
|
|
4210
4241
|
body: await parseBody(output.body, context),
|
|
4211
4242
|
};
|
|
4212
4243
|
let response;
|
|
4213
|
-
|
|
4214
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4215
4245
|
switch (errorCode) {
|
|
4216
4246
|
case "InternalFailureException":
|
|
4217
4247
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4227,10 +4257,12 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output
|
|
|
4227
4257
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4228
4258
|
default:
|
|
4229
4259
|
const parsedBody = parsedOutput.body;
|
|
4260
|
+
const $metadata = deserializeMetadata(output);
|
|
4261
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4230
4262
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4231
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4263
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4232
4264
|
$fault: "client",
|
|
4233
|
-
$metadata
|
|
4265
|
+
$metadata,
|
|
4234
4266
|
});
|
|
4235
4267
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4236
4268
|
}
|
|
@@ -4312,8 +4344,7 @@ const deserializeAws_restJson1DescribePortalCommandError = async (output, contex
|
|
|
4312
4344
|
body: await parseBody(output.body, context),
|
|
4313
4345
|
};
|
|
4314
4346
|
let response;
|
|
4315
|
-
|
|
4316
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4347
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4317
4348
|
switch (errorCode) {
|
|
4318
4349
|
case "InternalFailureException":
|
|
4319
4350
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4329,10 +4360,12 @@ const deserializeAws_restJson1DescribePortalCommandError = async (output, contex
|
|
|
4329
4360
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4330
4361
|
default:
|
|
4331
4362
|
const parsedBody = parsedOutput.body;
|
|
4363
|
+
const $metadata = deserializeMetadata(output);
|
|
4364
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4332
4365
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4333
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4366
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4334
4367
|
$fault: "client",
|
|
4335
|
-
$metadata
|
|
4368
|
+
$metadata,
|
|
4336
4369
|
});
|
|
4337
4370
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4338
4371
|
}
|
|
@@ -4382,8 +4415,7 @@ const deserializeAws_restJson1DescribeProjectCommandError = async (output, conte
|
|
|
4382
4415
|
body: await parseBody(output.body, context),
|
|
4383
4416
|
};
|
|
4384
4417
|
let response;
|
|
4385
|
-
|
|
4386
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4387
4419
|
switch (errorCode) {
|
|
4388
4420
|
case "InternalFailureException":
|
|
4389
4421
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4399,10 +4431,12 @@ const deserializeAws_restJson1DescribeProjectCommandError = async (output, conte
|
|
|
4399
4431
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4400
4432
|
default:
|
|
4401
4433
|
const parsedBody = parsedOutput.body;
|
|
4434
|
+
const $metadata = deserializeMetadata(output);
|
|
4435
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4402
4436
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4404
4438
|
$fault: "client",
|
|
4405
|
-
$metadata
|
|
4439
|
+
$metadata,
|
|
4406
4440
|
});
|
|
4407
4441
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4408
4442
|
}
|
|
@@ -4448,8 +4482,7 @@ const deserializeAws_restJson1DescribeStorageConfigurationCommandError = async (
|
|
|
4448
4482
|
body: await parseBody(output.body, context),
|
|
4449
4483
|
};
|
|
4450
4484
|
let response;
|
|
4451
|
-
|
|
4452
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4453
4486
|
switch (errorCode) {
|
|
4454
4487
|
case "ConflictingOperationException":
|
|
4455
4488
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -4471,10 +4504,12 @@ const deserializeAws_restJson1DescribeStorageConfigurationCommandError = async (
|
|
|
4471
4504
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4472
4505
|
default:
|
|
4473
4506
|
const parsedBody = parsedOutput.body;
|
|
4507
|
+
const $metadata = deserializeMetadata(output);
|
|
4508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4474
4509
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4476
4511
|
$fault: "client",
|
|
4477
|
-
$metadata
|
|
4512
|
+
$metadata,
|
|
4478
4513
|
});
|
|
4479
4514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4480
4515
|
}
|
|
@@ -4528,8 +4563,7 @@ const deserializeAws_restJson1DescribeTimeSeriesCommandError = async (output, co
|
|
|
4528
4563
|
body: await parseBody(output.body, context),
|
|
4529
4564
|
};
|
|
4530
4565
|
let response;
|
|
4531
|
-
|
|
4532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4533
4567
|
switch (errorCode) {
|
|
4534
4568
|
case "InternalFailureException":
|
|
4535
4569
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4545,10 +4579,12 @@ const deserializeAws_restJson1DescribeTimeSeriesCommandError = async (output, co
|
|
|
4545
4579
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4546
4580
|
default:
|
|
4547
4581
|
const parsedBody = parsedOutput.body;
|
|
4582
|
+
const $metadata = deserializeMetadata(output);
|
|
4583
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4548
4584
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4585
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4550
4586
|
$fault: "client",
|
|
4551
|
-
$metadata
|
|
4587
|
+
$metadata,
|
|
4552
4588
|
});
|
|
4553
4589
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4554
4590
|
}
|
|
@@ -4570,8 +4606,7 @@ const deserializeAws_restJson1DisassociateAssetsCommandError = async (output, co
|
|
|
4570
4606
|
body: await parseBody(output.body, context),
|
|
4571
4607
|
};
|
|
4572
4608
|
let response;
|
|
4573
|
-
|
|
4574
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4575
4610
|
switch (errorCode) {
|
|
4576
4611
|
case "ConflictingOperationException":
|
|
4577
4612
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -4590,10 +4625,12 @@ const deserializeAws_restJson1DisassociateAssetsCommandError = async (output, co
|
|
|
4590
4625
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4591
4626
|
default:
|
|
4592
4627
|
const parsedBody = parsedOutput.body;
|
|
4628
|
+
const $metadata = deserializeMetadata(output);
|
|
4629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4593
4630
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4595
4632
|
$fault: "client",
|
|
4596
|
-
$metadata
|
|
4633
|
+
$metadata,
|
|
4597
4634
|
});
|
|
4598
4635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4599
4636
|
}
|
|
@@ -4615,8 +4652,7 @@ const deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommandErro
|
|
|
4615
4652
|
body: await parseBody(output.body, context),
|
|
4616
4653
|
};
|
|
4617
4654
|
let response;
|
|
4618
|
-
|
|
4619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4620
4656
|
switch (errorCode) {
|
|
4621
4657
|
case "ConflictingOperationException":
|
|
4622
4658
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -4635,10 +4671,12 @@ const deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommandErro
|
|
|
4635
4671
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4636
4672
|
default:
|
|
4637
4673
|
const parsedBody = parsedOutput.body;
|
|
4674
|
+
const $metadata = deserializeMetadata(output);
|
|
4675
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4638
4676
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4677
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4640
4678
|
$fault: "client",
|
|
4641
|
-
$metadata
|
|
4679
|
+
$metadata,
|
|
4642
4680
|
});
|
|
4643
4681
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4644
4682
|
}
|
|
@@ -4668,8 +4706,7 @@ const deserializeAws_restJson1GetAssetPropertyAggregatesCommandError = async (ou
|
|
|
4668
4706
|
body: await parseBody(output.body, context),
|
|
4669
4707
|
};
|
|
4670
4708
|
let response;
|
|
4671
|
-
|
|
4672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4709
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4673
4710
|
switch (errorCode) {
|
|
4674
4711
|
case "InternalFailureException":
|
|
4675
4712
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4688,10 +4725,12 @@ const deserializeAws_restJson1GetAssetPropertyAggregatesCommandError = async (ou
|
|
|
4688
4725
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4689
4726
|
default:
|
|
4690
4727
|
const parsedBody = parsedOutput.body;
|
|
4728
|
+
const $metadata = deserializeMetadata(output);
|
|
4729
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4691
4730
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4692
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4731
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4693
4732
|
$fault: "client",
|
|
4694
|
-
$metadata
|
|
4733
|
+
$metadata,
|
|
4695
4734
|
});
|
|
4696
4735
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4697
4736
|
}
|
|
@@ -4717,8 +4756,7 @@ const deserializeAws_restJson1GetAssetPropertyValueCommandError = async (output,
|
|
|
4717
4756
|
body: await parseBody(output.body, context),
|
|
4718
4757
|
};
|
|
4719
4758
|
let response;
|
|
4720
|
-
|
|
4721
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4722
4760
|
switch (errorCode) {
|
|
4723
4761
|
case "InternalFailureException":
|
|
4724
4762
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4737,10 +4775,12 @@ const deserializeAws_restJson1GetAssetPropertyValueCommandError = async (output,
|
|
|
4737
4775
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4738
4776
|
default:
|
|
4739
4777
|
const parsedBody = parsedOutput.body;
|
|
4778
|
+
const $metadata = deserializeMetadata(output);
|
|
4779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4740
4780
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4741
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4742
4782
|
$fault: "client",
|
|
4743
|
-
$metadata
|
|
4783
|
+
$metadata,
|
|
4744
4784
|
});
|
|
4745
4785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4746
4786
|
}
|
|
@@ -4770,8 +4810,7 @@ const deserializeAws_restJson1GetAssetPropertyValueHistoryCommandError = async (
|
|
|
4770
4810
|
body: await parseBody(output.body, context),
|
|
4771
4811
|
};
|
|
4772
4812
|
let response;
|
|
4773
|
-
|
|
4774
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4775
4814
|
switch (errorCode) {
|
|
4776
4815
|
case "InternalFailureException":
|
|
4777
4816
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4790,10 +4829,12 @@ const deserializeAws_restJson1GetAssetPropertyValueHistoryCommandError = async (
|
|
|
4790
4829
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4791
4830
|
default:
|
|
4792
4831
|
const parsedBody = parsedOutput.body;
|
|
4832
|
+
const $metadata = deserializeMetadata(output);
|
|
4833
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4793
4834
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4835
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4795
4836
|
$fault: "client",
|
|
4796
|
-
$metadata
|
|
4837
|
+
$metadata,
|
|
4797
4838
|
});
|
|
4798
4839
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4799
4840
|
}
|
|
@@ -4823,8 +4864,7 @@ const deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommandError = a
|
|
|
4823
4864
|
body: await parseBody(output.body, context),
|
|
4824
4865
|
};
|
|
4825
4866
|
let response;
|
|
4826
|
-
|
|
4827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4828
4868
|
switch (errorCode) {
|
|
4829
4869
|
case "InternalFailureException":
|
|
4830
4870
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4843,10 +4883,12 @@ const deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommandError = a
|
|
|
4843
4883
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4844
4884
|
default:
|
|
4845
4885
|
const parsedBody = parsedOutput.body;
|
|
4886
|
+
const $metadata = deserializeMetadata(output);
|
|
4887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4846
4888
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4848
4890
|
$fault: "client",
|
|
4849
|
-
$metadata
|
|
4891
|
+
$metadata,
|
|
4850
4892
|
});
|
|
4851
4893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4852
4894
|
}
|
|
@@ -4876,8 +4918,7 @@ const deserializeAws_restJson1ListAccessPoliciesCommandError = async (output, co
|
|
|
4876
4918
|
body: await parseBody(output.body, context),
|
|
4877
4919
|
};
|
|
4878
4920
|
let response;
|
|
4879
|
-
|
|
4880
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4921
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4881
4922
|
switch (errorCode) {
|
|
4882
4923
|
case "InternalFailureException":
|
|
4883
4924
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4890,10 +4931,12 @@ const deserializeAws_restJson1ListAccessPoliciesCommandError = async (output, co
|
|
|
4890
4931
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4891
4932
|
default:
|
|
4892
4933
|
const parsedBody = parsedOutput.body;
|
|
4934
|
+
const $metadata = deserializeMetadata(output);
|
|
4935
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4893
4936
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4937
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4895
4938
|
$fault: "client",
|
|
4896
|
-
$metadata
|
|
4939
|
+
$metadata,
|
|
4897
4940
|
});
|
|
4898
4941
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4899
4942
|
}
|
|
@@ -4923,8 +4966,7 @@ const deserializeAws_restJson1ListAssetModelsCommandError = async (output, conte
|
|
|
4923
4966
|
body: await parseBody(output.body, context),
|
|
4924
4967
|
};
|
|
4925
4968
|
let response;
|
|
4926
|
-
|
|
4927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4928
4970
|
switch (errorCode) {
|
|
4929
4971
|
case "InternalFailureException":
|
|
4930
4972
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4937,10 +4979,12 @@ const deserializeAws_restJson1ListAssetModelsCommandError = async (output, conte
|
|
|
4937
4979
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4938
4980
|
default:
|
|
4939
4981
|
const parsedBody = parsedOutput.body;
|
|
4982
|
+
const $metadata = deserializeMetadata(output);
|
|
4983
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4940
4984
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4941
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4985
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4942
4986
|
$fault: "client",
|
|
4943
|
-
$metadata
|
|
4987
|
+
$metadata,
|
|
4944
4988
|
});
|
|
4945
4989
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4946
4990
|
}
|
|
@@ -4970,8 +5014,7 @@ const deserializeAws_restJson1ListAssetRelationshipsCommandError = async (output
|
|
|
4970
5014
|
body: await parseBody(output.body, context),
|
|
4971
5015
|
};
|
|
4972
5016
|
let response;
|
|
4973
|
-
|
|
4974
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5017
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4975
5018
|
switch (errorCode) {
|
|
4976
5019
|
case "InternalFailureException":
|
|
4977
5020
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -4987,10 +5030,12 @@ const deserializeAws_restJson1ListAssetRelationshipsCommandError = async (output
|
|
|
4987
5030
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4988
5031
|
default:
|
|
4989
5032
|
const parsedBody = parsedOutput.body;
|
|
5033
|
+
const $metadata = deserializeMetadata(output);
|
|
5034
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4990
5035
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4991
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5036
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4992
5037
|
$fault: "client",
|
|
4993
|
-
$metadata
|
|
5038
|
+
$metadata,
|
|
4994
5039
|
});
|
|
4995
5040
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4996
5041
|
}
|
|
@@ -5020,8 +5065,7 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
5020
5065
|
body: await parseBody(output.body, context),
|
|
5021
5066
|
};
|
|
5022
5067
|
let response;
|
|
5023
|
-
|
|
5024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5068
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5025
5069
|
switch (errorCode) {
|
|
5026
5070
|
case "InternalFailureException":
|
|
5027
5071
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5037,10 +5081,12 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
5037
5081
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5038
5082
|
default:
|
|
5039
5083
|
const parsedBody = parsedOutput.body;
|
|
5084
|
+
const $metadata = deserializeMetadata(output);
|
|
5085
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5040
5086
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5041
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5042
5088
|
$fault: "client",
|
|
5043
|
-
$metadata
|
|
5089
|
+
$metadata,
|
|
5044
5090
|
});
|
|
5045
5091
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5046
5092
|
}
|
|
@@ -5070,8 +5116,7 @@ const deserializeAws_restJson1ListAssociatedAssetsCommandError = async (output,
|
|
|
5070
5116
|
body: await parseBody(output.body, context),
|
|
5071
5117
|
};
|
|
5072
5118
|
let response;
|
|
5073
|
-
|
|
5074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5075
5120
|
switch (errorCode) {
|
|
5076
5121
|
case "InternalFailureException":
|
|
5077
5122
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5087,10 +5132,12 @@ const deserializeAws_restJson1ListAssociatedAssetsCommandError = async (output,
|
|
|
5087
5132
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5088
5133
|
default:
|
|
5089
5134
|
const parsedBody = parsedOutput.body;
|
|
5135
|
+
const $metadata = deserializeMetadata(output);
|
|
5136
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5090
5137
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5091
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5138
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5092
5139
|
$fault: "client",
|
|
5093
|
-
$metadata
|
|
5140
|
+
$metadata,
|
|
5094
5141
|
});
|
|
5095
5142
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5096
5143
|
}
|
|
@@ -5120,8 +5167,7 @@ const deserializeAws_restJson1ListDashboardsCommandError = async (output, contex
|
|
|
5120
5167
|
body: await parseBody(output.body, context),
|
|
5121
5168
|
};
|
|
5122
5169
|
let response;
|
|
5123
|
-
|
|
5124
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5170
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5125
5171
|
switch (errorCode) {
|
|
5126
5172
|
case "InternalFailureException":
|
|
5127
5173
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5134,10 +5180,12 @@ const deserializeAws_restJson1ListDashboardsCommandError = async (output, contex
|
|
|
5134
5180
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5135
5181
|
default:
|
|
5136
5182
|
const parsedBody = parsedOutput.body;
|
|
5183
|
+
const $metadata = deserializeMetadata(output);
|
|
5184
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5137
5185
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5138
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5186
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5139
5187
|
$fault: "client",
|
|
5140
|
-
$metadata
|
|
5188
|
+
$metadata,
|
|
5141
5189
|
});
|
|
5142
5190
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5143
5191
|
}
|
|
@@ -5167,8 +5215,7 @@ const deserializeAws_restJson1ListGatewaysCommandError = async (output, context)
|
|
|
5167
5215
|
body: await parseBody(output.body, context),
|
|
5168
5216
|
};
|
|
5169
5217
|
let response;
|
|
5170
|
-
|
|
5171
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5172
5219
|
switch (errorCode) {
|
|
5173
5220
|
case "InternalFailureException":
|
|
5174
5221
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5181,10 +5228,12 @@ const deserializeAws_restJson1ListGatewaysCommandError = async (output, context)
|
|
|
5181
5228
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5182
5229
|
default:
|
|
5183
5230
|
const parsedBody = parsedOutput.body;
|
|
5231
|
+
const $metadata = deserializeMetadata(output);
|
|
5232
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5184
5233
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5234
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5186
5235
|
$fault: "client",
|
|
5187
|
-
$metadata
|
|
5236
|
+
$metadata,
|
|
5188
5237
|
});
|
|
5189
5238
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5190
5239
|
}
|
|
@@ -5214,8 +5263,7 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
5214
5263
|
body: await parseBody(output.body, context),
|
|
5215
5264
|
};
|
|
5216
5265
|
let response;
|
|
5217
|
-
|
|
5218
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5219
5267
|
switch (errorCode) {
|
|
5220
5268
|
case "InternalFailureException":
|
|
5221
5269
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5228,10 +5276,12 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
5228
5276
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5229
5277
|
default:
|
|
5230
5278
|
const parsedBody = parsedOutput.body;
|
|
5279
|
+
const $metadata = deserializeMetadata(output);
|
|
5280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5231
5281
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5232
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5233
5283
|
$fault: "client",
|
|
5234
|
-
$metadata
|
|
5284
|
+
$metadata,
|
|
5235
5285
|
});
|
|
5236
5286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5237
5287
|
}
|
|
@@ -5261,8 +5311,7 @@ const deserializeAws_restJson1ListProjectAssetsCommandError = async (output, con
|
|
|
5261
5311
|
body: await parseBody(output.body, context),
|
|
5262
5312
|
};
|
|
5263
5313
|
let response;
|
|
5264
|
-
|
|
5265
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5266
5315
|
switch (errorCode) {
|
|
5267
5316
|
case "InternalFailureException":
|
|
5268
5317
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5275,10 +5324,12 @@ const deserializeAws_restJson1ListProjectAssetsCommandError = async (output, con
|
|
|
5275
5324
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5276
5325
|
default:
|
|
5277
5326
|
const parsedBody = parsedOutput.body;
|
|
5327
|
+
const $metadata = deserializeMetadata(output);
|
|
5328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5278
5329
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5279
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5280
5331
|
$fault: "client",
|
|
5281
|
-
$metadata
|
|
5332
|
+
$metadata,
|
|
5282
5333
|
});
|
|
5283
5334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5284
5335
|
}
|
|
@@ -5308,8 +5359,7 @@ const deserializeAws_restJson1ListProjectsCommandError = async (output, context)
|
|
|
5308
5359
|
body: await parseBody(output.body, context),
|
|
5309
5360
|
};
|
|
5310
5361
|
let response;
|
|
5311
|
-
|
|
5312
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5313
5363
|
switch (errorCode) {
|
|
5314
5364
|
case "InternalFailureException":
|
|
5315
5365
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5322,10 +5372,12 @@ const deserializeAws_restJson1ListProjectsCommandError = async (output, context)
|
|
|
5322
5372
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5323
5373
|
default:
|
|
5324
5374
|
const parsedBody = parsedOutput.body;
|
|
5375
|
+
const $metadata = deserializeMetadata(output);
|
|
5376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5325
5377
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5327
5379
|
$fault: "client",
|
|
5328
|
-
$metadata
|
|
5380
|
+
$metadata,
|
|
5329
5381
|
});
|
|
5330
5382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5331
5383
|
}
|
|
@@ -5351,8 +5403,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
5351
5403
|
body: await parseBody(output.body, context),
|
|
5352
5404
|
};
|
|
5353
5405
|
let response;
|
|
5354
|
-
|
|
5355
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5406
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5356
5407
|
switch (errorCode) {
|
|
5357
5408
|
case "ConflictingOperationException":
|
|
5358
5409
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5377,10 +5428,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
5377
5428
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5378
5429
|
default:
|
|
5379
5430
|
const parsedBody = parsedOutput.body;
|
|
5431
|
+
const $metadata = deserializeMetadata(output);
|
|
5432
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5380
5433
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5381
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5434
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5382
5435
|
$fault: "client",
|
|
5383
|
-
$metadata
|
|
5436
|
+
$metadata,
|
|
5384
5437
|
});
|
|
5385
5438
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5386
5439
|
}
|
|
@@ -5410,8 +5463,7 @@ const deserializeAws_restJson1ListTimeSeriesCommandError = async (output, contex
|
|
|
5410
5463
|
body: await parseBody(output.body, context),
|
|
5411
5464
|
};
|
|
5412
5465
|
let response;
|
|
5413
|
-
|
|
5414
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5415
5467
|
switch (errorCode) {
|
|
5416
5468
|
case "InternalFailureException":
|
|
5417
5469
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5427,10 +5479,12 @@ const deserializeAws_restJson1ListTimeSeriesCommandError = async (output, contex
|
|
|
5427
5479
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5428
5480
|
default:
|
|
5429
5481
|
const parsedBody = parsedOutput.body;
|
|
5482
|
+
const $metadata = deserializeMetadata(output);
|
|
5483
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5430
5484
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5432
5486
|
$fault: "client",
|
|
5433
|
-
$metadata
|
|
5487
|
+
$metadata,
|
|
5434
5488
|
});
|
|
5435
5489
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5436
5490
|
}
|
|
@@ -5464,8 +5518,7 @@ const deserializeAws_restJson1PutDefaultEncryptionConfigurationCommandError = as
|
|
|
5464
5518
|
body: await parseBody(output.body, context),
|
|
5465
5519
|
};
|
|
5466
5520
|
let response;
|
|
5467
|
-
|
|
5468
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5521
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5469
5522
|
switch (errorCode) {
|
|
5470
5523
|
case "ConflictingOperationException":
|
|
5471
5524
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5484,10 +5537,12 @@ const deserializeAws_restJson1PutDefaultEncryptionConfigurationCommandError = as
|
|
|
5484
5537
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5485
5538
|
default:
|
|
5486
5539
|
const parsedBody = parsedOutput.body;
|
|
5540
|
+
const $metadata = deserializeMetadata(output);
|
|
5541
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5487
5542
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5488
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5543
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5489
5544
|
$fault: "client",
|
|
5490
|
-
$metadata
|
|
5545
|
+
$metadata,
|
|
5491
5546
|
});
|
|
5492
5547
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5493
5548
|
}
|
|
@@ -5509,8 +5564,7 @@ const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, con
|
|
|
5509
5564
|
body: await parseBody(output.body, context),
|
|
5510
5565
|
};
|
|
5511
5566
|
let response;
|
|
5512
|
-
|
|
5513
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5514
5568
|
switch (errorCode) {
|
|
5515
5569
|
case "ConflictingOperationException":
|
|
5516
5570
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5529,10 +5583,12 @@ const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, con
|
|
|
5529
5583
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5530
5584
|
default:
|
|
5531
5585
|
const parsedBody = parsedOutput.body;
|
|
5586
|
+
const $metadata = deserializeMetadata(output);
|
|
5587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5532
5588
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5533
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5534
5590
|
$fault: "client",
|
|
5535
|
-
$metadata
|
|
5591
|
+
$metadata,
|
|
5536
5592
|
});
|
|
5537
5593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5538
5594
|
}
|
|
@@ -5574,8 +5630,7 @@ const deserializeAws_restJson1PutStorageConfigurationCommandError = async (outpu
|
|
|
5574
5630
|
body: await parseBody(output.body, context),
|
|
5575
5631
|
};
|
|
5576
5632
|
let response;
|
|
5577
|
-
|
|
5578
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5579
5634
|
switch (errorCode) {
|
|
5580
5635
|
case "ConflictingOperationException":
|
|
5581
5636
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5600,10 +5655,12 @@ const deserializeAws_restJson1PutStorageConfigurationCommandError = async (outpu
|
|
|
5600
5655
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5601
5656
|
default:
|
|
5602
5657
|
const parsedBody = parsedOutput.body;
|
|
5658
|
+
const $metadata = deserializeMetadata(output);
|
|
5659
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5603
5660
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5661
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5605
5662
|
$fault: "client",
|
|
5606
|
-
$metadata
|
|
5663
|
+
$metadata,
|
|
5607
5664
|
});
|
|
5608
5665
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5609
5666
|
}
|
|
@@ -5625,8 +5682,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5625
5682
|
body: await parseBody(output.body, context),
|
|
5626
5683
|
};
|
|
5627
5684
|
let response;
|
|
5628
|
-
|
|
5629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5630
5686
|
switch (errorCode) {
|
|
5631
5687
|
case "ConflictingOperationException":
|
|
5632
5688
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5654,10 +5710,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5654
5710
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5655
5711
|
default:
|
|
5656
5712
|
const parsedBody = parsedOutput.body;
|
|
5713
|
+
const $metadata = deserializeMetadata(output);
|
|
5714
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5657
5715
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5658
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5716
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5659
5717
|
$fault: "client",
|
|
5660
|
-
$metadata
|
|
5718
|
+
$metadata,
|
|
5661
5719
|
});
|
|
5662
5720
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5663
5721
|
}
|
|
@@ -5679,8 +5737,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5679
5737
|
body: await parseBody(output.body, context),
|
|
5680
5738
|
};
|
|
5681
5739
|
let response;
|
|
5682
|
-
|
|
5683
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5740
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5684
5741
|
switch (errorCode) {
|
|
5685
5742
|
case "ConflictingOperationException":
|
|
5686
5743
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5705,10 +5762,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5705
5762
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5706
5763
|
default:
|
|
5707
5764
|
const parsedBody = parsedOutput.body;
|
|
5765
|
+
const $metadata = deserializeMetadata(output);
|
|
5766
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5708
5767
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5709
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5768
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5710
5769
|
$fault: "client",
|
|
5711
|
-
$metadata
|
|
5770
|
+
$metadata,
|
|
5712
5771
|
});
|
|
5713
5772
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5714
5773
|
}
|
|
@@ -5730,8 +5789,7 @@ const deserializeAws_restJson1UpdateAccessPolicyCommandError = async (output, co
|
|
|
5730
5789
|
body: await parseBody(output.body, context),
|
|
5731
5790
|
};
|
|
5732
5791
|
let response;
|
|
5733
|
-
|
|
5734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5792
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5735
5793
|
switch (errorCode) {
|
|
5736
5794
|
case "InternalFailureException":
|
|
5737
5795
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5747,10 +5805,12 @@ const deserializeAws_restJson1UpdateAccessPolicyCommandError = async (output, co
|
|
|
5747
5805
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5748
5806
|
default:
|
|
5749
5807
|
const parsedBody = parsedOutput.body;
|
|
5808
|
+
const $metadata = deserializeMetadata(output);
|
|
5809
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5750
5810
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5751
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5752
5812
|
$fault: "client",
|
|
5753
|
-
$metadata
|
|
5813
|
+
$metadata,
|
|
5754
5814
|
});
|
|
5755
5815
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5756
5816
|
}
|
|
@@ -5776,8 +5836,7 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
5776
5836
|
body: await parseBody(output.body, context),
|
|
5777
5837
|
};
|
|
5778
5838
|
let response;
|
|
5779
|
-
|
|
5780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5839
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5781
5840
|
switch (errorCode) {
|
|
5782
5841
|
case "ConflictingOperationException":
|
|
5783
5842
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5799,10 +5858,12 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
5799
5858
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5800
5859
|
default:
|
|
5801
5860
|
const parsedBody = parsedOutput.body;
|
|
5861
|
+
const $metadata = deserializeMetadata(output);
|
|
5862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5802
5863
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5803
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5804
5865
|
$fault: "client",
|
|
5805
|
-
$metadata
|
|
5866
|
+
$metadata,
|
|
5806
5867
|
});
|
|
5807
5868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5808
5869
|
}
|
|
@@ -5828,8 +5889,7 @@ const deserializeAws_restJson1UpdateAssetModelCommandError = async (output, cont
|
|
|
5828
5889
|
body: await parseBody(output.body, context),
|
|
5829
5890
|
};
|
|
5830
5891
|
let response;
|
|
5831
|
-
|
|
5832
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5892
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5833
5893
|
switch (errorCode) {
|
|
5834
5894
|
case "ConflictingOperationException":
|
|
5835
5895
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5854,10 +5914,12 @@ const deserializeAws_restJson1UpdateAssetModelCommandError = async (output, cont
|
|
|
5854
5914
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5855
5915
|
default:
|
|
5856
5916
|
const parsedBody = parsedOutput.body;
|
|
5917
|
+
const $metadata = deserializeMetadata(output);
|
|
5918
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5857
5919
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5858
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5920
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5859
5921
|
$fault: "client",
|
|
5860
|
-
$metadata
|
|
5922
|
+
$metadata,
|
|
5861
5923
|
});
|
|
5862
5924
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5863
5925
|
}
|
|
@@ -5879,8 +5941,7 @@ const deserializeAws_restJson1UpdateAssetPropertyCommandError = async (output, c
|
|
|
5879
5941
|
body: await parseBody(output.body, context),
|
|
5880
5942
|
};
|
|
5881
5943
|
let response;
|
|
5882
|
-
|
|
5883
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5884
5945
|
switch (errorCode) {
|
|
5885
5946
|
case "ConflictingOperationException":
|
|
5886
5947
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5899,10 +5960,12 @@ const deserializeAws_restJson1UpdateAssetPropertyCommandError = async (output, c
|
|
|
5899
5960
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5900
5961
|
default:
|
|
5901
5962
|
const parsedBody = parsedOutput.body;
|
|
5963
|
+
const $metadata = deserializeMetadata(output);
|
|
5964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5902
5965
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5903
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5904
5967
|
$fault: "client",
|
|
5905
|
-
$metadata
|
|
5968
|
+
$metadata,
|
|
5906
5969
|
});
|
|
5907
5970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5908
5971
|
}
|
|
@@ -5924,8 +5987,7 @@ const deserializeAws_restJson1UpdateDashboardCommandError = async (output, conte
|
|
|
5924
5987
|
body: await parseBody(output.body, context),
|
|
5925
5988
|
};
|
|
5926
5989
|
let response;
|
|
5927
|
-
|
|
5928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5990
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5929
5991
|
switch (errorCode) {
|
|
5930
5992
|
case "InternalFailureException":
|
|
5931
5993
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -5941,10 +6003,12 @@ const deserializeAws_restJson1UpdateDashboardCommandError = async (output, conte
|
|
|
5941
6003
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5942
6004
|
default:
|
|
5943
6005
|
const parsedBody = parsedOutput.body;
|
|
6006
|
+
const $metadata = deserializeMetadata(output);
|
|
6007
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5944
6008
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5945
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5946
6010
|
$fault: "client",
|
|
5947
|
-
$metadata
|
|
6011
|
+
$metadata,
|
|
5948
6012
|
});
|
|
5949
6013
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5950
6014
|
}
|
|
@@ -5966,8 +6030,7 @@ const deserializeAws_restJson1UpdateGatewayCommandError = async (output, context
|
|
|
5966
6030
|
body: await parseBody(output.body, context),
|
|
5967
6031
|
};
|
|
5968
6032
|
let response;
|
|
5969
|
-
|
|
5970
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5971
6034
|
switch (errorCode) {
|
|
5972
6035
|
case "ConflictingOperationException":
|
|
5973
6036
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -5986,10 +6049,12 @@ const deserializeAws_restJson1UpdateGatewayCommandError = async (output, context
|
|
|
5986
6049
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5987
6050
|
default:
|
|
5988
6051
|
const parsedBody = parsedOutput.body;
|
|
6052
|
+
const $metadata = deserializeMetadata(output);
|
|
6053
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5989
6054
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5990
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6055
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5991
6056
|
$fault: "client",
|
|
5992
|
-
$metadata
|
|
6057
|
+
$metadata,
|
|
5993
6058
|
});
|
|
5994
6059
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5995
6060
|
}
|
|
@@ -6019,8 +6084,7 @@ const deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommandError =
|
|
|
6019
6084
|
body: await parseBody(output.body, context),
|
|
6020
6085
|
};
|
|
6021
6086
|
let response;
|
|
6022
|
-
|
|
6023
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6024
6088
|
switch (errorCode) {
|
|
6025
6089
|
case "ConflictingOperationException":
|
|
6026
6090
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -6042,10 +6106,12 @@ const deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommandError =
|
|
|
6042
6106
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6043
6107
|
default:
|
|
6044
6108
|
const parsedBody = parsedOutput.body;
|
|
6109
|
+
const $metadata = deserializeMetadata(output);
|
|
6110
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6045
6111
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
6046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6112
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6047
6113
|
$fault: "client",
|
|
6048
|
-
$metadata
|
|
6114
|
+
$metadata,
|
|
6049
6115
|
});
|
|
6050
6116
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6051
6117
|
}
|
|
@@ -6071,8 +6137,7 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
6071
6137
|
body: await parseBody(output.body, context),
|
|
6072
6138
|
};
|
|
6073
6139
|
let response;
|
|
6074
|
-
|
|
6075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6076
6141
|
switch (errorCode) {
|
|
6077
6142
|
case "ConflictingOperationException":
|
|
6078
6143
|
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
@@ -6091,10 +6156,12 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
6091
6156
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6092
6157
|
default:
|
|
6093
6158
|
const parsedBody = parsedOutput.body;
|
|
6159
|
+
const $metadata = deserializeMetadata(output);
|
|
6160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6094
6161
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
6095
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6096
6163
|
$fault: "client",
|
|
6097
|
-
$metadata
|
|
6164
|
+
$metadata,
|
|
6098
6165
|
});
|
|
6099
6166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6100
6167
|
}
|
|
@@ -6116,8 +6183,7 @@ const deserializeAws_restJson1UpdateProjectCommandError = async (output, context
|
|
|
6116
6183
|
body: await parseBody(output.body, context),
|
|
6117
6184
|
};
|
|
6118
6185
|
let response;
|
|
6119
|
-
|
|
6120
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6186
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6121
6187
|
switch (errorCode) {
|
|
6122
6188
|
case "InternalFailureException":
|
|
6123
6189
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
@@ -6133,10 +6199,12 @@ const deserializeAws_restJson1UpdateProjectCommandError = async (output, context
|
|
|
6133
6199
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6134
6200
|
default:
|
|
6135
6201
|
const parsedBody = parsedOutput.body;
|
|
6202
|
+
const $metadata = deserializeMetadata(output);
|
|
6203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6136
6204
|
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
6137
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6138
6206
|
$fault: "client",
|
|
6139
|
-
$metadata
|
|
6207
|
+
$metadata,
|
|
6140
6208
|
});
|
|
6141
6209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6142
6210
|
}
|
|
@@ -7973,5 +8041,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7973
8041
|
if (data["__type"] !== undefined) {
|
|
7974
8042
|
return sanitizeErrorCode(data["__type"]);
|
|
7975
8043
|
}
|
|
7976
|
-
return "";
|
|
7977
8044
|
};
|