@aws-sdk/client-guardduty 3.112.0 → 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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +310 -249
- package/dist-es/protocols/Aws_restJson1.js +310 -249
- package/package.json +6 -6
|
@@ -2031,8 +2031,7 @@ const deserializeAws_restJson1AcceptAdministratorInvitationCommandError = async
|
|
|
2031
2031
|
body: await parseBody(output.body, context),
|
|
2032
2032
|
};
|
|
2033
2033
|
let response;
|
|
2034
|
-
|
|
2035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
2035
|
switch (errorCode) {
|
|
2037
2036
|
case "BadRequestException":
|
|
2038
2037
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2042,10 +2041,12 @@ const deserializeAws_restJson1AcceptAdministratorInvitationCommandError = async
|
|
|
2042
2041
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2043
2042
|
default:
|
|
2044
2043
|
const parsedBody = parsedOutput.body;
|
|
2044
|
+
const $metadata = deserializeMetadata(output);
|
|
2045
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2045
2046
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2047
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2047
2048
|
$fault: "client",
|
|
2048
|
-
$metadata
|
|
2049
|
+
$metadata,
|
|
2049
2050
|
});
|
|
2050
2051
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2051
2052
|
}
|
|
@@ -2067,8 +2068,7 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
2067
2068
|
body: await parseBody(output.body, context),
|
|
2068
2069
|
};
|
|
2069
2070
|
let response;
|
|
2070
|
-
|
|
2071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
2072
|
switch (errorCode) {
|
|
2073
2073
|
case "BadRequestException":
|
|
2074
2074
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2078,10 +2078,12 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
2078
2078
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2079
2079
|
default:
|
|
2080
2080
|
const parsedBody = parsedOutput.body;
|
|
2081
|
+
const $metadata = deserializeMetadata(output);
|
|
2082
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2081
2083
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2082
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2084
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2083
2085
|
$fault: "client",
|
|
2084
|
-
$metadata
|
|
2086
|
+
$metadata,
|
|
2085
2087
|
});
|
|
2086
2088
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2087
2089
|
}
|
|
@@ -2103,8 +2105,7 @@ const deserializeAws_restJson1ArchiveFindingsCommandError = async (output, conte
|
|
|
2103
2105
|
body: await parseBody(output.body, context),
|
|
2104
2106
|
};
|
|
2105
2107
|
let response;
|
|
2106
|
-
|
|
2107
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
2109
|
switch (errorCode) {
|
|
2109
2110
|
case "BadRequestException":
|
|
2110
2111
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2114,10 +2115,12 @@ const deserializeAws_restJson1ArchiveFindingsCommandError = async (output, conte
|
|
|
2114
2115
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2115
2116
|
default:
|
|
2116
2117
|
const parsedBody = parsedOutput.body;
|
|
2118
|
+
const $metadata = deserializeMetadata(output);
|
|
2119
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2117
2120
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2119
2122
|
$fault: "client",
|
|
2120
|
-
$metadata
|
|
2123
|
+
$metadata,
|
|
2121
2124
|
});
|
|
2122
2125
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2123
2126
|
}
|
|
@@ -2143,8 +2146,7 @@ const deserializeAws_restJson1CreateDetectorCommandError = async (output, contex
|
|
|
2143
2146
|
body: await parseBody(output.body, context),
|
|
2144
2147
|
};
|
|
2145
2148
|
let response;
|
|
2146
|
-
|
|
2147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
2150
|
switch (errorCode) {
|
|
2149
2151
|
case "BadRequestException":
|
|
2150
2152
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2154,10 +2156,12 @@ const deserializeAws_restJson1CreateDetectorCommandError = async (output, contex
|
|
|
2154
2156
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2155
2157
|
default:
|
|
2156
2158
|
const parsedBody = parsedOutput.body;
|
|
2159
|
+
const $metadata = deserializeMetadata(output);
|
|
2160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2157
2161
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2158
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2159
2163
|
$fault: "client",
|
|
2160
|
-
$metadata
|
|
2164
|
+
$metadata,
|
|
2161
2165
|
});
|
|
2162
2166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2163
2167
|
}
|
|
@@ -2183,8 +2187,7 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
2183
2187
|
body: await parseBody(output.body, context),
|
|
2184
2188
|
};
|
|
2185
2189
|
let response;
|
|
2186
|
-
|
|
2187
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
2191
|
switch (errorCode) {
|
|
2189
2192
|
case "BadRequestException":
|
|
2190
2193
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2194,10 +2197,12 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
2194
2197
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2195
2198
|
default:
|
|
2196
2199
|
const parsedBody = parsedOutput.body;
|
|
2200
|
+
const $metadata = deserializeMetadata(output);
|
|
2201
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2197
2202
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2198
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2203
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2199
2204
|
$fault: "client",
|
|
2200
|
-
$metadata
|
|
2205
|
+
$metadata,
|
|
2201
2206
|
});
|
|
2202
2207
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2203
2208
|
}
|
|
@@ -2223,8 +2228,7 @@ const deserializeAws_restJson1CreateIPSetCommandError = async (output, context)
|
|
|
2223
2228
|
body: await parseBody(output.body, context),
|
|
2224
2229
|
};
|
|
2225
2230
|
let response;
|
|
2226
|
-
|
|
2227
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
2232
|
switch (errorCode) {
|
|
2229
2233
|
case "BadRequestException":
|
|
2230
2234
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2234,10 +2238,12 @@ const deserializeAws_restJson1CreateIPSetCommandError = async (output, context)
|
|
|
2234
2238
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2235
2239
|
default:
|
|
2236
2240
|
const parsedBody = parsedOutput.body;
|
|
2241
|
+
const $metadata = deserializeMetadata(output);
|
|
2242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2237
2243
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2239
2245
|
$fault: "client",
|
|
2240
|
-
$metadata
|
|
2246
|
+
$metadata,
|
|
2241
2247
|
});
|
|
2242
2248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2243
2249
|
}
|
|
@@ -2263,8 +2269,7 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
2263
2269
|
body: await parseBody(output.body, context),
|
|
2264
2270
|
};
|
|
2265
2271
|
let response;
|
|
2266
|
-
|
|
2267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2268
2273
|
switch (errorCode) {
|
|
2269
2274
|
case "BadRequestException":
|
|
2270
2275
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2274,10 +2279,12 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
2274
2279
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2275
2280
|
default:
|
|
2276
2281
|
const parsedBody = parsedOutput.body;
|
|
2282
|
+
const $metadata = deserializeMetadata(output);
|
|
2283
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2277
2284
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2279
2286
|
$fault: "client",
|
|
2280
|
-
$metadata
|
|
2287
|
+
$metadata,
|
|
2281
2288
|
});
|
|
2282
2289
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2283
2290
|
}
|
|
@@ -2303,8 +2310,7 @@ const deserializeAws_restJson1CreatePublishingDestinationCommandError = async (o
|
|
|
2303
2310
|
body: await parseBody(output.body, context),
|
|
2304
2311
|
};
|
|
2305
2312
|
let response;
|
|
2306
|
-
|
|
2307
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
2314
|
switch (errorCode) {
|
|
2309
2315
|
case "BadRequestException":
|
|
2310
2316
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2314,10 +2320,12 @@ const deserializeAws_restJson1CreatePublishingDestinationCommandError = async (o
|
|
|
2314
2320
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2315
2321
|
default:
|
|
2316
2322
|
const parsedBody = parsedOutput.body;
|
|
2323
|
+
const $metadata = deserializeMetadata(output);
|
|
2324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2317
2325
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2319
2327
|
$fault: "client",
|
|
2320
|
-
$metadata
|
|
2328
|
+
$metadata,
|
|
2321
2329
|
});
|
|
2322
2330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2323
2331
|
}
|
|
@@ -2339,8 +2347,7 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
2339
2347
|
body: await parseBody(output.body, context),
|
|
2340
2348
|
};
|
|
2341
2349
|
let response;
|
|
2342
|
-
|
|
2343
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2351
|
switch (errorCode) {
|
|
2345
2352
|
case "BadRequestException":
|
|
2346
2353
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2350,10 +2357,12 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
2350
2357
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2351
2358
|
default:
|
|
2352
2359
|
const parsedBody = parsedOutput.body;
|
|
2360
|
+
const $metadata = deserializeMetadata(output);
|
|
2361
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2353
2362
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2354
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2363
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2355
2364
|
$fault: "client",
|
|
2356
|
-
$metadata
|
|
2365
|
+
$metadata,
|
|
2357
2366
|
});
|
|
2358
2367
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2359
2368
|
}
|
|
@@ -2379,8 +2388,7 @@ const deserializeAws_restJson1CreateThreatIntelSetCommandError = async (output,
|
|
|
2379
2388
|
body: await parseBody(output.body, context),
|
|
2380
2389
|
};
|
|
2381
2390
|
let response;
|
|
2382
|
-
|
|
2383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
2392
|
switch (errorCode) {
|
|
2385
2393
|
case "BadRequestException":
|
|
2386
2394
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2390,10 +2398,12 @@ const deserializeAws_restJson1CreateThreatIntelSetCommandError = async (output,
|
|
|
2390
2398
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2391
2399
|
default:
|
|
2392
2400
|
const parsedBody = parsedOutput.body;
|
|
2401
|
+
const $metadata = deserializeMetadata(output);
|
|
2402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2393
2403
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2394
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2395
2405
|
$fault: "client",
|
|
2396
|
-
$metadata
|
|
2406
|
+
$metadata,
|
|
2397
2407
|
});
|
|
2398
2408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2399
2409
|
}
|
|
@@ -2419,8 +2429,7 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
2419
2429
|
body: await parseBody(output.body, context),
|
|
2420
2430
|
};
|
|
2421
2431
|
let response;
|
|
2422
|
-
|
|
2423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2433
|
switch (errorCode) {
|
|
2425
2434
|
case "BadRequestException":
|
|
2426
2435
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2430,10 +2439,12 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
2430
2439
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2431
2440
|
default:
|
|
2432
2441
|
const parsedBody = parsedOutput.body;
|
|
2442
|
+
const $metadata = deserializeMetadata(output);
|
|
2443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2433
2444
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2434
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2435
2446
|
$fault: "client",
|
|
2436
|
-
$metadata
|
|
2447
|
+
$metadata,
|
|
2437
2448
|
});
|
|
2438
2449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2439
2450
|
}
|
|
@@ -2455,8 +2466,7 @@ const deserializeAws_restJson1DeleteDetectorCommandError = async (output, contex
|
|
|
2455
2466
|
body: await parseBody(output.body, context),
|
|
2456
2467
|
};
|
|
2457
2468
|
let response;
|
|
2458
|
-
|
|
2459
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2460
2470
|
switch (errorCode) {
|
|
2461
2471
|
case "BadRequestException":
|
|
2462
2472
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2466,10 +2476,12 @@ const deserializeAws_restJson1DeleteDetectorCommandError = async (output, contex
|
|
|
2466
2476
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2467
2477
|
default:
|
|
2468
2478
|
const parsedBody = parsedOutput.body;
|
|
2479
|
+
const $metadata = deserializeMetadata(output);
|
|
2480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2469
2481
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2471
2483
|
$fault: "client",
|
|
2472
|
-
$metadata
|
|
2484
|
+
$metadata,
|
|
2473
2485
|
});
|
|
2474
2486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2475
2487
|
}
|
|
@@ -2491,8 +2503,7 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
2491
2503
|
body: await parseBody(output.body, context),
|
|
2492
2504
|
};
|
|
2493
2505
|
let response;
|
|
2494
|
-
|
|
2495
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2506
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2496
2507
|
switch (errorCode) {
|
|
2497
2508
|
case "BadRequestException":
|
|
2498
2509
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2502,10 +2513,12 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
2502
2513
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2503
2514
|
default:
|
|
2504
2515
|
const parsedBody = parsedOutput.body;
|
|
2516
|
+
const $metadata = deserializeMetadata(output);
|
|
2517
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2505
2518
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2506
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2519
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2507
2520
|
$fault: "client",
|
|
2508
|
-
$metadata
|
|
2521
|
+
$metadata,
|
|
2509
2522
|
});
|
|
2510
2523
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2511
2524
|
}
|
|
@@ -2531,8 +2544,7 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2531
2544
|
body: await parseBody(output.body, context),
|
|
2532
2545
|
};
|
|
2533
2546
|
let response;
|
|
2534
|
-
|
|
2535
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
2548
|
switch (errorCode) {
|
|
2537
2549
|
case "BadRequestException":
|
|
2538
2550
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2542,10 +2554,12 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2542
2554
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2543
2555
|
default:
|
|
2544
2556
|
const parsedBody = parsedOutput.body;
|
|
2557
|
+
const $metadata = deserializeMetadata(output);
|
|
2558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2545
2559
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2546
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2547
2561
|
$fault: "client",
|
|
2548
|
-
$metadata
|
|
2562
|
+
$metadata,
|
|
2549
2563
|
});
|
|
2550
2564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2551
2565
|
}
|
|
@@ -2567,8 +2581,7 @@ const deserializeAws_restJson1DeleteIPSetCommandError = async (output, context)
|
|
|
2567
2581
|
body: await parseBody(output.body, context),
|
|
2568
2582
|
};
|
|
2569
2583
|
let response;
|
|
2570
|
-
|
|
2571
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
2585
|
switch (errorCode) {
|
|
2573
2586
|
case "BadRequestException":
|
|
2574
2587
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2578,10 +2591,12 @@ const deserializeAws_restJson1DeleteIPSetCommandError = async (output, context)
|
|
|
2578
2591
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2579
2592
|
default:
|
|
2580
2593
|
const parsedBody = parsedOutput.body;
|
|
2594
|
+
const $metadata = deserializeMetadata(output);
|
|
2595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2581
2596
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2583
2598
|
$fault: "client",
|
|
2584
|
-
$metadata
|
|
2599
|
+
$metadata,
|
|
2585
2600
|
});
|
|
2586
2601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2587
2602
|
}
|
|
@@ -2607,8 +2622,7 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
2607
2622
|
body: await parseBody(output.body, context),
|
|
2608
2623
|
};
|
|
2609
2624
|
let response;
|
|
2610
|
-
|
|
2611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
2626
|
switch (errorCode) {
|
|
2613
2627
|
case "BadRequestException":
|
|
2614
2628
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2618,10 +2632,12 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
2618
2632
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2619
2633
|
default:
|
|
2620
2634
|
const parsedBody = parsedOutput.body;
|
|
2635
|
+
const $metadata = deserializeMetadata(output);
|
|
2636
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2621
2637
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2638
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2623
2639
|
$fault: "client",
|
|
2624
|
-
$metadata
|
|
2640
|
+
$metadata,
|
|
2625
2641
|
});
|
|
2626
2642
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2627
2643
|
}
|
|
@@ -2643,8 +2659,7 @@ const deserializeAws_restJson1DeletePublishingDestinationCommandError = async (o
|
|
|
2643
2659
|
body: await parseBody(output.body, context),
|
|
2644
2660
|
};
|
|
2645
2661
|
let response;
|
|
2646
|
-
|
|
2647
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
2663
|
switch (errorCode) {
|
|
2649
2664
|
case "BadRequestException":
|
|
2650
2665
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2654,10 +2669,12 @@ const deserializeAws_restJson1DeletePublishingDestinationCommandError = async (o
|
|
|
2654
2669
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2655
2670
|
default:
|
|
2656
2671
|
const parsedBody = parsedOutput.body;
|
|
2672
|
+
const $metadata = deserializeMetadata(output);
|
|
2673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2657
2674
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2658
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2659
2676
|
$fault: "client",
|
|
2660
|
-
$metadata
|
|
2677
|
+
$metadata,
|
|
2661
2678
|
});
|
|
2662
2679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2663
2680
|
}
|
|
@@ -2679,8 +2696,7 @@ const deserializeAws_restJson1DeleteThreatIntelSetCommandError = async (output,
|
|
|
2679
2696
|
body: await parseBody(output.body, context),
|
|
2680
2697
|
};
|
|
2681
2698
|
let response;
|
|
2682
|
-
|
|
2683
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2684
2700
|
switch (errorCode) {
|
|
2685
2701
|
case "BadRequestException":
|
|
2686
2702
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2690,10 +2706,12 @@ const deserializeAws_restJson1DeleteThreatIntelSetCommandError = async (output,
|
|
|
2690
2706
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2691
2707
|
default:
|
|
2692
2708
|
const parsedBody = parsedOutput.body;
|
|
2709
|
+
const $metadata = deserializeMetadata(output);
|
|
2710
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2693
2711
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2712
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2695
2713
|
$fault: "client",
|
|
2696
|
-
$metadata
|
|
2714
|
+
$metadata,
|
|
2697
2715
|
});
|
|
2698
2716
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2699
2717
|
}
|
|
@@ -2727,8 +2745,7 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2727
2745
|
body: await parseBody(output.body, context),
|
|
2728
2746
|
};
|
|
2729
2747
|
let response;
|
|
2730
|
-
|
|
2731
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2748
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
2749
|
switch (errorCode) {
|
|
2733
2750
|
case "BadRequestException":
|
|
2734
2751
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2738,10 +2755,12 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2738
2755
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2739
2756
|
default:
|
|
2740
2757
|
const parsedBody = parsedOutput.body;
|
|
2758
|
+
const $metadata = deserializeMetadata(output);
|
|
2759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2741
2760
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2743
2762
|
$fault: "client",
|
|
2744
|
-
$metadata
|
|
2763
|
+
$metadata,
|
|
2745
2764
|
});
|
|
2746
2765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2747
2766
|
}
|
|
@@ -2783,8 +2802,7 @@ const deserializeAws_restJson1DescribePublishingDestinationCommandError = async
|
|
|
2783
2802
|
body: await parseBody(output.body, context),
|
|
2784
2803
|
};
|
|
2785
2804
|
let response;
|
|
2786
|
-
|
|
2787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
2806
|
switch (errorCode) {
|
|
2789
2807
|
case "BadRequestException":
|
|
2790
2808
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2794,10 +2812,12 @@ const deserializeAws_restJson1DescribePublishingDestinationCommandError = async
|
|
|
2794
2812
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2795
2813
|
default:
|
|
2796
2814
|
const parsedBody = parsedOutput.body;
|
|
2815
|
+
const $metadata = deserializeMetadata(output);
|
|
2816
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2797
2817
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2798
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2818
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2799
2819
|
$fault: "client",
|
|
2800
|
-
$metadata
|
|
2820
|
+
$metadata,
|
|
2801
2821
|
});
|
|
2802
2822
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2803
2823
|
}
|
|
@@ -2819,8 +2839,7 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2819
2839
|
body: await parseBody(output.body, context),
|
|
2820
2840
|
};
|
|
2821
2841
|
let response;
|
|
2822
|
-
|
|
2823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2824
2843
|
switch (errorCode) {
|
|
2825
2844
|
case "BadRequestException":
|
|
2826
2845
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2830,10 +2849,12 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2830
2849
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2831
2850
|
default:
|
|
2832
2851
|
const parsedBody = parsedOutput.body;
|
|
2852
|
+
const $metadata = deserializeMetadata(output);
|
|
2853
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2833
2854
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2834
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2855
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2835
2856
|
$fault: "client",
|
|
2836
|
-
$metadata
|
|
2857
|
+
$metadata,
|
|
2837
2858
|
});
|
|
2838
2859
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2839
2860
|
}
|
|
@@ -2855,8 +2876,7 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2855
2876
|
body: await parseBody(output.body, context),
|
|
2856
2877
|
};
|
|
2857
2878
|
let response;
|
|
2858
|
-
|
|
2859
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2879
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2860
2880
|
switch (errorCode) {
|
|
2861
2881
|
case "BadRequestException":
|
|
2862
2882
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2866,10 +2886,12 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2866
2886
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2867
2887
|
default:
|
|
2868
2888
|
const parsedBody = parsedOutput.body;
|
|
2889
|
+
const $metadata = deserializeMetadata(output);
|
|
2890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2869
2891
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2870
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2871
2893
|
$fault: "client",
|
|
2872
|
-
$metadata
|
|
2894
|
+
$metadata,
|
|
2873
2895
|
});
|
|
2874
2896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2875
2897
|
}
|
|
@@ -2891,8 +2913,7 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2891
2913
|
body: await parseBody(output.body, context),
|
|
2892
2914
|
};
|
|
2893
2915
|
let response;
|
|
2894
|
-
|
|
2895
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2916
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2896
2917
|
switch (errorCode) {
|
|
2897
2918
|
case "BadRequestException":
|
|
2898
2919
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2902,10 +2923,12 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2902
2923
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2903
2924
|
default:
|
|
2904
2925
|
const parsedBody = parsedOutput.body;
|
|
2926
|
+
const $metadata = deserializeMetadata(output);
|
|
2927
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2905
2928
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2906
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2929
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2907
2930
|
$fault: "client",
|
|
2908
|
-
$metadata
|
|
2931
|
+
$metadata,
|
|
2909
2932
|
});
|
|
2910
2933
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2911
2934
|
}
|
|
@@ -2931,8 +2954,7 @@ const deserializeAws_restJson1DisassociateMembersCommandError = async (output, c
|
|
|
2931
2954
|
body: await parseBody(output.body, context),
|
|
2932
2955
|
};
|
|
2933
2956
|
let response;
|
|
2934
|
-
|
|
2935
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2936
2958
|
switch (errorCode) {
|
|
2937
2959
|
case "BadRequestException":
|
|
2938
2960
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2942,10 +2964,12 @@ const deserializeAws_restJson1DisassociateMembersCommandError = async (output, c
|
|
|
2942
2964
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2943
2965
|
default:
|
|
2944
2966
|
const parsedBody = parsedOutput.body;
|
|
2967
|
+
const $metadata = deserializeMetadata(output);
|
|
2968
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2945
2969
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2970
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2947
2971
|
$fault: "client",
|
|
2948
|
-
$metadata
|
|
2972
|
+
$metadata,
|
|
2949
2973
|
});
|
|
2950
2974
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2951
2975
|
}
|
|
@@ -2967,8 +2991,7 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2967
2991
|
body: await parseBody(output.body, context),
|
|
2968
2992
|
};
|
|
2969
2993
|
let response;
|
|
2970
|
-
|
|
2971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
2995
|
switch (errorCode) {
|
|
2973
2996
|
case "BadRequestException":
|
|
2974
2997
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2978,10 +3001,12 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2978
3001
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2979
3002
|
default:
|
|
2980
3003
|
const parsedBody = parsedOutput.body;
|
|
3004
|
+
const $metadata = deserializeMetadata(output);
|
|
3005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2981
3006
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2982
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2983
3008
|
$fault: "client",
|
|
2984
|
-
$metadata
|
|
3009
|
+
$metadata,
|
|
2985
3010
|
});
|
|
2986
3011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2987
3012
|
}
|
|
@@ -3007,8 +3032,7 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
3007
3032
|
body: await parseBody(output.body, context),
|
|
3008
3033
|
};
|
|
3009
3034
|
let response;
|
|
3010
|
-
|
|
3011
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3012
3036
|
switch (errorCode) {
|
|
3013
3037
|
case "BadRequestException":
|
|
3014
3038
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3018,10 +3042,12 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
3018
3042
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3019
3043
|
default:
|
|
3020
3044
|
const parsedBody = parsedOutput.body;
|
|
3045
|
+
const $metadata = deserializeMetadata(output);
|
|
3046
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3021
3047
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3022
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3048
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3023
3049
|
$fault: "client",
|
|
3024
|
-
$metadata
|
|
3050
|
+
$metadata,
|
|
3025
3051
|
});
|
|
3026
3052
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3027
3053
|
}
|
|
@@ -3071,8 +3097,7 @@ const deserializeAws_restJson1GetDetectorCommandError = async (output, context)
|
|
|
3071
3097
|
body: await parseBody(output.body, context),
|
|
3072
3098
|
};
|
|
3073
3099
|
let response;
|
|
3074
|
-
|
|
3075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3100
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3076
3101
|
switch (errorCode) {
|
|
3077
3102
|
case "BadRequestException":
|
|
3078
3103
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3082,10 +3107,12 @@ const deserializeAws_restJson1GetDetectorCommandError = async (output, context)
|
|
|
3082
3107
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3083
3108
|
default:
|
|
3084
3109
|
const parsedBody = parsedOutput.body;
|
|
3110
|
+
const $metadata = deserializeMetadata(output);
|
|
3111
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3085
3112
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3086
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3113
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3087
3114
|
$fault: "client",
|
|
3088
|
-
$metadata
|
|
3115
|
+
$metadata,
|
|
3089
3116
|
});
|
|
3090
3117
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3091
3118
|
}
|
|
@@ -3131,8 +3158,7 @@ const deserializeAws_restJson1GetFilterCommandError = async (output, context) =>
|
|
|
3131
3158
|
body: await parseBody(output.body, context),
|
|
3132
3159
|
};
|
|
3133
3160
|
let response;
|
|
3134
|
-
|
|
3135
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3136
3162
|
switch (errorCode) {
|
|
3137
3163
|
case "BadRequestException":
|
|
3138
3164
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3142,10 +3168,12 @@ const deserializeAws_restJson1GetFilterCommandError = async (output, context) =>
|
|
|
3142
3168
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3143
3169
|
default:
|
|
3144
3170
|
const parsedBody = parsedOutput.body;
|
|
3171
|
+
const $metadata = deserializeMetadata(output);
|
|
3172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3145
3173
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3147
3175
|
$fault: "client",
|
|
3148
|
-
$metadata
|
|
3176
|
+
$metadata,
|
|
3149
3177
|
});
|
|
3150
3178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3151
3179
|
}
|
|
@@ -3171,8 +3199,7 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3171
3199
|
body: await parseBody(output.body, context),
|
|
3172
3200
|
};
|
|
3173
3201
|
let response;
|
|
3174
|
-
|
|
3175
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3202
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3176
3203
|
switch (errorCode) {
|
|
3177
3204
|
case "BadRequestException":
|
|
3178
3205
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3182,10 +3209,12 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3182
3209
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3183
3210
|
default:
|
|
3184
3211
|
const parsedBody = parsedOutput.body;
|
|
3212
|
+
const $metadata = deserializeMetadata(output);
|
|
3213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3185
3214
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3187
3216
|
$fault: "client",
|
|
3188
|
-
$metadata
|
|
3217
|
+
$metadata,
|
|
3189
3218
|
});
|
|
3190
3219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3191
3220
|
}
|
|
@@ -3211,8 +3240,7 @@ const deserializeAws_restJson1GetFindingsStatisticsCommandError = async (output,
|
|
|
3211
3240
|
body: await parseBody(output.body, context),
|
|
3212
3241
|
};
|
|
3213
3242
|
let response;
|
|
3214
|
-
|
|
3215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3243
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3216
3244
|
switch (errorCode) {
|
|
3217
3245
|
case "BadRequestException":
|
|
3218
3246
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3222,10 +3250,12 @@ const deserializeAws_restJson1GetFindingsStatisticsCommandError = async (output,
|
|
|
3222
3250
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3223
3251
|
default:
|
|
3224
3252
|
const parsedBody = parsedOutput.body;
|
|
3253
|
+
const $metadata = deserializeMetadata(output);
|
|
3254
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3225
3255
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3226
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3256
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3227
3257
|
$fault: "client",
|
|
3228
|
-
$metadata
|
|
3258
|
+
$metadata,
|
|
3229
3259
|
});
|
|
3230
3260
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3231
3261
|
}
|
|
@@ -3251,8 +3281,7 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3251
3281
|
body: await parseBody(output.body, context),
|
|
3252
3282
|
};
|
|
3253
3283
|
let response;
|
|
3254
|
-
|
|
3255
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3284
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3256
3285
|
switch (errorCode) {
|
|
3257
3286
|
case "BadRequestException":
|
|
3258
3287
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3262,10 +3291,12 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3262
3291
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3263
3292
|
default:
|
|
3264
3293
|
const parsedBody = parsedOutput.body;
|
|
3294
|
+
const $metadata = deserializeMetadata(output);
|
|
3295
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3265
3296
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3266
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3267
3298
|
$fault: "client",
|
|
3268
|
-
$metadata
|
|
3299
|
+
$metadata,
|
|
3269
3300
|
});
|
|
3270
3301
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3271
3302
|
}
|
|
@@ -3307,8 +3338,7 @@ const deserializeAws_restJson1GetIPSetCommandError = async (output, context) =>
|
|
|
3307
3338
|
body: await parseBody(output.body, context),
|
|
3308
3339
|
};
|
|
3309
3340
|
let response;
|
|
3310
|
-
|
|
3311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3341
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3312
3342
|
switch (errorCode) {
|
|
3313
3343
|
case "BadRequestException":
|
|
3314
3344
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3318,10 +3348,12 @@ const deserializeAws_restJson1GetIPSetCommandError = async (output, context) =>
|
|
|
3318
3348
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3319
3349
|
default:
|
|
3320
3350
|
const parsedBody = parsedOutput.body;
|
|
3351
|
+
const $metadata = deserializeMetadata(output);
|
|
3352
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3321
3353
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3322
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3323
3355
|
$fault: "client",
|
|
3324
|
-
$metadata
|
|
3356
|
+
$metadata,
|
|
3325
3357
|
});
|
|
3326
3358
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3327
3359
|
}
|
|
@@ -3347,8 +3379,7 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3347
3379
|
body: await parseBody(output.body, context),
|
|
3348
3380
|
};
|
|
3349
3381
|
let response;
|
|
3350
|
-
|
|
3351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3352
3383
|
switch (errorCode) {
|
|
3353
3384
|
case "BadRequestException":
|
|
3354
3385
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3358,10 +3389,12 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3358
3389
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3359
3390
|
default:
|
|
3360
3391
|
const parsedBody = parsedOutput.body;
|
|
3392
|
+
const $metadata = deserializeMetadata(output);
|
|
3393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3361
3394
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3363
3396
|
$fault: "client",
|
|
3364
|
-
$metadata
|
|
3397
|
+
$metadata,
|
|
3365
3398
|
});
|
|
3366
3399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3367
3400
|
}
|
|
@@ -3391,8 +3424,7 @@ const deserializeAws_restJson1GetMemberDetectorsCommandError = async (output, co
|
|
|
3391
3424
|
body: await parseBody(output.body, context),
|
|
3392
3425
|
};
|
|
3393
3426
|
let response;
|
|
3394
|
-
|
|
3395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3427
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
3428
|
switch (errorCode) {
|
|
3397
3429
|
case "BadRequestException":
|
|
3398
3430
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3402,10 +3434,12 @@ const deserializeAws_restJson1GetMemberDetectorsCommandError = async (output, co
|
|
|
3402
3434
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3403
3435
|
default:
|
|
3404
3436
|
const parsedBody = parsedOutput.body;
|
|
3437
|
+
const $metadata = deserializeMetadata(output);
|
|
3438
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3405
3439
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3440
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3407
3441
|
$fault: "client",
|
|
3408
|
-
$metadata
|
|
3442
|
+
$metadata,
|
|
3409
3443
|
});
|
|
3410
3444
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3411
3445
|
}
|
|
@@ -3435,8 +3469,7 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
3435
3469
|
body: await parseBody(output.body, context),
|
|
3436
3470
|
};
|
|
3437
3471
|
let response;
|
|
3438
|
-
|
|
3439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3440
3473
|
switch (errorCode) {
|
|
3441
3474
|
case "BadRequestException":
|
|
3442
3475
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3446,10 +3479,12 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
3446
3479
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3447
3480
|
default:
|
|
3448
3481
|
const parsedBody = parsedOutput.body;
|
|
3482
|
+
const $metadata = deserializeMetadata(output);
|
|
3483
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3449
3484
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3450
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3451
3486
|
$fault: "client",
|
|
3452
|
-
$metadata
|
|
3487
|
+
$metadata,
|
|
3453
3488
|
});
|
|
3454
3489
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3455
3490
|
}
|
|
@@ -3479,8 +3514,7 @@ const deserializeAws_restJson1GetRemainingFreeTrialDaysCommandError = async (out
|
|
|
3479
3514
|
body: await parseBody(output.body, context),
|
|
3480
3515
|
};
|
|
3481
3516
|
let response;
|
|
3482
|
-
|
|
3483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3517
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3484
3518
|
switch (errorCode) {
|
|
3485
3519
|
case "BadRequestException":
|
|
3486
3520
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3490,10 +3524,12 @@ const deserializeAws_restJson1GetRemainingFreeTrialDaysCommandError = async (out
|
|
|
3490
3524
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3491
3525
|
default:
|
|
3492
3526
|
const parsedBody = parsedOutput.body;
|
|
3527
|
+
const $metadata = deserializeMetadata(output);
|
|
3528
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3493
3529
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3495
3531
|
$fault: "client",
|
|
3496
|
-
$metadata
|
|
3532
|
+
$metadata,
|
|
3497
3533
|
});
|
|
3498
3534
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3499
3535
|
}
|
|
@@ -3535,8 +3571,7 @@ const deserializeAws_restJson1GetThreatIntelSetCommandError = async (output, con
|
|
|
3535
3571
|
body: await parseBody(output.body, context),
|
|
3536
3572
|
};
|
|
3537
3573
|
let response;
|
|
3538
|
-
|
|
3539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3574
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
3575
|
switch (errorCode) {
|
|
3541
3576
|
case "BadRequestException":
|
|
3542
3577
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3546,10 +3581,12 @@ const deserializeAws_restJson1GetThreatIntelSetCommandError = async (output, con
|
|
|
3546
3581
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3547
3582
|
default:
|
|
3548
3583
|
const parsedBody = parsedOutput.body;
|
|
3584
|
+
const $metadata = deserializeMetadata(output);
|
|
3585
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3549
3586
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3587
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3551
3588
|
$fault: "client",
|
|
3552
|
-
$metadata
|
|
3589
|
+
$metadata,
|
|
3553
3590
|
});
|
|
3554
3591
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3555
3592
|
}
|
|
@@ -3579,8 +3616,7 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3579
3616
|
body: await parseBody(output.body, context),
|
|
3580
3617
|
};
|
|
3581
3618
|
let response;
|
|
3582
|
-
|
|
3583
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3619
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3584
3620
|
switch (errorCode) {
|
|
3585
3621
|
case "BadRequestException":
|
|
3586
3622
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3590,10 +3626,12 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3590
3626
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3591
3627
|
default:
|
|
3592
3628
|
const parsedBody = parsedOutput.body;
|
|
3629
|
+
const $metadata = deserializeMetadata(output);
|
|
3630
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3593
3631
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3595
3633
|
$fault: "client",
|
|
3596
|
-
$metadata
|
|
3634
|
+
$metadata,
|
|
3597
3635
|
});
|
|
3598
3636
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3599
3637
|
}
|
|
@@ -3619,8 +3657,7 @@ const deserializeAws_restJson1InviteMembersCommandError = async (output, context
|
|
|
3619
3657
|
body: await parseBody(output.body, context),
|
|
3620
3658
|
};
|
|
3621
3659
|
let response;
|
|
3622
|
-
|
|
3623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3660
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3624
3661
|
switch (errorCode) {
|
|
3625
3662
|
case "BadRequestException":
|
|
3626
3663
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3630,10 +3667,12 @@ const deserializeAws_restJson1InviteMembersCommandError = async (output, context
|
|
|
3630
3667
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3631
3668
|
default:
|
|
3632
3669
|
const parsedBody = parsedOutput.body;
|
|
3670
|
+
const $metadata = deserializeMetadata(output);
|
|
3671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3633
3672
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3634
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3635
3674
|
$fault: "client",
|
|
3636
|
-
$metadata
|
|
3675
|
+
$metadata,
|
|
3637
3676
|
});
|
|
3638
3677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3639
3678
|
}
|
|
@@ -3663,8 +3702,7 @@ const deserializeAws_restJson1ListDetectorsCommandError = async (output, context
|
|
|
3663
3702
|
body: await parseBody(output.body, context),
|
|
3664
3703
|
};
|
|
3665
3704
|
let response;
|
|
3666
|
-
|
|
3667
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3705
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3668
3706
|
switch (errorCode) {
|
|
3669
3707
|
case "BadRequestException":
|
|
3670
3708
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3674,10 +3712,12 @@ const deserializeAws_restJson1ListDetectorsCommandError = async (output, context
|
|
|
3674
3712
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3675
3713
|
default:
|
|
3676
3714
|
const parsedBody = parsedOutput.body;
|
|
3715
|
+
const $metadata = deserializeMetadata(output);
|
|
3716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3677
3717
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3678
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3679
3719
|
$fault: "client",
|
|
3680
|
-
$metadata
|
|
3720
|
+
$metadata,
|
|
3681
3721
|
});
|
|
3682
3722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3683
3723
|
}
|
|
@@ -3707,8 +3747,7 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
3707
3747
|
body: await parseBody(output.body, context),
|
|
3708
3748
|
};
|
|
3709
3749
|
let response;
|
|
3710
|
-
|
|
3711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3712
3751
|
switch (errorCode) {
|
|
3713
3752
|
case "BadRequestException":
|
|
3714
3753
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3718,10 +3757,12 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
3718
3757
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3719
3758
|
default:
|
|
3720
3759
|
const parsedBody = parsedOutput.body;
|
|
3760
|
+
const $metadata = deserializeMetadata(output);
|
|
3761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3721
3762
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3723
3764
|
$fault: "client",
|
|
3724
|
-
$metadata
|
|
3765
|
+
$metadata,
|
|
3725
3766
|
});
|
|
3726
3767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3727
3768
|
}
|
|
@@ -3751,8 +3792,7 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3751
3792
|
body: await parseBody(output.body, context),
|
|
3752
3793
|
};
|
|
3753
3794
|
let response;
|
|
3754
|
-
|
|
3755
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3795
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3756
3796
|
switch (errorCode) {
|
|
3757
3797
|
case "BadRequestException":
|
|
3758
3798
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3762,10 +3802,12 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3762
3802
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3763
3803
|
default:
|
|
3764
3804
|
const parsedBody = parsedOutput.body;
|
|
3805
|
+
const $metadata = deserializeMetadata(output);
|
|
3806
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3765
3807
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3808
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3767
3809
|
$fault: "client",
|
|
3768
|
-
$metadata
|
|
3810
|
+
$metadata,
|
|
3769
3811
|
});
|
|
3770
3812
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3771
3813
|
}
|
|
@@ -3795,8 +3837,7 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3795
3837
|
body: await parseBody(output.body, context),
|
|
3796
3838
|
};
|
|
3797
3839
|
let response;
|
|
3798
|
-
|
|
3799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3800
3841
|
switch (errorCode) {
|
|
3801
3842
|
case "BadRequestException":
|
|
3802
3843
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3806,10 +3847,12 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3806
3847
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3807
3848
|
default:
|
|
3808
3849
|
const parsedBody = parsedOutput.body;
|
|
3850
|
+
const $metadata = deserializeMetadata(output);
|
|
3851
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3809
3852
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3853
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3811
3854
|
$fault: "client",
|
|
3812
|
-
$metadata
|
|
3855
|
+
$metadata,
|
|
3813
3856
|
});
|
|
3814
3857
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3815
3858
|
}
|
|
@@ -3839,8 +3882,7 @@ const deserializeAws_restJson1ListIPSetsCommandError = async (output, context) =
|
|
|
3839
3882
|
body: await parseBody(output.body, context),
|
|
3840
3883
|
};
|
|
3841
3884
|
let response;
|
|
3842
|
-
|
|
3843
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3885
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3844
3886
|
switch (errorCode) {
|
|
3845
3887
|
case "BadRequestException":
|
|
3846
3888
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3850,10 +3892,12 @@ const deserializeAws_restJson1ListIPSetsCommandError = async (output, context) =
|
|
|
3850
3892
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3851
3893
|
default:
|
|
3852
3894
|
const parsedBody = parsedOutput.body;
|
|
3895
|
+
const $metadata = deserializeMetadata(output);
|
|
3896
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3853
3897
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3855
3899
|
$fault: "client",
|
|
3856
|
-
$metadata
|
|
3900
|
+
$metadata,
|
|
3857
3901
|
});
|
|
3858
3902
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3859
3903
|
}
|
|
@@ -3883,8 +3927,7 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
3883
3927
|
body: await parseBody(output.body, context),
|
|
3884
3928
|
};
|
|
3885
3929
|
let response;
|
|
3886
|
-
|
|
3887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3930
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3888
3931
|
switch (errorCode) {
|
|
3889
3932
|
case "BadRequestException":
|
|
3890
3933
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3894,10 +3937,12 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
3894
3937
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3895
3938
|
default:
|
|
3896
3939
|
const parsedBody = parsedOutput.body;
|
|
3940
|
+
const $metadata = deserializeMetadata(output);
|
|
3941
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3897
3942
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3943
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3899
3944
|
$fault: "client",
|
|
3900
|
-
$metadata
|
|
3945
|
+
$metadata,
|
|
3901
3946
|
});
|
|
3902
3947
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3903
3948
|
}
|
|
@@ -3927,8 +3972,7 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
3927
3972
|
body: await parseBody(output.body, context),
|
|
3928
3973
|
};
|
|
3929
3974
|
let response;
|
|
3930
|
-
|
|
3931
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3932
3976
|
switch (errorCode) {
|
|
3933
3977
|
case "BadRequestException":
|
|
3934
3978
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3938,10 +3982,12 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
3938
3982
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3939
3983
|
default:
|
|
3940
3984
|
const parsedBody = parsedOutput.body;
|
|
3985
|
+
const $metadata = deserializeMetadata(output);
|
|
3986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3941
3987
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3942
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3943
3989
|
$fault: "client",
|
|
3944
|
-
$metadata
|
|
3990
|
+
$metadata,
|
|
3945
3991
|
});
|
|
3946
3992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3947
3993
|
}
|
|
@@ -3971,8 +4017,7 @@ const deserializeAws_restJson1ListPublishingDestinationsCommandError = async (ou
|
|
|
3971
4017
|
body: await parseBody(output.body, context),
|
|
3972
4018
|
};
|
|
3973
4019
|
let response;
|
|
3974
|
-
|
|
3975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4020
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3976
4021
|
switch (errorCode) {
|
|
3977
4022
|
case "BadRequestException":
|
|
3978
4023
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3982,10 +4027,12 @@ const deserializeAws_restJson1ListPublishingDestinationsCommandError = async (ou
|
|
|
3982
4027
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3983
4028
|
default:
|
|
3984
4029
|
const parsedBody = parsedOutput.body;
|
|
4030
|
+
const $metadata = deserializeMetadata(output);
|
|
4031
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3985
4032
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4033
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3987
4034
|
$fault: "client",
|
|
3988
|
-
$metadata
|
|
4035
|
+
$metadata,
|
|
3989
4036
|
});
|
|
3990
4037
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3991
4038
|
}
|
|
@@ -4011,8 +4058,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4011
4058
|
body: await parseBody(output.body, context),
|
|
4012
4059
|
};
|
|
4013
4060
|
let response;
|
|
4014
|
-
|
|
4015
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4016
4062
|
switch (errorCode) {
|
|
4017
4063
|
case "BadRequestException":
|
|
4018
4064
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4022,10 +4068,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4022
4068
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4023
4069
|
default:
|
|
4024
4070
|
const parsedBody = parsedOutput.body;
|
|
4071
|
+
const $metadata = deserializeMetadata(output);
|
|
4072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4025
4073
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4026
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4027
4075
|
$fault: "client",
|
|
4028
|
-
$metadata
|
|
4076
|
+
$metadata,
|
|
4029
4077
|
});
|
|
4030
4078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4031
4079
|
}
|
|
@@ -4055,8 +4103,7 @@ const deserializeAws_restJson1ListThreatIntelSetsCommandError = async (output, c
|
|
|
4055
4103
|
body: await parseBody(output.body, context),
|
|
4056
4104
|
};
|
|
4057
4105
|
let response;
|
|
4058
|
-
|
|
4059
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4060
4107
|
switch (errorCode) {
|
|
4061
4108
|
case "BadRequestException":
|
|
4062
4109
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4066,10 +4113,12 @@ const deserializeAws_restJson1ListThreatIntelSetsCommandError = async (output, c
|
|
|
4066
4113
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4067
4114
|
default:
|
|
4068
4115
|
const parsedBody = parsedOutput.body;
|
|
4116
|
+
const $metadata = deserializeMetadata(output);
|
|
4117
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4069
4118
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4070
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4071
4120
|
$fault: "client",
|
|
4072
|
-
$metadata
|
|
4121
|
+
$metadata,
|
|
4073
4122
|
});
|
|
4074
4123
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4075
4124
|
}
|
|
@@ -4095,8 +4144,7 @@ const deserializeAws_restJson1StartMonitoringMembersCommandError = async (output
|
|
|
4095
4144
|
body: await parseBody(output.body, context),
|
|
4096
4145
|
};
|
|
4097
4146
|
let response;
|
|
4098
|
-
|
|
4099
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4100
4148
|
switch (errorCode) {
|
|
4101
4149
|
case "BadRequestException":
|
|
4102
4150
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4106,10 +4154,12 @@ const deserializeAws_restJson1StartMonitoringMembersCommandError = async (output
|
|
|
4106
4154
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4107
4155
|
default:
|
|
4108
4156
|
const parsedBody = parsedOutput.body;
|
|
4157
|
+
const $metadata = deserializeMetadata(output);
|
|
4158
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4109
4159
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4110
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4160
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4111
4161
|
$fault: "client",
|
|
4112
|
-
$metadata
|
|
4162
|
+
$metadata,
|
|
4113
4163
|
});
|
|
4114
4164
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4115
4165
|
}
|
|
@@ -4135,8 +4185,7 @@ const deserializeAws_restJson1StopMonitoringMembersCommandError = async (output,
|
|
|
4135
4185
|
body: await parseBody(output.body, context),
|
|
4136
4186
|
};
|
|
4137
4187
|
let response;
|
|
4138
|
-
|
|
4139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4140
4189
|
switch (errorCode) {
|
|
4141
4190
|
case "BadRequestException":
|
|
4142
4191
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4146,10 +4195,12 @@ const deserializeAws_restJson1StopMonitoringMembersCommandError = async (output,
|
|
|
4146
4195
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4147
4196
|
default:
|
|
4148
4197
|
const parsedBody = parsedOutput.body;
|
|
4198
|
+
const $metadata = deserializeMetadata(output);
|
|
4199
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4149
4200
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4150
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4201
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4151
4202
|
$fault: "client",
|
|
4152
|
-
$metadata
|
|
4203
|
+
$metadata,
|
|
4153
4204
|
});
|
|
4154
4205
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4155
4206
|
}
|
|
@@ -4171,8 +4222,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4171
4222
|
body: await parseBody(output.body, context),
|
|
4172
4223
|
};
|
|
4173
4224
|
let response;
|
|
4174
|
-
|
|
4175
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4176
4226
|
switch (errorCode) {
|
|
4177
4227
|
case "BadRequestException":
|
|
4178
4228
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4182,10 +4232,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4182
4232
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4183
4233
|
default:
|
|
4184
4234
|
const parsedBody = parsedOutput.body;
|
|
4235
|
+
const $metadata = deserializeMetadata(output);
|
|
4236
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4185
4237
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4238
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4187
4239
|
$fault: "client",
|
|
4188
|
-
$metadata
|
|
4240
|
+
$metadata,
|
|
4189
4241
|
});
|
|
4190
4242
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4191
4243
|
}
|
|
@@ -4207,8 +4259,7 @@ const deserializeAws_restJson1UnarchiveFindingsCommandError = async (output, con
|
|
|
4207
4259
|
body: await parseBody(output.body, context),
|
|
4208
4260
|
};
|
|
4209
4261
|
let response;
|
|
4210
|
-
|
|
4211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4212
4263
|
switch (errorCode) {
|
|
4213
4264
|
case "BadRequestException":
|
|
4214
4265
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4218,10 +4269,12 @@ const deserializeAws_restJson1UnarchiveFindingsCommandError = async (output, con
|
|
|
4218
4269
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4219
4270
|
default:
|
|
4220
4271
|
const parsedBody = parsedOutput.body;
|
|
4272
|
+
const $metadata = deserializeMetadata(output);
|
|
4273
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4221
4274
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4222
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4223
4276
|
$fault: "client",
|
|
4224
|
-
$metadata
|
|
4277
|
+
$metadata,
|
|
4225
4278
|
});
|
|
4226
4279
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4227
4280
|
}
|
|
@@ -4243,8 +4296,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4243
4296
|
body: await parseBody(output.body, context),
|
|
4244
4297
|
};
|
|
4245
4298
|
let response;
|
|
4246
|
-
|
|
4247
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4248
4300
|
switch (errorCode) {
|
|
4249
4301
|
case "BadRequestException":
|
|
4250
4302
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4254,10 +4306,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4254
4306
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4255
4307
|
default:
|
|
4256
4308
|
const parsedBody = parsedOutput.body;
|
|
4309
|
+
const $metadata = deserializeMetadata(output);
|
|
4310
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4257
4311
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4312
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4259
4313
|
$fault: "client",
|
|
4260
|
-
$metadata
|
|
4314
|
+
$metadata,
|
|
4261
4315
|
});
|
|
4262
4316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4263
4317
|
}
|
|
@@ -4279,8 +4333,7 @@ const deserializeAws_restJson1UpdateDetectorCommandError = async (output, contex
|
|
|
4279
4333
|
body: await parseBody(output.body, context),
|
|
4280
4334
|
};
|
|
4281
4335
|
let response;
|
|
4282
|
-
|
|
4283
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4336
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4284
4337
|
switch (errorCode) {
|
|
4285
4338
|
case "BadRequestException":
|
|
4286
4339
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4290,10 +4343,12 @@ const deserializeAws_restJson1UpdateDetectorCommandError = async (output, contex
|
|
|
4290
4343
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4291
4344
|
default:
|
|
4292
4345
|
const parsedBody = parsedOutput.body;
|
|
4346
|
+
const $metadata = deserializeMetadata(output);
|
|
4347
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4293
4348
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4349
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4295
4350
|
$fault: "client",
|
|
4296
|
-
$metadata
|
|
4351
|
+
$metadata,
|
|
4297
4352
|
});
|
|
4298
4353
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4299
4354
|
}
|
|
@@ -4319,8 +4374,7 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
4319
4374
|
body: await parseBody(output.body, context),
|
|
4320
4375
|
};
|
|
4321
4376
|
let response;
|
|
4322
|
-
|
|
4323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4377
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4324
4378
|
switch (errorCode) {
|
|
4325
4379
|
case "BadRequestException":
|
|
4326
4380
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4330,10 +4384,12 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
4330
4384
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4331
4385
|
default:
|
|
4332
4386
|
const parsedBody = parsedOutput.body;
|
|
4387
|
+
const $metadata = deserializeMetadata(output);
|
|
4388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4333
4389
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4334
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4335
4391
|
$fault: "client",
|
|
4336
|
-
$metadata
|
|
4392
|
+
$metadata,
|
|
4337
4393
|
});
|
|
4338
4394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4339
4395
|
}
|
|
@@ -4355,8 +4411,7 @@ const deserializeAws_restJson1UpdateFindingsFeedbackCommandError = async (output
|
|
|
4355
4411
|
body: await parseBody(output.body, context),
|
|
4356
4412
|
};
|
|
4357
4413
|
let response;
|
|
4358
|
-
|
|
4359
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4360
4415
|
switch (errorCode) {
|
|
4361
4416
|
case "BadRequestException":
|
|
4362
4417
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4366,10 +4421,12 @@ const deserializeAws_restJson1UpdateFindingsFeedbackCommandError = async (output
|
|
|
4366
4421
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4367
4422
|
default:
|
|
4368
4423
|
const parsedBody = parsedOutput.body;
|
|
4424
|
+
const $metadata = deserializeMetadata(output);
|
|
4425
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4369
4426
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4370
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4427
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4371
4428
|
$fault: "client",
|
|
4372
|
-
$metadata
|
|
4429
|
+
$metadata,
|
|
4373
4430
|
});
|
|
4374
4431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4375
4432
|
}
|
|
@@ -4391,8 +4448,7 @@ const deserializeAws_restJson1UpdateIPSetCommandError = async (output, context)
|
|
|
4391
4448
|
body: await parseBody(output.body, context),
|
|
4392
4449
|
};
|
|
4393
4450
|
let response;
|
|
4394
|
-
|
|
4395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4451
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4396
4452
|
switch (errorCode) {
|
|
4397
4453
|
case "BadRequestException":
|
|
4398
4454
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4402,10 +4458,12 @@ const deserializeAws_restJson1UpdateIPSetCommandError = async (output, context)
|
|
|
4402
4458
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4403
4459
|
default:
|
|
4404
4460
|
const parsedBody = parsedOutput.body;
|
|
4461
|
+
const $metadata = deserializeMetadata(output);
|
|
4462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4405
4463
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4407
4465
|
$fault: "client",
|
|
4408
|
-
$metadata
|
|
4466
|
+
$metadata,
|
|
4409
4467
|
});
|
|
4410
4468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4411
4469
|
}
|
|
@@ -4431,8 +4489,7 @@ const deserializeAws_restJson1UpdateMemberDetectorsCommandError = async (output,
|
|
|
4431
4489
|
body: await parseBody(output.body, context),
|
|
4432
4490
|
};
|
|
4433
4491
|
let response;
|
|
4434
|
-
|
|
4435
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4492
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4436
4493
|
switch (errorCode) {
|
|
4437
4494
|
case "BadRequestException":
|
|
4438
4495
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4442,10 +4499,12 @@ const deserializeAws_restJson1UpdateMemberDetectorsCommandError = async (output,
|
|
|
4442
4499
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4443
4500
|
default:
|
|
4444
4501
|
const parsedBody = parsedOutput.body;
|
|
4502
|
+
const $metadata = deserializeMetadata(output);
|
|
4503
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4445
4504
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4505
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4447
4506
|
$fault: "client",
|
|
4448
|
-
$metadata
|
|
4507
|
+
$metadata,
|
|
4449
4508
|
});
|
|
4450
4509
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4451
4510
|
}
|
|
@@ -4467,8 +4526,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4467
4526
|
body: await parseBody(output.body, context),
|
|
4468
4527
|
};
|
|
4469
4528
|
let response;
|
|
4470
|
-
|
|
4471
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4472
4530
|
switch (errorCode) {
|
|
4473
4531
|
case "BadRequestException":
|
|
4474
4532
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4478,10 +4536,12 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4478
4536
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4479
4537
|
default:
|
|
4480
4538
|
const parsedBody = parsedOutput.body;
|
|
4539
|
+
const $metadata = deserializeMetadata(output);
|
|
4540
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4481
4541
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4482
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4483
4543
|
$fault: "client",
|
|
4484
|
-
$metadata
|
|
4544
|
+
$metadata,
|
|
4485
4545
|
});
|
|
4486
4546
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4487
4547
|
}
|
|
@@ -4503,8 +4563,7 @@ const deserializeAws_restJson1UpdatePublishingDestinationCommandError = async (o
|
|
|
4503
4563
|
body: await parseBody(output.body, context),
|
|
4504
4564
|
};
|
|
4505
4565
|
let response;
|
|
4506
|
-
|
|
4507
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4508
4567
|
switch (errorCode) {
|
|
4509
4568
|
case "BadRequestException":
|
|
4510
4569
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4514,10 +4573,12 @@ const deserializeAws_restJson1UpdatePublishingDestinationCommandError = async (o
|
|
|
4514
4573
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4515
4574
|
default:
|
|
4516
4575
|
const parsedBody = parsedOutput.body;
|
|
4576
|
+
const $metadata = deserializeMetadata(output);
|
|
4577
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4517
4578
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4519
4580
|
$fault: "client",
|
|
4520
|
-
$metadata
|
|
4581
|
+
$metadata,
|
|
4521
4582
|
});
|
|
4522
4583
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4523
4584
|
}
|
|
@@ -4539,8 +4600,7 @@ const deserializeAws_restJson1UpdateThreatIntelSetCommandError = async (output,
|
|
|
4539
4600
|
body: await parseBody(output.body, context),
|
|
4540
4601
|
};
|
|
4541
4602
|
let response;
|
|
4542
|
-
|
|
4543
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4544
4604
|
switch (errorCode) {
|
|
4545
4605
|
case "BadRequestException":
|
|
4546
4606
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4550,10 +4610,12 @@ const deserializeAws_restJson1UpdateThreatIntelSetCommandError = async (output,
|
|
|
4550
4610
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4551
4611
|
default:
|
|
4552
4612
|
const parsedBody = parsedOutput.body;
|
|
4613
|
+
const $metadata = deserializeMetadata(output);
|
|
4614
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4553
4615
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4554
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4616
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4555
4617
|
$fault: "client",
|
|
4556
|
-
$metadata
|
|
4618
|
+
$metadata,
|
|
4557
4619
|
});
|
|
4558
4620
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4559
4621
|
}
|
|
@@ -6096,5 +6158,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6096
6158
|
if (data["__type"] !== undefined) {
|
|
6097
6159
|
return sanitizeErrorCode(data["__type"]);
|
|
6098
6160
|
}
|
|
6099
|
-
return "";
|
|
6100
6161
|
};
|