@aws-sdk/client-iot-wireless 3.118.1 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +465 -373
- package/dist-es/protocols/Aws_restJson1.js +465 -373
- package/package.json +3 -3
|
@@ -2702,8 +2702,7 @@ const deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommandError
|
|
|
2702
2702
|
body: await parseBody(output.body, context),
|
|
2703
2703
|
};
|
|
2704
2704
|
let response;
|
|
2705
|
-
|
|
2706
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2705
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
2706
|
switch (errorCode) {
|
|
2708
2707
|
case "AccessDeniedException":
|
|
2709
2708
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2725,10 +2724,12 @@ const deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommandError
|
|
|
2725
2724
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2726
2725
|
default:
|
|
2727
2726
|
const parsedBody = parsedOutput.body;
|
|
2727
|
+
const $metadata = deserializeMetadata(output);
|
|
2728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2728
2729
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2729
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2730
2731
|
$fault: "client",
|
|
2731
|
-
$metadata
|
|
2732
|
+
$metadata,
|
|
2732
2733
|
});
|
|
2733
2734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2734
2735
|
}
|
|
@@ -2750,8 +2751,7 @@ const deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommandError =
|
|
|
2750
2751
|
body: await parseBody(output.body, context),
|
|
2751
2752
|
};
|
|
2752
2753
|
let response;
|
|
2753
|
-
|
|
2754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
2755
|
switch (errorCode) {
|
|
2756
2756
|
case "AccessDeniedException":
|
|
2757
2757
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2773,10 +2773,12 @@ const deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommandError =
|
|
|
2773
2773
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2774
2774
|
default:
|
|
2775
2775
|
const parsedBody = parsedOutput.body;
|
|
2776
|
+
const $metadata = deserializeMetadata(output);
|
|
2777
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2776
2778
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2778
2780
|
$fault: "client",
|
|
2779
|
-
$metadata
|
|
2781
|
+
$metadata,
|
|
2780
2782
|
});
|
|
2781
2783
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2782
2784
|
}
|
|
@@ -2798,8 +2800,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommandError =
|
|
|
2798
2800
|
body: await parseBody(output.body, context),
|
|
2799
2801
|
};
|
|
2800
2802
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2804
|
switch (errorCode) {
|
|
2804
2805
|
case "AccessDeniedException":
|
|
2805
2806
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2821,10 +2822,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommandError =
|
|
|
2821
2822
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2822
2823
|
default:
|
|
2823
2824
|
const parsedBody = parsedOutput.body;
|
|
2825
|
+
const $metadata = deserializeMetadata(output);
|
|
2826
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2824
2827
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2828
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2826
2829
|
$fault: "client",
|
|
2827
|
-
$metadata
|
|
2830
|
+
$metadata,
|
|
2828
2831
|
});
|
|
2829
2832
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2833
|
}
|
|
@@ -2846,8 +2849,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommandEr
|
|
|
2846
2849
|
body: await parseBody(output.body, context),
|
|
2847
2850
|
};
|
|
2848
2851
|
let response;
|
|
2849
|
-
|
|
2850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2851
2853
|
switch (errorCode) {
|
|
2852
2854
|
case "AccessDeniedException":
|
|
2853
2855
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2869,10 +2871,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommandEr
|
|
|
2869
2871
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2870
2872
|
default:
|
|
2871
2873
|
const parsedBody = parsedOutput.body;
|
|
2874
|
+
const $metadata = deserializeMetadata(output);
|
|
2875
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2872
2876
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2877
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2874
2878
|
$fault: "client",
|
|
2875
|
-
$metadata
|
|
2879
|
+
$metadata,
|
|
2876
2880
|
});
|
|
2877
2881
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2878
2882
|
}
|
|
@@ -2894,8 +2898,7 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithThingCommandError = asy
|
|
|
2894
2898
|
body: await parseBody(output.body, context),
|
|
2895
2899
|
};
|
|
2896
2900
|
let response;
|
|
2897
|
-
|
|
2898
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
2902
|
switch (errorCode) {
|
|
2900
2903
|
case "AccessDeniedException":
|
|
2901
2904
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2917,10 +2920,12 @@ const deserializeAws_restJson1AssociateWirelessDeviceWithThingCommandError = asy
|
|
|
2917
2920
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2918
2921
|
default:
|
|
2919
2922
|
const parsedBody = parsedOutput.body;
|
|
2923
|
+
const $metadata = deserializeMetadata(output);
|
|
2924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2920
2925
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2922
2927
|
$fault: "client",
|
|
2923
|
-
$metadata
|
|
2928
|
+
$metadata,
|
|
2924
2929
|
});
|
|
2925
2930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2926
2931
|
}
|
|
@@ -2946,8 +2951,7 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommandErro
|
|
|
2946
2951
|
body: await parseBody(output.body, context),
|
|
2947
2952
|
};
|
|
2948
2953
|
let response;
|
|
2949
|
-
|
|
2950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2951
2955
|
switch (errorCode) {
|
|
2952
2956
|
case "AccessDeniedException":
|
|
2953
2957
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -2969,10 +2973,12 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommandErro
|
|
|
2969
2973
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2970
2974
|
default:
|
|
2971
2975
|
const parsedBody = parsedOutput.body;
|
|
2976
|
+
const $metadata = deserializeMetadata(output);
|
|
2977
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2972
2978
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
2973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2979
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2974
2980
|
$fault: "client",
|
|
2975
|
-
$metadata
|
|
2981
|
+
$metadata,
|
|
2976
2982
|
});
|
|
2977
2983
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2978
2984
|
}
|
|
@@ -2994,8 +3000,7 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithThingCommandError = as
|
|
|
2994
3000
|
body: await parseBody(output.body, context),
|
|
2995
3001
|
};
|
|
2996
3002
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
3004
|
switch (errorCode) {
|
|
3000
3005
|
case "AccessDeniedException":
|
|
3001
3006
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3017,10 +3022,12 @@ const deserializeAws_restJson1AssociateWirelessGatewayWithThingCommandError = as
|
|
|
3017
3022
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3018
3023
|
default:
|
|
3019
3024
|
const parsedBody = parsedOutput.body;
|
|
3025
|
+
const $metadata = deserializeMetadata(output);
|
|
3026
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3020
3027
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3022
3029
|
$fault: "client",
|
|
3023
|
-
$metadata
|
|
3030
|
+
$metadata,
|
|
3024
3031
|
});
|
|
3025
3032
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3026
3033
|
}
|
|
@@ -3042,8 +3049,7 @@ const deserializeAws_restJson1CancelMulticastGroupSessionCommandError = async (o
|
|
|
3042
3049
|
body: await parseBody(output.body, context),
|
|
3043
3050
|
};
|
|
3044
3051
|
let response;
|
|
3045
|
-
|
|
3046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3047
3053
|
switch (errorCode) {
|
|
3048
3054
|
case "AccessDeniedException":
|
|
3049
3055
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3065,10 +3071,12 @@ const deserializeAws_restJson1CancelMulticastGroupSessionCommandError = async (o
|
|
|
3065
3071
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3066
3072
|
default:
|
|
3067
3073
|
const parsedBody = parsedOutput.body;
|
|
3074
|
+
const $metadata = deserializeMetadata(output);
|
|
3075
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3068
3076
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3070
3078
|
$fault: "client",
|
|
3071
|
-
$metadata
|
|
3079
|
+
$metadata,
|
|
3072
3080
|
});
|
|
3073
3081
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3074
3082
|
}
|
|
@@ -3098,8 +3106,7 @@ const deserializeAws_restJson1CreateDestinationCommandError = async (output, con
|
|
|
3098
3106
|
body: await parseBody(output.body, context),
|
|
3099
3107
|
};
|
|
3100
3108
|
let response;
|
|
3101
|
-
|
|
3102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
3110
|
switch (errorCode) {
|
|
3104
3111
|
case "AccessDeniedException":
|
|
3105
3112
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3121,10 +3128,12 @@ const deserializeAws_restJson1CreateDestinationCommandError = async (output, con
|
|
|
3121
3128
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3122
3129
|
default:
|
|
3123
3130
|
const parsedBody = parsedOutput.body;
|
|
3131
|
+
const $metadata = deserializeMetadata(output);
|
|
3132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3124
3133
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3126
3135
|
$fault: "client",
|
|
3127
|
-
$metadata
|
|
3136
|
+
$metadata,
|
|
3128
3137
|
});
|
|
3129
3138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3130
3139
|
}
|
|
@@ -3154,8 +3163,7 @@ const deserializeAws_restJson1CreateDeviceProfileCommandError = async (output, c
|
|
|
3154
3163
|
body: await parseBody(output.body, context),
|
|
3155
3164
|
};
|
|
3156
3165
|
let response;
|
|
3157
|
-
|
|
3158
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3166
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3159
3167
|
switch (errorCode) {
|
|
3160
3168
|
case "AccessDeniedException":
|
|
3161
3169
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3174,10 +3182,12 @@ const deserializeAws_restJson1CreateDeviceProfileCommandError = async (output, c
|
|
|
3174
3182
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3175
3183
|
default:
|
|
3176
3184
|
const parsedBody = parsedOutput.body;
|
|
3185
|
+
const $metadata = deserializeMetadata(output);
|
|
3186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3177
3187
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3178
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3179
3189
|
$fault: "client",
|
|
3180
|
-
$metadata
|
|
3190
|
+
$metadata,
|
|
3181
3191
|
});
|
|
3182
3192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3183
3193
|
}
|
|
@@ -3207,8 +3217,7 @@ const deserializeAws_restJson1CreateFuotaTaskCommandError = async (output, conte
|
|
|
3207
3217
|
body: await parseBody(output.body, context),
|
|
3208
3218
|
};
|
|
3209
3219
|
let response;
|
|
3210
|
-
|
|
3211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
3221
|
switch (errorCode) {
|
|
3213
3222
|
case "AccessDeniedException":
|
|
3214
3223
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3230,10 +3239,12 @@ const deserializeAws_restJson1CreateFuotaTaskCommandError = async (output, conte
|
|
|
3230
3239
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3231
3240
|
default:
|
|
3232
3241
|
const parsedBody = parsedOutput.body;
|
|
3242
|
+
const $metadata = deserializeMetadata(output);
|
|
3243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3233
3244
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3234
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3235
3246
|
$fault: "client",
|
|
3236
|
-
$metadata
|
|
3247
|
+
$metadata,
|
|
3237
3248
|
});
|
|
3238
3249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3239
3250
|
}
|
|
@@ -3263,8 +3274,7 @@ const deserializeAws_restJson1CreateMulticastGroupCommandError = async (output,
|
|
|
3263
3274
|
body: await parseBody(output.body, context),
|
|
3264
3275
|
};
|
|
3265
3276
|
let response;
|
|
3266
|
-
|
|
3267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3268
3278
|
switch (errorCode) {
|
|
3269
3279
|
case "AccessDeniedException":
|
|
3270
3280
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3286,10 +3296,12 @@ const deserializeAws_restJson1CreateMulticastGroupCommandError = async (output,
|
|
|
3286
3296
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3287
3297
|
default:
|
|
3288
3298
|
const parsedBody = parsedOutput.body;
|
|
3299
|
+
const $metadata = deserializeMetadata(output);
|
|
3300
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3289
3301
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3302
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3291
3303
|
$fault: "client",
|
|
3292
|
-
$metadata
|
|
3304
|
+
$metadata,
|
|
3293
3305
|
});
|
|
3294
3306
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3295
3307
|
}
|
|
@@ -3319,8 +3331,7 @@ const deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = a
|
|
|
3319
3331
|
body: await parseBody(output.body, context),
|
|
3320
3332
|
};
|
|
3321
3333
|
let response;
|
|
3322
|
-
|
|
3323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3334
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3324
3335
|
switch (errorCode) {
|
|
3325
3336
|
case "AccessDeniedException":
|
|
3326
3337
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3342,10 +3353,12 @@ const deserializeAws_restJson1CreateNetworkAnalyzerConfigurationCommandError = a
|
|
|
3342
3353
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3343
3354
|
default:
|
|
3344
3355
|
const parsedBody = parsedOutput.body;
|
|
3356
|
+
const $metadata = deserializeMetadata(output);
|
|
3357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3345
3358
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3359
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3347
3360
|
$fault: "client",
|
|
3348
|
-
$metadata
|
|
3361
|
+
$metadata,
|
|
3349
3362
|
});
|
|
3350
3363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3351
3364
|
}
|
|
@@ -3375,8 +3388,7 @@ const deserializeAws_restJson1CreateServiceProfileCommandError = async (output,
|
|
|
3375
3388
|
body: await parseBody(output.body, context),
|
|
3376
3389
|
};
|
|
3377
3390
|
let response;
|
|
3378
|
-
|
|
3379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3380
3392
|
switch (errorCode) {
|
|
3381
3393
|
case "AccessDeniedException":
|
|
3382
3394
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3395,10 +3407,12 @@ const deserializeAws_restJson1CreateServiceProfileCommandError = async (output,
|
|
|
3395
3407
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3396
3408
|
default:
|
|
3397
3409
|
const parsedBody = parsedOutput.body;
|
|
3410
|
+
const $metadata = deserializeMetadata(output);
|
|
3411
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3398
3412
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3399
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3413
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3400
3414
|
$fault: "client",
|
|
3401
|
-
$metadata
|
|
3415
|
+
$metadata,
|
|
3402
3416
|
});
|
|
3403
3417
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3404
3418
|
}
|
|
@@ -3428,8 +3442,7 @@ const deserializeAws_restJson1CreateWirelessDeviceCommandError = async (output,
|
|
|
3428
3442
|
body: await parseBody(output.body, context),
|
|
3429
3443
|
};
|
|
3430
3444
|
let response;
|
|
3431
|
-
|
|
3432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
3446
|
switch (errorCode) {
|
|
3434
3447
|
case "AccessDeniedException":
|
|
3435
3448
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3451,10 +3464,12 @@ const deserializeAws_restJson1CreateWirelessDeviceCommandError = async (output,
|
|
|
3451
3464
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3452
3465
|
default:
|
|
3453
3466
|
const parsedBody = parsedOutput.body;
|
|
3467
|
+
const $metadata = deserializeMetadata(output);
|
|
3468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3454
3469
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3456
3471
|
$fault: "client",
|
|
3457
|
-
$metadata
|
|
3472
|
+
$metadata,
|
|
3458
3473
|
});
|
|
3459
3474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3460
3475
|
}
|
|
@@ -3484,8 +3499,7 @@ const deserializeAws_restJson1CreateWirelessGatewayCommandError = async (output,
|
|
|
3484
3499
|
body: await parseBody(output.body, context),
|
|
3485
3500
|
};
|
|
3486
3501
|
let response;
|
|
3487
|
-
|
|
3488
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3489
3503
|
switch (errorCode) {
|
|
3490
3504
|
case "AccessDeniedException":
|
|
3491
3505
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3504,10 +3518,12 @@ const deserializeAws_restJson1CreateWirelessGatewayCommandError = async (output,
|
|
|
3504
3518
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3505
3519
|
default:
|
|
3506
3520
|
const parsedBody = parsedOutput.body;
|
|
3521
|
+
const $metadata = deserializeMetadata(output);
|
|
3522
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3507
3523
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3524
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3509
3525
|
$fault: "client",
|
|
3510
|
-
$metadata
|
|
3526
|
+
$metadata,
|
|
3511
3527
|
});
|
|
3512
3528
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3513
3529
|
}
|
|
@@ -3537,8 +3553,7 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskCommandError = async (out
|
|
|
3537
3553
|
body: await parseBody(output.body, context),
|
|
3538
3554
|
};
|
|
3539
3555
|
let response;
|
|
3540
|
-
|
|
3541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3556
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3542
3557
|
switch (errorCode) {
|
|
3543
3558
|
case "AccessDeniedException":
|
|
3544
3559
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3560,10 +3575,12 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskCommandError = async (out
|
|
|
3560
3575
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3561
3576
|
default:
|
|
3562
3577
|
const parsedBody = parsedOutput.body;
|
|
3578
|
+
const $metadata = deserializeMetadata(output);
|
|
3579
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3563
3580
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3581
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3565
3582
|
$fault: "client",
|
|
3566
|
-
$metadata
|
|
3583
|
+
$metadata,
|
|
3567
3584
|
});
|
|
3568
3585
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3569
3586
|
}
|
|
@@ -3593,8 +3610,7 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommandError =
|
|
|
3593
3610
|
body: await parseBody(output.body, context),
|
|
3594
3611
|
};
|
|
3595
3612
|
let response;
|
|
3596
|
-
|
|
3597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3613
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3598
3614
|
switch (errorCode) {
|
|
3599
3615
|
case "AccessDeniedException":
|
|
3600
3616
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3616,10 +3632,12 @@ const deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommandError =
|
|
|
3616
3632
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3617
3633
|
default:
|
|
3618
3634
|
const parsedBody = parsedOutput.body;
|
|
3635
|
+
const $metadata = deserializeMetadata(output);
|
|
3636
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3619
3637
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3638
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3621
3639
|
$fault: "client",
|
|
3622
|
-
$metadata
|
|
3640
|
+
$metadata,
|
|
3623
3641
|
});
|
|
3624
3642
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3625
3643
|
}
|
|
@@ -3641,8 +3659,7 @@ const deserializeAws_restJson1DeleteDestinationCommandError = async (output, con
|
|
|
3641
3659
|
body: await parseBody(output.body, context),
|
|
3642
3660
|
};
|
|
3643
3661
|
let response;
|
|
3644
|
-
|
|
3645
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3646
3663
|
switch (errorCode) {
|
|
3647
3664
|
case "AccessDeniedException":
|
|
3648
3665
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3664,10 +3681,12 @@ const deserializeAws_restJson1DeleteDestinationCommandError = async (output, con
|
|
|
3664
3681
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3665
3682
|
default:
|
|
3666
3683
|
const parsedBody = parsedOutput.body;
|
|
3684
|
+
const $metadata = deserializeMetadata(output);
|
|
3685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3667
3686
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3669
3688
|
$fault: "client",
|
|
3670
|
-
$metadata
|
|
3689
|
+
$metadata,
|
|
3671
3690
|
});
|
|
3672
3691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3673
3692
|
}
|
|
@@ -3689,8 +3708,7 @@ const deserializeAws_restJson1DeleteDeviceProfileCommandError = async (output, c
|
|
|
3689
3708
|
body: await parseBody(output.body, context),
|
|
3690
3709
|
};
|
|
3691
3710
|
let response;
|
|
3692
|
-
|
|
3693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3711
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3694
3712
|
switch (errorCode) {
|
|
3695
3713
|
case "AccessDeniedException":
|
|
3696
3714
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3712,10 +3730,12 @@ const deserializeAws_restJson1DeleteDeviceProfileCommandError = async (output, c
|
|
|
3712
3730
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3713
3731
|
default:
|
|
3714
3732
|
const parsedBody = parsedOutput.body;
|
|
3733
|
+
const $metadata = deserializeMetadata(output);
|
|
3734
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3715
3735
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3716
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3717
3737
|
$fault: "client",
|
|
3718
|
-
$metadata
|
|
3738
|
+
$metadata,
|
|
3719
3739
|
});
|
|
3720
3740
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3721
3741
|
}
|
|
@@ -3737,8 +3757,7 @@ const deserializeAws_restJson1DeleteFuotaTaskCommandError = async (output, conte
|
|
|
3737
3757
|
body: await parseBody(output.body, context),
|
|
3738
3758
|
};
|
|
3739
3759
|
let response;
|
|
3740
|
-
|
|
3741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
3761
|
switch (errorCode) {
|
|
3743
3762
|
case "AccessDeniedException":
|
|
3744
3763
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3757,10 +3776,12 @@ const deserializeAws_restJson1DeleteFuotaTaskCommandError = async (output, conte
|
|
|
3757
3776
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3758
3777
|
default:
|
|
3759
3778
|
const parsedBody = parsedOutput.body;
|
|
3779
|
+
const $metadata = deserializeMetadata(output);
|
|
3780
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3760
3781
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3782
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3762
3783
|
$fault: "client",
|
|
3763
|
-
$metadata
|
|
3784
|
+
$metadata,
|
|
3764
3785
|
});
|
|
3765
3786
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3766
3787
|
}
|
|
@@ -3782,8 +3803,7 @@ const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output,
|
|
|
3782
3803
|
body: await parseBody(output.body, context),
|
|
3783
3804
|
};
|
|
3784
3805
|
let response;
|
|
3785
|
-
|
|
3786
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3787
3807
|
switch (errorCode) {
|
|
3788
3808
|
case "AccessDeniedException":
|
|
3789
3809
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3805,10 +3825,12 @@ const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output,
|
|
|
3805
3825
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3806
3826
|
default:
|
|
3807
3827
|
const parsedBody = parsedOutput.body;
|
|
3828
|
+
const $metadata = deserializeMetadata(output);
|
|
3829
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3808
3830
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3831
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3810
3832
|
$fault: "client",
|
|
3811
|
-
$metadata
|
|
3833
|
+
$metadata,
|
|
3812
3834
|
});
|
|
3813
3835
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3814
3836
|
}
|
|
@@ -3830,8 +3852,7 @@ const deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = a
|
|
|
3830
3852
|
body: await parseBody(output.body, context),
|
|
3831
3853
|
};
|
|
3832
3854
|
let response;
|
|
3833
|
-
|
|
3834
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3855
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
3856
|
switch (errorCode) {
|
|
3836
3857
|
case "AccessDeniedException":
|
|
3837
3858
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3853,10 +3874,12 @@ const deserializeAws_restJson1DeleteNetworkAnalyzerConfigurationCommandError = a
|
|
|
3853
3874
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3854
3875
|
default:
|
|
3855
3876
|
const parsedBody = parsedOutput.body;
|
|
3877
|
+
const $metadata = deserializeMetadata(output);
|
|
3878
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3856
3879
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3880
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3858
3881
|
$fault: "client",
|
|
3859
|
-
$metadata
|
|
3882
|
+
$metadata,
|
|
3860
3883
|
});
|
|
3861
3884
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3862
3885
|
}
|
|
@@ -3878,8 +3901,7 @@ const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output,
|
|
|
3878
3901
|
body: await parseBody(output.body, context),
|
|
3879
3902
|
};
|
|
3880
3903
|
let response;
|
|
3881
|
-
|
|
3882
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3883
3905
|
switch (errorCode) {
|
|
3884
3906
|
case "AccessDeniedException":
|
|
3885
3907
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3898,10 +3920,12 @@ const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output,
|
|
|
3898
3920
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3899
3921
|
default:
|
|
3900
3922
|
const parsedBody = parsedOutput.body;
|
|
3923
|
+
const $metadata = deserializeMetadata(output);
|
|
3924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3901
3925
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3902
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3903
3927
|
$fault: "client",
|
|
3904
|
-
$metadata
|
|
3928
|
+
$metadata,
|
|
3905
3929
|
});
|
|
3906
3930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3907
3931
|
}
|
|
@@ -3923,8 +3947,7 @@ const deserializeAws_restJson1DeleteServiceProfileCommandError = async (output,
|
|
|
3923
3947
|
body: await parseBody(output.body, context),
|
|
3924
3948
|
};
|
|
3925
3949
|
let response;
|
|
3926
|
-
|
|
3927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3928
3951
|
switch (errorCode) {
|
|
3929
3952
|
case "AccessDeniedException":
|
|
3930
3953
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3946,10 +3969,12 @@ const deserializeAws_restJson1DeleteServiceProfileCommandError = async (output,
|
|
|
3946
3969
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3947
3970
|
default:
|
|
3948
3971
|
const parsedBody = parsedOutput.body;
|
|
3972
|
+
const $metadata = deserializeMetadata(output);
|
|
3973
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3949
3974
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3950
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3975
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3951
3976
|
$fault: "client",
|
|
3952
|
-
$metadata
|
|
3977
|
+
$metadata,
|
|
3953
3978
|
});
|
|
3954
3979
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3955
3980
|
}
|
|
@@ -3971,8 +3996,7 @@ const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output,
|
|
|
3971
3996
|
body: await parseBody(output.body, context),
|
|
3972
3997
|
};
|
|
3973
3998
|
let response;
|
|
3974
|
-
|
|
3975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3976
4000
|
switch (errorCode) {
|
|
3977
4001
|
case "AccessDeniedException":
|
|
3978
4002
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -3991,10 +4015,12 @@ const deserializeAws_restJson1DeleteWirelessDeviceCommandError = async (output,
|
|
|
3991
4015
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3992
4016
|
default:
|
|
3993
4017
|
const parsedBody = parsedOutput.body;
|
|
4018
|
+
const $metadata = deserializeMetadata(output);
|
|
4019
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3994
4020
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
3995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4021
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3996
4022
|
$fault: "client",
|
|
3997
|
-
$metadata
|
|
4023
|
+
$metadata,
|
|
3998
4024
|
});
|
|
3999
4025
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4000
4026
|
}
|
|
@@ -4016,8 +4042,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayCommandError = async (output,
|
|
|
4016
4042
|
body: await parseBody(output.body, context),
|
|
4017
4043
|
};
|
|
4018
4044
|
let response;
|
|
4019
|
-
|
|
4020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4021
4046
|
switch (errorCode) {
|
|
4022
4047
|
case "AccessDeniedException":
|
|
4023
4048
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4036,10 +4061,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayCommandError = async (output,
|
|
|
4036
4061
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4037
4062
|
default:
|
|
4038
4063
|
const parsedBody = parsedOutput.body;
|
|
4064
|
+
const $metadata = deserializeMetadata(output);
|
|
4065
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4039
4066
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4067
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4041
4068
|
$fault: "client",
|
|
4042
|
-
$metadata
|
|
4069
|
+
$metadata,
|
|
4043
4070
|
});
|
|
4044
4071
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4045
4072
|
}
|
|
@@ -4061,8 +4088,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskCommandError = async (out
|
|
|
4061
4088
|
body: await parseBody(output.body, context),
|
|
4062
4089
|
};
|
|
4063
4090
|
let response;
|
|
4064
|
-
|
|
4065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4066
4092
|
switch (errorCode) {
|
|
4067
4093
|
case "AccessDeniedException":
|
|
4068
4094
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4081,10 +4107,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskCommandError = async (out
|
|
|
4081
4107
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4082
4108
|
default:
|
|
4083
4109
|
const parsedBody = parsedOutput.body;
|
|
4110
|
+
const $metadata = deserializeMetadata(output);
|
|
4111
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4084
4112
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4113
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4086
4114
|
$fault: "client",
|
|
4087
|
-
$metadata
|
|
4115
|
+
$metadata,
|
|
4088
4116
|
});
|
|
4089
4117
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4090
4118
|
}
|
|
@@ -4106,8 +4134,7 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError =
|
|
|
4106
4134
|
body: await parseBody(output.body, context),
|
|
4107
4135
|
};
|
|
4108
4136
|
let response;
|
|
4109
|
-
|
|
4110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4137
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
4138
|
switch (errorCode) {
|
|
4112
4139
|
case "AccessDeniedException":
|
|
4113
4140
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4126,10 +4153,12 @@ const deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommandError =
|
|
|
4126
4153
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4127
4154
|
default:
|
|
4128
4155
|
const parsedBody = parsedOutput.body;
|
|
4156
|
+
const $metadata = deserializeMetadata(output);
|
|
4157
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4129
4158
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4131
4160
|
$fault: "client",
|
|
4132
|
-
$metadata
|
|
4161
|
+
$metadata,
|
|
4133
4162
|
});
|
|
4134
4163
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4135
4164
|
}
|
|
@@ -4151,8 +4180,7 @@ const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandErr
|
|
|
4151
4180
|
body: await parseBody(output.body, context),
|
|
4152
4181
|
};
|
|
4153
4182
|
let response;
|
|
4154
|
-
|
|
4155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4156
4184
|
switch (errorCode) {
|
|
4157
4185
|
case "InternalServerException":
|
|
4158
4186
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -4168,10 +4196,12 @@ const deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommandErr
|
|
|
4168
4196
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4169
4197
|
default:
|
|
4170
4198
|
const parsedBody = parsedOutput.body;
|
|
4199
|
+
const $metadata = deserializeMetadata(output);
|
|
4200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4171
4201
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4173
4203
|
$fault: "client",
|
|
4174
|
-
$metadata
|
|
4204
|
+
$metadata,
|
|
4175
4205
|
});
|
|
4176
4206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4177
4207
|
}
|
|
@@ -4193,8 +4223,7 @@ const deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommandErro
|
|
|
4193
4223
|
body: await parseBody(output.body, context),
|
|
4194
4224
|
};
|
|
4195
4225
|
let response;
|
|
4196
|
-
|
|
4197
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4226
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
4227
|
switch (errorCode) {
|
|
4199
4228
|
case "AccessDeniedException":
|
|
4200
4229
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4213,10 +4242,12 @@ const deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommandErro
|
|
|
4213
4242
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4214
4243
|
default:
|
|
4215
4244
|
const parsedBody = parsedOutput.body;
|
|
4245
|
+
const $metadata = deserializeMetadata(output);
|
|
4246
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4216
4247
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4248
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4218
4249
|
$fault: "client",
|
|
4219
|
-
$metadata
|
|
4250
|
+
$metadata,
|
|
4220
4251
|
});
|
|
4221
4252
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4222
4253
|
}
|
|
@@ -4238,8 +4269,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommandErro
|
|
|
4238
4269
|
body: await parseBody(output.body, context),
|
|
4239
4270
|
};
|
|
4240
4271
|
let response;
|
|
4241
|
-
|
|
4242
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4243
4273
|
switch (errorCode) {
|
|
4244
4274
|
case "AccessDeniedException":
|
|
4245
4275
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4261,10 +4291,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommandErro
|
|
|
4261
4291
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4262
4292
|
default:
|
|
4263
4293
|
const parsedBody = parsedOutput.body;
|
|
4294
|
+
const $metadata = deserializeMetadata(output);
|
|
4295
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4264
4296
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4266
4298
|
$fault: "client",
|
|
4267
|
-
$metadata
|
|
4299
|
+
$metadata,
|
|
4268
4300
|
});
|
|
4269
4301
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4270
4302
|
}
|
|
@@ -4286,8 +4318,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComman
|
|
|
4286
4318
|
body: await parseBody(output.body, context),
|
|
4287
4319
|
};
|
|
4288
4320
|
let response;
|
|
4289
|
-
|
|
4290
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4291
4322
|
switch (errorCode) {
|
|
4292
4323
|
case "AccessDeniedException":
|
|
4293
4324
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4306,10 +4337,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupComman
|
|
|
4306
4337
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4307
4338
|
default:
|
|
4308
4339
|
const parsedBody = parsedOutput.body;
|
|
4340
|
+
const $metadata = deserializeMetadata(output);
|
|
4341
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4309
4342
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4311
4344
|
$fault: "client",
|
|
4312
|
-
$metadata
|
|
4345
|
+
$metadata,
|
|
4313
4346
|
});
|
|
4314
4347
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4315
4348
|
}
|
|
@@ -4331,8 +4364,7 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommandError =
|
|
|
4331
4364
|
body: await parseBody(output.body, context),
|
|
4332
4365
|
};
|
|
4333
4366
|
let response;
|
|
4334
|
-
|
|
4335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4336
4368
|
switch (errorCode) {
|
|
4337
4369
|
case "AccessDeniedException":
|
|
4338
4370
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4354,10 +4386,12 @@ const deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommandError =
|
|
|
4354
4386
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4355
4387
|
default:
|
|
4356
4388
|
const parsedBody = parsedOutput.body;
|
|
4389
|
+
const $metadata = deserializeMetadata(output);
|
|
4390
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4357
4391
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4392
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4359
4393
|
$fault: "client",
|
|
4360
|
-
$metadata
|
|
4394
|
+
$metadata,
|
|
4361
4395
|
});
|
|
4362
4396
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4363
4397
|
}
|
|
@@ -4379,8 +4413,7 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommandE
|
|
|
4379
4413
|
body: await parseBody(output.body, context),
|
|
4380
4414
|
};
|
|
4381
4415
|
let response;
|
|
4382
|
-
|
|
4383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4384
4417
|
switch (errorCode) {
|
|
4385
4418
|
case "AccessDeniedException":
|
|
4386
4419
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4399,10 +4432,12 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommandE
|
|
|
4399
4432
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4400
4433
|
default:
|
|
4401
4434
|
const parsedBody = parsedOutput.body;
|
|
4435
|
+
const $metadata = deserializeMetadata(output);
|
|
4436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4402
4437
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4404
4439
|
$fault: "client",
|
|
4405
|
-
$metadata
|
|
4440
|
+
$metadata,
|
|
4406
4441
|
});
|
|
4407
4442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4408
4443
|
}
|
|
@@ -4424,8 +4459,7 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommandError =
|
|
|
4424
4459
|
body: await parseBody(output.body, context),
|
|
4425
4460
|
};
|
|
4426
4461
|
let response;
|
|
4427
|
-
|
|
4428
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4462
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4429
4463
|
switch (errorCode) {
|
|
4430
4464
|
case "AccessDeniedException":
|
|
4431
4465
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4447,10 +4481,12 @@ const deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommandError =
|
|
|
4447
4481
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4448
4482
|
default:
|
|
4449
4483
|
const parsedBody = parsedOutput.body;
|
|
4484
|
+
const $metadata = deserializeMetadata(output);
|
|
4485
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4450
4486
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4487
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4452
4488
|
$fault: "client",
|
|
4453
|
-
$metadata
|
|
4489
|
+
$metadata,
|
|
4454
4490
|
});
|
|
4455
4491
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4456
4492
|
}
|
|
@@ -4496,8 +4532,7 @@ const deserializeAws_restJson1GetDestinationCommandError = async (output, contex
|
|
|
4496
4532
|
body: await parseBody(output.body, context),
|
|
4497
4533
|
};
|
|
4498
4534
|
let response;
|
|
4499
|
-
|
|
4500
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4501
4536
|
switch (errorCode) {
|
|
4502
4537
|
case "AccessDeniedException":
|
|
4503
4538
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4516,10 +4551,12 @@ const deserializeAws_restJson1GetDestinationCommandError = async (output, contex
|
|
|
4516
4551
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4517
4552
|
default:
|
|
4518
4553
|
const parsedBody = parsedOutput.body;
|
|
4554
|
+
const $metadata = deserializeMetadata(output);
|
|
4555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4519
4556
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4521
4558
|
$fault: "client",
|
|
4522
|
-
$metadata
|
|
4559
|
+
$metadata,
|
|
4523
4560
|
});
|
|
4524
4561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4525
4562
|
}
|
|
@@ -4557,8 +4594,7 @@ const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, cont
|
|
|
4557
4594
|
body: await parseBody(output.body, context),
|
|
4558
4595
|
};
|
|
4559
4596
|
let response;
|
|
4560
|
-
|
|
4561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4562
4598
|
switch (errorCode) {
|
|
4563
4599
|
case "AccessDeniedException":
|
|
4564
4600
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4577,10 +4613,12 @@ const deserializeAws_restJson1GetDeviceProfileCommandError = async (output, cont
|
|
|
4577
4613
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4578
4614
|
default:
|
|
4579
4615
|
const parsedBody = parsedOutput.body;
|
|
4616
|
+
const $metadata = deserializeMetadata(output);
|
|
4617
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4580
4618
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4581
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4619
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4582
4620
|
$fault: "client",
|
|
4583
|
-
$metadata
|
|
4621
|
+
$metadata,
|
|
4584
4622
|
});
|
|
4585
4623
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4586
4624
|
}
|
|
@@ -4618,8 +4656,7 @@ const deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError =
|
|
|
4618
4656
|
body: await parseBody(output.body, context),
|
|
4619
4657
|
};
|
|
4620
4658
|
let response;
|
|
4621
|
-
|
|
4622
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4659
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4623
4660
|
switch (errorCode) {
|
|
4624
4661
|
case "AccessDeniedException":
|
|
4625
4662
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4632,10 +4669,12 @@ const deserializeAws_restJson1GetEventConfigurationByResourceTypesCommandError =
|
|
|
4632
4669
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4633
4670
|
default:
|
|
4634
4671
|
const parsedBody = parsedOutput.body;
|
|
4672
|
+
const $metadata = deserializeMetadata(output);
|
|
4673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4635
4674
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4637
4676
|
$fault: "client",
|
|
4638
|
-
$metadata
|
|
4677
|
+
$metadata,
|
|
4639
4678
|
});
|
|
4640
4679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4641
4680
|
}
|
|
@@ -4693,8 +4732,7 @@ const deserializeAws_restJson1GetFuotaTaskCommandError = async (output, context)
|
|
|
4693
4732
|
body: await parseBody(output.body, context),
|
|
4694
4733
|
};
|
|
4695
4734
|
let response;
|
|
4696
|
-
|
|
4697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4698
4736
|
switch (errorCode) {
|
|
4699
4737
|
case "AccessDeniedException":
|
|
4700
4738
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4713,10 +4751,12 @@ const deserializeAws_restJson1GetFuotaTaskCommandError = async (output, context)
|
|
|
4713
4751
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4714
4752
|
default:
|
|
4715
4753
|
const parsedBody = parsedOutput.body;
|
|
4754
|
+
const $metadata = deserializeMetadata(output);
|
|
4755
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4716
4756
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4717
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4718
4758
|
$fault: "client",
|
|
4719
|
-
$metadata
|
|
4759
|
+
$metadata,
|
|
4720
4760
|
});
|
|
4721
4761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4722
4762
|
}
|
|
@@ -4750,8 +4790,7 @@ const deserializeAws_restJson1GetLogLevelsByResourceTypesCommandError = async (o
|
|
|
4750
4790
|
body: await parseBody(output.body, context),
|
|
4751
4791
|
};
|
|
4752
4792
|
let response;
|
|
4753
|
-
|
|
4754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4755
4794
|
switch (errorCode) {
|
|
4756
4795
|
case "AccessDeniedException":
|
|
4757
4796
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4770,10 +4809,12 @@ const deserializeAws_restJson1GetLogLevelsByResourceTypesCommandError = async (o
|
|
|
4770
4809
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4771
4810
|
default:
|
|
4772
4811
|
const parsedBody = parsedOutput.body;
|
|
4812
|
+
const $metadata = deserializeMetadata(output);
|
|
4813
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4773
4814
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4775
4816
|
$fault: "client",
|
|
4776
|
-
$metadata
|
|
4817
|
+
$metadata,
|
|
4777
4818
|
});
|
|
4778
4819
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4779
4820
|
}
|
|
@@ -4823,8 +4864,7 @@ const deserializeAws_restJson1GetMulticastGroupCommandError = async (output, con
|
|
|
4823
4864
|
body: await parseBody(output.body, context),
|
|
4824
4865
|
};
|
|
4825
4866
|
let response;
|
|
4826
|
-
|
|
4827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4828
4868
|
switch (errorCode) {
|
|
4829
4869
|
case "AccessDeniedException":
|
|
4830
4870
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4843,10 +4883,12 @@ const deserializeAws_restJson1GetMulticastGroupCommandError = async (output, con
|
|
|
4843
4883
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4844
4884
|
default:
|
|
4845
4885
|
const parsedBody = parsedOutput.body;
|
|
4886
|
+
const $metadata = deserializeMetadata(output);
|
|
4887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4846
4888
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4848
4890
|
$fault: "client",
|
|
4849
|
-
$metadata
|
|
4891
|
+
$metadata,
|
|
4850
4892
|
});
|
|
4851
4893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4852
4894
|
}
|
|
@@ -4872,8 +4914,7 @@ const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (outp
|
|
|
4872
4914
|
body: await parseBody(output.body, context),
|
|
4873
4915
|
};
|
|
4874
4916
|
let response;
|
|
4875
|
-
|
|
4876
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4877
4918
|
switch (errorCode) {
|
|
4878
4919
|
case "AccessDeniedException":
|
|
4879
4920
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4892,10 +4933,12 @@ const deserializeAws_restJson1GetMulticastGroupSessionCommandError = async (outp
|
|
|
4892
4933
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4893
4934
|
default:
|
|
4894
4935
|
const parsedBody = parsedOutput.body;
|
|
4936
|
+
const $metadata = deserializeMetadata(output);
|
|
4937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4895
4938
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4897
4940
|
$fault: "client",
|
|
4898
|
-
$metadata
|
|
4941
|
+
$metadata,
|
|
4899
4942
|
});
|
|
4900
4943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4901
4944
|
}
|
|
@@ -4941,8 +4984,7 @@ const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = asyn
|
|
|
4941
4984
|
body: await parseBody(output.body, context),
|
|
4942
4985
|
};
|
|
4943
4986
|
let response;
|
|
4944
|
-
|
|
4945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4987
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4946
4988
|
switch (errorCode) {
|
|
4947
4989
|
case "AccessDeniedException":
|
|
4948
4990
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -4961,10 +5003,12 @@ const deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommandError = asyn
|
|
|
4961
5003
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4962
5004
|
default:
|
|
4963
5005
|
const parsedBody = parsedOutput.body;
|
|
5006
|
+
const $metadata = deserializeMetadata(output);
|
|
5007
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4964
5008
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
4965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4966
5010
|
$fault: "client",
|
|
4967
|
-
$metadata
|
|
5011
|
+
$metadata,
|
|
4968
5012
|
});
|
|
4969
5013
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4970
5014
|
}
|
|
@@ -4994,8 +5038,7 @@ const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, con
|
|
|
4994
5038
|
body: await parseBody(output.body, context),
|
|
4995
5039
|
};
|
|
4996
5040
|
let response;
|
|
4997
|
-
|
|
4998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4999
5042
|
switch (errorCode) {
|
|
5000
5043
|
case "InternalServerException":
|
|
5001
5044
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -5011,10 +5054,12 @@ const deserializeAws_restJson1GetPartnerAccountCommandError = async (output, con
|
|
|
5011
5054
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5012
5055
|
default:
|
|
5013
5056
|
const parsedBody = parsedOutput.body;
|
|
5057
|
+
const $metadata = deserializeMetadata(output);
|
|
5058
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5014
5059
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5060
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5016
5061
|
$fault: "client",
|
|
5017
|
-
$metadata
|
|
5062
|
+
$metadata,
|
|
5018
5063
|
});
|
|
5019
5064
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5020
5065
|
}
|
|
@@ -5052,8 +5097,7 @@ const deserializeAws_restJson1GetResourceEventConfigurationCommandError = async
|
|
|
5052
5097
|
body: await parseBody(output.body, context),
|
|
5053
5098
|
};
|
|
5054
5099
|
let response;
|
|
5055
|
-
|
|
5056
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5100
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5057
5101
|
switch (errorCode) {
|
|
5058
5102
|
case "AccessDeniedException":
|
|
5059
5103
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5072,10 +5116,12 @@ const deserializeAws_restJson1GetResourceEventConfigurationCommandError = async
|
|
|
5072
5116
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5073
5117
|
default:
|
|
5074
5118
|
const parsedBody = parsedOutput.body;
|
|
5119
|
+
const $metadata = deserializeMetadata(output);
|
|
5120
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5075
5121
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5122
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5077
5123
|
$fault: "client",
|
|
5078
|
-
$metadata
|
|
5124
|
+
$metadata,
|
|
5079
5125
|
});
|
|
5080
5126
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5081
5127
|
}
|
|
@@ -5101,8 +5147,7 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
|
|
|
5101
5147
|
body: await parseBody(output.body, context),
|
|
5102
5148
|
};
|
|
5103
5149
|
let response;
|
|
5104
|
-
|
|
5105
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5106
5151
|
switch (errorCode) {
|
|
5107
5152
|
case "AccessDeniedException":
|
|
5108
5153
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5121,10 +5166,12 @@ const deserializeAws_restJson1GetResourceLogLevelCommandError = async (output, c
|
|
|
5121
5166
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5122
5167
|
default:
|
|
5123
5168
|
const parsedBody = parsedOutput.body;
|
|
5169
|
+
const $metadata = deserializeMetadata(output);
|
|
5170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5124
5171
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5125
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5126
5173
|
$fault: "client",
|
|
5127
|
-
$metadata
|
|
5174
|
+
$metadata,
|
|
5128
5175
|
});
|
|
5129
5176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5130
5177
|
}
|
|
@@ -5158,8 +5205,7 @@ const deserializeAws_restJson1GetServiceEndpointCommandError = async (output, co
|
|
|
5158
5205
|
body: await parseBody(output.body, context),
|
|
5159
5206
|
};
|
|
5160
5207
|
let response;
|
|
5161
|
-
|
|
5162
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5163
5209
|
switch (errorCode) {
|
|
5164
5210
|
case "AccessDeniedException":
|
|
5165
5211
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5175,10 +5221,12 @@ const deserializeAws_restJson1GetServiceEndpointCommandError = async (output, co
|
|
|
5175
5221
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5176
5222
|
default:
|
|
5177
5223
|
const parsedBody = parsedOutput.body;
|
|
5224
|
+
const $metadata = deserializeMetadata(output);
|
|
5225
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5178
5226
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5227
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5180
5228
|
$fault: "client",
|
|
5181
|
-
$metadata
|
|
5229
|
+
$metadata,
|
|
5182
5230
|
});
|
|
5183
5231
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5184
5232
|
}
|
|
@@ -5216,8 +5264,7 @@ const deserializeAws_restJson1GetServiceProfileCommandError = async (output, con
|
|
|
5216
5264
|
body: await parseBody(output.body, context),
|
|
5217
5265
|
};
|
|
5218
5266
|
let response;
|
|
5219
|
-
|
|
5220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5267
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5221
5268
|
switch (errorCode) {
|
|
5222
5269
|
case "AccessDeniedException":
|
|
5223
5270
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5236,10 +5283,12 @@ const deserializeAws_restJson1GetServiceProfileCommandError = async (output, con
|
|
|
5236
5283
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5237
5284
|
default:
|
|
5238
5285
|
const parsedBody = parsedOutput.body;
|
|
5286
|
+
const $metadata = deserializeMetadata(output);
|
|
5287
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5239
5288
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5241
5290
|
$fault: "client",
|
|
5242
|
-
$metadata
|
|
5291
|
+
$metadata,
|
|
5243
5292
|
});
|
|
5244
5293
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5245
5294
|
}
|
|
@@ -5301,8 +5350,7 @@ const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, con
|
|
|
5301
5350
|
body: await parseBody(output.body, context),
|
|
5302
5351
|
};
|
|
5303
5352
|
let response;
|
|
5304
|
-
|
|
5305
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5306
5354
|
switch (errorCode) {
|
|
5307
5355
|
case "AccessDeniedException":
|
|
5308
5356
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5321,10 +5369,12 @@ const deserializeAws_restJson1GetWirelessDeviceCommandError = async (output, con
|
|
|
5321
5369
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5322
5370
|
default:
|
|
5323
5371
|
const parsedBody = parsedOutput.body;
|
|
5372
|
+
const $metadata = deserializeMetadata(output);
|
|
5373
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5324
5374
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5375
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5326
5376
|
$fault: "client",
|
|
5327
|
-
$metadata
|
|
5377
|
+
$metadata,
|
|
5328
5378
|
});
|
|
5329
5379
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5330
5380
|
}
|
|
@@ -5362,8 +5412,7 @@ const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (o
|
|
|
5362
5412
|
body: await parseBody(output.body, context),
|
|
5363
5413
|
};
|
|
5364
5414
|
let response;
|
|
5365
|
-
|
|
5366
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5367
5416
|
switch (errorCode) {
|
|
5368
5417
|
case "AccessDeniedException":
|
|
5369
5418
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5382,10 +5431,12 @@ const deserializeAws_restJson1GetWirelessDeviceStatisticsCommandError = async (o
|
|
|
5382
5431
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5383
5432
|
default:
|
|
5384
5433
|
const parsedBody = parsedOutput.body;
|
|
5434
|
+
const $metadata = deserializeMetadata(output);
|
|
5435
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5385
5436
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5387
5438
|
$fault: "client",
|
|
5388
|
-
$metadata
|
|
5439
|
+
$metadata,
|
|
5389
5440
|
});
|
|
5390
5441
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5391
5442
|
}
|
|
@@ -5435,8 +5486,7 @@ const deserializeAws_restJson1GetWirelessGatewayCommandError = async (output, co
|
|
|
5435
5486
|
body: await parseBody(output.body, context),
|
|
5436
5487
|
};
|
|
5437
5488
|
let response;
|
|
5438
|
-
|
|
5439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5489
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5440
5490
|
switch (errorCode) {
|
|
5441
5491
|
case "AccessDeniedException":
|
|
5442
5492
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5455,10 +5505,12 @@ const deserializeAws_restJson1GetWirelessGatewayCommandError = async (output, co
|
|
|
5455
5505
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5456
5506
|
default:
|
|
5457
5507
|
const parsedBody = parsedOutput.body;
|
|
5508
|
+
const $metadata = deserializeMetadata(output);
|
|
5509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5458
5510
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5460
5512
|
$fault: "client",
|
|
5461
|
-
$metadata
|
|
5513
|
+
$metadata,
|
|
5462
5514
|
});
|
|
5463
5515
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5464
5516
|
}
|
|
@@ -5488,8 +5540,7 @@ const deserializeAws_restJson1GetWirelessGatewayCertificateCommandError = async
|
|
|
5488
5540
|
body: await parseBody(output.body, context),
|
|
5489
5541
|
};
|
|
5490
5542
|
let response;
|
|
5491
|
-
|
|
5492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5493
5544
|
switch (errorCode) {
|
|
5494
5545
|
case "AccessDeniedException":
|
|
5495
5546
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5508,10 +5559,12 @@ const deserializeAws_restJson1GetWirelessGatewayCertificateCommandError = async
|
|
|
5508
5559
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5509
5560
|
default:
|
|
5510
5561
|
const parsedBody = parsedOutput.body;
|
|
5562
|
+
const $metadata = deserializeMetadata(output);
|
|
5563
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5511
5564
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5512
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5513
5566
|
$fault: "client",
|
|
5514
|
-
$metadata
|
|
5567
|
+
$metadata,
|
|
5515
5568
|
});
|
|
5516
5569
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5517
5570
|
}
|
|
@@ -5537,8 +5590,7 @@ const deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommandError
|
|
|
5537
5590
|
body: await parseBody(output.body, context),
|
|
5538
5591
|
};
|
|
5539
5592
|
let response;
|
|
5540
|
-
|
|
5541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5593
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5542
5594
|
switch (errorCode) {
|
|
5543
5595
|
case "AccessDeniedException":
|
|
5544
5596
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5557,10 +5609,12 @@ const deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommandError
|
|
|
5557
5609
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5558
5610
|
default:
|
|
5559
5611
|
const parsedBody = parsedOutput.body;
|
|
5612
|
+
const $metadata = deserializeMetadata(output);
|
|
5613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5560
5614
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5561
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5562
5616
|
$fault: "client",
|
|
5563
|
-
$metadata
|
|
5617
|
+
$metadata,
|
|
5564
5618
|
});
|
|
5565
5619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5566
5620
|
}
|
|
@@ -5594,8 +5648,7 @@ const deserializeAws_restJson1GetWirelessGatewayStatisticsCommandError = async (
|
|
|
5594
5648
|
body: await parseBody(output.body, context),
|
|
5595
5649
|
};
|
|
5596
5650
|
let response;
|
|
5597
|
-
|
|
5598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5651
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5599
5652
|
switch (errorCode) {
|
|
5600
5653
|
case "AccessDeniedException":
|
|
5601
5654
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5614,10 +5667,12 @@ const deserializeAws_restJson1GetWirelessGatewayStatisticsCommandError = async (
|
|
|
5614
5667
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5615
5668
|
default:
|
|
5616
5669
|
const parsedBody = parsedOutput.body;
|
|
5670
|
+
const $metadata = deserializeMetadata(output);
|
|
5671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5617
5672
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5618
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5619
5674
|
$fault: "client",
|
|
5620
|
-
$metadata
|
|
5675
|
+
$metadata,
|
|
5621
5676
|
});
|
|
5622
5677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5623
5678
|
}
|
|
@@ -5659,8 +5714,7 @@ const deserializeAws_restJson1GetWirelessGatewayTaskCommandError = async (output
|
|
|
5659
5714
|
body: await parseBody(output.body, context),
|
|
5660
5715
|
};
|
|
5661
5716
|
let response;
|
|
5662
|
-
|
|
5663
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5664
5718
|
switch (errorCode) {
|
|
5665
5719
|
case "AccessDeniedException":
|
|
5666
5720
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5679,10 +5733,12 @@ const deserializeAws_restJson1GetWirelessGatewayTaskCommandError = async (output
|
|
|
5679
5733
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5680
5734
|
default:
|
|
5681
5735
|
const parsedBody = parsedOutput.body;
|
|
5736
|
+
const $metadata = deserializeMetadata(output);
|
|
5737
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5682
5738
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5739
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5684
5740
|
$fault: "client",
|
|
5685
|
-
$metadata
|
|
5741
|
+
$metadata,
|
|
5686
5742
|
});
|
|
5687
5743
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5688
5744
|
}
|
|
@@ -5720,8 +5776,7 @@ const deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommandError = asy
|
|
|
5720
5776
|
body: await parseBody(output.body, context),
|
|
5721
5777
|
};
|
|
5722
5778
|
let response;
|
|
5723
|
-
|
|
5724
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5779
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5725
5780
|
switch (errorCode) {
|
|
5726
5781
|
case "AccessDeniedException":
|
|
5727
5782
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5740,10 +5795,12 @@ const deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommandError = asy
|
|
|
5740
5795
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5741
5796
|
default:
|
|
5742
5797
|
const parsedBody = parsedOutput.body;
|
|
5798
|
+
const $metadata = deserializeMetadata(output);
|
|
5799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5743
5800
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5745
5802
|
$fault: "client",
|
|
5746
|
-
$metadata
|
|
5803
|
+
$metadata,
|
|
5747
5804
|
});
|
|
5748
5805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5749
5806
|
}
|
|
@@ -5773,8 +5830,7 @@ const deserializeAws_restJson1ListDestinationsCommandError = async (output, cont
|
|
|
5773
5830
|
body: await parseBody(output.body, context),
|
|
5774
5831
|
};
|
|
5775
5832
|
let response;
|
|
5776
|
-
|
|
5777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5778
5834
|
switch (errorCode) {
|
|
5779
5835
|
case "AccessDeniedException":
|
|
5780
5836
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5790,10 +5846,12 @@ const deserializeAws_restJson1ListDestinationsCommandError = async (output, cont
|
|
|
5790
5846
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5791
5847
|
default:
|
|
5792
5848
|
const parsedBody = parsedOutput.body;
|
|
5849
|
+
const $metadata = deserializeMetadata(output);
|
|
5850
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5793
5851
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5795
5853
|
$fault: "client",
|
|
5796
|
-
$metadata
|
|
5854
|
+
$metadata,
|
|
5797
5855
|
});
|
|
5798
5856
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5799
5857
|
}
|
|
@@ -5823,8 +5881,7 @@ const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, co
|
|
|
5823
5881
|
body: await parseBody(output.body, context),
|
|
5824
5882
|
};
|
|
5825
5883
|
let response;
|
|
5826
|
-
|
|
5827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5884
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5828
5885
|
switch (errorCode) {
|
|
5829
5886
|
case "AccessDeniedException":
|
|
5830
5887
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5840,10 +5897,12 @@ const deserializeAws_restJson1ListDeviceProfilesCommandError = async (output, co
|
|
|
5840
5897
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5841
5898
|
default:
|
|
5842
5899
|
const parsedBody = parsedOutput.body;
|
|
5900
|
+
const $metadata = deserializeMetadata(output);
|
|
5901
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5843
5902
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5903
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5845
5904
|
$fault: "client",
|
|
5846
|
-
$metadata
|
|
5905
|
+
$metadata,
|
|
5847
5906
|
});
|
|
5848
5907
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5849
5908
|
}
|
|
@@ -5873,8 +5932,7 @@ const deserializeAws_restJson1ListEventConfigurationsCommandError = async (outpu
|
|
|
5873
5932
|
body: await parseBody(output.body, context),
|
|
5874
5933
|
};
|
|
5875
5934
|
let response;
|
|
5876
|
-
|
|
5877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5935
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5878
5936
|
switch (errorCode) {
|
|
5879
5937
|
case "AccessDeniedException":
|
|
5880
5938
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5890,10 +5948,12 @@ const deserializeAws_restJson1ListEventConfigurationsCommandError = async (outpu
|
|
|
5890
5948
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5891
5949
|
default:
|
|
5892
5950
|
const parsedBody = parsedOutput.body;
|
|
5951
|
+
const $metadata = deserializeMetadata(output);
|
|
5952
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5893
5953
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5954
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5895
5955
|
$fault: "client",
|
|
5896
|
-
$metadata
|
|
5956
|
+
$metadata,
|
|
5897
5957
|
});
|
|
5898
5958
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5899
5959
|
}
|
|
@@ -5923,8 +5983,7 @@ const deserializeAws_restJson1ListFuotaTasksCommandError = async (output, contex
|
|
|
5923
5983
|
body: await parseBody(output.body, context),
|
|
5924
5984
|
};
|
|
5925
5985
|
let response;
|
|
5926
|
-
|
|
5927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5986
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5928
5987
|
switch (errorCode) {
|
|
5929
5988
|
case "AccessDeniedException":
|
|
5930
5989
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5940,10 +5999,12 @@ const deserializeAws_restJson1ListFuotaTasksCommandError = async (output, contex
|
|
|
5940
5999
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5941
6000
|
default:
|
|
5942
6001
|
const parsedBody = parsedOutput.body;
|
|
6002
|
+
const $metadata = deserializeMetadata(output);
|
|
6003
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5943
6004
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6005
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5945
6006
|
$fault: "client",
|
|
5946
|
-
$metadata
|
|
6007
|
+
$metadata,
|
|
5947
6008
|
});
|
|
5948
6009
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5949
6010
|
}
|
|
@@ -5973,8 +6034,7 @@ const deserializeAws_restJson1ListMulticastGroupsCommandError = async (output, c
|
|
|
5973
6034
|
body: await parseBody(output.body, context),
|
|
5974
6035
|
};
|
|
5975
6036
|
let response;
|
|
5976
|
-
|
|
5977
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5978
6038
|
switch (errorCode) {
|
|
5979
6039
|
case "AccessDeniedException":
|
|
5980
6040
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -5990,10 +6050,12 @@ const deserializeAws_restJson1ListMulticastGroupsCommandError = async (output, c
|
|
|
5990
6050
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5991
6051
|
default:
|
|
5992
6052
|
const parsedBody = parsedOutput.body;
|
|
6053
|
+
const $metadata = deserializeMetadata(output);
|
|
6054
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5993
6055
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
5994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5995
6057
|
$fault: "client",
|
|
5996
|
-
$metadata
|
|
6058
|
+
$metadata,
|
|
5997
6059
|
});
|
|
5998
6060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5999
6061
|
}
|
|
@@ -6023,8 +6085,7 @@ const deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = async
|
|
|
6023
6085
|
body: await parseBody(output.body, context),
|
|
6024
6086
|
};
|
|
6025
6087
|
let response;
|
|
6026
|
-
|
|
6027
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6028
6089
|
switch (errorCode) {
|
|
6029
6090
|
case "AccessDeniedException":
|
|
6030
6091
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6043,10 +6104,12 @@ const deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommandError = async
|
|
|
6043
6104
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6044
6105
|
default:
|
|
6045
6106
|
const parsedBody = parsedOutput.body;
|
|
6107
|
+
const $metadata = deserializeMetadata(output);
|
|
6108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6046
6109
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6048
6111
|
$fault: "client",
|
|
6049
|
-
$metadata
|
|
6112
|
+
$metadata,
|
|
6050
6113
|
});
|
|
6051
6114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6052
6115
|
}
|
|
@@ -6076,8 +6139,7 @@ const deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = as
|
|
|
6076
6139
|
body: await parseBody(output.body, context),
|
|
6077
6140
|
};
|
|
6078
6141
|
let response;
|
|
6079
|
-
|
|
6080
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6142
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6081
6143
|
switch (errorCode) {
|
|
6082
6144
|
case "AccessDeniedException":
|
|
6083
6145
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6093,10 +6155,12 @@ const deserializeAws_restJson1ListNetworkAnalyzerConfigurationsCommandError = as
|
|
|
6093
6155
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6094
6156
|
default:
|
|
6095
6157
|
const parsedBody = parsedOutput.body;
|
|
6158
|
+
const $metadata = deserializeMetadata(output);
|
|
6159
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6096
6160
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6097
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6161
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6098
6162
|
$fault: "client",
|
|
6099
|
-
$metadata
|
|
6163
|
+
$metadata,
|
|
6100
6164
|
});
|
|
6101
6165
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6102
6166
|
}
|
|
@@ -6126,8 +6190,7 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
6126
6190
|
body: await parseBody(output.body, context),
|
|
6127
6191
|
};
|
|
6128
6192
|
let response;
|
|
6129
|
-
|
|
6130
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6131
6194
|
switch (errorCode) {
|
|
6132
6195
|
case "InternalServerException":
|
|
6133
6196
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6143,10 +6206,12 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
6143
6206
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6144
6207
|
default:
|
|
6145
6208
|
const parsedBody = parsedOutput.body;
|
|
6209
|
+
const $metadata = deserializeMetadata(output);
|
|
6210
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6146
6211
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6212
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6148
6213
|
$fault: "client",
|
|
6149
|
-
$metadata
|
|
6214
|
+
$metadata,
|
|
6150
6215
|
});
|
|
6151
6216
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6152
6217
|
}
|
|
@@ -6176,8 +6241,7 @@ const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, co
|
|
|
6176
6241
|
body: await parseBody(output.body, context),
|
|
6177
6242
|
};
|
|
6178
6243
|
let response;
|
|
6179
|
-
|
|
6180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6181
6245
|
switch (errorCode) {
|
|
6182
6246
|
case "AccessDeniedException":
|
|
6183
6247
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6196,10 +6260,12 @@ const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, co
|
|
|
6196
6260
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6197
6261
|
default:
|
|
6198
6262
|
const parsedBody = parsedOutput.body;
|
|
6263
|
+
const $metadata = deserializeMetadata(output);
|
|
6264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6199
6265
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6201
6267
|
$fault: "client",
|
|
6202
|
-
$metadata
|
|
6268
|
+
$metadata,
|
|
6203
6269
|
});
|
|
6204
6270
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6205
6271
|
}
|
|
@@ -6229,8 +6295,7 @@ const deserializeAws_restJson1ListServiceProfilesCommandError = async (output, c
|
|
|
6229
6295
|
body: await parseBody(output.body, context),
|
|
6230
6296
|
};
|
|
6231
6297
|
let response;
|
|
6232
|
-
|
|
6233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6234
6299
|
switch (errorCode) {
|
|
6235
6300
|
case "AccessDeniedException":
|
|
6236
6301
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6246,10 +6311,12 @@ const deserializeAws_restJson1ListServiceProfilesCommandError = async (output, c
|
|
|
6246
6311
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6247
6312
|
default:
|
|
6248
6313
|
const parsedBody = parsedOutput.body;
|
|
6314
|
+
const $metadata = deserializeMetadata(output);
|
|
6315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6249
6316
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6251
6318
|
$fault: "client",
|
|
6252
|
-
$metadata
|
|
6319
|
+
$metadata,
|
|
6253
6320
|
});
|
|
6254
6321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6255
6322
|
}
|
|
@@ -6275,8 +6342,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
6275
6342
|
body: await parseBody(output.body, context),
|
|
6276
6343
|
};
|
|
6277
6344
|
let response;
|
|
6278
|
-
|
|
6279
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6280
6346
|
switch (errorCode) {
|
|
6281
6347
|
case "ConflictException":
|
|
6282
6348
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -6295,10 +6361,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
6295
6361
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6296
6362
|
default:
|
|
6297
6363
|
const parsedBody = parsedOutput.body;
|
|
6364
|
+
const $metadata = deserializeMetadata(output);
|
|
6365
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6298
6366
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6367
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6300
6368
|
$fault: "client",
|
|
6301
|
-
$metadata
|
|
6369
|
+
$metadata,
|
|
6302
6370
|
});
|
|
6303
6371
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6304
6372
|
}
|
|
@@ -6328,8 +6396,7 @@ const deserializeAws_restJson1ListWirelessDevicesCommandError = async (output, c
|
|
|
6328
6396
|
body: await parseBody(output.body, context),
|
|
6329
6397
|
};
|
|
6330
6398
|
let response;
|
|
6331
|
-
|
|
6332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6333
6400
|
switch (errorCode) {
|
|
6334
6401
|
case "AccessDeniedException":
|
|
6335
6402
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6345,10 +6412,12 @@ const deserializeAws_restJson1ListWirelessDevicesCommandError = async (output, c
|
|
|
6345
6412
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6346
6413
|
default:
|
|
6347
6414
|
const parsedBody = parsedOutput.body;
|
|
6415
|
+
const $metadata = deserializeMetadata(output);
|
|
6416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6348
6417
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6349
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6350
6419
|
$fault: "client",
|
|
6351
|
-
$metadata
|
|
6420
|
+
$metadata,
|
|
6352
6421
|
});
|
|
6353
6422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6354
6423
|
}
|
|
@@ -6378,8 +6447,7 @@ const deserializeAws_restJson1ListWirelessGatewaysCommandError = async (output,
|
|
|
6378
6447
|
body: await parseBody(output.body, context),
|
|
6379
6448
|
};
|
|
6380
6449
|
let response;
|
|
6381
|
-
|
|
6382
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6450
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6383
6451
|
switch (errorCode) {
|
|
6384
6452
|
case "AccessDeniedException":
|
|
6385
6453
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6395,10 +6463,12 @@ const deserializeAws_restJson1ListWirelessGatewaysCommandError = async (output,
|
|
|
6395
6463
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6396
6464
|
default:
|
|
6397
6465
|
const parsedBody = parsedOutput.body;
|
|
6466
|
+
const $metadata = deserializeMetadata(output);
|
|
6467
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6398
6468
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6399
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6469
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6400
6470
|
$fault: "client",
|
|
6401
|
-
$metadata
|
|
6471
|
+
$metadata,
|
|
6402
6472
|
});
|
|
6403
6473
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6404
6474
|
}
|
|
@@ -6428,8 +6498,7 @@ const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = a
|
|
|
6428
6498
|
body: await parseBody(output.body, context),
|
|
6429
6499
|
};
|
|
6430
6500
|
let response;
|
|
6431
|
-
|
|
6432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6433
6502
|
switch (errorCode) {
|
|
6434
6503
|
case "AccessDeniedException":
|
|
6435
6504
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6445,10 +6514,12 @@ const deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommandError = a
|
|
|
6445
6514
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6446
6515
|
default:
|
|
6447
6516
|
const parsedBody = parsedOutput.body;
|
|
6517
|
+
const $metadata = deserializeMetadata(output);
|
|
6518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6448
6519
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6450
6521
|
$fault: "client",
|
|
6451
|
-
$metadata
|
|
6522
|
+
$metadata,
|
|
6452
6523
|
});
|
|
6453
6524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6454
6525
|
}
|
|
@@ -6470,8 +6541,7 @@ const deserializeAws_restJson1PutResourceLogLevelCommandError = async (output, c
|
|
|
6470
6541
|
body: await parseBody(output.body, context),
|
|
6471
6542
|
};
|
|
6472
6543
|
let response;
|
|
6473
|
-
|
|
6474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6475
6545
|
switch (errorCode) {
|
|
6476
6546
|
case "AccessDeniedException":
|
|
6477
6547
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6490,10 +6560,12 @@ const deserializeAws_restJson1PutResourceLogLevelCommandError = async (output, c
|
|
|
6490
6560
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6491
6561
|
default:
|
|
6492
6562
|
const parsedBody = parsedOutput.body;
|
|
6563
|
+
const $metadata = deserializeMetadata(output);
|
|
6564
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6493
6565
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6566
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6495
6567
|
$fault: "client",
|
|
6496
|
-
$metadata
|
|
6568
|
+
$metadata,
|
|
6497
6569
|
});
|
|
6498
6570
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6499
6571
|
}
|
|
@@ -6515,8 +6587,7 @@ const deserializeAws_restJson1ResetAllResourceLogLevelsCommandError = async (out
|
|
|
6515
6587
|
body: await parseBody(output.body, context),
|
|
6516
6588
|
};
|
|
6517
6589
|
let response;
|
|
6518
|
-
|
|
6519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6520
6591
|
switch (errorCode) {
|
|
6521
6592
|
case "AccessDeniedException":
|
|
6522
6593
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6535,10 +6606,12 @@ const deserializeAws_restJson1ResetAllResourceLogLevelsCommandError = async (out
|
|
|
6535
6606
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6536
6607
|
default:
|
|
6537
6608
|
const parsedBody = parsedOutput.body;
|
|
6609
|
+
const $metadata = deserializeMetadata(output);
|
|
6610
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6538
6611
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6540
6613
|
$fault: "client",
|
|
6541
|
-
$metadata
|
|
6614
|
+
$metadata,
|
|
6542
6615
|
});
|
|
6543
6616
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6544
6617
|
}
|
|
@@ -6560,8 +6633,7 @@ const deserializeAws_restJson1ResetResourceLogLevelCommandError = async (output,
|
|
|
6560
6633
|
body: await parseBody(output.body, context),
|
|
6561
6634
|
};
|
|
6562
6635
|
let response;
|
|
6563
|
-
|
|
6564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6565
6637
|
switch (errorCode) {
|
|
6566
6638
|
case "AccessDeniedException":
|
|
6567
6639
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6580,10 +6652,12 @@ const deserializeAws_restJson1ResetResourceLogLevelCommandError = async (output,
|
|
|
6580
6652
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6581
6653
|
default:
|
|
6582
6654
|
const parsedBody = parsedOutput.body;
|
|
6655
|
+
const $metadata = deserializeMetadata(output);
|
|
6656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6583
6657
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6585
6659
|
$fault: "client",
|
|
6586
|
-
$metadata
|
|
6660
|
+
$metadata,
|
|
6587
6661
|
});
|
|
6588
6662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6589
6663
|
}
|
|
@@ -6609,8 +6683,7 @@ const deserializeAws_restJson1SendDataToMulticastGroupCommandError = async (outp
|
|
|
6609
6683
|
body: await parseBody(output.body, context),
|
|
6610
6684
|
};
|
|
6611
6685
|
let response;
|
|
6612
|
-
|
|
6613
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6686
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6614
6687
|
switch (errorCode) {
|
|
6615
6688
|
case "AccessDeniedException":
|
|
6616
6689
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6632,10 +6705,12 @@ const deserializeAws_restJson1SendDataToMulticastGroupCommandError = async (outp
|
|
|
6632
6705
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6633
6706
|
default:
|
|
6634
6707
|
const parsedBody = parsedOutput.body;
|
|
6708
|
+
const $metadata = deserializeMetadata(output);
|
|
6709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6635
6710
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6711
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6637
6712
|
$fault: "client",
|
|
6638
|
-
$metadata
|
|
6713
|
+
$metadata,
|
|
6639
6714
|
});
|
|
6640
6715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6641
6716
|
}
|
|
@@ -6661,8 +6736,7 @@ const deserializeAws_restJson1SendDataToWirelessDeviceCommandError = async (outp
|
|
|
6661
6736
|
body: await parseBody(output.body, context),
|
|
6662
6737
|
};
|
|
6663
6738
|
let response;
|
|
6664
|
-
|
|
6665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6666
6740
|
switch (errorCode) {
|
|
6667
6741
|
case "InternalServerException":
|
|
6668
6742
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6678,10 +6752,12 @@ const deserializeAws_restJson1SendDataToWirelessDeviceCommandError = async (outp
|
|
|
6678
6752
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6679
6753
|
default:
|
|
6680
6754
|
const parsedBody = parsedOutput.body;
|
|
6755
|
+
const $metadata = deserializeMetadata(output);
|
|
6756
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6681
6757
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6682
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6683
6759
|
$fault: "client",
|
|
6684
|
-
$metadata
|
|
6760
|
+
$metadata,
|
|
6685
6761
|
});
|
|
6686
6762
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6687
6763
|
}
|
|
@@ -6703,8 +6779,7 @@ const deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroup
|
|
|
6703
6779
|
body: await parseBody(output.body, context),
|
|
6704
6780
|
};
|
|
6705
6781
|
let response;
|
|
6706
|
-
|
|
6707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6708
6783
|
switch (errorCode) {
|
|
6709
6784
|
case "AccessDeniedException":
|
|
6710
6785
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6723,10 +6798,12 @@ const deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroup
|
|
|
6723
6798
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6724
6799
|
default:
|
|
6725
6800
|
const parsedBody = parsedOutput.body;
|
|
6801
|
+
const $metadata = deserializeMetadata(output);
|
|
6802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6726
6803
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6728
6805
|
$fault: "client",
|
|
6729
|
-
$metadata
|
|
6806
|
+
$metadata,
|
|
6730
6807
|
});
|
|
6731
6808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6732
6809
|
}
|
|
@@ -6748,8 +6825,7 @@ const deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGr
|
|
|
6748
6825
|
body: await parseBody(output.body, context),
|
|
6749
6826
|
};
|
|
6750
6827
|
let response;
|
|
6751
|
-
|
|
6752
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6753
6829
|
switch (errorCode) {
|
|
6754
6830
|
case "AccessDeniedException":
|
|
6755
6831
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6768,10 +6844,12 @@ const deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGr
|
|
|
6768
6844
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6769
6845
|
default:
|
|
6770
6846
|
const parsedBody = parsedOutput.body;
|
|
6847
|
+
const $metadata = deserializeMetadata(output);
|
|
6848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6771
6849
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6772
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6773
6851
|
$fault: "client",
|
|
6774
|
-
$metadata
|
|
6852
|
+
$metadata,
|
|
6775
6853
|
});
|
|
6776
6854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6777
6855
|
}
|
|
@@ -6793,8 +6871,7 @@ const deserializeAws_restJson1StartFuotaTaskCommandError = async (output, contex
|
|
|
6793
6871
|
body: await parseBody(output.body, context),
|
|
6794
6872
|
};
|
|
6795
6873
|
let response;
|
|
6796
|
-
|
|
6797
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6798
6875
|
switch (errorCode) {
|
|
6799
6876
|
case "AccessDeniedException":
|
|
6800
6877
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6816,10 +6893,12 @@ const deserializeAws_restJson1StartFuotaTaskCommandError = async (output, contex
|
|
|
6816
6893
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6817
6894
|
default:
|
|
6818
6895
|
const parsedBody = parsedOutput.body;
|
|
6896
|
+
const $metadata = deserializeMetadata(output);
|
|
6897
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6819
6898
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6899
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6821
6900
|
$fault: "client",
|
|
6822
|
-
$metadata
|
|
6901
|
+
$metadata,
|
|
6823
6902
|
});
|
|
6824
6903
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6825
6904
|
}
|
|
@@ -6841,8 +6920,7 @@ const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (ou
|
|
|
6841
6920
|
body: await parseBody(output.body, context),
|
|
6842
6921
|
};
|
|
6843
6922
|
let response;
|
|
6844
|
-
|
|
6845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6846
6924
|
switch (errorCode) {
|
|
6847
6925
|
case "AccessDeniedException":
|
|
6848
6926
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -6864,10 +6942,12 @@ const deserializeAws_restJson1StartMulticastGroupSessionCommandError = async (ou
|
|
|
6864
6942
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6865
6943
|
default:
|
|
6866
6944
|
const parsedBody = parsedOutput.body;
|
|
6945
|
+
const $metadata = deserializeMetadata(output);
|
|
6946
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6867
6947
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6948
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6869
6949
|
$fault: "client",
|
|
6870
|
-
$metadata
|
|
6950
|
+
$metadata,
|
|
6871
6951
|
});
|
|
6872
6952
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6873
6953
|
}
|
|
@@ -6889,8 +6969,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6889
6969
|
body: await parseBody(output.body, context),
|
|
6890
6970
|
};
|
|
6891
6971
|
let response;
|
|
6892
|
-
|
|
6893
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6972
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6894
6973
|
switch (errorCode) {
|
|
6895
6974
|
case "ConflictException":
|
|
6896
6975
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -6912,10 +6991,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6912
6991
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6913
6992
|
default:
|
|
6914
6993
|
const parsedBody = parsedOutput.body;
|
|
6994
|
+
const $metadata = deserializeMetadata(output);
|
|
6995
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6915
6996
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6916
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6997
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6917
6998
|
$fault: "client",
|
|
6918
|
-
$metadata
|
|
6999
|
+
$metadata,
|
|
6919
7000
|
});
|
|
6920
7001
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6921
7002
|
}
|
|
@@ -6941,8 +7022,7 @@ const deserializeAws_restJson1TestWirelessDeviceCommandError = async (output, co
|
|
|
6941
7022
|
body: await parseBody(output.body, context),
|
|
6942
7023
|
};
|
|
6943
7024
|
let response;
|
|
6944
|
-
|
|
6945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7025
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6946
7026
|
switch (errorCode) {
|
|
6947
7027
|
case "InternalServerException":
|
|
6948
7028
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -6958,10 +7038,12 @@ const deserializeAws_restJson1TestWirelessDeviceCommandError = async (output, co
|
|
|
6958
7038
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6959
7039
|
default:
|
|
6960
7040
|
const parsedBody = parsedOutput.body;
|
|
7041
|
+
const $metadata = deserializeMetadata(output);
|
|
7042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6961
7043
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
6962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6963
7045
|
$fault: "client",
|
|
6964
|
-
$metadata
|
|
7046
|
+
$metadata,
|
|
6965
7047
|
});
|
|
6966
7048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6967
7049
|
}
|
|
@@ -6983,8 +7065,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6983
7065
|
body: await parseBody(output.body, context),
|
|
6984
7066
|
};
|
|
6985
7067
|
let response;
|
|
6986
|
-
|
|
6987
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7068
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6988
7069
|
switch (errorCode) {
|
|
6989
7070
|
case "ConflictException":
|
|
6990
7071
|
case "com.amazonaws.iotwireless#ConflictException":
|
|
@@ -7003,10 +7084,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
7003
7084
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7004
7085
|
default:
|
|
7005
7086
|
const parsedBody = parsedOutput.body;
|
|
7087
|
+
const $metadata = deserializeMetadata(output);
|
|
7088
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7006
7089
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7090
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7008
7091
|
$fault: "client",
|
|
7009
|
-
$metadata
|
|
7092
|
+
$metadata,
|
|
7010
7093
|
});
|
|
7011
7094
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7012
7095
|
}
|
|
@@ -7028,8 +7111,7 @@ const deserializeAws_restJson1UpdateDestinationCommandError = async (output, con
|
|
|
7028
7111
|
body: await parseBody(output.body, context),
|
|
7029
7112
|
};
|
|
7030
7113
|
let response;
|
|
7031
|
-
|
|
7032
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7114
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7033
7115
|
switch (errorCode) {
|
|
7034
7116
|
case "AccessDeniedException":
|
|
7035
7117
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7048,10 +7130,12 @@ const deserializeAws_restJson1UpdateDestinationCommandError = async (output, con
|
|
|
7048
7130
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7049
7131
|
default:
|
|
7050
7132
|
const parsedBody = parsedOutput.body;
|
|
7133
|
+
const $metadata = deserializeMetadata(output);
|
|
7134
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7051
7135
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7052
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7136
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7053
7137
|
$fault: "client",
|
|
7054
|
-
$metadata
|
|
7138
|
+
$metadata,
|
|
7055
7139
|
});
|
|
7056
7140
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7057
7141
|
}
|
|
@@ -7073,8 +7157,7 @@ const deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandErro
|
|
|
7073
7157
|
body: await parseBody(output.body, context),
|
|
7074
7158
|
};
|
|
7075
7159
|
let response;
|
|
7076
|
-
|
|
7077
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7078
7161
|
switch (errorCode) {
|
|
7079
7162
|
case "AccessDeniedException":
|
|
7080
7163
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7090,10 +7173,12 @@ const deserializeAws_restJson1UpdateEventConfigurationByResourceTypesCommandErro
|
|
|
7090
7173
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7091
7174
|
default:
|
|
7092
7175
|
const parsedBody = parsedOutput.body;
|
|
7176
|
+
const $metadata = deserializeMetadata(output);
|
|
7177
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7093
7178
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7179
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7095
7180
|
$fault: "client",
|
|
7096
|
-
$metadata
|
|
7181
|
+
$metadata,
|
|
7097
7182
|
});
|
|
7098
7183
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7099
7184
|
}
|
|
@@ -7115,8 +7200,7 @@ const deserializeAws_restJson1UpdateFuotaTaskCommandError = async (output, conte
|
|
|
7115
7200
|
body: await parseBody(output.body, context),
|
|
7116
7201
|
};
|
|
7117
7202
|
let response;
|
|
7118
|
-
|
|
7119
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7120
7204
|
switch (errorCode) {
|
|
7121
7205
|
case "AccessDeniedException":
|
|
7122
7206
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7138,10 +7222,12 @@ const deserializeAws_restJson1UpdateFuotaTaskCommandError = async (output, conte
|
|
|
7138
7222
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7139
7223
|
default:
|
|
7140
7224
|
const parsedBody = parsedOutput.body;
|
|
7225
|
+
const $metadata = deserializeMetadata(output);
|
|
7226
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7141
7227
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7142
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7228
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7143
7229
|
$fault: "client",
|
|
7144
|
-
$metadata
|
|
7230
|
+
$metadata,
|
|
7145
7231
|
});
|
|
7146
7232
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7147
7233
|
}
|
|
@@ -7163,8 +7249,7 @@ const deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommandError = async
|
|
|
7163
7249
|
body: await parseBody(output.body, context),
|
|
7164
7250
|
};
|
|
7165
7251
|
let response;
|
|
7166
|
-
|
|
7167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7252
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7168
7253
|
switch (errorCode) {
|
|
7169
7254
|
case "AccessDeniedException":
|
|
7170
7255
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7186,10 +7271,12 @@ const deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommandError = async
|
|
|
7186
7271
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7187
7272
|
default:
|
|
7188
7273
|
const parsedBody = parsedOutput.body;
|
|
7274
|
+
const $metadata = deserializeMetadata(output);
|
|
7275
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7189
7276
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7190
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7277
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7191
7278
|
$fault: "client",
|
|
7192
|
-
$metadata
|
|
7279
|
+
$metadata,
|
|
7193
7280
|
});
|
|
7194
7281
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7195
7282
|
}
|
|
@@ -7211,8 +7298,7 @@ const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output,
|
|
|
7211
7298
|
body: await parseBody(output.body, context),
|
|
7212
7299
|
};
|
|
7213
7300
|
let response;
|
|
7214
|
-
|
|
7215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7301
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7216
7302
|
switch (errorCode) {
|
|
7217
7303
|
case "AccessDeniedException":
|
|
7218
7304
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7234,10 +7320,12 @@ const deserializeAws_restJson1UpdateMulticastGroupCommandError = async (output,
|
|
|
7234
7320
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7235
7321
|
default:
|
|
7236
7322
|
const parsedBody = parsedOutput.body;
|
|
7323
|
+
const $metadata = deserializeMetadata(output);
|
|
7324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7237
7325
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7239
7327
|
$fault: "client",
|
|
7240
|
-
$metadata
|
|
7328
|
+
$metadata,
|
|
7241
7329
|
});
|
|
7242
7330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7243
7331
|
}
|
|
@@ -7259,8 +7347,7 @@ const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = a
|
|
|
7259
7347
|
body: await parseBody(output.body, context),
|
|
7260
7348
|
};
|
|
7261
7349
|
let response;
|
|
7262
|
-
|
|
7263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7264
7351
|
switch (errorCode) {
|
|
7265
7352
|
case "AccessDeniedException":
|
|
7266
7353
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7279,10 +7366,12 @@ const deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommandError = a
|
|
|
7279
7366
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7280
7367
|
default:
|
|
7281
7368
|
const parsedBody = parsedOutput.body;
|
|
7369
|
+
const $metadata = deserializeMetadata(output);
|
|
7370
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7282
7371
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7284
7373
|
$fault: "client",
|
|
7285
|
-
$metadata
|
|
7374
|
+
$metadata,
|
|
7286
7375
|
});
|
|
7287
7376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7288
7377
|
}
|
|
@@ -7304,8 +7393,7 @@ const deserializeAws_restJson1UpdatePartnerAccountCommandError = async (output,
|
|
|
7304
7393
|
body: await parseBody(output.body, context),
|
|
7305
7394
|
};
|
|
7306
7395
|
let response;
|
|
7307
|
-
|
|
7308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7396
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7309
7397
|
switch (errorCode) {
|
|
7310
7398
|
case "InternalServerException":
|
|
7311
7399
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
@@ -7321,10 +7409,12 @@ const deserializeAws_restJson1UpdatePartnerAccountCommandError = async (output,
|
|
|
7321
7409
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7322
7410
|
default:
|
|
7323
7411
|
const parsedBody = parsedOutput.body;
|
|
7412
|
+
const $metadata = deserializeMetadata(output);
|
|
7413
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7324
7414
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7415
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7326
7416
|
$fault: "client",
|
|
7327
|
-
$metadata
|
|
7417
|
+
$metadata,
|
|
7328
7418
|
});
|
|
7329
7419
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7330
7420
|
}
|
|
@@ -7346,8 +7436,7 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
|
|
|
7346
7436
|
body: await parseBody(output.body, context),
|
|
7347
7437
|
};
|
|
7348
7438
|
let response;
|
|
7349
|
-
|
|
7350
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7439
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7351
7440
|
switch (errorCode) {
|
|
7352
7441
|
case "AccessDeniedException":
|
|
7353
7442
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7369,10 +7458,12 @@ const deserializeAws_restJson1UpdateResourceEventConfigurationCommandError = asy
|
|
|
7369
7458
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7370
7459
|
default:
|
|
7371
7460
|
const parsedBody = parsedOutput.body;
|
|
7461
|
+
const $metadata = deserializeMetadata(output);
|
|
7462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7372
7463
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7374
7465
|
$fault: "client",
|
|
7375
|
-
$metadata
|
|
7466
|
+
$metadata,
|
|
7376
7467
|
});
|
|
7377
7468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7378
7469
|
}
|
|
@@ -7394,8 +7485,7 @@ const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output,
|
|
|
7394
7485
|
body: await parseBody(output.body, context),
|
|
7395
7486
|
};
|
|
7396
7487
|
let response;
|
|
7397
|
-
|
|
7398
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7488
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7399
7489
|
switch (errorCode) {
|
|
7400
7490
|
case "AccessDeniedException":
|
|
7401
7491
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7414,10 +7504,12 @@ const deserializeAws_restJson1UpdateWirelessDeviceCommandError = async (output,
|
|
|
7414
7504
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7415
7505
|
default:
|
|
7416
7506
|
const parsedBody = parsedOutput.body;
|
|
7507
|
+
const $metadata = deserializeMetadata(output);
|
|
7508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7417
7509
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7418
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7419
7511
|
$fault: "client",
|
|
7420
|
-
$metadata
|
|
7512
|
+
$metadata,
|
|
7421
7513
|
});
|
|
7422
7514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7423
7515
|
}
|
|
@@ -7439,8 +7531,7 @@ const deserializeAws_restJson1UpdateWirelessGatewayCommandError = async (output,
|
|
|
7439
7531
|
body: await parseBody(output.body, context),
|
|
7440
7532
|
};
|
|
7441
7533
|
let response;
|
|
7442
|
-
|
|
7443
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7534
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7444
7535
|
switch (errorCode) {
|
|
7445
7536
|
case "AccessDeniedException":
|
|
7446
7537
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
@@ -7459,10 +7550,12 @@ const deserializeAws_restJson1UpdateWirelessGatewayCommandError = async (output,
|
|
|
7459
7550
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
7460
7551
|
default:
|
|
7461
7552
|
const parsedBody = parsedOutput.body;
|
|
7553
|
+
const $metadata = deserializeMetadata(output);
|
|
7554
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7462
7555
|
response = new IoTWirelessServiceException_1.IoTWirelessServiceException({
|
|
7463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7464
7557
|
$fault: "client",
|
|
7465
|
-
$metadata
|
|
7558
|
+
$metadata,
|
|
7466
7559
|
});
|
|
7467
7560
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7468
7561
|
}
|
|
@@ -8980,5 +9073,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
8980
9073
|
if (data["__type"] !== undefined) {
|
|
8981
9074
|
return sanitizeErrorCode(data["__type"]);
|
|
8982
9075
|
}
|
|
8983
|
-
return "";
|
|
8984
9076
|
};
|