@aws-sdk/client-iotsitewise 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -2738,7 +2738,7 @@ var se_UpdateProjectCommand = /* @__PURE__ */ __name(async (input, context) => {
2738
2738
  }, "se_UpdateProjectCommand");
2739
2739
  var de_AssociateAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2740
2740
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2741
- return de_AssociateAssetsCommandError(output, context);
2741
+ return de_CommandError(output, context);
2742
2742
  }
2743
2743
  const contents = (0, import_smithy_client.map)({
2744
2744
  $metadata: deserializeMetadata(output)
@@ -2746,46 +2746,9 @@ var de_AssociateAssetsCommand = /* @__PURE__ */ __name(async (output, context) =
2746
2746
  await (0, import_smithy_client.collectBody)(output.body, context);
2747
2747
  return contents;
2748
2748
  }, "de_AssociateAssetsCommand");
2749
- var de_AssociateAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2750
- const parsedOutput = {
2751
- ...output,
2752
- body: await parseErrorBody(output.body, context)
2753
- };
2754
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2755
- switch (errorCode) {
2756
- case "ConflictingOperationException":
2757
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
2758
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
2759
- case "InternalFailureException":
2760
- case "com.amazonaws.iotsitewise#InternalFailureException":
2761
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
2762
- case "InvalidRequestException":
2763
- case "com.amazonaws.iotsitewise#InvalidRequestException":
2764
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2765
- case "LimitExceededException":
2766
- case "com.amazonaws.iotsitewise#LimitExceededException":
2767
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2768
- case "ResourceAlreadyExistsException":
2769
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
2770
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
2771
- case "ResourceNotFoundException":
2772
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
2773
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2774
- case "ThrottlingException":
2775
- case "com.amazonaws.iotsitewise#ThrottlingException":
2776
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2777
- default:
2778
- const parsedBody = parsedOutput.body;
2779
- return throwDefaultError({
2780
- output,
2781
- parsedBody,
2782
- errorCode
2783
- });
2784
- }
2785
- }, "de_AssociateAssetsCommandError");
2786
2749
  var de_AssociateTimeSeriesToAssetPropertyCommand = /* @__PURE__ */ __name(async (output, context) => {
2787
2750
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2788
- return de_AssociateTimeSeriesToAssetPropertyCommandError(output, context);
2751
+ return de_CommandError(output, context);
2789
2752
  }
2790
2753
  const contents = (0, import_smithy_client.map)({
2791
2754
  $metadata: deserializeMetadata(output)
@@ -2793,40 +2756,9 @@ var de_AssociateTimeSeriesToAssetPropertyCommand = /* @__PURE__ */ __name(async
2793
2756
  await (0, import_smithy_client.collectBody)(output.body, context);
2794
2757
  return contents;
2795
2758
  }, "de_AssociateTimeSeriesToAssetPropertyCommand");
2796
- var de_AssociateTimeSeriesToAssetPropertyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2797
- const parsedOutput = {
2798
- ...output,
2799
- body: await parseErrorBody(output.body, context)
2800
- };
2801
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2802
- switch (errorCode) {
2803
- case "ConflictingOperationException":
2804
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
2805
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
2806
- case "InternalFailureException":
2807
- case "com.amazonaws.iotsitewise#InternalFailureException":
2808
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
2809
- case "InvalidRequestException":
2810
- case "com.amazonaws.iotsitewise#InvalidRequestException":
2811
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2812
- case "ResourceNotFoundException":
2813
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
2814
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2815
- case "ThrottlingException":
2816
- case "com.amazonaws.iotsitewise#ThrottlingException":
2817
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2818
- default:
2819
- const parsedBody = parsedOutput.body;
2820
- return throwDefaultError({
2821
- output,
2822
- parsedBody,
2823
- errorCode
2824
- });
2825
- }
2826
- }, "de_AssociateTimeSeriesToAssetPropertyCommandError");
2827
2759
  var de_BatchAssociateProjectAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2828
2760
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2829
- return de_BatchAssociateProjectAssetsCommandError(output, context);
2761
+ return de_CommandError(output, context);
2830
2762
  }
2831
2763
  const contents = (0, import_smithy_client.map)({
2832
2764
  $metadata: deserializeMetadata(output)
@@ -2838,40 +2770,9 @@ var de_BatchAssociateProjectAssetsCommand = /* @__PURE__ */ __name(async (output
2838
2770
  Object.assign(contents, doc);
2839
2771
  return contents;
2840
2772
  }, "de_BatchAssociateProjectAssetsCommand");
2841
- var de_BatchAssociateProjectAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2842
- const parsedOutput = {
2843
- ...output,
2844
- body: await parseErrorBody(output.body, context)
2845
- };
2846
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2847
- switch (errorCode) {
2848
- case "InternalFailureException":
2849
- case "com.amazonaws.iotsitewise#InternalFailureException":
2850
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
2851
- case "InvalidRequestException":
2852
- case "com.amazonaws.iotsitewise#InvalidRequestException":
2853
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2854
- case "LimitExceededException":
2855
- case "com.amazonaws.iotsitewise#LimitExceededException":
2856
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2857
- case "ResourceNotFoundException":
2858
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
2859
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2860
- case "ThrottlingException":
2861
- case "com.amazonaws.iotsitewise#ThrottlingException":
2862
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2863
- default:
2864
- const parsedBody = parsedOutput.body;
2865
- return throwDefaultError({
2866
- output,
2867
- parsedBody,
2868
- errorCode
2869
- });
2870
- }
2871
- }, "de_BatchAssociateProjectAssetsCommandError");
2872
2773
  var de_BatchDisassociateProjectAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2873
2774
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2874
- return de_BatchDisassociateProjectAssetsCommandError(output, context);
2775
+ return de_CommandError(output, context);
2875
2776
  }
2876
2777
  const contents = (0, import_smithy_client.map)({
2877
2778
  $metadata: deserializeMetadata(output)
@@ -2883,37 +2784,9 @@ var de_BatchDisassociateProjectAssetsCommand = /* @__PURE__ */ __name(async (out
2883
2784
  Object.assign(contents, doc);
2884
2785
  return contents;
2885
2786
  }, "de_BatchDisassociateProjectAssetsCommand");
2886
- var de_BatchDisassociateProjectAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2887
- const parsedOutput = {
2888
- ...output,
2889
- body: await parseErrorBody(output.body, context)
2890
- };
2891
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2892
- switch (errorCode) {
2893
- case "InternalFailureException":
2894
- case "com.amazonaws.iotsitewise#InternalFailureException":
2895
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
2896
- case "InvalidRequestException":
2897
- case "com.amazonaws.iotsitewise#InvalidRequestException":
2898
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2899
- case "ResourceNotFoundException":
2900
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
2901
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2902
- case "ThrottlingException":
2903
- case "com.amazonaws.iotsitewise#ThrottlingException":
2904
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2905
- default:
2906
- const parsedBody = parsedOutput.body;
2907
- return throwDefaultError({
2908
- output,
2909
- parsedBody,
2910
- errorCode
2911
- });
2912
- }
2913
- }, "de_BatchDisassociateProjectAssetsCommandError");
2914
2787
  var de_BatchGetAssetPropertyAggregatesCommand = /* @__PURE__ */ __name(async (output, context) => {
2915
2788
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2916
- return de_BatchGetAssetPropertyAggregatesCommandError(output, context);
2789
+ return de_CommandError(output, context);
2917
2790
  }
2918
2791
  const contents = (0, import_smithy_client.map)({
2919
2792
  $metadata: deserializeMetadata(output)
@@ -2928,37 +2801,9 @@ var de_BatchGetAssetPropertyAggregatesCommand = /* @__PURE__ */ __name(async (ou
2928
2801
  Object.assign(contents, doc);
2929
2802
  return contents;
2930
2803
  }, "de_BatchGetAssetPropertyAggregatesCommand");
2931
- var de_BatchGetAssetPropertyAggregatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2932
- const parsedOutput = {
2933
- ...output,
2934
- body: await parseErrorBody(output.body, context)
2935
- };
2936
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2937
- switch (errorCode) {
2938
- case "InternalFailureException":
2939
- case "com.amazonaws.iotsitewise#InternalFailureException":
2940
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
2941
- case "InvalidRequestException":
2942
- case "com.amazonaws.iotsitewise#InvalidRequestException":
2943
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2944
- case "ServiceUnavailableException":
2945
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
2946
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2947
- case "ThrottlingException":
2948
- case "com.amazonaws.iotsitewise#ThrottlingException":
2949
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2950
- default:
2951
- const parsedBody = parsedOutput.body;
2952
- return throwDefaultError({
2953
- output,
2954
- parsedBody,
2955
- errorCode
2956
- });
2957
- }
2958
- }, "de_BatchGetAssetPropertyAggregatesCommandError");
2959
2804
  var de_BatchGetAssetPropertyValueCommand = /* @__PURE__ */ __name(async (output, context) => {
2960
2805
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2961
- return de_BatchGetAssetPropertyValueCommandError(output, context);
2806
+ return de_CommandError(output, context);
2962
2807
  }
2963
2808
  const contents = (0, import_smithy_client.map)({
2964
2809
  $metadata: deserializeMetadata(output)
@@ -2973,37 +2818,9 @@ var de_BatchGetAssetPropertyValueCommand = /* @__PURE__ */ __name(async (output,
2973
2818
  Object.assign(contents, doc);
2974
2819
  return contents;
2975
2820
  }, "de_BatchGetAssetPropertyValueCommand");
2976
- var de_BatchGetAssetPropertyValueCommandError = /* @__PURE__ */ __name(async (output, context) => {
2977
- const parsedOutput = {
2978
- ...output,
2979
- body: await parseErrorBody(output.body, context)
2980
- };
2981
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2982
- switch (errorCode) {
2983
- case "InternalFailureException":
2984
- case "com.amazonaws.iotsitewise#InternalFailureException":
2985
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
2986
- case "InvalidRequestException":
2987
- case "com.amazonaws.iotsitewise#InvalidRequestException":
2988
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2989
- case "ServiceUnavailableException":
2990
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
2991
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2992
- case "ThrottlingException":
2993
- case "com.amazonaws.iotsitewise#ThrottlingException":
2994
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2995
- default:
2996
- const parsedBody = parsedOutput.body;
2997
- return throwDefaultError({
2998
- output,
2999
- parsedBody,
3000
- errorCode
3001
- });
3002
- }
3003
- }, "de_BatchGetAssetPropertyValueCommandError");
3004
2821
  var de_BatchGetAssetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
3005
2822
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3006
- return de_BatchGetAssetPropertyValueHistoryCommandError(output, context);
2823
+ return de_CommandError(output, context);
3007
2824
  }
3008
2825
  const contents = (0, import_smithy_client.map)({
3009
2826
  $metadata: deserializeMetadata(output)
@@ -3018,37 +2835,9 @@ var de_BatchGetAssetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (
3018
2835
  Object.assign(contents, doc);
3019
2836
  return contents;
3020
2837
  }, "de_BatchGetAssetPropertyValueHistoryCommand");
3021
- var de_BatchGetAssetPropertyValueHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
3022
- const parsedOutput = {
3023
- ...output,
3024
- body: await parseErrorBody(output.body, context)
3025
- };
3026
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3027
- switch (errorCode) {
3028
- case "InternalFailureException":
3029
- case "com.amazonaws.iotsitewise#InternalFailureException":
3030
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3031
- case "InvalidRequestException":
3032
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3033
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3034
- case "ServiceUnavailableException":
3035
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
3036
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3037
- case "ThrottlingException":
3038
- case "com.amazonaws.iotsitewise#ThrottlingException":
3039
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3040
- default:
3041
- const parsedBody = parsedOutput.body;
3042
- return throwDefaultError({
3043
- output,
3044
- parsedBody,
3045
- errorCode
3046
- });
3047
- }
3048
- }, "de_BatchGetAssetPropertyValueHistoryCommandError");
3049
2838
  var de_BatchPutAssetPropertyValueCommand = /* @__PURE__ */ __name(async (output, context) => {
3050
2839
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3051
- return de_BatchPutAssetPropertyValueCommandError(output, context);
2840
+ return de_CommandError(output, context);
3052
2841
  }
3053
2842
  const contents = (0, import_smithy_client.map)({
3054
2843
  $metadata: deserializeMetadata(output)
@@ -3060,46 +2849,9 @@ var de_BatchPutAssetPropertyValueCommand = /* @__PURE__ */ __name(async (output,
3060
2849
  Object.assign(contents, doc);
3061
2850
  return contents;
3062
2851
  }, "de_BatchPutAssetPropertyValueCommand");
3063
- var de_BatchPutAssetPropertyValueCommandError = /* @__PURE__ */ __name(async (output, context) => {
3064
- const parsedOutput = {
3065
- ...output,
3066
- body: await parseErrorBody(output.body, context)
3067
- };
3068
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3069
- switch (errorCode) {
3070
- case "ConflictingOperationException":
3071
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3072
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3073
- case "InternalFailureException":
3074
- case "com.amazonaws.iotsitewise#InternalFailureException":
3075
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3076
- case "InvalidRequestException":
3077
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3078
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3079
- case "LimitExceededException":
3080
- case "com.amazonaws.iotsitewise#LimitExceededException":
3081
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3082
- case "ResourceNotFoundException":
3083
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3084
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3085
- case "ServiceUnavailableException":
3086
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
3087
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3088
- case "ThrottlingException":
3089
- case "com.amazonaws.iotsitewise#ThrottlingException":
3090
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3091
- default:
3092
- const parsedBody = parsedOutput.body;
3093
- return throwDefaultError({
3094
- output,
3095
- parsedBody,
3096
- errorCode
3097
- });
3098
- }
3099
- }, "de_BatchPutAssetPropertyValueCommandError");
3100
2852
  var de_CreateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3101
2853
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3102
- return de_CreateAccessPolicyCommandError(output, context);
2854
+ return de_CommandError(output, context);
3103
2855
  }
3104
2856
  const contents = (0, import_smithy_client.map)({
3105
2857
  $metadata: deserializeMetadata(output)
@@ -3112,40 +2864,9 @@ var de_CreateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context
3112
2864
  Object.assign(contents, doc);
3113
2865
  return contents;
3114
2866
  }, "de_CreateAccessPolicyCommand");
3115
- var de_CreateAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
3116
- const parsedOutput = {
3117
- ...output,
3118
- body: await parseErrorBody(output.body, context)
3119
- };
3120
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3121
- switch (errorCode) {
3122
- case "InternalFailureException":
3123
- case "com.amazonaws.iotsitewise#InternalFailureException":
3124
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3125
- case "InvalidRequestException":
3126
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3127
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3128
- case "LimitExceededException":
3129
- case "com.amazonaws.iotsitewise#LimitExceededException":
3130
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3131
- case "ResourceNotFoundException":
3132
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3133
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3134
- case "ThrottlingException":
3135
- case "com.amazonaws.iotsitewise#ThrottlingException":
3136
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3137
- default:
3138
- const parsedBody = parsedOutput.body;
3139
- return throwDefaultError({
3140
- output,
3141
- parsedBody,
3142
- errorCode
3143
- });
3144
- }
3145
- }, "de_CreateAccessPolicyCommandError");
3146
2867
  var de_CreateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
3147
2868
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3148
- return de_CreateAssetCommandError(output, context);
2869
+ return de_CommandError(output, context);
3149
2870
  }
3150
2871
  const contents = (0, import_smithy_client.map)({
3151
2872
  $metadata: deserializeMetadata(output)
@@ -3159,46 +2880,9 @@ var de_CreateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
3159
2880
  Object.assign(contents, doc);
3160
2881
  return contents;
3161
2882
  }, "de_CreateAssetCommand");
3162
- var de_CreateAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3163
- const parsedOutput = {
3164
- ...output,
3165
- body: await parseErrorBody(output.body, context)
3166
- };
3167
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3168
- switch (errorCode) {
3169
- case "ConflictingOperationException":
3170
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3171
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3172
- case "InternalFailureException":
3173
- case "com.amazonaws.iotsitewise#InternalFailureException":
3174
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3175
- case "InvalidRequestException":
3176
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3177
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3178
- case "LimitExceededException":
3179
- case "com.amazonaws.iotsitewise#LimitExceededException":
3180
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3181
- case "ResourceAlreadyExistsException":
3182
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
3183
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3184
- case "ResourceNotFoundException":
3185
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3186
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3187
- case "ThrottlingException":
3188
- case "com.amazonaws.iotsitewise#ThrottlingException":
3189
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3190
- default:
3191
- const parsedBody = parsedOutput.body;
3192
- return throwDefaultError({
3193
- output,
3194
- parsedBody,
3195
- errorCode
3196
- });
3197
- }
3198
- }, "de_CreateAssetCommandError");
3199
2883
  var de_CreateAssetModelCommand = /* @__PURE__ */ __name(async (output, context) => {
3200
2884
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3201
- return de_CreateAssetModelCommandError(output, context);
2885
+ return de_CommandError(output, context);
3202
2886
  }
3203
2887
  const contents = (0, import_smithy_client.map)({
3204
2888
  $metadata: deserializeMetadata(output)
@@ -3212,46 +2896,9 @@ var de_CreateAssetModelCommand = /* @__PURE__ */ __name(async (output, context)
3212
2896
  Object.assign(contents, doc);
3213
2897
  return contents;
3214
2898
  }, "de_CreateAssetModelCommand");
3215
- var de_CreateAssetModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
3216
- const parsedOutput = {
3217
- ...output,
3218
- body: await parseErrorBody(output.body, context)
3219
- };
3220
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3221
- switch (errorCode) {
3222
- case "ConflictingOperationException":
3223
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3224
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3225
- case "InternalFailureException":
3226
- case "com.amazonaws.iotsitewise#InternalFailureException":
3227
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3228
- case "InvalidRequestException":
3229
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3230
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3231
- case "LimitExceededException":
3232
- case "com.amazonaws.iotsitewise#LimitExceededException":
3233
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3234
- case "ResourceAlreadyExistsException":
3235
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
3236
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3237
- case "ResourceNotFoundException":
3238
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3239
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3240
- case "ThrottlingException":
3241
- case "com.amazonaws.iotsitewise#ThrottlingException":
3242
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3243
- default:
3244
- const parsedBody = parsedOutput.body;
3245
- return throwDefaultError({
3246
- output,
3247
- parsedBody,
3248
- errorCode
3249
- });
3250
- }
3251
- }, "de_CreateAssetModelCommandError");
3252
2899
  var de_CreateAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
3253
2900
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3254
- return de_CreateAssetModelCompositeModelCommandError(output, context);
2901
+ return de_CommandError(output, context);
3255
2902
  }
3256
2903
  const contents = (0, import_smithy_client.map)({
3257
2904
  $metadata: deserializeMetadata(output)
@@ -3265,46 +2912,9 @@ var de_CreateAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (out
3265
2912
  Object.assign(contents, doc);
3266
2913
  return contents;
3267
2914
  }, "de_CreateAssetModelCompositeModelCommand");
3268
- var de_CreateAssetModelCompositeModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
3269
- const parsedOutput = {
3270
- ...output,
3271
- body: await parseErrorBody(output.body, context)
3272
- };
3273
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3274
- switch (errorCode) {
3275
- case "ConflictingOperationException":
3276
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3277
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3278
- case "InternalFailureException":
3279
- case "com.amazonaws.iotsitewise#InternalFailureException":
3280
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3281
- case "InvalidRequestException":
3282
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3283
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3284
- case "LimitExceededException":
3285
- case "com.amazonaws.iotsitewise#LimitExceededException":
3286
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3287
- case "ResourceAlreadyExistsException":
3288
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
3289
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3290
- case "ResourceNotFoundException":
3291
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3292
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3293
- case "ThrottlingException":
3294
- case "com.amazonaws.iotsitewise#ThrottlingException":
3295
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3296
- default:
3297
- const parsedBody = parsedOutput.body;
3298
- return throwDefaultError({
3299
- output,
3300
- parsedBody,
3301
- errorCode
3302
- });
3303
- }
3304
- }, "de_CreateAssetModelCompositeModelCommandError");
3305
2915
  var de_CreateBulkImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
3306
2916
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3307
- return de_CreateBulkImportJobCommandError(output, context);
2917
+ return de_CommandError(output, context);
3308
2918
  }
3309
2919
  const contents = (0, import_smithy_client.map)({
3310
2920
  $metadata: deserializeMetadata(output)
@@ -3318,46 +2928,9 @@ var de_CreateBulkImportJobCommand = /* @__PURE__ */ __name(async (output, contex
3318
2928
  Object.assign(contents, doc);
3319
2929
  return contents;
3320
2930
  }, "de_CreateBulkImportJobCommand");
3321
- var de_CreateBulkImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
3322
- const parsedOutput = {
3323
- ...output,
3324
- body: await parseErrorBody(output.body, context)
3325
- };
3326
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3327
- switch (errorCode) {
3328
- case "ConflictingOperationException":
3329
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3330
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3331
- case "InternalFailureException":
3332
- case "com.amazonaws.iotsitewise#InternalFailureException":
3333
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3334
- case "InvalidRequestException":
3335
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3336
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3337
- case "LimitExceededException":
3338
- case "com.amazonaws.iotsitewise#LimitExceededException":
3339
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3340
- case "ResourceAlreadyExistsException":
3341
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
3342
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3343
- case "ResourceNotFoundException":
3344
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3345
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3346
- case "ThrottlingException":
3347
- case "com.amazonaws.iotsitewise#ThrottlingException":
3348
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3349
- default:
3350
- const parsedBody = parsedOutput.body;
3351
- return throwDefaultError({
3352
- output,
3353
- parsedBody,
3354
- errorCode
3355
- });
3356
- }
3357
- }, "de_CreateBulkImportJobCommandError");
3358
2931
  var de_CreateDashboardCommand = /* @__PURE__ */ __name(async (output, context) => {
3359
2932
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3360
- return de_CreateDashboardCommandError(output, context);
2933
+ return de_CommandError(output, context);
3361
2934
  }
3362
2935
  const contents = (0, import_smithy_client.map)({
3363
2936
  $metadata: deserializeMetadata(output)
@@ -3370,40 +2943,9 @@ var de_CreateDashboardCommand = /* @__PURE__ */ __name(async (output, context) =
3370
2943
  Object.assign(contents, doc);
3371
2944
  return contents;
3372
2945
  }, "de_CreateDashboardCommand");
3373
- var de_CreateDashboardCommandError = /* @__PURE__ */ __name(async (output, context) => {
3374
- const parsedOutput = {
3375
- ...output,
3376
- body: await parseErrorBody(output.body, context)
3377
- };
3378
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3379
- switch (errorCode) {
3380
- case "InternalFailureException":
3381
- case "com.amazonaws.iotsitewise#InternalFailureException":
3382
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3383
- case "InvalidRequestException":
3384
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3385
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3386
- case "LimitExceededException":
3387
- case "com.amazonaws.iotsitewise#LimitExceededException":
3388
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3389
- case "ResourceNotFoundException":
3390
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3391
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3392
- case "ThrottlingException":
3393
- case "com.amazonaws.iotsitewise#ThrottlingException":
3394
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3395
- default:
3396
- const parsedBody = parsedOutput.body;
3397
- return throwDefaultError({
3398
- output,
3399
- parsedBody,
3400
- errorCode
3401
- });
3402
- }
3403
- }, "de_CreateDashboardCommandError");
3404
2946
  var de_CreateGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
3405
2947
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3406
- return de_CreateGatewayCommandError(output, context);
2948
+ return de_CommandError(output, context);
3407
2949
  }
3408
2950
  const contents = (0, import_smithy_client.map)({
3409
2951
  $metadata: deserializeMetadata(output)
@@ -3416,40 +2958,9 @@ var de_CreateGatewayCommand = /* @__PURE__ */ __name(async (output, context) =>
3416
2958
  Object.assign(contents, doc);
3417
2959
  return contents;
3418
2960
  }, "de_CreateGatewayCommand");
3419
- var de_CreateGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
3420
- const parsedOutput = {
3421
- ...output,
3422
- body: await parseErrorBody(output.body, context)
3423
- };
3424
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3425
- switch (errorCode) {
3426
- case "InternalFailureException":
3427
- case "com.amazonaws.iotsitewise#InternalFailureException":
3428
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3429
- case "InvalidRequestException":
3430
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3431
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3432
- case "LimitExceededException":
3433
- case "com.amazonaws.iotsitewise#LimitExceededException":
3434
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3435
- case "ResourceAlreadyExistsException":
3436
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
3437
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3438
- case "ThrottlingException":
3439
- case "com.amazonaws.iotsitewise#ThrottlingException":
3440
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3441
- default:
3442
- const parsedBody = parsedOutput.body;
3443
- return throwDefaultError({
3444
- output,
3445
- parsedBody,
3446
- errorCode
3447
- });
3448
- }
3449
- }, "de_CreateGatewayCommandError");
3450
2961
  var de_CreatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
3451
2962
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3452
- return de_CreatePortalCommandError(output, context);
2963
+ return de_CommandError(output, context);
3453
2964
  }
3454
2965
  const contents = (0, import_smithy_client.map)({
3455
2966
  $metadata: deserializeMetadata(output)
@@ -3465,40 +2976,9 @@ var de_CreatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
3465
2976
  Object.assign(contents, doc);
3466
2977
  return contents;
3467
2978
  }, "de_CreatePortalCommand");
3468
- var de_CreatePortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
3469
- const parsedOutput = {
3470
- ...output,
3471
- body: await parseErrorBody(output.body, context)
3472
- };
3473
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3474
- switch (errorCode) {
3475
- case "InternalFailureException":
3476
- case "com.amazonaws.iotsitewise#InternalFailureException":
3477
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3478
- case "InvalidRequestException":
3479
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3480
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3481
- case "LimitExceededException":
3482
- case "com.amazonaws.iotsitewise#LimitExceededException":
3483
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3484
- case "ResourceNotFoundException":
3485
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3486
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3487
- case "ThrottlingException":
3488
- case "com.amazonaws.iotsitewise#ThrottlingException":
3489
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3490
- default:
3491
- const parsedBody = parsedOutput.body;
3492
- return throwDefaultError({
3493
- output,
3494
- parsedBody,
3495
- errorCode
3496
- });
3497
- }
3498
- }, "de_CreatePortalCommandError");
3499
2979
  var de_CreateProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
3500
2980
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3501
- return de_CreateProjectCommandError(output, context);
2981
+ return de_CommandError(output, context);
3502
2982
  }
3503
2983
  const contents = (0, import_smithy_client.map)({
3504
2984
  $metadata: deserializeMetadata(output)
@@ -3511,40 +2991,9 @@ var de_CreateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
3511
2991
  Object.assign(contents, doc);
3512
2992
  return contents;
3513
2993
  }, "de_CreateProjectCommand");
3514
- var de_CreateProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
3515
- const parsedOutput = {
3516
- ...output,
3517
- body: await parseErrorBody(output.body, context)
3518
- };
3519
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3520
- switch (errorCode) {
3521
- case "InternalFailureException":
3522
- case "com.amazonaws.iotsitewise#InternalFailureException":
3523
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3524
- case "InvalidRequestException":
3525
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3526
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3527
- case "LimitExceededException":
3528
- case "com.amazonaws.iotsitewise#LimitExceededException":
3529
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3530
- case "ResourceNotFoundException":
3531
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3532
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3533
- case "ThrottlingException":
3534
- case "com.amazonaws.iotsitewise#ThrottlingException":
3535
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3536
- default:
3537
- const parsedBody = parsedOutput.body;
3538
- return throwDefaultError({
3539
- output,
3540
- parsedBody,
3541
- errorCode
3542
- });
3543
- }
3544
- }, "de_CreateProjectCommandError");
3545
2994
  var de_DeleteAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3546
2995
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3547
- return de_DeleteAccessPolicyCommandError(output, context);
2996
+ return de_CommandError(output, context);
3548
2997
  }
3549
2998
  const contents = (0, import_smithy_client.map)({
3550
2999
  $metadata: deserializeMetadata(output)
@@ -3552,37 +3001,9 @@ var de_DeleteAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context
3552
3001
  await (0, import_smithy_client.collectBody)(output.body, context);
3553
3002
  return contents;
3554
3003
  }, "de_DeleteAccessPolicyCommand");
3555
- var de_DeleteAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
3556
- const parsedOutput = {
3557
- ...output,
3558
- body: await parseErrorBody(output.body, context)
3559
- };
3560
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3561
- switch (errorCode) {
3562
- case "InternalFailureException":
3563
- case "com.amazonaws.iotsitewise#InternalFailureException":
3564
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3565
- case "InvalidRequestException":
3566
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3567
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3568
- case "ResourceNotFoundException":
3569
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3570
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3571
- case "ThrottlingException":
3572
- case "com.amazonaws.iotsitewise#ThrottlingException":
3573
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3574
- default:
3575
- const parsedBody = parsedOutput.body;
3576
- return throwDefaultError({
3577
- output,
3578
- parsedBody,
3579
- errorCode
3580
- });
3581
- }
3582
- }, "de_DeleteAccessPolicyCommandError");
3583
3004
  var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
3584
3005
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3585
- return de_DeleteAssetCommandError(output, context);
3006
+ return de_CommandError(output, context);
3586
3007
  }
3587
3008
  const contents = (0, import_smithy_client.map)({
3588
3009
  $metadata: deserializeMetadata(output)
@@ -3594,40 +3015,9 @@ var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
3594
3015
  Object.assign(contents, doc);
3595
3016
  return contents;
3596
3017
  }, "de_DeleteAssetCommand");
3597
- var de_DeleteAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3598
- const parsedOutput = {
3599
- ...output,
3600
- body: await parseErrorBody(output.body, context)
3601
- };
3602
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3603
- switch (errorCode) {
3604
- case "ConflictingOperationException":
3605
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3606
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3607
- case "InternalFailureException":
3608
- case "com.amazonaws.iotsitewise#InternalFailureException":
3609
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3610
- case "InvalidRequestException":
3611
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3612
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3613
- case "ResourceNotFoundException":
3614
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3615
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3616
- case "ThrottlingException":
3617
- case "com.amazonaws.iotsitewise#ThrottlingException":
3618
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3619
- default:
3620
- const parsedBody = parsedOutput.body;
3621
- return throwDefaultError({
3622
- output,
3623
- parsedBody,
3624
- errorCode
3625
- });
3626
- }
3627
- }, "de_DeleteAssetCommandError");
3628
3018
  var de_DeleteAssetModelCommand = /* @__PURE__ */ __name(async (output, context) => {
3629
3019
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3630
- return de_DeleteAssetModelCommandError(output, context);
3020
+ return de_CommandError(output, context);
3631
3021
  }
3632
3022
  const contents = (0, import_smithy_client.map)({
3633
3023
  $metadata: deserializeMetadata(output)
@@ -3639,40 +3029,9 @@ var de_DeleteAssetModelCommand = /* @__PURE__ */ __name(async (output, context)
3639
3029
  Object.assign(contents, doc);
3640
3030
  return contents;
3641
3031
  }, "de_DeleteAssetModelCommand");
3642
- var de_DeleteAssetModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
3643
- const parsedOutput = {
3644
- ...output,
3645
- body: await parseErrorBody(output.body, context)
3646
- };
3647
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3648
- switch (errorCode) {
3649
- case "ConflictingOperationException":
3650
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3651
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3652
- case "InternalFailureException":
3653
- case "com.amazonaws.iotsitewise#InternalFailureException":
3654
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3655
- case "InvalidRequestException":
3656
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3657
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3658
- case "ResourceNotFoundException":
3659
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3660
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3661
- case "ThrottlingException":
3662
- case "com.amazonaws.iotsitewise#ThrottlingException":
3663
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3664
- default:
3665
- const parsedBody = parsedOutput.body;
3666
- return throwDefaultError({
3667
- output,
3668
- parsedBody,
3669
- errorCode
3670
- });
3671
- }
3672
- }, "de_DeleteAssetModelCommandError");
3673
3032
  var de_DeleteAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
3674
3033
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3675
- return de_DeleteAssetModelCompositeModelCommandError(output, context);
3034
+ return de_CommandError(output, context);
3676
3035
  }
3677
3036
  const contents = (0, import_smithy_client.map)({
3678
3037
  $metadata: deserializeMetadata(output)
@@ -3684,40 +3043,9 @@ var de_DeleteAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (out
3684
3043
  Object.assign(contents, doc);
3685
3044
  return contents;
3686
3045
  }, "de_DeleteAssetModelCompositeModelCommand");
3687
- var de_DeleteAssetModelCompositeModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
3688
- const parsedOutput = {
3689
- ...output,
3690
- body: await parseErrorBody(output.body, context)
3691
- };
3692
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3693
- switch (errorCode) {
3694
- case "ConflictingOperationException":
3695
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3696
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3697
- case "InternalFailureException":
3698
- case "com.amazonaws.iotsitewise#InternalFailureException":
3699
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3700
- case "InvalidRequestException":
3701
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3702
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3703
- case "ResourceNotFoundException":
3704
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3705
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3706
- case "ThrottlingException":
3707
- case "com.amazonaws.iotsitewise#ThrottlingException":
3708
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3709
- default:
3710
- const parsedBody = parsedOutput.body;
3711
- return throwDefaultError({
3712
- output,
3713
- parsedBody,
3714
- errorCode
3715
- });
3716
- }
3717
- }, "de_DeleteAssetModelCompositeModelCommandError");
3718
3046
  var de_DeleteDashboardCommand = /* @__PURE__ */ __name(async (output, context) => {
3719
3047
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3720
- return de_DeleteDashboardCommandError(output, context);
3048
+ return de_CommandError(output, context);
3721
3049
  }
3722
3050
  const contents = (0, import_smithy_client.map)({
3723
3051
  $metadata: deserializeMetadata(output)
@@ -3725,37 +3053,9 @@ var de_DeleteDashboardCommand = /* @__PURE__ */ __name(async (output, context) =
3725
3053
  await (0, import_smithy_client.collectBody)(output.body, context);
3726
3054
  return contents;
3727
3055
  }, "de_DeleteDashboardCommand");
3728
- var de_DeleteDashboardCommandError = /* @__PURE__ */ __name(async (output, context) => {
3729
- const parsedOutput = {
3730
- ...output,
3731
- body: await parseErrorBody(output.body, context)
3732
- };
3733
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3734
- switch (errorCode) {
3735
- case "InternalFailureException":
3736
- case "com.amazonaws.iotsitewise#InternalFailureException":
3737
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3738
- case "InvalidRequestException":
3739
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3740
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3741
- case "ResourceNotFoundException":
3742
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3743
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3744
- case "ThrottlingException":
3745
- case "com.amazonaws.iotsitewise#ThrottlingException":
3746
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3747
- default:
3748
- const parsedBody = parsedOutput.body;
3749
- return throwDefaultError({
3750
- output,
3751
- parsedBody,
3752
- errorCode
3753
- });
3754
- }
3755
- }, "de_DeleteDashboardCommandError");
3756
3056
  var de_DeleteGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
3757
3057
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3758
- return de_DeleteGatewayCommandError(output, context);
3058
+ return de_CommandError(output, context);
3759
3059
  }
3760
3060
  const contents = (0, import_smithy_client.map)({
3761
3061
  $metadata: deserializeMetadata(output)
@@ -3763,37 +3063,9 @@ var de_DeleteGatewayCommand = /* @__PURE__ */ __name(async (output, context) =>
3763
3063
  await (0, import_smithy_client.collectBody)(output.body, context);
3764
3064
  return contents;
3765
3065
  }, "de_DeleteGatewayCommand");
3766
- var de_DeleteGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
3767
- const parsedOutput = {
3768
- ...output,
3769
- body: await parseErrorBody(output.body, context)
3770
- };
3771
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3772
- switch (errorCode) {
3773
- case "InternalFailureException":
3774
- case "com.amazonaws.iotsitewise#InternalFailureException":
3775
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3776
- case "InvalidRequestException":
3777
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3778
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3779
- case "ResourceNotFoundException":
3780
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3781
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3782
- case "ThrottlingException":
3783
- case "com.amazonaws.iotsitewise#ThrottlingException":
3784
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3785
- default:
3786
- const parsedBody = parsedOutput.body;
3787
- return throwDefaultError({
3788
- output,
3789
- parsedBody,
3790
- errorCode
3791
- });
3792
- }
3793
- }, "de_DeleteGatewayCommandError");
3794
3066
  var de_DeletePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
3795
3067
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3796
- return de_DeletePortalCommandError(output, context);
3068
+ return de_CommandError(output, context);
3797
3069
  }
3798
3070
  const contents = (0, import_smithy_client.map)({
3799
3071
  $metadata: deserializeMetadata(output)
@@ -3805,40 +3077,9 @@ var de_DeletePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
3805
3077
  Object.assign(contents, doc);
3806
3078
  return contents;
3807
3079
  }, "de_DeletePortalCommand");
3808
- var de_DeletePortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
3809
- const parsedOutput = {
3810
- ...output,
3811
- body: await parseErrorBody(output.body, context)
3812
- };
3813
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3814
- switch (errorCode) {
3815
- case "ConflictingOperationException":
3816
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3817
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3818
- case "InternalFailureException":
3819
- case "com.amazonaws.iotsitewise#InternalFailureException":
3820
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3821
- case "InvalidRequestException":
3822
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3823
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3824
- case "ResourceNotFoundException":
3825
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3826
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3827
- case "ThrottlingException":
3828
- case "com.amazonaws.iotsitewise#ThrottlingException":
3829
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3830
- default:
3831
- const parsedBody = parsedOutput.body;
3832
- return throwDefaultError({
3833
- output,
3834
- parsedBody,
3835
- errorCode
3836
- });
3837
- }
3838
- }, "de_DeletePortalCommandError");
3839
3080
  var de_DeleteProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
3840
3081
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3841
- return de_DeleteProjectCommandError(output, context);
3082
+ return de_CommandError(output, context);
3842
3083
  }
3843
3084
  const contents = (0, import_smithy_client.map)({
3844
3085
  $metadata: deserializeMetadata(output)
@@ -3846,37 +3087,9 @@ var de_DeleteProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
3846
3087
  await (0, import_smithy_client.collectBody)(output.body, context);
3847
3088
  return contents;
3848
3089
  }, "de_DeleteProjectCommand");
3849
- var de_DeleteProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
3850
- const parsedOutput = {
3851
- ...output,
3852
- body: await parseErrorBody(output.body, context)
3853
- };
3854
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3855
- switch (errorCode) {
3856
- case "InternalFailureException":
3857
- case "com.amazonaws.iotsitewise#InternalFailureException":
3858
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3859
- case "InvalidRequestException":
3860
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3861
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3862
- case "ResourceNotFoundException":
3863
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3864
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3865
- case "ThrottlingException":
3866
- case "com.amazonaws.iotsitewise#ThrottlingException":
3867
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3868
- default:
3869
- const parsedBody = parsedOutput.body;
3870
- return throwDefaultError({
3871
- output,
3872
- parsedBody,
3873
- errorCode
3874
- });
3875
- }
3876
- }, "de_DeleteProjectCommandError");
3877
3090
  var de_DeleteTimeSeriesCommand = /* @__PURE__ */ __name(async (output, context) => {
3878
3091
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3879
- return de_DeleteTimeSeriesCommandError(output, context);
3092
+ return de_CommandError(output, context);
3880
3093
  }
3881
3094
  const contents = (0, import_smithy_client.map)({
3882
3095
  $metadata: deserializeMetadata(output)
@@ -3884,40 +3097,9 @@ var de_DeleteTimeSeriesCommand = /* @__PURE__ */ __name(async (output, context)
3884
3097
  await (0, import_smithy_client.collectBody)(output.body, context);
3885
3098
  return contents;
3886
3099
  }, "de_DeleteTimeSeriesCommand");
3887
- var de_DeleteTimeSeriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3888
- const parsedOutput = {
3889
- ...output,
3890
- body: await parseErrorBody(output.body, context)
3891
- };
3892
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3893
- switch (errorCode) {
3894
- case "ConflictingOperationException":
3895
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3896
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3897
- case "InternalFailureException":
3898
- case "com.amazonaws.iotsitewise#InternalFailureException":
3899
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3900
- case "InvalidRequestException":
3901
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3902
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3903
- case "ResourceNotFoundException":
3904
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3905
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3906
- case "ThrottlingException":
3907
- case "com.amazonaws.iotsitewise#ThrottlingException":
3908
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3909
- default:
3910
- const parsedBody = parsedOutput.body;
3911
- return throwDefaultError({
3912
- output,
3913
- parsedBody,
3914
- errorCode
3915
- });
3916
- }
3917
- }, "de_DeleteTimeSeriesCommandError");
3918
3100
  var de_DescribeAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3919
3101
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3920
- return de_DescribeAccessPolicyCommandError(output, context);
3102
+ return de_CommandError(output, context);
3921
3103
  }
3922
3104
  const contents = (0, import_smithy_client.map)({
3923
3105
  $metadata: deserializeMetadata(output)
@@ -3935,37 +3117,9 @@ var de_DescribeAccessPolicyCommand = /* @__PURE__ */ __name(async (output, conte
3935
3117
  Object.assign(contents, doc);
3936
3118
  return contents;
3937
3119
  }, "de_DescribeAccessPolicyCommand");
3938
- var de_DescribeAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
3939
- const parsedOutput = {
3940
- ...output,
3941
- body: await parseErrorBody(output.body, context)
3942
- };
3943
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3944
- switch (errorCode) {
3945
- case "InternalFailureException":
3946
- case "com.amazonaws.iotsitewise#InternalFailureException":
3947
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3948
- case "InvalidRequestException":
3949
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3950
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3951
- case "ResourceNotFoundException":
3952
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3953
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3954
- case "ThrottlingException":
3955
- case "com.amazonaws.iotsitewise#ThrottlingException":
3956
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3957
- default:
3958
- const parsedBody = parsedOutput.body;
3959
- return throwDefaultError({
3960
- output,
3961
- parsedBody,
3962
- errorCode
3963
- });
3964
- }
3965
- }, "de_DescribeAccessPolicyCommandError");
3966
3120
  var de_DescribeActionCommand = /* @__PURE__ */ __name(async (output, context) => {
3967
3121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3968
- return de_DescribeActionCommandError(output, context);
3122
+ return de_CommandError(output, context);
3969
3123
  }
3970
3124
  const contents = (0, import_smithy_client.map)({
3971
3125
  $metadata: deserializeMetadata(output)
@@ -3981,37 +3135,9 @@ var de_DescribeActionCommand = /* @__PURE__ */ __name(async (output, context) =>
3981
3135
  Object.assign(contents, doc);
3982
3136
  return contents;
3983
3137
  }, "de_DescribeActionCommand");
3984
- var de_DescribeActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
3985
- const parsedOutput = {
3986
- ...output,
3987
- body: await parseErrorBody(output.body, context)
3988
- };
3989
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3990
- switch (errorCode) {
3991
- case "InternalFailureException":
3992
- case "com.amazonaws.iotsitewise#InternalFailureException":
3993
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
3994
- case "InvalidRequestException":
3995
- case "com.amazonaws.iotsitewise#InvalidRequestException":
3996
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3997
- case "ResourceNotFoundException":
3998
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3999
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4000
- case "ThrottlingException":
4001
- case "com.amazonaws.iotsitewise#ThrottlingException":
4002
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4003
- default:
4004
- const parsedBody = parsedOutput.body;
4005
- return throwDefaultError({
4006
- output,
4007
- parsedBody,
4008
- errorCode
4009
- });
4010
- }
4011
- }, "de_DescribeActionCommandError");
4012
3138
  var de_DescribeAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
4013
3139
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4014
- return de_DescribeAssetCommandError(output, context);
3140
+ return de_CommandError(output, context);
4015
3141
  }
4016
3142
  const contents = (0, import_smithy_client.map)({
4017
3143
  $metadata: deserializeMetadata(output)
@@ -4035,37 +3161,9 @@ var de_DescribeAssetCommand = /* @__PURE__ */ __name(async (output, context) =>
4035
3161
  Object.assign(contents, doc);
4036
3162
  return contents;
4037
3163
  }, "de_DescribeAssetCommand");
4038
- var de_DescribeAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4039
- const parsedOutput = {
4040
- ...output,
4041
- body: await parseErrorBody(output.body, context)
4042
- };
4043
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4044
- switch (errorCode) {
4045
- case "InternalFailureException":
4046
- case "com.amazonaws.iotsitewise#InternalFailureException":
4047
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4048
- case "InvalidRequestException":
4049
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4050
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4051
- case "ResourceNotFoundException":
4052
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4053
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4054
- case "ThrottlingException":
4055
- case "com.amazonaws.iotsitewise#ThrottlingException":
4056
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4057
- default:
4058
- const parsedBody = parsedOutput.body;
4059
- return throwDefaultError({
4060
- output,
4061
- parsedBody,
4062
- errorCode
4063
- });
4064
- }
4065
- }, "de_DescribeAssetCommandError");
4066
3164
  var de_DescribeAssetCompositeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
4067
3165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4068
- return de_DescribeAssetCompositeModelCommandError(output, context);
3166
+ return de_CommandError(output, context);
4069
3167
  }
4070
3168
  const contents = (0, import_smithy_client.map)({
4071
3169
  $metadata: deserializeMetadata(output)
@@ -4086,37 +3184,9 @@ var de_DescribeAssetCompositeModelCommand = /* @__PURE__ */ __name(async (output
4086
3184
  Object.assign(contents, doc);
4087
3185
  return contents;
4088
3186
  }, "de_DescribeAssetCompositeModelCommand");
4089
- var de_DescribeAssetCompositeModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
4090
- const parsedOutput = {
4091
- ...output,
4092
- body: await parseErrorBody(output.body, context)
4093
- };
4094
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4095
- switch (errorCode) {
4096
- case "InternalFailureException":
4097
- case "com.amazonaws.iotsitewise#InternalFailureException":
4098
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4099
- case "InvalidRequestException":
4100
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4101
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4102
- case "ResourceNotFoundException":
4103
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4104
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4105
- case "ThrottlingException":
4106
- case "com.amazonaws.iotsitewise#ThrottlingException":
4107
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4108
- default:
4109
- const parsedBody = parsedOutput.body;
4110
- return throwDefaultError({
4111
- output,
4112
- parsedBody,
4113
- errorCode
4114
- });
4115
- }
4116
- }, "de_DescribeAssetCompositeModelCommandError");
4117
3187
  var de_DescribeAssetModelCommand = /* @__PURE__ */ __name(async (output, context) => {
4118
3188
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4119
- return de_DescribeAssetModelCommandError(output, context);
3189
+ return de_CommandError(output, context);
4120
3190
  }
4121
3191
  const contents = (0, import_smithy_client.map)({
4122
3192
  $metadata: deserializeMetadata(output)
@@ -4140,37 +3210,9 @@ var de_DescribeAssetModelCommand = /* @__PURE__ */ __name(async (output, context
4140
3210
  Object.assign(contents, doc);
4141
3211
  return contents;
4142
3212
  }, "de_DescribeAssetModelCommand");
4143
- var de_DescribeAssetModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
4144
- const parsedOutput = {
4145
- ...output,
4146
- body: await parseErrorBody(output.body, context)
4147
- };
4148
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4149
- switch (errorCode) {
4150
- case "InternalFailureException":
4151
- case "com.amazonaws.iotsitewise#InternalFailureException":
4152
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4153
- case "InvalidRequestException":
4154
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4155
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4156
- case "ResourceNotFoundException":
4157
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4158
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4159
- case "ThrottlingException":
4160
- case "com.amazonaws.iotsitewise#ThrottlingException":
4161
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4162
- default:
4163
- const parsedBody = parsedOutput.body;
4164
- return throwDefaultError({
4165
- output,
4166
- parsedBody,
4167
- errorCode
4168
- });
4169
- }
4170
- }, "de_DescribeAssetModelCommandError");
4171
3213
  var de_DescribeAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
4172
3214
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4173
- return de_DescribeAssetModelCompositeModelCommandError(output, context);
3215
+ return de_CommandError(output, context);
4174
3216
  }
4175
3217
  const contents = (0, import_smithy_client.map)({
4176
3218
  $metadata: deserializeMetadata(output)
@@ -4192,37 +3234,9 @@ var de_DescribeAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (o
4192
3234
  Object.assign(contents, doc);
4193
3235
  return contents;
4194
3236
  }, "de_DescribeAssetModelCompositeModelCommand");
4195
- var de_DescribeAssetModelCompositeModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
4196
- const parsedOutput = {
4197
- ...output,
4198
- body: await parseErrorBody(output.body, context)
4199
- };
4200
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4201
- switch (errorCode) {
4202
- case "InternalFailureException":
4203
- case "com.amazonaws.iotsitewise#InternalFailureException":
4204
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4205
- case "InvalidRequestException":
4206
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4207
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4208
- case "ResourceNotFoundException":
4209
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4210
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4211
- case "ThrottlingException":
4212
- case "com.amazonaws.iotsitewise#ThrottlingException":
4213
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4214
- default:
4215
- const parsedBody = parsedOutput.body;
4216
- return throwDefaultError({
4217
- output,
4218
- parsedBody,
4219
- errorCode
4220
- });
4221
- }
4222
- }, "de_DescribeAssetModelCompositeModelCommandError");
4223
3237
  var de_DescribeAssetPropertyCommand = /* @__PURE__ */ __name(async (output, context) => {
4224
3238
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4225
- return de_DescribeAssetPropertyCommandError(output, context);
3239
+ return de_CommandError(output, context);
4226
3240
  }
4227
3241
  const contents = (0, import_smithy_client.map)({
4228
3242
  $metadata: deserializeMetadata(output)
@@ -4239,37 +3253,9 @@ var de_DescribeAssetPropertyCommand = /* @__PURE__ */ __name(async (output, cont
4239
3253
  Object.assign(contents, doc);
4240
3254
  return contents;
4241
3255
  }, "de_DescribeAssetPropertyCommand");
4242
- var de_DescribeAssetPropertyCommandError = /* @__PURE__ */ __name(async (output, context) => {
4243
- const parsedOutput = {
4244
- ...output,
4245
- body: await parseErrorBody(output.body, context)
4246
- };
4247
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4248
- switch (errorCode) {
4249
- case "InternalFailureException":
4250
- case "com.amazonaws.iotsitewise#InternalFailureException":
4251
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4252
- case "InvalidRequestException":
4253
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4254
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4255
- case "ResourceNotFoundException":
4256
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4257
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4258
- case "ThrottlingException":
4259
- case "com.amazonaws.iotsitewise#ThrottlingException":
4260
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4261
- default:
4262
- const parsedBody = parsedOutput.body;
4263
- return throwDefaultError({
4264
- output,
4265
- parsedBody,
4266
- errorCode
4267
- });
4268
- }
4269
- }, "de_DescribeAssetPropertyCommandError");
4270
3256
  var de_DescribeBulkImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
4271
3257
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4272
- return de_DescribeBulkImportJobCommandError(output, context);
3258
+ return de_CommandError(output, context);
4273
3259
  }
4274
3260
  const contents = (0, import_smithy_client.map)({
4275
3261
  $metadata: deserializeMetadata(output)
@@ -4291,37 +3277,9 @@ var de_DescribeBulkImportJobCommand = /* @__PURE__ */ __name(async (output, cont
4291
3277
  Object.assign(contents, doc);
4292
3278
  return contents;
4293
3279
  }, "de_DescribeBulkImportJobCommand");
4294
- var de_DescribeBulkImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
4295
- const parsedOutput = {
4296
- ...output,
4297
- body: await parseErrorBody(output.body, context)
4298
- };
4299
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4300
- switch (errorCode) {
4301
- case "InternalFailureException":
4302
- case "com.amazonaws.iotsitewise#InternalFailureException":
4303
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4304
- case "InvalidRequestException":
4305
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4306
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4307
- case "ResourceNotFoundException":
4308
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4309
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4310
- case "ThrottlingException":
4311
- case "com.amazonaws.iotsitewise#ThrottlingException":
4312
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4313
- default:
4314
- const parsedBody = parsedOutput.body;
4315
- return throwDefaultError({
4316
- output,
4317
- parsedBody,
4318
- errorCode
4319
- });
4320
- }
4321
- }, "de_DescribeBulkImportJobCommandError");
4322
3280
  var de_DescribeDashboardCommand = /* @__PURE__ */ __name(async (output, context) => {
4323
3281
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4324
- return de_DescribeDashboardCommandError(output, context);
3282
+ return de_CommandError(output, context);
4325
3283
  }
4326
3284
  const contents = (0, import_smithy_client.map)({
4327
3285
  $metadata: deserializeMetadata(output)
@@ -4340,37 +3298,9 @@ var de_DescribeDashboardCommand = /* @__PURE__ */ __name(async (output, context)
4340
3298
  Object.assign(contents, doc);
4341
3299
  return contents;
4342
3300
  }, "de_DescribeDashboardCommand");
4343
- var de_DescribeDashboardCommandError = /* @__PURE__ */ __name(async (output, context) => {
4344
- const parsedOutput = {
4345
- ...output,
4346
- body: await parseErrorBody(output.body, context)
4347
- };
4348
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4349
- switch (errorCode) {
4350
- case "InternalFailureException":
4351
- case "com.amazonaws.iotsitewise#InternalFailureException":
4352
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4353
- case "InvalidRequestException":
4354
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4355
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4356
- case "ResourceNotFoundException":
4357
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4358
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4359
- case "ThrottlingException":
4360
- case "com.amazonaws.iotsitewise#ThrottlingException":
4361
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4362
- default:
4363
- const parsedBody = parsedOutput.body;
4364
- return throwDefaultError({
4365
- output,
4366
- parsedBody,
4367
- errorCode
4368
- });
4369
- }
4370
- }, "de_DescribeDashboardCommandError");
4371
3301
  var de_DescribeDefaultEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
4372
3302
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4373
- return de_DescribeDefaultEncryptionConfigurationCommandError(output, context);
3303
+ return de_CommandError(output, context);
4374
3304
  }
4375
3305
  const contents = (0, import_smithy_client.map)({
4376
3306
  $metadata: deserializeMetadata(output)
@@ -4384,34 +3314,9 @@ var de_DescribeDefaultEncryptionConfigurationCommand = /* @__PURE__ */ __name(as
4384
3314
  Object.assign(contents, doc);
4385
3315
  return contents;
4386
3316
  }, "de_DescribeDefaultEncryptionConfigurationCommand");
4387
- var de_DescribeDefaultEncryptionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
4388
- const parsedOutput = {
4389
- ...output,
4390
- body: await parseErrorBody(output.body, context)
4391
- };
4392
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4393
- switch (errorCode) {
4394
- case "InternalFailureException":
4395
- case "com.amazonaws.iotsitewise#InternalFailureException":
4396
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4397
- case "InvalidRequestException":
4398
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4399
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4400
- case "ThrottlingException":
4401
- case "com.amazonaws.iotsitewise#ThrottlingException":
4402
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4403
- default:
4404
- const parsedBody = parsedOutput.body;
4405
- return throwDefaultError({
4406
- output,
4407
- parsedBody,
4408
- errorCode
4409
- });
4410
- }
4411
- }, "de_DescribeDefaultEncryptionConfigurationCommandError");
4412
3317
  var de_DescribeGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
4413
3318
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4414
- return de_DescribeGatewayCommandError(output, context);
3319
+ return de_CommandError(output, context);
4415
3320
  }
4416
3321
  const contents = (0, import_smithy_client.map)({
4417
3322
  $metadata: deserializeMetadata(output)
@@ -4429,37 +3334,9 @@ var de_DescribeGatewayCommand = /* @__PURE__ */ __name(async (output, context) =
4429
3334
  Object.assign(contents, doc);
4430
3335
  return contents;
4431
3336
  }, "de_DescribeGatewayCommand");
4432
- var de_DescribeGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
4433
- const parsedOutput = {
4434
- ...output,
4435
- body: await parseErrorBody(output.body, context)
4436
- };
4437
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4438
- switch (errorCode) {
4439
- case "InternalFailureException":
4440
- case "com.amazonaws.iotsitewise#InternalFailureException":
4441
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4442
- case "InvalidRequestException":
4443
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4444
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4445
- case "ResourceNotFoundException":
4446
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4447
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4448
- case "ThrottlingException":
4449
- case "com.amazonaws.iotsitewise#ThrottlingException":
4450
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4451
- default:
4452
- const parsedBody = parsedOutput.body;
4453
- return throwDefaultError({
4454
- output,
4455
- parsedBody,
4456
- errorCode
4457
- });
4458
- }
4459
- }, "de_DescribeGatewayCommandError");
4460
3337
  var de_DescribeGatewayCapabilityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
4461
3338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4462
- return de_DescribeGatewayCapabilityConfigurationCommandError(output, context);
3339
+ return de_CommandError(output, context);
4463
3340
  }
4464
3341
  const contents = (0, import_smithy_client.map)({
4465
3342
  $metadata: deserializeMetadata(output)
@@ -4474,37 +3351,9 @@ var de_DescribeGatewayCapabilityConfigurationCommand = /* @__PURE__ */ __name(as
4474
3351
  Object.assign(contents, doc);
4475
3352
  return contents;
4476
3353
  }, "de_DescribeGatewayCapabilityConfigurationCommand");
4477
- var de_DescribeGatewayCapabilityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
4478
- const parsedOutput = {
4479
- ...output,
4480
- body: await parseErrorBody(output.body, context)
4481
- };
4482
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4483
- switch (errorCode) {
4484
- case "InternalFailureException":
4485
- case "com.amazonaws.iotsitewise#InternalFailureException":
4486
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4487
- case "InvalidRequestException":
4488
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4489
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4490
- case "ResourceNotFoundException":
4491
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4492
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4493
- case "ThrottlingException":
4494
- case "com.amazonaws.iotsitewise#ThrottlingException":
4495
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4496
- default:
4497
- const parsedBody = parsedOutput.body;
4498
- return throwDefaultError({
4499
- output,
4500
- parsedBody,
4501
- errorCode
4502
- });
4503
- }
4504
- }, "de_DescribeGatewayCapabilityConfigurationCommandError");
4505
3354
  var de_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
4506
3355
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4507
- return de_DescribeLoggingOptionsCommandError(output, context);
3356
+ return de_CommandError(output, context);
4508
3357
  }
4509
3358
  const contents = (0, import_smithy_client.map)({
4510
3359
  $metadata: deserializeMetadata(output)
@@ -4516,37 +3365,9 @@ var de_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, con
4516
3365
  Object.assign(contents, doc);
4517
3366
  return contents;
4518
3367
  }, "de_DescribeLoggingOptionsCommand");
4519
- var de_DescribeLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4520
- const parsedOutput = {
4521
- ...output,
4522
- body: await parseErrorBody(output.body, context)
4523
- };
4524
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4525
- switch (errorCode) {
4526
- case "InternalFailureException":
4527
- case "com.amazonaws.iotsitewise#InternalFailureException":
4528
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4529
- case "InvalidRequestException":
4530
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4531
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4532
- case "ResourceNotFoundException":
4533
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4534
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4535
- case "ThrottlingException":
4536
- case "com.amazonaws.iotsitewise#ThrottlingException":
4537
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4538
- default:
4539
- const parsedBody = parsedOutput.body;
4540
- return throwDefaultError({
4541
- output,
4542
- parsedBody,
4543
- errorCode
4544
- });
4545
- }
4546
- }, "de_DescribeLoggingOptionsCommandError");
4547
3368
  var de_DescribePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
4548
3369
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4549
- return de_DescribePortalCommandError(output, context);
3370
+ return de_CommandError(output, context);
4550
3371
  }
4551
3372
  const contents = (0, import_smithy_client.map)({
4552
3373
  $metadata: deserializeMetadata(output)
@@ -4572,37 +3393,9 @@ var de_DescribePortalCommand = /* @__PURE__ */ __name(async (output, context) =>
4572
3393
  Object.assign(contents, doc);
4573
3394
  return contents;
4574
3395
  }, "de_DescribePortalCommand");
4575
- var de_DescribePortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
4576
- const parsedOutput = {
4577
- ...output,
4578
- body: await parseErrorBody(output.body, context)
4579
- };
4580
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4581
- switch (errorCode) {
4582
- case "InternalFailureException":
4583
- case "com.amazonaws.iotsitewise#InternalFailureException":
4584
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4585
- case "InvalidRequestException":
4586
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4587
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4588
- case "ResourceNotFoundException":
4589
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4590
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4591
- case "ThrottlingException":
4592
- case "com.amazonaws.iotsitewise#ThrottlingException":
4593
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4594
- default:
4595
- const parsedBody = parsedOutput.body;
4596
- return throwDefaultError({
4597
- output,
4598
- parsedBody,
4599
- errorCode
4600
- });
4601
- }
4602
- }, "de_DescribePortalCommandError");
4603
3396
  var de_DescribeProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
4604
3397
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4605
- return de_DescribeProjectCommandError(output, context);
3398
+ return de_CommandError(output, context);
4606
3399
  }
4607
3400
  const contents = (0, import_smithy_client.map)({
4608
3401
  $metadata: deserializeMetadata(output)
@@ -4620,37 +3413,9 @@ var de_DescribeProjectCommand = /* @__PURE__ */ __name(async (output, context) =
4620
3413
  Object.assign(contents, doc);
4621
3414
  return contents;
4622
3415
  }, "de_DescribeProjectCommand");
4623
- var de_DescribeProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
4624
- const parsedOutput = {
4625
- ...output,
4626
- body: await parseErrorBody(output.body, context)
4627
- };
4628
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4629
- switch (errorCode) {
4630
- case "InternalFailureException":
4631
- case "com.amazonaws.iotsitewise#InternalFailureException":
4632
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4633
- case "InvalidRequestException":
4634
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4635
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4636
- case "ResourceNotFoundException":
4637
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4638
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4639
- case "ThrottlingException":
4640
- case "com.amazonaws.iotsitewise#ThrottlingException":
4641
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4642
- default:
4643
- const parsedBody = parsedOutput.body;
4644
- return throwDefaultError({
4645
- output,
4646
- parsedBody,
4647
- errorCode
4648
- });
4649
- }
4650
- }, "de_DescribeProjectCommandError");
4651
3416
  var de_DescribeStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
4652
3417
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4653
- return de_DescribeStorageConfigurationCommandError(output, context);
3418
+ return de_CommandError(output, context);
4654
3419
  }
4655
3420
  const contents = (0, import_smithy_client.map)({
4656
3421
  $metadata: deserializeMetadata(output)
@@ -4669,43 +3434,9 @@ var de_DescribeStorageConfigurationCommand = /* @__PURE__ */ __name(async (outpu
4669
3434
  Object.assign(contents, doc);
4670
3435
  return contents;
4671
3436
  }, "de_DescribeStorageConfigurationCommand");
4672
- var de_DescribeStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
4673
- const parsedOutput = {
4674
- ...output,
4675
- body: await parseErrorBody(output.body, context)
4676
- };
4677
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4678
- switch (errorCode) {
4679
- case "ConflictingOperationException":
4680
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
4681
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
4682
- case "InternalFailureException":
4683
- case "com.amazonaws.iotsitewise#InternalFailureException":
4684
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4685
- case "InvalidRequestException":
4686
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4687
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4688
- case "LimitExceededException":
4689
- case "com.amazonaws.iotsitewise#LimitExceededException":
4690
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
4691
- case "ResourceNotFoundException":
4692
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4693
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4694
- case "ThrottlingException":
4695
- case "com.amazonaws.iotsitewise#ThrottlingException":
4696
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4697
- default:
4698
- const parsedBody = parsedOutput.body;
4699
- return throwDefaultError({
4700
- output,
4701
- parsedBody,
4702
- errorCode
4703
- });
4704
- }
4705
- }, "de_DescribeStorageConfigurationCommandError");
4706
3437
  var de_DescribeTimeSeriesCommand = /* @__PURE__ */ __name(async (output, context) => {
4707
3438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4708
- return de_DescribeTimeSeriesCommandError(output, context);
3439
+ return de_CommandError(output, context);
4709
3440
  }
4710
3441
  const contents = (0, import_smithy_client.map)({
4711
3442
  $metadata: deserializeMetadata(output)
@@ -4725,37 +3456,9 @@ var de_DescribeTimeSeriesCommand = /* @__PURE__ */ __name(async (output, context
4725
3456
  Object.assign(contents, doc);
4726
3457
  return contents;
4727
3458
  }, "de_DescribeTimeSeriesCommand");
4728
- var de_DescribeTimeSeriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4729
- const parsedOutput = {
4730
- ...output,
4731
- body: await parseErrorBody(output.body, context)
4732
- };
4733
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4734
- switch (errorCode) {
4735
- case "InternalFailureException":
4736
- case "com.amazonaws.iotsitewise#InternalFailureException":
4737
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4738
- case "InvalidRequestException":
4739
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4740
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4741
- case "ResourceNotFoundException":
4742
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4743
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4744
- case "ThrottlingException":
4745
- case "com.amazonaws.iotsitewise#ThrottlingException":
4746
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4747
- default:
4748
- const parsedBody = parsedOutput.body;
4749
- return throwDefaultError({
4750
- output,
4751
- parsedBody,
4752
- errorCode
4753
- });
4754
- }
4755
- }, "de_DescribeTimeSeriesCommandError");
4756
3459
  var de_DisassociateAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
4757
3460
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4758
- return de_DisassociateAssetsCommandError(output, context);
3461
+ return de_CommandError(output, context);
4759
3462
  }
4760
3463
  const contents = (0, import_smithy_client.map)({
4761
3464
  $metadata: deserializeMetadata(output)
@@ -4763,40 +3466,9 @@ var de_DisassociateAssetsCommand = /* @__PURE__ */ __name(async (output, context
4763
3466
  await (0, import_smithy_client.collectBody)(output.body, context);
4764
3467
  return contents;
4765
3468
  }, "de_DisassociateAssetsCommand");
4766
- var de_DisassociateAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4767
- const parsedOutput = {
4768
- ...output,
4769
- body: await parseErrorBody(output.body, context)
4770
- };
4771
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4772
- switch (errorCode) {
4773
- case "ConflictingOperationException":
4774
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
4775
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
4776
- case "InternalFailureException":
4777
- case "com.amazonaws.iotsitewise#InternalFailureException":
4778
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4779
- case "InvalidRequestException":
4780
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4781
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4782
- case "ResourceNotFoundException":
4783
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4784
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4785
- case "ThrottlingException":
4786
- case "com.amazonaws.iotsitewise#ThrottlingException":
4787
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4788
- default:
4789
- const parsedBody = parsedOutput.body;
4790
- return throwDefaultError({
4791
- output,
4792
- parsedBody,
4793
- errorCode
4794
- });
4795
- }
4796
- }, "de_DisassociateAssetsCommandError");
4797
3469
  var de_DisassociateTimeSeriesFromAssetPropertyCommand = /* @__PURE__ */ __name(async (output, context) => {
4798
3470
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4799
- return de_DisassociateTimeSeriesFromAssetPropertyCommandError(output, context);
3471
+ return de_CommandError(output, context);
4800
3472
  }
4801
3473
  const contents = (0, import_smithy_client.map)({
4802
3474
  $metadata: deserializeMetadata(output)
@@ -4804,40 +3476,9 @@ var de_DisassociateTimeSeriesFromAssetPropertyCommand = /* @__PURE__ */ __name(a
4804
3476
  await (0, import_smithy_client.collectBody)(output.body, context);
4805
3477
  return contents;
4806
3478
  }, "de_DisassociateTimeSeriesFromAssetPropertyCommand");
4807
- var de_DisassociateTimeSeriesFromAssetPropertyCommandError = /* @__PURE__ */ __name(async (output, context) => {
4808
- const parsedOutput = {
4809
- ...output,
4810
- body: await parseErrorBody(output.body, context)
4811
- };
4812
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4813
- switch (errorCode) {
4814
- case "ConflictingOperationException":
4815
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
4816
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
4817
- case "InternalFailureException":
4818
- case "com.amazonaws.iotsitewise#InternalFailureException":
4819
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4820
- case "InvalidRequestException":
4821
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4822
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4823
- case "ResourceNotFoundException":
4824
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4825
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4826
- case "ThrottlingException":
4827
- case "com.amazonaws.iotsitewise#ThrottlingException":
4828
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4829
- default:
4830
- const parsedBody = parsedOutput.body;
4831
- return throwDefaultError({
4832
- output,
4833
- parsedBody,
4834
- errorCode
4835
- });
4836
- }
4837
- }, "de_DisassociateTimeSeriesFromAssetPropertyCommandError");
4838
3479
  var de_ExecuteActionCommand = /* @__PURE__ */ __name(async (output, context) => {
4839
3480
  if (output.statusCode !== 202 && output.statusCode >= 300) {
4840
- return de_ExecuteActionCommandError(output, context);
3481
+ return de_CommandError(output, context);
4841
3482
  }
4842
3483
  const contents = (0, import_smithy_client.map)({
4843
3484
  $metadata: deserializeMetadata(output)
@@ -4849,43 +3490,9 @@ var de_ExecuteActionCommand = /* @__PURE__ */ __name(async (output, context) =>
4849
3490
  Object.assign(contents, doc);
4850
3491
  return contents;
4851
3492
  }, "de_ExecuteActionCommand");
4852
- var de_ExecuteActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
4853
- const parsedOutput = {
4854
- ...output,
4855
- body: await parseErrorBody(output.body, context)
4856
- };
4857
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4858
- switch (errorCode) {
4859
- case "ConflictingOperationException":
4860
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
4861
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
4862
- case "InternalFailureException":
4863
- case "com.amazonaws.iotsitewise#InternalFailureException":
4864
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4865
- case "InvalidRequestException":
4866
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4867
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4868
- case "LimitExceededException":
4869
- case "com.amazonaws.iotsitewise#LimitExceededException":
4870
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
4871
- case "ResourceNotFoundException":
4872
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4873
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4874
- case "ThrottlingException":
4875
- case "com.amazonaws.iotsitewise#ThrottlingException":
4876
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4877
- default:
4878
- const parsedBody = parsedOutput.body;
4879
- return throwDefaultError({
4880
- output,
4881
- parsedBody,
4882
- errorCode
4883
- });
4884
- }
4885
- }, "de_ExecuteActionCommandError");
4886
3493
  var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
4887
3494
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4888
- return de_ExecuteQueryCommandError(output, context);
3495
+ return de_CommandError(output, context);
4889
3496
  }
4890
3497
  const contents = (0, import_smithy_client.map)({
4891
3498
  $metadata: deserializeMetadata(output)
@@ -4899,46 +3506,9 @@ var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
4899
3506
  Object.assign(contents, doc);
4900
3507
  return contents;
4901
3508
  }, "de_ExecuteQueryCommand");
4902
- var de_ExecuteQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
4903
- const parsedOutput = {
4904
- ...output,
4905
- body: await parseErrorBody(output.body, context)
4906
- };
4907
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4908
- switch (errorCode) {
4909
- case "AccessDeniedException":
4910
- case "com.amazonaws.iotsitewise#AccessDeniedException":
4911
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4912
- case "InternalFailureException":
4913
- case "com.amazonaws.iotsitewise#InternalFailureException":
4914
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4915
- case "InvalidRequestException":
4916
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4917
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4918
- case "QueryTimeoutException":
4919
- case "com.amazonaws.iotsitewise#QueryTimeoutException":
4920
- throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
4921
- case "ServiceUnavailableException":
4922
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4923
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4924
- case "ThrottlingException":
4925
- case "com.amazonaws.iotsitewise#ThrottlingException":
4926
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4927
- case "ValidationException":
4928
- case "com.amazonaws.iotsitewise#ValidationException":
4929
- throw await de_ValidationExceptionRes(parsedOutput, context);
4930
- default:
4931
- const parsedBody = parsedOutput.body;
4932
- return throwDefaultError({
4933
- output,
4934
- parsedBody,
4935
- errorCode
4936
- });
4937
- }
4938
- }, "de_ExecuteQueryCommandError");
4939
3509
  var de_GetAssetPropertyAggregatesCommand = /* @__PURE__ */ __name(async (output, context) => {
4940
3510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4941
- return de_GetAssetPropertyAggregatesCommandError(output, context);
3511
+ return de_CommandError(output, context);
4942
3512
  }
4943
3513
  const contents = (0, import_smithy_client.map)({
4944
3514
  $metadata: deserializeMetadata(output)
@@ -4951,40 +3521,9 @@ var de_GetAssetPropertyAggregatesCommand = /* @__PURE__ */ __name(async (output,
4951
3521
  Object.assign(contents, doc);
4952
3522
  return contents;
4953
3523
  }, "de_GetAssetPropertyAggregatesCommand");
4954
- var de_GetAssetPropertyAggregatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4955
- const parsedOutput = {
4956
- ...output,
4957
- body: await parseErrorBody(output.body, context)
4958
- };
4959
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4960
- switch (errorCode) {
4961
- case "InternalFailureException":
4962
- case "com.amazonaws.iotsitewise#InternalFailureException":
4963
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
4964
- case "InvalidRequestException":
4965
- case "com.amazonaws.iotsitewise#InvalidRequestException":
4966
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4967
- case "ResourceNotFoundException":
4968
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4969
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4970
- case "ServiceUnavailableException":
4971
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4972
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4973
- case "ThrottlingException":
4974
- case "com.amazonaws.iotsitewise#ThrottlingException":
4975
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4976
- default:
4977
- const parsedBody = parsedOutput.body;
4978
- return throwDefaultError({
4979
- output,
4980
- parsedBody,
4981
- errorCode
4982
- });
4983
- }
4984
- }, "de_GetAssetPropertyAggregatesCommandError");
4985
3524
  var de_GetAssetPropertyValueCommand = /* @__PURE__ */ __name(async (output, context) => {
4986
3525
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4987
- return de_GetAssetPropertyValueCommandError(output, context);
3526
+ return de_CommandError(output, context);
4988
3527
  }
4989
3528
  const contents = (0, import_smithy_client.map)({
4990
3529
  $metadata: deserializeMetadata(output)
@@ -4996,40 +3535,9 @@ var de_GetAssetPropertyValueCommand = /* @__PURE__ */ __name(async (output, cont
4996
3535
  Object.assign(contents, doc);
4997
3536
  return contents;
4998
3537
  }, "de_GetAssetPropertyValueCommand");
4999
- var de_GetAssetPropertyValueCommandError = /* @__PURE__ */ __name(async (output, context) => {
5000
- const parsedOutput = {
5001
- ...output,
5002
- body: await parseErrorBody(output.body, context)
5003
- };
5004
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5005
- switch (errorCode) {
5006
- case "InternalFailureException":
5007
- case "com.amazonaws.iotsitewise#InternalFailureException":
5008
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5009
- case "InvalidRequestException":
5010
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5011
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5012
- case "ResourceNotFoundException":
5013
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5014
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5015
- case "ServiceUnavailableException":
5016
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
5017
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5018
- case "ThrottlingException":
5019
- case "com.amazonaws.iotsitewise#ThrottlingException":
5020
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5021
- default:
5022
- const parsedBody = parsedOutput.body;
5023
- return throwDefaultError({
5024
- output,
5025
- parsedBody,
5026
- errorCode
5027
- });
5028
- }
5029
- }, "de_GetAssetPropertyValueCommandError");
5030
3538
  var de_GetAssetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
5031
3539
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5032
- return de_GetAssetPropertyValueHistoryCommandError(output, context);
3540
+ return de_CommandError(output, context);
5033
3541
  }
5034
3542
  const contents = (0, import_smithy_client.map)({
5035
3543
  $metadata: deserializeMetadata(output)
@@ -5042,40 +3550,9 @@ var de_GetAssetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (outpu
5042
3550
  Object.assign(contents, doc);
5043
3551
  return contents;
5044
3552
  }, "de_GetAssetPropertyValueHistoryCommand");
5045
- var de_GetAssetPropertyValueHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
5046
- const parsedOutput = {
5047
- ...output,
5048
- body: await parseErrorBody(output.body, context)
5049
- };
5050
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5051
- switch (errorCode) {
5052
- case "InternalFailureException":
5053
- case "com.amazonaws.iotsitewise#InternalFailureException":
5054
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5055
- case "InvalidRequestException":
5056
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5057
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5058
- case "ResourceNotFoundException":
5059
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5060
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5061
- case "ServiceUnavailableException":
5062
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
5063
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5064
- case "ThrottlingException":
5065
- case "com.amazonaws.iotsitewise#ThrottlingException":
5066
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5067
- default:
5068
- const parsedBody = parsedOutput.body;
5069
- return throwDefaultError({
5070
- output,
5071
- parsedBody,
5072
- errorCode
5073
- });
5074
- }
5075
- }, "de_GetAssetPropertyValueHistoryCommandError");
5076
3553
  var de_GetInterpolatedAssetPropertyValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
5077
3554
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5078
- return de_GetInterpolatedAssetPropertyValuesCommandError(output, context);
3555
+ return de_CommandError(output, context);
5079
3556
  }
5080
3557
  const contents = (0, import_smithy_client.map)({
5081
3558
  $metadata: deserializeMetadata(output)
@@ -5088,40 +3565,9 @@ var de_GetInterpolatedAssetPropertyValuesCommand = /* @__PURE__ */ __name(async
5088
3565
  Object.assign(contents, doc);
5089
3566
  return contents;
5090
3567
  }, "de_GetInterpolatedAssetPropertyValuesCommand");
5091
- var de_GetInterpolatedAssetPropertyValuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
5092
- const parsedOutput = {
5093
- ...output,
5094
- body: await parseErrorBody(output.body, context)
5095
- };
5096
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5097
- switch (errorCode) {
5098
- case "InternalFailureException":
5099
- case "com.amazonaws.iotsitewise#InternalFailureException":
5100
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5101
- case "InvalidRequestException":
5102
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5103
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5104
- case "ResourceNotFoundException":
5105
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5106
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5107
- case "ServiceUnavailableException":
5108
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
5109
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5110
- case "ThrottlingException":
5111
- case "com.amazonaws.iotsitewise#ThrottlingException":
5112
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5113
- default:
5114
- const parsedBody = parsedOutput.body;
5115
- return throwDefaultError({
5116
- output,
5117
- parsedBody,
5118
- errorCode
5119
- });
5120
- }
5121
- }, "de_GetInterpolatedAssetPropertyValuesCommandError");
5122
3568
  var de_ListAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
5123
3569
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5124
- return de_ListAccessPoliciesCommandError(output, context);
3570
+ return de_CommandError(output, context);
5125
3571
  }
5126
3572
  const contents = (0, import_smithy_client.map)({
5127
3573
  $metadata: deserializeMetadata(output)
@@ -5134,34 +3580,9 @@ var de_ListAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context
5134
3580
  Object.assign(contents, doc);
5135
3581
  return contents;
5136
3582
  }, "de_ListAccessPoliciesCommand");
5137
- var de_ListAccessPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
5138
- const parsedOutput = {
5139
- ...output,
5140
- body: await parseErrorBody(output.body, context)
5141
- };
5142
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5143
- switch (errorCode) {
5144
- case "InternalFailureException":
5145
- case "com.amazonaws.iotsitewise#InternalFailureException":
5146
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5147
- case "InvalidRequestException":
5148
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5149
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5150
- case "ThrottlingException":
5151
- case "com.amazonaws.iotsitewise#ThrottlingException":
5152
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5153
- default:
5154
- const parsedBody = parsedOutput.body;
5155
- return throwDefaultError({
5156
- output,
5157
- parsedBody,
5158
- errorCode
5159
- });
5160
- }
5161
- }, "de_ListAccessPoliciesCommandError");
5162
3583
  var de_ListActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
5163
3584
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5164
- return de_ListActionsCommandError(output, context);
3585
+ return de_CommandError(output, context);
5165
3586
  }
5166
3587
  const contents = (0, import_smithy_client.map)({
5167
3588
  $metadata: deserializeMetadata(output)
@@ -5174,37 +3595,9 @@ var de_ListActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
5174
3595
  Object.assign(contents, doc);
5175
3596
  return contents;
5176
3597
  }, "de_ListActionsCommand");
5177
- var de_ListActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5178
- const parsedOutput = {
5179
- ...output,
5180
- body: await parseErrorBody(output.body, context)
5181
- };
5182
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5183
- switch (errorCode) {
5184
- case "InternalFailureException":
5185
- case "com.amazonaws.iotsitewise#InternalFailureException":
5186
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5187
- case "InvalidRequestException":
5188
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5189
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5190
- case "ResourceNotFoundException":
5191
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5192
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5193
- case "ThrottlingException":
5194
- case "com.amazonaws.iotsitewise#ThrottlingException":
5195
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5196
- default:
5197
- const parsedBody = parsedOutput.body;
5198
- return throwDefaultError({
5199
- output,
5200
- parsedBody,
5201
- errorCode
5202
- });
5203
- }
5204
- }, "de_ListActionsCommandError");
5205
3598
  var de_ListAssetModelCompositeModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
5206
3599
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5207
- return de_ListAssetModelCompositeModelsCommandError(output, context);
3600
+ return de_CommandError(output, context);
5208
3601
  }
5209
3602
  const contents = (0, import_smithy_client.map)({
5210
3603
  $metadata: deserializeMetadata(output)
@@ -5217,37 +3610,9 @@ var de_ListAssetModelCompositeModelsCommand = /* @__PURE__ */ __name(async (outp
5217
3610
  Object.assign(contents, doc);
5218
3611
  return contents;
5219
3612
  }, "de_ListAssetModelCompositeModelsCommand");
5220
- var de_ListAssetModelCompositeModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5221
- const parsedOutput = {
5222
- ...output,
5223
- body: await parseErrorBody(output.body, context)
5224
- };
5225
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5226
- switch (errorCode) {
5227
- case "InternalFailureException":
5228
- case "com.amazonaws.iotsitewise#InternalFailureException":
5229
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5230
- case "InvalidRequestException":
5231
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5232
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5233
- case "ResourceNotFoundException":
5234
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5235
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5236
- case "ThrottlingException":
5237
- case "com.amazonaws.iotsitewise#ThrottlingException":
5238
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5239
- default:
5240
- const parsedBody = parsedOutput.body;
5241
- return throwDefaultError({
5242
- output,
5243
- parsedBody,
5244
- errorCode
5245
- });
5246
- }
5247
- }, "de_ListAssetModelCompositeModelsCommandError");
5248
3613
  var de_ListAssetModelPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
5249
3614
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5250
- return de_ListAssetModelPropertiesCommandError(output, context);
3615
+ return de_CommandError(output, context);
5251
3616
  }
5252
3617
  const contents = (0, import_smithy_client.map)({
5253
3618
  $metadata: deserializeMetadata(output)
@@ -5260,37 +3625,9 @@ var de_ListAssetModelPropertiesCommand = /* @__PURE__ */ __name(async (output, c
5260
3625
  Object.assign(contents, doc);
5261
3626
  return contents;
5262
3627
  }, "de_ListAssetModelPropertiesCommand");
5263
- var de_ListAssetModelPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
5264
- const parsedOutput = {
5265
- ...output,
5266
- body: await parseErrorBody(output.body, context)
5267
- };
5268
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5269
- switch (errorCode) {
5270
- case "InternalFailureException":
5271
- case "com.amazonaws.iotsitewise#InternalFailureException":
5272
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5273
- case "InvalidRequestException":
5274
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5275
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5276
- case "ResourceNotFoundException":
5277
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5278
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5279
- case "ThrottlingException":
5280
- case "com.amazonaws.iotsitewise#ThrottlingException":
5281
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5282
- default:
5283
- const parsedBody = parsedOutput.body;
5284
- return throwDefaultError({
5285
- output,
5286
- parsedBody,
5287
- errorCode
5288
- });
5289
- }
5290
- }, "de_ListAssetModelPropertiesCommandError");
5291
3628
  var de_ListAssetModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
5292
3629
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5293
- return de_ListAssetModelsCommandError(output, context);
3630
+ return de_CommandError(output, context);
5294
3631
  }
5295
3632
  const contents = (0, import_smithy_client.map)({
5296
3633
  $metadata: deserializeMetadata(output)
@@ -5303,34 +3640,9 @@ var de_ListAssetModelsCommand = /* @__PURE__ */ __name(async (output, context) =
5303
3640
  Object.assign(contents, doc);
5304
3641
  return contents;
5305
3642
  }, "de_ListAssetModelsCommand");
5306
- var de_ListAssetModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5307
- const parsedOutput = {
5308
- ...output,
5309
- body: await parseErrorBody(output.body, context)
5310
- };
5311
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5312
- switch (errorCode) {
5313
- case "InternalFailureException":
5314
- case "com.amazonaws.iotsitewise#InternalFailureException":
5315
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5316
- case "InvalidRequestException":
5317
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5318
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5319
- case "ThrottlingException":
5320
- case "com.amazonaws.iotsitewise#ThrottlingException":
5321
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5322
- default:
5323
- const parsedBody = parsedOutput.body;
5324
- return throwDefaultError({
5325
- output,
5326
- parsedBody,
5327
- errorCode
5328
- });
5329
- }
5330
- }, "de_ListAssetModelsCommandError");
5331
3643
  var de_ListAssetPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
5332
3644
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5333
- return de_ListAssetPropertiesCommandError(output, context);
3645
+ return de_CommandError(output, context);
5334
3646
  }
5335
3647
  const contents = (0, import_smithy_client.map)({
5336
3648
  $metadata: deserializeMetadata(output)
@@ -5343,37 +3655,9 @@ var de_ListAssetPropertiesCommand = /* @__PURE__ */ __name(async (output, contex
5343
3655
  Object.assign(contents, doc);
5344
3656
  return contents;
5345
3657
  }, "de_ListAssetPropertiesCommand");
5346
- var de_ListAssetPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
5347
- const parsedOutput = {
5348
- ...output,
5349
- body: await parseErrorBody(output.body, context)
5350
- };
5351
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5352
- switch (errorCode) {
5353
- case "InternalFailureException":
5354
- case "com.amazonaws.iotsitewise#InternalFailureException":
5355
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5356
- case "InvalidRequestException":
5357
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5358
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5359
- case "ResourceNotFoundException":
5360
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5361
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5362
- case "ThrottlingException":
5363
- case "com.amazonaws.iotsitewise#ThrottlingException":
5364
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5365
- default:
5366
- const parsedBody = parsedOutput.body;
5367
- return throwDefaultError({
5368
- output,
5369
- parsedBody,
5370
- errorCode
5371
- });
5372
- }
5373
- }, "de_ListAssetPropertiesCommandError");
5374
3658
  var de_ListAssetRelationshipsCommand = /* @__PURE__ */ __name(async (output, context) => {
5375
3659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5376
- return de_ListAssetRelationshipsCommandError(output, context);
3660
+ return de_CommandError(output, context);
5377
3661
  }
5378
3662
  const contents = (0, import_smithy_client.map)({
5379
3663
  $metadata: deserializeMetadata(output)
@@ -5386,37 +3670,9 @@ var de_ListAssetRelationshipsCommand = /* @__PURE__ */ __name(async (output, con
5386
3670
  Object.assign(contents, doc);
5387
3671
  return contents;
5388
3672
  }, "de_ListAssetRelationshipsCommand");
5389
- var de_ListAssetRelationshipsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5390
- const parsedOutput = {
5391
- ...output,
5392
- body: await parseErrorBody(output.body, context)
5393
- };
5394
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5395
- switch (errorCode) {
5396
- case "InternalFailureException":
5397
- case "com.amazonaws.iotsitewise#InternalFailureException":
5398
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5399
- case "InvalidRequestException":
5400
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5401
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5402
- case "ResourceNotFoundException":
5403
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5404
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5405
- case "ThrottlingException":
5406
- case "com.amazonaws.iotsitewise#ThrottlingException":
5407
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5408
- default:
5409
- const parsedBody = parsedOutput.body;
5410
- return throwDefaultError({
5411
- output,
5412
- parsedBody,
5413
- errorCode
5414
- });
5415
- }
5416
- }, "de_ListAssetRelationshipsCommandError");
5417
3673
  var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
5418
3674
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5419
- return de_ListAssetsCommandError(output, context);
3675
+ return de_CommandError(output, context);
5420
3676
  }
5421
3677
  const contents = (0, import_smithy_client.map)({
5422
3678
  $metadata: deserializeMetadata(output)
@@ -5429,37 +3685,9 @@ var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
5429
3685
  Object.assign(contents, doc);
5430
3686
  return contents;
5431
3687
  }, "de_ListAssetsCommand");
5432
- var de_ListAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5433
- const parsedOutput = {
5434
- ...output,
5435
- body: await parseErrorBody(output.body, context)
5436
- };
5437
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5438
- switch (errorCode) {
5439
- case "InternalFailureException":
5440
- case "com.amazonaws.iotsitewise#InternalFailureException":
5441
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5442
- case "InvalidRequestException":
5443
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5444
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5445
- case "ResourceNotFoundException":
5446
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5447
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5448
- case "ThrottlingException":
5449
- case "com.amazonaws.iotsitewise#ThrottlingException":
5450
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5451
- default:
5452
- const parsedBody = parsedOutput.body;
5453
- return throwDefaultError({
5454
- output,
5455
- parsedBody,
5456
- errorCode
5457
- });
5458
- }
5459
- }, "de_ListAssetsCommandError");
5460
3688
  var de_ListAssociatedAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
5461
3689
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5462
- return de_ListAssociatedAssetsCommandError(output, context);
3690
+ return de_CommandError(output, context);
5463
3691
  }
5464
3692
  const contents = (0, import_smithy_client.map)({
5465
3693
  $metadata: deserializeMetadata(output)
@@ -5472,37 +3700,9 @@ var de_ListAssociatedAssetsCommand = /* @__PURE__ */ __name(async (output, conte
5472
3700
  Object.assign(contents, doc);
5473
3701
  return contents;
5474
3702
  }, "de_ListAssociatedAssetsCommand");
5475
- var de_ListAssociatedAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5476
- const parsedOutput = {
5477
- ...output,
5478
- body: await parseErrorBody(output.body, context)
5479
- };
5480
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5481
- switch (errorCode) {
5482
- case "InternalFailureException":
5483
- case "com.amazonaws.iotsitewise#InternalFailureException":
5484
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5485
- case "InvalidRequestException":
5486
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5487
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5488
- case "ResourceNotFoundException":
5489
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5490
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5491
- case "ThrottlingException":
5492
- case "com.amazonaws.iotsitewise#ThrottlingException":
5493
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5494
- default:
5495
- const parsedBody = parsedOutput.body;
5496
- return throwDefaultError({
5497
- output,
5498
- parsedBody,
5499
- errorCode
5500
- });
5501
- }
5502
- }, "de_ListAssociatedAssetsCommandError");
5503
3703
  var de_ListBulkImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
5504
3704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5505
- return de_ListBulkImportJobsCommandError(output, context);
3705
+ return de_CommandError(output, context);
5506
3706
  }
5507
3707
  const contents = (0, import_smithy_client.map)({
5508
3708
  $metadata: deserializeMetadata(output)
@@ -5515,37 +3715,9 @@ var de_ListBulkImportJobsCommand = /* @__PURE__ */ __name(async (output, context
5515
3715
  Object.assign(contents, doc);
5516
3716
  return contents;
5517
3717
  }, "de_ListBulkImportJobsCommand");
5518
- var de_ListBulkImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5519
- const parsedOutput = {
5520
- ...output,
5521
- body: await parseErrorBody(output.body, context)
5522
- };
5523
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5524
- switch (errorCode) {
5525
- case "InternalFailureException":
5526
- case "com.amazonaws.iotsitewise#InternalFailureException":
5527
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5528
- case "InvalidRequestException":
5529
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5530
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5531
- case "ResourceNotFoundException":
5532
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5533
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5534
- case "ThrottlingException":
5535
- case "com.amazonaws.iotsitewise#ThrottlingException":
5536
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5537
- default:
5538
- const parsedBody = parsedOutput.body;
5539
- return throwDefaultError({
5540
- output,
5541
- parsedBody,
5542
- errorCode
5543
- });
5544
- }
5545
- }, "de_ListBulkImportJobsCommandError");
5546
3718
  var de_ListCompositionRelationshipsCommand = /* @__PURE__ */ __name(async (output, context) => {
5547
3719
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5548
- return de_ListCompositionRelationshipsCommandError(output, context);
3720
+ return de_CommandError(output, context);
5549
3721
  }
5550
3722
  const contents = (0, import_smithy_client.map)({
5551
3723
  $metadata: deserializeMetadata(output)
@@ -5558,37 +3730,9 @@ var de_ListCompositionRelationshipsCommand = /* @__PURE__ */ __name(async (outpu
5558
3730
  Object.assign(contents, doc);
5559
3731
  return contents;
5560
3732
  }, "de_ListCompositionRelationshipsCommand");
5561
- var de_ListCompositionRelationshipsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5562
- const parsedOutput = {
5563
- ...output,
5564
- body: await parseErrorBody(output.body, context)
5565
- };
5566
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5567
- switch (errorCode) {
5568
- case "InternalFailureException":
5569
- case "com.amazonaws.iotsitewise#InternalFailureException":
5570
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5571
- case "InvalidRequestException":
5572
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5573
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5574
- case "ResourceNotFoundException":
5575
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5576
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5577
- case "ThrottlingException":
5578
- case "com.amazonaws.iotsitewise#ThrottlingException":
5579
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5580
- default:
5581
- const parsedBody = parsedOutput.body;
5582
- return throwDefaultError({
5583
- output,
5584
- parsedBody,
5585
- errorCode
5586
- });
5587
- }
5588
- }, "de_ListCompositionRelationshipsCommandError");
5589
3733
  var de_ListDashboardsCommand = /* @__PURE__ */ __name(async (output, context) => {
5590
3734
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5591
- return de_ListDashboardsCommandError(output, context);
3735
+ return de_CommandError(output, context);
5592
3736
  }
5593
3737
  const contents = (0, import_smithy_client.map)({
5594
3738
  $metadata: deserializeMetadata(output)
@@ -5601,34 +3745,9 @@ var de_ListDashboardsCommand = /* @__PURE__ */ __name(async (output, context) =>
5601
3745
  Object.assign(contents, doc);
5602
3746
  return contents;
5603
3747
  }, "de_ListDashboardsCommand");
5604
- var de_ListDashboardsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5605
- const parsedOutput = {
5606
- ...output,
5607
- body: await parseErrorBody(output.body, context)
5608
- };
5609
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5610
- switch (errorCode) {
5611
- case "InternalFailureException":
5612
- case "com.amazonaws.iotsitewise#InternalFailureException":
5613
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5614
- case "InvalidRequestException":
5615
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5616
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5617
- case "ThrottlingException":
5618
- case "com.amazonaws.iotsitewise#ThrottlingException":
5619
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5620
- default:
5621
- const parsedBody = parsedOutput.body;
5622
- return throwDefaultError({
5623
- output,
5624
- parsedBody,
5625
- errorCode
5626
- });
5627
- }
5628
- }, "de_ListDashboardsCommandError");
5629
3748
  var de_ListGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
5630
3749
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5631
- return de_ListGatewaysCommandError(output, context);
3750
+ return de_CommandError(output, context);
5632
3751
  }
5633
3752
  const contents = (0, import_smithy_client.map)({
5634
3753
  $metadata: deserializeMetadata(output)
@@ -5641,34 +3760,9 @@ var de_ListGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
5641
3760
  Object.assign(contents, doc);
5642
3761
  return contents;
5643
3762
  }, "de_ListGatewaysCommand");
5644
- var de_ListGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
5645
- const parsedOutput = {
5646
- ...output,
5647
- body: await parseErrorBody(output.body, context)
5648
- };
5649
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5650
- switch (errorCode) {
5651
- case "InternalFailureException":
5652
- case "com.amazonaws.iotsitewise#InternalFailureException":
5653
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5654
- case "InvalidRequestException":
5655
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5656
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5657
- case "ThrottlingException":
5658
- case "com.amazonaws.iotsitewise#ThrottlingException":
5659
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5660
- default:
5661
- const parsedBody = parsedOutput.body;
5662
- return throwDefaultError({
5663
- output,
5664
- parsedBody,
5665
- errorCode
5666
- });
5667
- }
5668
- }, "de_ListGatewaysCommandError");
5669
3763
  var de_ListPortalsCommand = /* @__PURE__ */ __name(async (output, context) => {
5670
3764
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5671
- return de_ListPortalsCommandError(output, context);
3765
+ return de_CommandError(output, context);
5672
3766
  }
5673
3767
  const contents = (0, import_smithy_client.map)({
5674
3768
  $metadata: deserializeMetadata(output)
@@ -5681,34 +3775,9 @@ var de_ListPortalsCommand = /* @__PURE__ */ __name(async (output, context) => {
5681
3775
  Object.assign(contents, doc);
5682
3776
  return contents;
5683
3777
  }, "de_ListPortalsCommand");
5684
- var de_ListPortalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5685
- const parsedOutput = {
5686
- ...output,
5687
- body: await parseErrorBody(output.body, context)
5688
- };
5689
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5690
- switch (errorCode) {
5691
- case "InternalFailureException":
5692
- case "com.amazonaws.iotsitewise#InternalFailureException":
5693
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5694
- case "InvalidRequestException":
5695
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5696
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5697
- case "ThrottlingException":
5698
- case "com.amazonaws.iotsitewise#ThrottlingException":
5699
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5700
- default:
5701
- const parsedBody = parsedOutput.body;
5702
- return throwDefaultError({
5703
- output,
5704
- parsedBody,
5705
- errorCode
5706
- });
5707
- }
5708
- }, "de_ListPortalsCommandError");
5709
3778
  var de_ListProjectAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
5710
3779
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5711
- return de_ListProjectAssetsCommandError(output, context);
3780
+ return de_CommandError(output, context);
5712
3781
  }
5713
3782
  const contents = (0, import_smithy_client.map)({
5714
3783
  $metadata: deserializeMetadata(output)
@@ -5721,34 +3790,9 @@ var de_ListProjectAssetsCommand = /* @__PURE__ */ __name(async (output, context)
5721
3790
  Object.assign(contents, doc);
5722
3791
  return contents;
5723
3792
  }, "de_ListProjectAssetsCommand");
5724
- var de_ListProjectAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5725
- const parsedOutput = {
5726
- ...output,
5727
- body: await parseErrorBody(output.body, context)
5728
- };
5729
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5730
- switch (errorCode) {
5731
- case "InternalFailureException":
5732
- case "com.amazonaws.iotsitewise#InternalFailureException":
5733
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5734
- case "InvalidRequestException":
5735
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5736
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5737
- case "ThrottlingException":
5738
- case "com.amazonaws.iotsitewise#ThrottlingException":
5739
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5740
- default:
5741
- const parsedBody = parsedOutput.body;
5742
- return throwDefaultError({
5743
- output,
5744
- parsedBody,
5745
- errorCode
5746
- });
5747
- }
5748
- }, "de_ListProjectAssetsCommandError");
5749
3793
  var de_ListProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
5750
3794
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5751
- return de_ListProjectsCommandError(output, context);
3795
+ return de_CommandError(output, context);
5752
3796
  }
5753
3797
  const contents = (0, import_smithy_client.map)({
5754
3798
  $metadata: deserializeMetadata(output)
@@ -5761,34 +3805,9 @@ var de_ListProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
5761
3805
  Object.assign(contents, doc);
5762
3806
  return contents;
5763
3807
  }, "de_ListProjectsCommand");
5764
- var de_ListProjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5765
- const parsedOutput = {
5766
- ...output,
5767
- body: await parseErrorBody(output.body, context)
5768
- };
5769
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5770
- switch (errorCode) {
5771
- case "InternalFailureException":
5772
- case "com.amazonaws.iotsitewise#InternalFailureException":
5773
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5774
- case "InvalidRequestException":
5775
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5776
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5777
- case "ThrottlingException":
5778
- case "com.amazonaws.iotsitewise#ThrottlingException":
5779
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5780
- default:
5781
- const parsedBody = parsedOutput.body;
5782
- return throwDefaultError({
5783
- output,
5784
- parsedBody,
5785
- errorCode
5786
- });
5787
- }
5788
- }, "de_ListProjectsCommandError");
5789
3808
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5790
3809
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5791
- return de_ListTagsForResourceCommandError(output, context);
3810
+ return de_CommandError(output, context);
5792
3811
  }
5793
3812
  const contents = (0, import_smithy_client.map)({
5794
3813
  $metadata: deserializeMetadata(output)
@@ -5800,46 +3819,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
5800
3819
  Object.assign(contents, doc);
5801
3820
  return contents;
5802
3821
  }, "de_ListTagsForResourceCommand");
5803
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5804
- const parsedOutput = {
5805
- ...output,
5806
- body: await parseErrorBody(output.body, context)
5807
- };
5808
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5809
- switch (errorCode) {
5810
- case "ConflictingOperationException":
5811
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
5812
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
5813
- case "InternalFailureException":
5814
- case "com.amazonaws.iotsitewise#InternalFailureException":
5815
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5816
- case "InvalidRequestException":
5817
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5818
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5819
- case "LimitExceededException":
5820
- case "com.amazonaws.iotsitewise#LimitExceededException":
5821
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
5822
- case "ResourceNotFoundException":
5823
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5824
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5825
- case "ThrottlingException":
5826
- case "com.amazonaws.iotsitewise#ThrottlingException":
5827
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5828
- case "UnauthorizedException":
5829
- case "com.amazonaws.iotsitewise#UnauthorizedException":
5830
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5831
- default:
5832
- const parsedBody = parsedOutput.body;
5833
- return throwDefaultError({
5834
- output,
5835
- parsedBody,
5836
- errorCode
5837
- });
5838
- }
5839
- }, "de_ListTagsForResourceCommandError");
5840
3822
  var de_ListTimeSeriesCommand = /* @__PURE__ */ __name(async (output, context) => {
5841
3823
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5842
- return de_ListTimeSeriesCommandError(output, context);
3824
+ return de_CommandError(output, context);
5843
3825
  }
5844
3826
  const contents = (0, import_smithy_client.map)({
5845
3827
  $metadata: deserializeMetadata(output)
@@ -5852,37 +3834,9 @@ var de_ListTimeSeriesCommand = /* @__PURE__ */ __name(async (output, context) =>
5852
3834
  Object.assign(contents, doc);
5853
3835
  return contents;
5854
3836
  }, "de_ListTimeSeriesCommand");
5855
- var de_ListTimeSeriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
5856
- const parsedOutput = {
5857
- ...output,
5858
- body: await parseErrorBody(output.body, context)
5859
- };
5860
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5861
- switch (errorCode) {
5862
- case "InternalFailureException":
5863
- case "com.amazonaws.iotsitewise#InternalFailureException":
5864
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5865
- case "InvalidRequestException":
5866
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5867
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5868
- case "ResourceNotFoundException":
5869
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5870
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5871
- case "ThrottlingException":
5872
- case "com.amazonaws.iotsitewise#ThrottlingException":
5873
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5874
- default:
5875
- const parsedBody = parsedOutput.body;
5876
- return throwDefaultError({
5877
- output,
5878
- parsedBody,
5879
- errorCode
5880
- });
5881
- }
5882
- }, "de_ListTimeSeriesCommandError");
5883
3837
  var de_PutDefaultEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
5884
3838
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5885
- return de_PutDefaultEncryptionConfigurationCommandError(output, context);
3839
+ return de_CommandError(output, context);
5886
3840
  }
5887
3841
  const contents = (0, import_smithy_client.map)({
5888
3842
  $metadata: deserializeMetadata(output)
@@ -5896,40 +3850,9 @@ var de_PutDefaultEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (
5896
3850
  Object.assign(contents, doc);
5897
3851
  return contents;
5898
3852
  }, "de_PutDefaultEncryptionConfigurationCommand");
5899
- var de_PutDefaultEncryptionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
5900
- const parsedOutput = {
5901
- ...output,
5902
- body: await parseErrorBody(output.body, context)
5903
- };
5904
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5905
- switch (errorCode) {
5906
- case "ConflictingOperationException":
5907
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
5908
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
5909
- case "InternalFailureException":
5910
- case "com.amazonaws.iotsitewise#InternalFailureException":
5911
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5912
- case "InvalidRequestException":
5913
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5914
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5915
- case "LimitExceededException":
5916
- case "com.amazonaws.iotsitewise#LimitExceededException":
5917
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
5918
- case "ThrottlingException":
5919
- case "com.amazonaws.iotsitewise#ThrottlingException":
5920
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5921
- default:
5922
- const parsedBody = parsedOutput.body;
5923
- return throwDefaultError({
5924
- output,
5925
- parsedBody,
5926
- errorCode
5927
- });
5928
- }
5929
- }, "de_PutDefaultEncryptionConfigurationCommandError");
5930
3853
  var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
5931
3854
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5932
- return de_PutLoggingOptionsCommandError(output, context);
3855
+ return de_CommandError(output, context);
5933
3856
  }
5934
3857
  const contents = (0, import_smithy_client.map)({
5935
3858
  $metadata: deserializeMetadata(output)
@@ -5937,40 +3860,9 @@ var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context)
5937
3860
  await (0, import_smithy_client.collectBody)(output.body, context);
5938
3861
  return contents;
5939
3862
  }, "de_PutLoggingOptionsCommand");
5940
- var de_PutLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5941
- const parsedOutput = {
5942
- ...output,
5943
- body: await parseErrorBody(output.body, context)
5944
- };
5945
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5946
- switch (errorCode) {
5947
- case "ConflictingOperationException":
5948
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
5949
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
5950
- case "InternalFailureException":
5951
- case "com.amazonaws.iotsitewise#InternalFailureException":
5952
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
5953
- case "InvalidRequestException":
5954
- case "com.amazonaws.iotsitewise#InvalidRequestException":
5955
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5956
- case "ResourceNotFoundException":
5957
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5958
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5959
- case "ThrottlingException":
5960
- case "com.amazonaws.iotsitewise#ThrottlingException":
5961
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5962
- default:
5963
- const parsedBody = parsedOutput.body;
5964
- return throwDefaultError({
5965
- output,
5966
- parsedBody,
5967
- errorCode
5968
- });
5969
- }
5970
- }, "de_PutLoggingOptionsCommandError");
5971
3863
  var de_PutStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
5972
3864
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5973
- return de_PutStorageConfigurationCommandError(output, context);
3865
+ return de_CommandError(output, context);
5974
3866
  }
5975
3867
  const contents = (0, import_smithy_client.map)({
5976
3868
  $metadata: deserializeMetadata(output)
@@ -5988,46 +3880,9 @@ var de_PutStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, co
5988
3880
  Object.assign(contents, doc);
5989
3881
  return contents;
5990
3882
  }, "de_PutStorageConfigurationCommand");
5991
- var de_PutStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
5992
- const parsedOutput = {
5993
- ...output,
5994
- body: await parseErrorBody(output.body, context)
5995
- };
5996
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5997
- switch (errorCode) {
5998
- case "ConflictingOperationException":
5999
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6000
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6001
- case "InternalFailureException":
6002
- case "com.amazonaws.iotsitewise#InternalFailureException":
6003
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6004
- case "InvalidRequestException":
6005
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6006
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6007
- case "LimitExceededException":
6008
- case "com.amazonaws.iotsitewise#LimitExceededException":
6009
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6010
- case "ResourceAlreadyExistsException":
6011
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
6012
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
6013
- case "ResourceNotFoundException":
6014
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6015
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6016
- case "ThrottlingException":
6017
- case "com.amazonaws.iotsitewise#ThrottlingException":
6018
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6019
- default:
6020
- const parsedBody = parsedOutput.body;
6021
- return throwDefaultError({
6022
- output,
6023
- parsedBody,
6024
- errorCode
6025
- });
6026
- }
6027
- }, "de_PutStorageConfigurationCommandError");
6028
3883
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
6029
3884
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6030
- return de_TagResourceCommandError(output, context);
3885
+ return de_CommandError(output, context);
6031
3886
  }
6032
3887
  const contents = (0, import_smithy_client.map)({
6033
3888
  $metadata: deserializeMetadata(output)
@@ -6035,49 +3890,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
6035
3890
  await (0, import_smithy_client.collectBody)(output.body, context);
6036
3891
  return contents;
6037
3892
  }, "de_TagResourceCommand");
6038
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
6039
- const parsedOutput = {
6040
- ...output,
6041
- body: await parseErrorBody(output.body, context)
6042
- };
6043
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6044
- switch (errorCode) {
6045
- case "ConflictingOperationException":
6046
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6047
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6048
- case "InternalFailureException":
6049
- case "com.amazonaws.iotsitewise#InternalFailureException":
6050
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6051
- case "InvalidRequestException":
6052
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6053
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6054
- case "LimitExceededException":
6055
- case "com.amazonaws.iotsitewise#LimitExceededException":
6056
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6057
- case "ResourceNotFoundException":
6058
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6059
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6060
- case "ThrottlingException":
6061
- case "com.amazonaws.iotsitewise#ThrottlingException":
6062
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6063
- case "TooManyTagsException":
6064
- case "com.amazonaws.iotsitewise#TooManyTagsException":
6065
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
6066
- case "UnauthorizedException":
6067
- case "com.amazonaws.iotsitewise#UnauthorizedException":
6068
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6069
- default:
6070
- const parsedBody = parsedOutput.body;
6071
- return throwDefaultError({
6072
- output,
6073
- parsedBody,
6074
- errorCode
6075
- });
6076
- }
6077
- }, "de_TagResourceCommandError");
6078
3893
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
6079
3894
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6080
- return de_UntagResourceCommandError(output, context);
3895
+ return de_CommandError(output, context);
6081
3896
  }
6082
3897
  const contents = (0, import_smithy_client.map)({
6083
3898
  $metadata: deserializeMetadata(output)
@@ -6085,46 +3900,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
6085
3900
  await (0, import_smithy_client.collectBody)(output.body, context);
6086
3901
  return contents;
6087
3902
  }, "de_UntagResourceCommand");
6088
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
6089
- const parsedOutput = {
6090
- ...output,
6091
- body: await parseErrorBody(output.body, context)
6092
- };
6093
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6094
- switch (errorCode) {
6095
- case "ConflictingOperationException":
6096
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6097
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6098
- case "InternalFailureException":
6099
- case "com.amazonaws.iotsitewise#InternalFailureException":
6100
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6101
- case "InvalidRequestException":
6102
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6103
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6104
- case "LimitExceededException":
6105
- case "com.amazonaws.iotsitewise#LimitExceededException":
6106
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6107
- case "ResourceNotFoundException":
6108
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6109
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6110
- case "ThrottlingException":
6111
- case "com.amazonaws.iotsitewise#ThrottlingException":
6112
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6113
- case "UnauthorizedException":
6114
- case "com.amazonaws.iotsitewise#UnauthorizedException":
6115
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6116
- default:
6117
- const parsedBody = parsedOutput.body;
6118
- return throwDefaultError({
6119
- output,
6120
- parsedBody,
6121
- errorCode
6122
- });
6123
- }
6124
- }, "de_UntagResourceCommandError");
6125
3903
  var de_UpdateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
6126
3904
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6127
- return de_UpdateAccessPolicyCommandError(output, context);
3905
+ return de_CommandError(output, context);
6128
3906
  }
6129
3907
  const contents = (0, import_smithy_client.map)({
6130
3908
  $metadata: deserializeMetadata(output)
@@ -6132,37 +3910,9 @@ var de_UpdateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context
6132
3910
  await (0, import_smithy_client.collectBody)(output.body, context);
6133
3911
  return contents;
6134
3912
  }, "de_UpdateAccessPolicyCommand");
6135
- var de_UpdateAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
6136
- const parsedOutput = {
6137
- ...output,
6138
- body: await parseErrorBody(output.body, context)
6139
- };
6140
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6141
- switch (errorCode) {
6142
- case "InternalFailureException":
6143
- case "com.amazonaws.iotsitewise#InternalFailureException":
6144
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6145
- case "InvalidRequestException":
6146
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6147
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6148
- case "ResourceNotFoundException":
6149
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6150
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6151
- case "ThrottlingException":
6152
- case "com.amazonaws.iotsitewise#ThrottlingException":
6153
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6154
- default:
6155
- const parsedBody = parsedOutput.body;
6156
- return throwDefaultError({
6157
- output,
6158
- parsedBody,
6159
- errorCode
6160
- });
6161
- }
6162
- }, "de_UpdateAccessPolicyCommandError");
6163
3913
  var de_UpdateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
6164
3914
  if (output.statusCode !== 202 && output.statusCode >= 300) {
6165
- return de_UpdateAssetCommandError(output, context);
3915
+ return de_CommandError(output, context);
6166
3916
  }
6167
3917
  const contents = (0, import_smithy_client.map)({
6168
3918
  $metadata: deserializeMetadata(output)
@@ -6174,43 +3924,9 @@ var de_UpdateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
6174
3924
  Object.assign(contents, doc);
6175
3925
  return contents;
6176
3926
  }, "de_UpdateAssetCommand");
6177
- var de_UpdateAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
6178
- const parsedOutput = {
6179
- ...output,
6180
- body: await parseErrorBody(output.body, context)
6181
- };
6182
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6183
- switch (errorCode) {
6184
- case "ConflictingOperationException":
6185
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6186
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6187
- case "InternalFailureException":
6188
- case "com.amazonaws.iotsitewise#InternalFailureException":
6189
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6190
- case "InvalidRequestException":
6191
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6192
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6193
- case "ResourceAlreadyExistsException":
6194
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
6195
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
6196
- case "ResourceNotFoundException":
6197
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6198
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6199
- case "ThrottlingException":
6200
- case "com.amazonaws.iotsitewise#ThrottlingException":
6201
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6202
- default:
6203
- const parsedBody = parsedOutput.body;
6204
- return throwDefaultError({
6205
- output,
6206
- parsedBody,
6207
- errorCode
6208
- });
6209
- }
6210
- }, "de_UpdateAssetCommandError");
6211
3927
  var de_UpdateAssetModelCommand = /* @__PURE__ */ __name(async (output, context) => {
6212
3928
  if (output.statusCode !== 202 && output.statusCode >= 300) {
6213
- return de_UpdateAssetModelCommandError(output, context);
3929
+ return de_CommandError(output, context);
6214
3930
  }
6215
3931
  const contents = (0, import_smithy_client.map)({
6216
3932
  $metadata: deserializeMetadata(output)
@@ -6222,46 +3938,9 @@ var de_UpdateAssetModelCommand = /* @__PURE__ */ __name(async (output, context)
6222
3938
  Object.assign(contents, doc);
6223
3939
  return contents;
6224
3940
  }, "de_UpdateAssetModelCommand");
6225
- var de_UpdateAssetModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
6226
- const parsedOutput = {
6227
- ...output,
6228
- body: await parseErrorBody(output.body, context)
6229
- };
6230
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6231
- switch (errorCode) {
6232
- case "ConflictingOperationException":
6233
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6234
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6235
- case "InternalFailureException":
6236
- case "com.amazonaws.iotsitewise#InternalFailureException":
6237
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6238
- case "InvalidRequestException":
6239
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6240
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6241
- case "LimitExceededException":
6242
- case "com.amazonaws.iotsitewise#LimitExceededException":
6243
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6244
- case "ResourceAlreadyExistsException":
6245
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
6246
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
6247
- case "ResourceNotFoundException":
6248
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6249
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6250
- case "ThrottlingException":
6251
- case "com.amazonaws.iotsitewise#ThrottlingException":
6252
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6253
- default:
6254
- const parsedBody = parsedOutput.body;
6255
- return throwDefaultError({
6256
- output,
6257
- parsedBody,
6258
- errorCode
6259
- });
6260
- }
6261
- }, "de_UpdateAssetModelCommandError");
6262
3941
  var de_UpdateAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
6263
3942
  if (output.statusCode !== 202 && output.statusCode >= 300) {
6264
- return de_UpdateAssetModelCompositeModelCommandError(output, context);
3943
+ return de_CommandError(output, context);
6265
3944
  }
6266
3945
  const contents = (0, import_smithy_client.map)({
6267
3946
  $metadata: deserializeMetadata(output)
@@ -6274,46 +3953,9 @@ var de_UpdateAssetModelCompositeModelCommand = /* @__PURE__ */ __name(async (out
6274
3953
  Object.assign(contents, doc);
6275
3954
  return contents;
6276
3955
  }, "de_UpdateAssetModelCompositeModelCommand");
6277
- var de_UpdateAssetModelCompositeModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
6278
- const parsedOutput = {
6279
- ...output,
6280
- body: await parseErrorBody(output.body, context)
6281
- };
6282
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6283
- switch (errorCode) {
6284
- case "ConflictingOperationException":
6285
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6286
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6287
- case "InternalFailureException":
6288
- case "com.amazonaws.iotsitewise#InternalFailureException":
6289
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6290
- case "InvalidRequestException":
6291
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6292
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6293
- case "LimitExceededException":
6294
- case "com.amazonaws.iotsitewise#LimitExceededException":
6295
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6296
- case "ResourceAlreadyExistsException":
6297
- case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
6298
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
6299
- case "ResourceNotFoundException":
6300
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6301
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6302
- case "ThrottlingException":
6303
- case "com.amazonaws.iotsitewise#ThrottlingException":
6304
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6305
- default:
6306
- const parsedBody = parsedOutput.body;
6307
- return throwDefaultError({
6308
- output,
6309
- parsedBody,
6310
- errorCode
6311
- });
6312
- }
6313
- }, "de_UpdateAssetModelCompositeModelCommandError");
6314
3956
  var de_UpdateAssetPropertyCommand = /* @__PURE__ */ __name(async (output, context) => {
6315
3957
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6316
- return de_UpdateAssetPropertyCommandError(output, context);
3958
+ return de_CommandError(output, context);
6317
3959
  }
6318
3960
  const contents = (0, import_smithy_client.map)({
6319
3961
  $metadata: deserializeMetadata(output)
@@ -6321,40 +3963,9 @@ var de_UpdateAssetPropertyCommand = /* @__PURE__ */ __name(async (output, contex
6321
3963
  await (0, import_smithy_client.collectBody)(output.body, context);
6322
3964
  return contents;
6323
3965
  }, "de_UpdateAssetPropertyCommand");
6324
- var de_UpdateAssetPropertyCommandError = /* @__PURE__ */ __name(async (output, context) => {
6325
- const parsedOutput = {
6326
- ...output,
6327
- body: await parseErrorBody(output.body, context)
6328
- };
6329
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6330
- switch (errorCode) {
6331
- case "ConflictingOperationException":
6332
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6333
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6334
- case "InternalFailureException":
6335
- case "com.amazonaws.iotsitewise#InternalFailureException":
6336
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6337
- case "InvalidRequestException":
6338
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6339
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6340
- case "ResourceNotFoundException":
6341
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6342
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6343
- case "ThrottlingException":
6344
- case "com.amazonaws.iotsitewise#ThrottlingException":
6345
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6346
- default:
6347
- const parsedBody = parsedOutput.body;
6348
- return throwDefaultError({
6349
- output,
6350
- parsedBody,
6351
- errorCode
6352
- });
6353
- }
6354
- }, "de_UpdateAssetPropertyCommandError");
6355
3966
  var de_UpdateDashboardCommand = /* @__PURE__ */ __name(async (output, context) => {
6356
3967
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6357
- return de_UpdateDashboardCommandError(output, context);
3968
+ return de_CommandError(output, context);
6358
3969
  }
6359
3970
  const contents = (0, import_smithy_client.map)({
6360
3971
  $metadata: deserializeMetadata(output)
@@ -6362,37 +3973,9 @@ var de_UpdateDashboardCommand = /* @__PURE__ */ __name(async (output, context) =
6362
3973
  await (0, import_smithy_client.collectBody)(output.body, context);
6363
3974
  return contents;
6364
3975
  }, "de_UpdateDashboardCommand");
6365
- var de_UpdateDashboardCommandError = /* @__PURE__ */ __name(async (output, context) => {
6366
- const parsedOutput = {
6367
- ...output,
6368
- body: await parseErrorBody(output.body, context)
6369
- };
6370
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6371
- switch (errorCode) {
6372
- case "InternalFailureException":
6373
- case "com.amazonaws.iotsitewise#InternalFailureException":
6374
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6375
- case "InvalidRequestException":
6376
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6377
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6378
- case "ResourceNotFoundException":
6379
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6380
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6381
- case "ThrottlingException":
6382
- case "com.amazonaws.iotsitewise#ThrottlingException":
6383
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6384
- default:
6385
- const parsedBody = parsedOutput.body;
6386
- return throwDefaultError({
6387
- output,
6388
- parsedBody,
6389
- errorCode
6390
- });
6391
- }
6392
- }, "de_UpdateDashboardCommandError");
6393
3976
  var de_UpdateGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
6394
3977
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6395
- return de_UpdateGatewayCommandError(output, context);
3978
+ return de_CommandError(output, context);
6396
3979
  }
6397
3980
  const contents = (0, import_smithy_client.map)({
6398
3981
  $metadata: deserializeMetadata(output)
@@ -6400,40 +3983,9 @@ var de_UpdateGatewayCommand = /* @__PURE__ */ __name(async (output, context) =>
6400
3983
  await (0, import_smithy_client.collectBody)(output.body, context);
6401
3984
  return contents;
6402
3985
  }, "de_UpdateGatewayCommand");
6403
- var de_UpdateGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
6404
- const parsedOutput = {
6405
- ...output,
6406
- body: await parseErrorBody(output.body, context)
6407
- };
6408
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6409
- switch (errorCode) {
6410
- case "ConflictingOperationException":
6411
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6412
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6413
- case "InternalFailureException":
6414
- case "com.amazonaws.iotsitewise#InternalFailureException":
6415
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6416
- case "InvalidRequestException":
6417
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6418
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6419
- case "ResourceNotFoundException":
6420
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6421
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6422
- case "ThrottlingException":
6423
- case "com.amazonaws.iotsitewise#ThrottlingException":
6424
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6425
- default:
6426
- const parsedBody = parsedOutput.body;
6427
- return throwDefaultError({
6428
- output,
6429
- parsedBody,
6430
- errorCode
6431
- });
6432
- }
6433
- }, "de_UpdateGatewayCommandError");
6434
3986
  var de_UpdateGatewayCapabilityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
6435
3987
  if (output.statusCode !== 201 && output.statusCode >= 300) {
6436
- return de_UpdateGatewayCapabilityConfigurationCommandError(output, context);
3988
+ return de_CommandError(output, context);
6437
3989
  }
6438
3990
  const contents = (0, import_smithy_client.map)({
6439
3991
  $metadata: deserializeMetadata(output)
@@ -6446,43 +3998,9 @@ var de_UpdateGatewayCapabilityConfigurationCommand = /* @__PURE__ */ __name(asyn
6446
3998
  Object.assign(contents, doc);
6447
3999
  return contents;
6448
4000
  }, "de_UpdateGatewayCapabilityConfigurationCommand");
6449
- var de_UpdateGatewayCapabilityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
6450
- const parsedOutput = {
6451
- ...output,
6452
- body: await parseErrorBody(output.body, context)
6453
- };
6454
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6455
- switch (errorCode) {
6456
- case "ConflictingOperationException":
6457
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6458
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6459
- case "InternalFailureException":
6460
- case "com.amazonaws.iotsitewise#InternalFailureException":
6461
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6462
- case "InvalidRequestException":
6463
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6464
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6465
- case "LimitExceededException":
6466
- case "com.amazonaws.iotsitewise#LimitExceededException":
6467
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6468
- case "ResourceNotFoundException":
6469
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6470
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6471
- case "ThrottlingException":
6472
- case "com.amazonaws.iotsitewise#ThrottlingException":
6473
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6474
- default:
6475
- const parsedBody = parsedOutput.body;
6476
- return throwDefaultError({
6477
- output,
6478
- parsedBody,
6479
- errorCode
6480
- });
6481
- }
6482
- }, "de_UpdateGatewayCapabilityConfigurationCommandError");
6483
4001
  var de_UpdatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
6484
4002
  if (output.statusCode !== 202 && output.statusCode >= 300) {
6485
- return de_UpdatePortalCommandError(output, context);
4003
+ return de_CommandError(output, context);
6486
4004
  }
6487
4005
  const contents = (0, import_smithy_client.map)({
6488
4006
  $metadata: deserializeMetadata(output)
@@ -6494,40 +4012,9 @@ var de_UpdatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
6494
4012
  Object.assign(contents, doc);
6495
4013
  return contents;
6496
4014
  }, "de_UpdatePortalCommand");
6497
- var de_UpdatePortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
6498
- const parsedOutput = {
6499
- ...output,
6500
- body: await parseErrorBody(output.body, context)
6501
- };
6502
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6503
- switch (errorCode) {
6504
- case "ConflictingOperationException":
6505
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
6506
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6507
- case "InternalFailureException":
6508
- case "com.amazonaws.iotsitewise#InternalFailureException":
6509
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
6510
- case "InvalidRequestException":
6511
- case "com.amazonaws.iotsitewise#InvalidRequestException":
6512
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6513
- case "ResourceNotFoundException":
6514
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6515
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6516
- case "ThrottlingException":
6517
- case "com.amazonaws.iotsitewise#ThrottlingException":
6518
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6519
- default:
6520
- const parsedBody = parsedOutput.body;
6521
- return throwDefaultError({
6522
- output,
6523
- parsedBody,
6524
- errorCode
6525
- });
6526
- }
6527
- }, "de_UpdatePortalCommandError");
6528
4015
  var de_UpdateProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
6529
4016
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6530
- return de_UpdateProjectCommandError(output, context);
4017
+ return de_CommandError(output, context);
6531
4018
  }
6532
4019
  const contents = (0, import_smithy_client.map)({
6533
4020
  $metadata: deserializeMetadata(output)
@@ -6535,25 +4022,52 @@ var de_UpdateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
6535
4022
  await (0, import_smithy_client.collectBody)(output.body, context);
6536
4023
  return contents;
6537
4024
  }, "de_UpdateProjectCommand");
6538
- var de_UpdateProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
4025
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
6539
4026
  const parsedOutput = {
6540
4027
  ...output,
6541
4028
  body: await parseErrorBody(output.body, context)
6542
4029
  };
6543
4030
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6544
4031
  switch (errorCode) {
4032
+ case "ConflictingOperationException":
4033
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
4034
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6545
4035
  case "InternalFailureException":
6546
4036
  case "com.amazonaws.iotsitewise#InternalFailureException":
6547
4037
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
6548
4038
  case "InvalidRequestException":
6549
4039
  case "com.amazonaws.iotsitewise#InvalidRequestException":
6550
4040
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4041
+ case "LimitExceededException":
4042
+ case "com.amazonaws.iotsitewise#LimitExceededException":
4043
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4044
+ case "ResourceAlreadyExistsException":
4045
+ case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
4046
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
6551
4047
  case "ResourceNotFoundException":
6552
4048
  case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6553
4049
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6554
4050
  case "ThrottlingException":
6555
4051
  case "com.amazonaws.iotsitewise#ThrottlingException":
6556
4052
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
4053
+ case "ServiceUnavailableException":
4054
+ case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4055
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4056
+ case "AccessDeniedException":
4057
+ case "com.amazonaws.iotsitewise#AccessDeniedException":
4058
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4059
+ case "QueryTimeoutException":
4060
+ case "com.amazonaws.iotsitewise#QueryTimeoutException":
4061
+ throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
4062
+ case "ValidationException":
4063
+ case "com.amazonaws.iotsitewise#ValidationException":
4064
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4065
+ case "UnauthorizedException":
4066
+ case "com.amazonaws.iotsitewise#UnauthorizedException":
4067
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4068
+ case "TooManyTagsException":
4069
+ case "com.amazonaws.iotsitewise#TooManyTagsException":
4070
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
6557
4071
  default:
6558
4072
  const parsedBody = parsedOutput.body;
6559
4073
  return throwDefaultError({
@@ -6562,7 +4076,7 @@ var de_UpdateProjectCommandError = /* @__PURE__ */ __name(async (output, context
6562
4076
  errorCode
6563
4077
  });
6564
4078
  }
6565
- }, "de_UpdateProjectCommandError");
4079
+ }, "de_CommandError");
6566
4080
  var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTSiteWiseServiceException);
6567
4081
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
6568
4082
  const contents = (0, import_smithy_client.map)({});