@aws-sdk/client-inspector2 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +97 -1781
- package/dist-es/protocols/Aws_restJson1.js +90 -1774
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1989,7 +1989,7 @@ var se_UpdateOrgEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
1989
1989
|
}, "se_UpdateOrgEc2DeepInspectionConfigurationCommand");
|
|
1990
1990
|
var de_AssociateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1991
1991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1992
|
-
return
|
|
1992
|
+
return de_CommandError(output, context);
|
|
1993
1993
|
}
|
|
1994
1994
|
const contents = (0, import_smithy_client.map)({
|
|
1995
1995
|
$metadata: deserializeMetadata(output)
|
|
@@ -2001,37 +2001,9 @@ var de_AssociateMemberCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2001
2001
|
Object.assign(contents, doc);
|
|
2002
2002
|
return contents;
|
|
2003
2003
|
}, "de_AssociateMemberCommand");
|
|
2004
|
-
var de_AssociateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2005
|
-
const parsedOutput = {
|
|
2006
|
-
...output,
|
|
2007
|
-
body: await parseErrorBody(output.body, context)
|
|
2008
|
-
};
|
|
2009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2010
|
-
switch (errorCode) {
|
|
2011
|
-
case "AccessDeniedException":
|
|
2012
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "InternalServerException":
|
|
2015
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2016
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "ThrottlingException":
|
|
2018
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2019
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "ValidationException":
|
|
2021
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2022
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2023
|
-
default:
|
|
2024
|
-
const parsedBody = parsedOutput.body;
|
|
2025
|
-
return throwDefaultError({
|
|
2026
|
-
output,
|
|
2027
|
-
parsedBody,
|
|
2028
|
-
errorCode
|
|
2029
|
-
});
|
|
2030
|
-
}
|
|
2031
|
-
}, "de_AssociateMemberCommandError");
|
|
2032
2004
|
var de_BatchGetAccountStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2033
2005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2034
|
-
return
|
|
2006
|
+
return de_CommandError(output, context);
|
|
2035
2007
|
}
|
|
2036
2008
|
const contents = (0, import_smithy_client.map)({
|
|
2037
2009
|
$metadata: deserializeMetadata(output)
|
|
@@ -2044,40 +2016,9 @@ var de_BatchGetAccountStatusCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2044
2016
|
Object.assign(contents, doc);
|
|
2045
2017
|
return contents;
|
|
2046
2018
|
}, "de_BatchGetAccountStatusCommand");
|
|
2047
|
-
var de_BatchGetAccountStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2048
|
-
const parsedOutput = {
|
|
2049
|
-
...output,
|
|
2050
|
-
body: await parseErrorBody(output.body, context)
|
|
2051
|
-
};
|
|
2052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
|
-
switch (errorCode) {
|
|
2054
|
-
case "AccessDeniedException":
|
|
2055
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "InternalServerException":
|
|
2058
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ResourceNotFoundException":
|
|
2061
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ThrottlingException":
|
|
2064
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2065
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ValidationException":
|
|
2067
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2069
|
-
default:
|
|
2070
|
-
const parsedBody = parsedOutput.body;
|
|
2071
|
-
return throwDefaultError({
|
|
2072
|
-
output,
|
|
2073
|
-
parsedBody,
|
|
2074
|
-
errorCode
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
}, "de_BatchGetAccountStatusCommandError");
|
|
2078
2019
|
var de_BatchGetCodeSnippetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2079
2020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2080
|
-
return
|
|
2021
|
+
return de_CommandError(output, context);
|
|
2081
2022
|
}
|
|
2082
2023
|
const contents = (0, import_smithy_client.map)({
|
|
2083
2024
|
$metadata: deserializeMetadata(output)
|
|
@@ -2090,37 +2031,9 @@ var de_BatchGetCodeSnippetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2090
2031
|
Object.assign(contents, doc);
|
|
2091
2032
|
return contents;
|
|
2092
2033
|
}, "de_BatchGetCodeSnippetCommand");
|
|
2093
|
-
var de_BatchGetCodeSnippetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2094
|
-
const parsedOutput = {
|
|
2095
|
-
...output,
|
|
2096
|
-
body: await parseErrorBody(output.body, context)
|
|
2097
|
-
};
|
|
2098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2099
|
-
switch (errorCode) {
|
|
2100
|
-
case "AccessDeniedException":
|
|
2101
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "InternalServerException":
|
|
2104
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2105
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "ThrottlingException":
|
|
2107
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2108
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ValidationException":
|
|
2110
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2111
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2112
|
-
default:
|
|
2113
|
-
const parsedBody = parsedOutput.body;
|
|
2114
|
-
return throwDefaultError({
|
|
2115
|
-
output,
|
|
2116
|
-
parsedBody,
|
|
2117
|
-
errorCode
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
}, "de_BatchGetCodeSnippetCommandError");
|
|
2121
2034
|
var de_BatchGetFindingDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2122
2035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2123
|
-
return
|
|
2036
|
+
return de_CommandError(output, context);
|
|
2124
2037
|
}
|
|
2125
2038
|
const contents = (0, import_smithy_client.map)({
|
|
2126
2039
|
$metadata: deserializeMetadata(output)
|
|
@@ -2133,37 +2046,9 @@ var de_BatchGetFindingDetailsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2133
2046
|
Object.assign(contents, doc);
|
|
2134
2047
|
return contents;
|
|
2135
2048
|
}, "de_BatchGetFindingDetailsCommand");
|
|
2136
|
-
var de_BatchGetFindingDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2137
|
-
const parsedOutput = {
|
|
2138
|
-
...output,
|
|
2139
|
-
body: await parseErrorBody(output.body, context)
|
|
2140
|
-
};
|
|
2141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
|
-
switch (errorCode) {
|
|
2143
|
-
case "AccessDeniedException":
|
|
2144
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2145
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "InternalServerException":
|
|
2147
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ThrottlingException":
|
|
2150
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2151
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "ValidationException":
|
|
2153
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2154
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2155
|
-
default:
|
|
2156
|
-
const parsedBody = parsedOutput.body;
|
|
2157
|
-
return throwDefaultError({
|
|
2158
|
-
output,
|
|
2159
|
-
parsedBody,
|
|
2160
|
-
errorCode
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
}, "de_BatchGetFindingDetailsCommandError");
|
|
2164
2049
|
var de_BatchGetFreeTrialInfoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2165
2050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2166
|
-
return
|
|
2051
|
+
return de_CommandError(output, context);
|
|
2167
2052
|
}
|
|
2168
2053
|
const contents = (0, import_smithy_client.map)({
|
|
2169
2054
|
$metadata: deserializeMetadata(output)
|
|
@@ -2176,37 +2061,9 @@ var de_BatchGetFreeTrialInfoCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2176
2061
|
Object.assign(contents, doc);
|
|
2177
2062
|
return contents;
|
|
2178
2063
|
}, "de_BatchGetFreeTrialInfoCommand");
|
|
2179
|
-
var de_BatchGetFreeTrialInfoCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2180
|
-
const parsedOutput = {
|
|
2181
|
-
...output,
|
|
2182
|
-
body: await parseErrorBody(output.body, context)
|
|
2183
|
-
};
|
|
2184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
|
-
switch (errorCode) {
|
|
2186
|
-
case "AccessDeniedException":
|
|
2187
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2188
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "InternalServerException":
|
|
2190
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2191
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ThrottlingException":
|
|
2193
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2194
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ValidationException":
|
|
2196
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
}, "de_BatchGetFreeTrialInfoCommandError");
|
|
2207
2064
|
var de_BatchGetMemberEc2DeepInspectionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
2065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
2066
|
+
return de_CommandError(output, context);
|
|
2210
2067
|
}
|
|
2211
2068
|
const contents = (0, import_smithy_client.map)({
|
|
2212
2069
|
$metadata: deserializeMetadata(output)
|
|
@@ -2219,37 +2076,9 @@ var de_BatchGetMemberEc2DeepInspectionStatusCommand = /* @__PURE__ */ __name(asy
|
|
|
2219
2076
|
Object.assign(contents, doc);
|
|
2220
2077
|
return contents;
|
|
2221
2078
|
}, "de_BatchGetMemberEc2DeepInspectionStatusCommand");
|
|
2222
|
-
var de_BatchGetMemberEc2DeepInspectionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2223
|
-
const parsedOutput = {
|
|
2224
|
-
...output,
|
|
2225
|
-
body: await parseErrorBody(output.body, context)
|
|
2226
|
-
};
|
|
2227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
-
switch (errorCode) {
|
|
2229
|
-
case "AccessDeniedException":
|
|
2230
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2231
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "InternalServerException":
|
|
2233
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2234
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "ThrottlingException":
|
|
2236
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ValidationException":
|
|
2239
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2240
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2241
|
-
default:
|
|
2242
|
-
const parsedBody = parsedOutput.body;
|
|
2243
|
-
return throwDefaultError({
|
|
2244
|
-
output,
|
|
2245
|
-
parsedBody,
|
|
2246
|
-
errorCode
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
}, "de_BatchGetMemberEc2DeepInspectionStatusCommandError");
|
|
2250
2079
|
var de_BatchUpdateMemberEc2DeepInspectionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2251
2080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2252
|
-
return
|
|
2081
|
+
return de_CommandError(output, context);
|
|
2253
2082
|
}
|
|
2254
2083
|
const contents = (0, import_smithy_client.map)({
|
|
2255
2084
|
$metadata: deserializeMetadata(output)
|
|
@@ -2262,37 +2091,9 @@ var de_BatchUpdateMemberEc2DeepInspectionStatusCommand = /* @__PURE__ */ __name(
|
|
|
2262
2091
|
Object.assign(contents, doc);
|
|
2263
2092
|
return contents;
|
|
2264
2093
|
}, "de_BatchUpdateMemberEc2DeepInspectionStatusCommand");
|
|
2265
|
-
var de_BatchUpdateMemberEc2DeepInspectionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2266
|
-
const parsedOutput = {
|
|
2267
|
-
...output,
|
|
2268
|
-
body: await parseErrorBody(output.body, context)
|
|
2269
|
-
};
|
|
2270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
|
-
switch (errorCode) {
|
|
2272
|
-
case "AccessDeniedException":
|
|
2273
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2274
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2275
|
-
case "InternalServerException":
|
|
2276
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2277
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2278
|
-
case "ThrottlingException":
|
|
2279
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2280
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "ValidationException":
|
|
2282
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2283
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2284
|
-
default:
|
|
2285
|
-
const parsedBody = parsedOutput.body;
|
|
2286
|
-
return throwDefaultError({
|
|
2287
|
-
output,
|
|
2288
|
-
parsedBody,
|
|
2289
|
-
errorCode
|
|
2290
|
-
});
|
|
2291
|
-
}
|
|
2292
|
-
}, "de_BatchUpdateMemberEc2DeepInspectionStatusCommandError");
|
|
2293
2094
|
var de_CancelFindingsReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2294
2095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2295
|
-
return
|
|
2096
|
+
return de_CommandError(output, context);
|
|
2296
2097
|
}
|
|
2297
2098
|
const contents = (0, import_smithy_client.map)({
|
|
2298
2099
|
$metadata: deserializeMetadata(output)
|
|
@@ -2304,40 +2105,9 @@ var de_CancelFindingsReportCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2304
2105
|
Object.assign(contents, doc);
|
|
2305
2106
|
return contents;
|
|
2306
2107
|
}, "de_CancelFindingsReportCommand");
|
|
2307
|
-
var de_CancelFindingsReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
|
-
const parsedOutput = {
|
|
2309
|
-
...output,
|
|
2310
|
-
body: await parseErrorBody(output.body, context)
|
|
2311
|
-
};
|
|
2312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
|
-
switch (errorCode) {
|
|
2314
|
-
case "AccessDeniedException":
|
|
2315
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2316
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "InternalServerException":
|
|
2318
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2319
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ResourceNotFoundException":
|
|
2321
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "ThrottlingException":
|
|
2324
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2325
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "ValidationException":
|
|
2327
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2328
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2329
|
-
default:
|
|
2330
|
-
const parsedBody = parsedOutput.body;
|
|
2331
|
-
return throwDefaultError({
|
|
2332
|
-
output,
|
|
2333
|
-
parsedBody,
|
|
2334
|
-
errorCode
|
|
2335
|
-
});
|
|
2336
|
-
}
|
|
2337
|
-
}, "de_CancelFindingsReportCommandError");
|
|
2338
2108
|
var de_CancelSbomExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
2109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
2110
|
+
return de_CommandError(output, context);
|
|
2341
2111
|
}
|
|
2342
2112
|
const contents = (0, import_smithy_client.map)({
|
|
2343
2113
|
$metadata: deserializeMetadata(output)
|
|
@@ -2349,40 +2119,9 @@ var de_CancelSbomExportCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2349
2119
|
Object.assign(contents, doc);
|
|
2350
2120
|
return contents;
|
|
2351
2121
|
}, "de_CancelSbomExportCommand");
|
|
2352
|
-
var de_CancelSbomExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2353
|
-
const parsedOutput = {
|
|
2354
|
-
...output,
|
|
2355
|
-
body: await parseErrorBody(output.body, context)
|
|
2356
|
-
};
|
|
2357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
|
-
switch (errorCode) {
|
|
2359
|
-
case "AccessDeniedException":
|
|
2360
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2361
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "InternalServerException":
|
|
2363
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2364
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ResourceNotFoundException":
|
|
2366
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2367
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ThrottlingException":
|
|
2369
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2370
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ValidationException":
|
|
2372
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2374
|
-
default:
|
|
2375
|
-
const parsedBody = parsedOutput.body;
|
|
2376
|
-
return throwDefaultError({
|
|
2377
|
-
output,
|
|
2378
|
-
parsedBody,
|
|
2379
|
-
errorCode
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
}, "de_CancelSbomExportCommandError");
|
|
2383
2122
|
var de_CreateCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
2123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
2124
|
+
return de_CommandError(output, context);
|
|
2386
2125
|
}
|
|
2387
2126
|
const contents = (0, import_smithy_client.map)({
|
|
2388
2127
|
$metadata: deserializeMetadata(output)
|
|
@@ -2394,37 +2133,9 @@ var de_CreateCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2394
2133
|
Object.assign(contents, doc);
|
|
2395
2134
|
return contents;
|
|
2396
2135
|
}, "de_CreateCisScanConfigurationCommand");
|
|
2397
|
-
var de_CreateCisScanConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2398
|
-
const parsedOutput = {
|
|
2399
|
-
...output,
|
|
2400
|
-
body: await parseErrorBody(output.body, context)
|
|
2401
|
-
};
|
|
2402
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2403
|
-
switch (errorCode) {
|
|
2404
|
-
case "AccessDeniedException":
|
|
2405
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2406
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2407
|
-
case "InternalServerException":
|
|
2408
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2409
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2410
|
-
case "ThrottlingException":
|
|
2411
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2412
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2413
|
-
case "ValidationException":
|
|
2414
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2415
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2416
|
-
default:
|
|
2417
|
-
const parsedBody = parsedOutput.body;
|
|
2418
|
-
return throwDefaultError({
|
|
2419
|
-
output,
|
|
2420
|
-
parsedBody,
|
|
2421
|
-
errorCode
|
|
2422
|
-
});
|
|
2423
|
-
}
|
|
2424
|
-
}, "de_CreateCisScanConfigurationCommandError");
|
|
2425
2136
|
var de_CreateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2426
2137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2427
|
-
return
|
|
2138
|
+
return de_CommandError(output, context);
|
|
2428
2139
|
}
|
|
2429
2140
|
const contents = (0, import_smithy_client.map)({
|
|
2430
2141
|
$metadata: deserializeMetadata(output)
|
|
@@ -2436,43 +2147,9 @@ var de_CreateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2436
2147
|
Object.assign(contents, doc);
|
|
2437
2148
|
return contents;
|
|
2438
2149
|
}, "de_CreateFilterCommand");
|
|
2439
|
-
var de_CreateFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2440
|
-
const parsedOutput = {
|
|
2441
|
-
...output,
|
|
2442
|
-
body: await parseErrorBody(output.body, context)
|
|
2443
|
-
};
|
|
2444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
|
-
switch (errorCode) {
|
|
2446
|
-
case "AccessDeniedException":
|
|
2447
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2448
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2449
|
-
case "BadRequestException":
|
|
2450
|
-
case "com.amazonaws.inspector2#BadRequestException":
|
|
2451
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2452
|
-
case "InternalServerException":
|
|
2453
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "ServiceQuotaExceededException":
|
|
2456
|
-
case "com.amazonaws.inspector2#ServiceQuotaExceededException":
|
|
2457
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "ThrottlingException":
|
|
2459
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2460
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ValidationException":
|
|
2462
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2464
|
-
default:
|
|
2465
|
-
const parsedBody = parsedOutput.body;
|
|
2466
|
-
return throwDefaultError({
|
|
2467
|
-
output,
|
|
2468
|
-
parsedBody,
|
|
2469
|
-
errorCode
|
|
2470
|
-
});
|
|
2471
|
-
}
|
|
2472
|
-
}, "de_CreateFilterCommandError");
|
|
2473
2150
|
var de_CreateFindingsReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2474
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2475
|
-
return
|
|
2152
|
+
return de_CommandError(output, context);
|
|
2476
2153
|
}
|
|
2477
2154
|
const contents = (0, import_smithy_client.map)({
|
|
2478
2155
|
$metadata: deserializeMetadata(output)
|
|
@@ -2484,40 +2161,9 @@ var de_CreateFindingsReportCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2484
2161
|
Object.assign(contents, doc);
|
|
2485
2162
|
return contents;
|
|
2486
2163
|
}, "de_CreateFindingsReportCommand");
|
|
2487
|
-
var de_CreateFindingsReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2488
|
-
const parsedOutput = {
|
|
2489
|
-
...output,
|
|
2490
|
-
body: await parseErrorBody(output.body, context)
|
|
2491
|
-
};
|
|
2492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
|
-
switch (errorCode) {
|
|
2494
|
-
case "AccessDeniedException":
|
|
2495
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2496
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "InternalServerException":
|
|
2498
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2499
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2500
|
-
case "ResourceNotFoundException":
|
|
2501
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "ThrottlingException":
|
|
2504
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2505
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "ValidationException":
|
|
2507
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2509
|
-
default:
|
|
2510
|
-
const parsedBody = parsedOutput.body;
|
|
2511
|
-
return throwDefaultError({
|
|
2512
|
-
output,
|
|
2513
|
-
parsedBody,
|
|
2514
|
-
errorCode
|
|
2515
|
-
});
|
|
2516
|
-
}
|
|
2517
|
-
}, "de_CreateFindingsReportCommandError");
|
|
2518
2164
|
var de_CreateSbomExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2519
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2520
|
-
return
|
|
2166
|
+
return de_CommandError(output, context);
|
|
2521
2167
|
}
|
|
2522
2168
|
const contents = (0, import_smithy_client.map)({
|
|
2523
2169
|
$metadata: deserializeMetadata(output)
|
|
@@ -2529,40 +2175,9 @@ var de_CreateSbomExportCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2529
2175
|
Object.assign(contents, doc);
|
|
2530
2176
|
return contents;
|
|
2531
2177
|
}, "de_CreateSbomExportCommand");
|
|
2532
|
-
var de_CreateSbomExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2533
|
-
const parsedOutput = {
|
|
2534
|
-
...output,
|
|
2535
|
-
body: await parseErrorBody(output.body, context)
|
|
2536
|
-
};
|
|
2537
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2538
|
-
switch (errorCode) {
|
|
2539
|
-
case "AccessDeniedException":
|
|
2540
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2541
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "InternalServerException":
|
|
2543
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2544
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "ResourceNotFoundException":
|
|
2546
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2547
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "ThrottlingException":
|
|
2549
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2550
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "ValidationException":
|
|
2552
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2553
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2554
|
-
default:
|
|
2555
|
-
const parsedBody = parsedOutput.body;
|
|
2556
|
-
return throwDefaultError({
|
|
2557
|
-
output,
|
|
2558
|
-
parsedBody,
|
|
2559
|
-
errorCode
|
|
2560
|
-
});
|
|
2561
|
-
}
|
|
2562
|
-
}, "de_CreateSbomExportCommandError");
|
|
2563
2178
|
var de_DeleteCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2564
2179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2565
|
-
return
|
|
2180
|
+
return de_CommandError(output, context);
|
|
2566
2181
|
}
|
|
2567
2182
|
const contents = (0, import_smithy_client.map)({
|
|
2568
2183
|
$metadata: deserializeMetadata(output)
|
|
@@ -2574,40 +2189,9 @@ var de_DeleteCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2574
2189
|
Object.assign(contents, doc);
|
|
2575
2190
|
return contents;
|
|
2576
2191
|
}, "de_DeleteCisScanConfigurationCommand");
|
|
2577
|
-
var de_DeleteCisScanConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2578
|
-
const parsedOutput = {
|
|
2579
|
-
...output,
|
|
2580
|
-
body: await parseErrorBody(output.body, context)
|
|
2581
|
-
};
|
|
2582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2583
|
-
switch (errorCode) {
|
|
2584
|
-
case "AccessDeniedException":
|
|
2585
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2586
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "InternalServerException":
|
|
2588
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2589
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ResourceNotFoundException":
|
|
2591
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2592
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "ThrottlingException":
|
|
2594
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2595
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "ValidationException":
|
|
2597
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2598
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2599
|
-
default:
|
|
2600
|
-
const parsedBody = parsedOutput.body;
|
|
2601
|
-
return throwDefaultError({
|
|
2602
|
-
output,
|
|
2603
|
-
parsedBody,
|
|
2604
|
-
errorCode
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
}, "de_DeleteCisScanConfigurationCommandError");
|
|
2608
2192
|
var de_DeleteFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
2193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
|
-
return
|
|
2194
|
+
return de_CommandError(output, context);
|
|
2611
2195
|
}
|
|
2612
2196
|
const contents = (0, import_smithy_client.map)({
|
|
2613
2197
|
$metadata: deserializeMetadata(output)
|
|
@@ -2619,40 +2203,9 @@ var de_DeleteFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2619
2203
|
Object.assign(contents, doc);
|
|
2620
2204
|
return contents;
|
|
2621
2205
|
}, "de_DeleteFilterCommand");
|
|
2622
|
-
var de_DeleteFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2623
|
-
const parsedOutput = {
|
|
2624
|
-
...output,
|
|
2625
|
-
body: await parseErrorBody(output.body, context)
|
|
2626
|
-
};
|
|
2627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2628
|
-
switch (errorCode) {
|
|
2629
|
-
case "AccessDeniedException":
|
|
2630
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "InternalServerException":
|
|
2633
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ResourceNotFoundException":
|
|
2636
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "ThrottlingException":
|
|
2639
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2640
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "ValidationException":
|
|
2642
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2644
|
-
default:
|
|
2645
|
-
const parsedBody = parsedOutput.body;
|
|
2646
|
-
return throwDefaultError({
|
|
2647
|
-
output,
|
|
2648
|
-
parsedBody,
|
|
2649
|
-
errorCode
|
|
2650
|
-
});
|
|
2651
|
-
}
|
|
2652
|
-
}, "de_DeleteFilterCommandError");
|
|
2653
2206
|
var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2654
2207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2655
|
-
return
|
|
2208
|
+
return de_CommandError(output, context);
|
|
2656
2209
|
}
|
|
2657
2210
|
const contents = (0, import_smithy_client.map)({
|
|
2658
2211
|
$metadata: deserializeMetadata(output)
|
|
@@ -2665,37 +2218,9 @@ var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2665
2218
|
Object.assign(contents, doc);
|
|
2666
2219
|
return contents;
|
|
2667
2220
|
}, "de_DescribeOrganizationConfigurationCommand");
|
|
2668
|
-
var de_DescribeOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2669
|
-
const parsedOutput = {
|
|
2670
|
-
...output,
|
|
2671
|
-
body: await parseErrorBody(output.body, context)
|
|
2672
|
-
};
|
|
2673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2674
|
-
switch (errorCode) {
|
|
2675
|
-
case "AccessDeniedException":
|
|
2676
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "InternalServerException":
|
|
2679
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ThrottlingException":
|
|
2682
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2683
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "ValidationException":
|
|
2685
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2686
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2687
|
-
default:
|
|
2688
|
-
const parsedBody = parsedOutput.body;
|
|
2689
|
-
return throwDefaultError({
|
|
2690
|
-
output,
|
|
2691
|
-
parsedBody,
|
|
2692
|
-
errorCode
|
|
2693
|
-
});
|
|
2694
|
-
}
|
|
2695
|
-
}, "de_DescribeOrganizationConfigurationCommandError");
|
|
2696
2221
|
var de_DisableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2697
2222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2698
|
-
return
|
|
2223
|
+
return de_CommandError(output, context);
|
|
2699
2224
|
}
|
|
2700
2225
|
const contents = (0, import_smithy_client.map)({
|
|
2701
2226
|
$metadata: deserializeMetadata(output)
|
|
@@ -2708,40 +2233,9 @@ var de_DisableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2708
2233
|
Object.assign(contents, doc);
|
|
2709
2234
|
return contents;
|
|
2710
2235
|
}, "de_DisableCommand");
|
|
2711
|
-
var de_DisableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2712
|
-
const parsedOutput = {
|
|
2713
|
-
...output,
|
|
2714
|
-
body: await parseErrorBody(output.body, context)
|
|
2715
|
-
};
|
|
2716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
-
switch (errorCode) {
|
|
2718
|
-
case "AccessDeniedException":
|
|
2719
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2720
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "InternalServerException":
|
|
2722
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ResourceNotFoundException":
|
|
2725
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2726
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ThrottlingException":
|
|
2728
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2729
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "ValidationException":
|
|
2731
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2732
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2733
|
-
default:
|
|
2734
|
-
const parsedBody = parsedOutput.body;
|
|
2735
|
-
return throwDefaultError({
|
|
2736
|
-
output,
|
|
2737
|
-
parsedBody,
|
|
2738
|
-
errorCode
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
}, "de_DisableCommandError");
|
|
2742
2236
|
var de_DisableDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2743
2237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2744
|
-
return
|
|
2238
|
+
return de_CommandError(output, context);
|
|
2745
2239
|
}
|
|
2746
2240
|
const contents = (0, import_smithy_client.map)({
|
|
2747
2241
|
$metadata: deserializeMetadata(output)
|
|
@@ -2753,43 +2247,9 @@ var de_DisableDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2753
2247
|
Object.assign(contents, doc);
|
|
2754
2248
|
return contents;
|
|
2755
2249
|
}, "de_DisableDelegatedAdminAccountCommand");
|
|
2756
|
-
var de_DisableDelegatedAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2757
|
-
const parsedOutput = {
|
|
2758
|
-
...output,
|
|
2759
|
-
body: await parseErrorBody(output.body, context)
|
|
2760
|
-
};
|
|
2761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
|
-
switch (errorCode) {
|
|
2763
|
-
case "AccessDeniedException":
|
|
2764
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2765
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "ConflictException":
|
|
2767
|
-
case "com.amazonaws.inspector2#ConflictException":
|
|
2768
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "InternalServerException":
|
|
2770
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2771
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "ResourceNotFoundException":
|
|
2773
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2774
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "ThrottlingException":
|
|
2776
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2777
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "ValidationException":
|
|
2779
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2780
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2781
|
-
default:
|
|
2782
|
-
const parsedBody = parsedOutput.body;
|
|
2783
|
-
return throwDefaultError({
|
|
2784
|
-
output,
|
|
2785
|
-
parsedBody,
|
|
2786
|
-
errorCode
|
|
2787
|
-
});
|
|
2788
|
-
}
|
|
2789
|
-
}, "de_DisableDelegatedAdminAccountCommandError");
|
|
2790
2250
|
var de_DisassociateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2791
2251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2792
|
-
return
|
|
2252
|
+
return de_CommandError(output, context);
|
|
2793
2253
|
}
|
|
2794
2254
|
const contents = (0, import_smithy_client.map)({
|
|
2795
2255
|
$metadata: deserializeMetadata(output)
|
|
@@ -2801,37 +2261,9 @@ var de_DisassociateMemberCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2801
2261
|
Object.assign(contents, doc);
|
|
2802
2262
|
return contents;
|
|
2803
2263
|
}, "de_DisassociateMemberCommand");
|
|
2804
|
-
var de_DisassociateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2805
|
-
const parsedOutput = {
|
|
2806
|
-
...output,
|
|
2807
|
-
body: await parseErrorBody(output.body, context)
|
|
2808
|
-
};
|
|
2809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2810
|
-
switch (errorCode) {
|
|
2811
|
-
case "AccessDeniedException":
|
|
2812
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2813
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "InternalServerException":
|
|
2815
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2816
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2817
|
-
case "ThrottlingException":
|
|
2818
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2819
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2820
|
-
case "ValidationException":
|
|
2821
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2823
|
-
default:
|
|
2824
|
-
const parsedBody = parsedOutput.body;
|
|
2825
|
-
return throwDefaultError({
|
|
2826
|
-
output,
|
|
2827
|
-
parsedBody,
|
|
2828
|
-
errorCode
|
|
2829
|
-
});
|
|
2830
|
-
}
|
|
2831
|
-
}, "de_DisassociateMemberCommandError");
|
|
2832
2264
|
var de_EnableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2833
2265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2834
|
-
return
|
|
2266
|
+
return de_CommandError(output, context);
|
|
2835
2267
|
}
|
|
2836
2268
|
const contents = (0, import_smithy_client.map)({
|
|
2837
2269
|
$metadata: deserializeMetadata(output)
|
|
@@ -2844,40 +2276,9 @@ var de_EnableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2844
2276
|
Object.assign(contents, doc);
|
|
2845
2277
|
return contents;
|
|
2846
2278
|
}, "de_EnableCommand");
|
|
2847
|
-
var de_EnableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2848
|
-
const parsedOutput = {
|
|
2849
|
-
...output,
|
|
2850
|
-
body: await parseErrorBody(output.body, context)
|
|
2851
|
-
};
|
|
2852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
|
-
switch (errorCode) {
|
|
2854
|
-
case "AccessDeniedException":
|
|
2855
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2856
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "InternalServerException":
|
|
2858
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2859
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2860
|
-
case "ResourceNotFoundException":
|
|
2861
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2862
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2863
|
-
case "ThrottlingException":
|
|
2864
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2865
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2866
|
-
case "ValidationException":
|
|
2867
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2869
|
-
default:
|
|
2870
|
-
const parsedBody = parsedOutput.body;
|
|
2871
|
-
return throwDefaultError({
|
|
2872
|
-
output,
|
|
2873
|
-
parsedBody,
|
|
2874
|
-
errorCode
|
|
2875
|
-
});
|
|
2876
|
-
}
|
|
2877
|
-
}, "de_EnableCommandError");
|
|
2878
2279
|
var de_EnableDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2879
2280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2880
|
-
return
|
|
2281
|
+
return de_CommandError(output, context);
|
|
2881
2282
|
}
|
|
2882
2283
|
const contents = (0, import_smithy_client.map)({
|
|
2883
2284
|
$metadata: deserializeMetadata(output)
|
|
@@ -2889,43 +2290,9 @@ var de_EnableDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (output
|
|
|
2889
2290
|
Object.assign(contents, doc);
|
|
2890
2291
|
return contents;
|
|
2891
2292
|
}, "de_EnableDelegatedAdminAccountCommand");
|
|
2892
|
-
var de_EnableDelegatedAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2893
|
-
const parsedOutput = {
|
|
2894
|
-
...output,
|
|
2895
|
-
body: await parseErrorBody(output.body, context)
|
|
2896
|
-
};
|
|
2897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
|
-
switch (errorCode) {
|
|
2899
|
-
case "AccessDeniedException":
|
|
2900
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ConflictException":
|
|
2903
|
-
case "com.amazonaws.inspector2#ConflictException":
|
|
2904
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "InternalServerException":
|
|
2906
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "ResourceNotFoundException":
|
|
2909
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "ThrottlingException":
|
|
2912
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "ValidationException":
|
|
2915
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2916
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2917
|
-
default:
|
|
2918
|
-
const parsedBody = parsedOutput.body;
|
|
2919
|
-
return throwDefaultError({
|
|
2920
|
-
output,
|
|
2921
|
-
parsedBody,
|
|
2922
|
-
errorCode
|
|
2923
|
-
});
|
|
2924
|
-
}
|
|
2925
|
-
}, "de_EnableDelegatedAdminAccountCommandError");
|
|
2926
2293
|
var de_GetCisScanReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2927
2294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2928
|
-
return
|
|
2295
|
+
return de_CommandError(output, context);
|
|
2929
2296
|
}
|
|
2930
2297
|
const contents = (0, import_smithy_client.map)({
|
|
2931
2298
|
$metadata: deserializeMetadata(output)
|
|
@@ -2938,37 +2305,9 @@ var de_GetCisScanReportCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2938
2305
|
Object.assign(contents, doc);
|
|
2939
2306
|
return contents;
|
|
2940
2307
|
}, "de_GetCisScanReportCommand");
|
|
2941
|
-
var de_GetCisScanReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2942
|
-
const parsedOutput = {
|
|
2943
|
-
...output,
|
|
2944
|
-
body: await parseErrorBody(output.body, context)
|
|
2945
|
-
};
|
|
2946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
|
-
switch (errorCode) {
|
|
2948
|
-
case "AccessDeniedException":
|
|
2949
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2950
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2951
|
-
case "InternalServerException":
|
|
2952
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2953
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2954
|
-
case "ThrottlingException":
|
|
2955
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2956
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "ValidationException":
|
|
2958
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
2959
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2960
|
-
default:
|
|
2961
|
-
const parsedBody = parsedOutput.body;
|
|
2962
|
-
return throwDefaultError({
|
|
2963
|
-
output,
|
|
2964
|
-
parsedBody,
|
|
2965
|
-
errorCode
|
|
2966
|
-
});
|
|
2967
|
-
}
|
|
2968
|
-
}, "de_GetCisScanReportCommandError");
|
|
2969
2308
|
var de_GetCisScanResultDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2970
2309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2971
|
-
return
|
|
2310
|
+
return de_CommandError(output, context);
|
|
2972
2311
|
}
|
|
2973
2312
|
const contents = (0, import_smithy_client.map)({
|
|
2974
2313
|
$metadata: deserializeMetadata(output)
|
|
@@ -2981,37 +2320,9 @@ var de_GetCisScanResultDetailsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2981
2320
|
Object.assign(contents, doc);
|
|
2982
2321
|
return contents;
|
|
2983
2322
|
}, "de_GetCisScanResultDetailsCommand");
|
|
2984
|
-
var de_GetCisScanResultDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2985
|
-
const parsedOutput = {
|
|
2986
|
-
...output,
|
|
2987
|
-
body: await parseErrorBody(output.body, context)
|
|
2988
|
-
};
|
|
2989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2990
|
-
switch (errorCode) {
|
|
2991
|
-
case "AccessDeniedException":
|
|
2992
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2993
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "InternalServerException":
|
|
2995
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
2996
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2997
|
-
case "ThrottlingException":
|
|
2998
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2999
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3000
|
-
case "ValidationException":
|
|
3001
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3002
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3003
|
-
default:
|
|
3004
|
-
const parsedBody = parsedOutput.body;
|
|
3005
|
-
return throwDefaultError({
|
|
3006
|
-
output,
|
|
3007
|
-
parsedBody,
|
|
3008
|
-
errorCode
|
|
3009
|
-
});
|
|
3010
|
-
}
|
|
3011
|
-
}, "de_GetCisScanResultDetailsCommandError");
|
|
3012
2323
|
var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3013
2324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3014
|
-
return
|
|
2325
|
+
return de_CommandError(output, context);
|
|
3015
2326
|
}
|
|
3016
2327
|
const contents = (0, import_smithy_client.map)({
|
|
3017
2328
|
$metadata: deserializeMetadata(output)
|
|
@@ -3023,34 +2334,9 @@ var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3023
2334
|
Object.assign(contents, doc);
|
|
3024
2335
|
return contents;
|
|
3025
2336
|
}, "de_GetConfigurationCommand");
|
|
3026
|
-
var de_GetConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3027
|
-
const parsedOutput = {
|
|
3028
|
-
...output,
|
|
3029
|
-
body: await parseErrorBody(output.body, context)
|
|
3030
|
-
};
|
|
3031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3032
|
-
switch (errorCode) {
|
|
3033
|
-
case "InternalServerException":
|
|
3034
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3035
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "ResourceNotFoundException":
|
|
3037
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3038
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "ThrottlingException":
|
|
3040
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3041
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3042
|
-
default:
|
|
3043
|
-
const parsedBody = parsedOutput.body;
|
|
3044
|
-
return throwDefaultError({
|
|
3045
|
-
output,
|
|
3046
|
-
parsedBody,
|
|
3047
|
-
errorCode
|
|
3048
|
-
});
|
|
3049
|
-
}
|
|
3050
|
-
}, "de_GetConfigurationCommandError");
|
|
3051
2337
|
var de_GetDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3052
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3053
|
-
return
|
|
2339
|
+
return de_CommandError(output, context);
|
|
3054
2340
|
}
|
|
3055
2341
|
const contents = (0, import_smithy_client.map)({
|
|
3056
2342
|
$metadata: deserializeMetadata(output)
|
|
@@ -3062,40 +2348,9 @@ var de_GetDelegatedAdminAccountCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3062
2348
|
Object.assign(contents, doc);
|
|
3063
2349
|
return contents;
|
|
3064
2350
|
}, "de_GetDelegatedAdminAccountCommand");
|
|
3065
|
-
var de_GetDelegatedAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3066
|
-
const parsedOutput = {
|
|
3067
|
-
...output,
|
|
3068
|
-
body: await parseErrorBody(output.body, context)
|
|
3069
|
-
};
|
|
3070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3071
|
-
switch (errorCode) {
|
|
3072
|
-
case "AccessDeniedException":
|
|
3073
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3074
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "InternalServerException":
|
|
3076
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3077
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ResourceNotFoundException":
|
|
3079
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "ThrottlingException":
|
|
3082
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3083
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "ValidationException":
|
|
3085
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3086
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3087
|
-
default:
|
|
3088
|
-
const parsedBody = parsedOutput.body;
|
|
3089
|
-
return throwDefaultError({
|
|
3090
|
-
output,
|
|
3091
|
-
parsedBody,
|
|
3092
|
-
errorCode
|
|
3093
|
-
});
|
|
3094
|
-
}
|
|
3095
|
-
}, "de_GetDelegatedAdminAccountCommandError");
|
|
3096
2351
|
var de_GetEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3097
2352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3098
|
-
return
|
|
2353
|
+
return de_CommandError(output, context);
|
|
3099
2354
|
}
|
|
3100
2355
|
const contents = (0, import_smithy_client.map)({
|
|
3101
2356
|
$metadata: deserializeMetadata(output)
|
|
@@ -3110,37 +2365,9 @@ var de_GetEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
3110
2365
|
Object.assign(contents, doc);
|
|
3111
2366
|
return contents;
|
|
3112
2367
|
}, "de_GetEc2DeepInspectionConfigurationCommand");
|
|
3113
|
-
var de_GetEc2DeepInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3114
|
-
const parsedOutput = {
|
|
3115
|
-
...output,
|
|
3116
|
-
body: await parseErrorBody(output.body, context)
|
|
3117
|
-
};
|
|
3118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3119
|
-
switch (errorCode) {
|
|
3120
|
-
case "AccessDeniedException":
|
|
3121
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3122
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "InternalServerException":
|
|
3124
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3125
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ResourceNotFoundException":
|
|
3127
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "ThrottlingException":
|
|
3130
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3131
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3132
|
-
default:
|
|
3133
|
-
const parsedBody = parsedOutput.body;
|
|
3134
|
-
return throwDefaultError({
|
|
3135
|
-
output,
|
|
3136
|
-
parsedBody,
|
|
3137
|
-
errorCode
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3140
|
-
}, "de_GetEc2DeepInspectionConfigurationCommandError");
|
|
3141
2368
|
var de_GetEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
2369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3143
|
-
return
|
|
2370
|
+
return de_CommandError(output, context);
|
|
3144
2371
|
}
|
|
3145
2372
|
const contents = (0, import_smithy_client.map)({
|
|
3146
2373
|
$metadata: deserializeMetadata(output)
|
|
@@ -3152,40 +2379,9 @@ var de_GetEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3152
2379
|
Object.assign(contents, doc);
|
|
3153
2380
|
return contents;
|
|
3154
2381
|
}, "de_GetEncryptionKeyCommand");
|
|
3155
|
-
var de_GetEncryptionKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3156
|
-
const parsedOutput = {
|
|
3157
|
-
...output,
|
|
3158
|
-
body: await parseErrorBody(output.body, context)
|
|
3159
|
-
};
|
|
3160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3161
|
-
switch (errorCode) {
|
|
3162
|
-
case "AccessDeniedException":
|
|
3163
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3165
|
-
case "InternalServerException":
|
|
3166
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3167
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3168
|
-
case "ResourceNotFoundException":
|
|
3169
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "ThrottlingException":
|
|
3172
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3173
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "ValidationException":
|
|
3175
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3176
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3177
|
-
default:
|
|
3178
|
-
const parsedBody = parsedOutput.body;
|
|
3179
|
-
return throwDefaultError({
|
|
3180
|
-
output,
|
|
3181
|
-
parsedBody,
|
|
3182
|
-
errorCode
|
|
3183
|
-
});
|
|
3184
|
-
}
|
|
3185
|
-
}, "de_GetEncryptionKeyCommandError");
|
|
3186
2382
|
var de_GetFindingsReportStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3187
2383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3188
|
-
return
|
|
2384
|
+
return de_CommandError(output, context);
|
|
3189
2385
|
}
|
|
3190
2386
|
const contents = (0, import_smithy_client.map)({
|
|
3191
2387
|
$metadata: deserializeMetadata(output)
|
|
@@ -3202,40 +2398,9 @@ var de_GetFindingsReportStatusCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3202
2398
|
Object.assign(contents, doc);
|
|
3203
2399
|
return contents;
|
|
3204
2400
|
}, "de_GetFindingsReportStatusCommand");
|
|
3205
|
-
var de_GetFindingsReportStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3206
|
-
const parsedOutput = {
|
|
3207
|
-
...output,
|
|
3208
|
-
body: await parseErrorBody(output.body, context)
|
|
3209
|
-
};
|
|
3210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3211
|
-
switch (errorCode) {
|
|
3212
|
-
case "AccessDeniedException":
|
|
3213
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3214
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3215
|
-
case "InternalServerException":
|
|
3216
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3217
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3218
|
-
case "ResourceNotFoundException":
|
|
3219
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3220
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3221
|
-
case "ThrottlingException":
|
|
3222
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3223
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3224
|
-
case "ValidationException":
|
|
3225
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3226
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3227
|
-
default:
|
|
3228
|
-
const parsedBody = parsedOutput.body;
|
|
3229
|
-
return throwDefaultError({
|
|
3230
|
-
output,
|
|
3231
|
-
parsedBody,
|
|
3232
|
-
errorCode
|
|
3233
|
-
});
|
|
3234
|
-
}
|
|
3235
|
-
}, "de_GetFindingsReportStatusCommandError");
|
|
3236
2401
|
var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3237
2402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3238
|
-
return
|
|
2403
|
+
return de_CommandError(output, context);
|
|
3239
2404
|
}
|
|
3240
2405
|
const contents = (0, import_smithy_client.map)({
|
|
3241
2406
|
$metadata: deserializeMetadata(output)
|
|
@@ -3247,40 +2412,9 @@ var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3247
2412
|
Object.assign(contents, doc);
|
|
3248
2413
|
return contents;
|
|
3249
2414
|
}, "de_GetMemberCommand");
|
|
3250
|
-
var de_GetMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3251
|
-
const parsedOutput = {
|
|
3252
|
-
...output,
|
|
3253
|
-
body: await parseErrorBody(output.body, context)
|
|
3254
|
-
};
|
|
3255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3256
|
-
switch (errorCode) {
|
|
3257
|
-
case "AccessDeniedException":
|
|
3258
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3259
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3260
|
-
case "InternalServerException":
|
|
3261
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3262
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "ResourceNotFoundException":
|
|
3264
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "ThrottlingException":
|
|
3267
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "ValidationException":
|
|
3270
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3271
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3272
|
-
default:
|
|
3273
|
-
const parsedBody = parsedOutput.body;
|
|
3274
|
-
return throwDefaultError({
|
|
3275
|
-
output,
|
|
3276
|
-
parsedBody,
|
|
3277
|
-
errorCode
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
}, "de_GetMemberCommandError");
|
|
3281
2415
|
var de_GetSbomExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3282
2416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3283
|
-
return
|
|
2417
|
+
return de_CommandError(output, context);
|
|
3284
2418
|
}
|
|
3285
2419
|
const contents = (0, import_smithy_client.map)({
|
|
3286
2420
|
$metadata: deserializeMetadata(output)
|
|
@@ -3298,40 +2432,9 @@ var de_GetSbomExportCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3298
2432
|
Object.assign(contents, doc);
|
|
3299
2433
|
return contents;
|
|
3300
2434
|
}, "de_GetSbomExportCommand");
|
|
3301
|
-
var de_GetSbomExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3302
|
-
const parsedOutput = {
|
|
3303
|
-
...output,
|
|
3304
|
-
body: await parseErrorBody(output.body, context)
|
|
3305
|
-
};
|
|
3306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3307
|
-
switch (errorCode) {
|
|
3308
|
-
case "AccessDeniedException":
|
|
3309
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3310
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "InternalServerException":
|
|
3312
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3313
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "ResourceNotFoundException":
|
|
3315
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3316
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3317
|
-
case "ThrottlingException":
|
|
3318
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3319
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "ValidationException":
|
|
3321
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3323
|
-
default:
|
|
3324
|
-
const parsedBody = parsedOutput.body;
|
|
3325
|
-
return throwDefaultError({
|
|
3326
|
-
output,
|
|
3327
|
-
parsedBody,
|
|
3328
|
-
errorCode
|
|
3329
|
-
});
|
|
3330
|
-
}
|
|
3331
|
-
}, "de_GetSbomExportCommandError");
|
|
3332
2435
|
var de_ListAccountPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3333
2436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3334
|
-
return
|
|
2437
|
+
return de_CommandError(output, context);
|
|
3335
2438
|
}
|
|
3336
2439
|
const contents = (0, import_smithy_client.map)({
|
|
3337
2440
|
$metadata: deserializeMetadata(output)
|
|
@@ -3344,37 +2447,9 @@ var de_ListAccountPermissionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3344
2447
|
Object.assign(contents, doc);
|
|
3345
2448
|
return contents;
|
|
3346
2449
|
}, "de_ListAccountPermissionsCommand");
|
|
3347
|
-
var de_ListAccountPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3348
|
-
const parsedOutput = {
|
|
3349
|
-
...output,
|
|
3350
|
-
body: await parseErrorBody(output.body, context)
|
|
3351
|
-
};
|
|
3352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3353
|
-
switch (errorCode) {
|
|
3354
|
-
case "AccessDeniedException":
|
|
3355
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "InternalServerException":
|
|
3358
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3359
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "ThrottlingException":
|
|
3361
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3362
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3363
|
-
case "ValidationException":
|
|
3364
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3365
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3366
|
-
default:
|
|
3367
|
-
const parsedBody = parsedOutput.body;
|
|
3368
|
-
return throwDefaultError({
|
|
3369
|
-
output,
|
|
3370
|
-
parsedBody,
|
|
3371
|
-
errorCode
|
|
3372
|
-
});
|
|
3373
|
-
}
|
|
3374
|
-
}, "de_ListAccountPermissionsCommandError");
|
|
3375
2450
|
var de_ListCisScanConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3376
2451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3377
|
-
return
|
|
2452
|
+
return de_CommandError(output, context);
|
|
3378
2453
|
}
|
|
3379
2454
|
const contents = (0, import_smithy_client.map)({
|
|
3380
2455
|
$metadata: deserializeMetadata(output)
|
|
@@ -3387,37 +2462,9 @@ var de_ListCisScanConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3387
2462
|
Object.assign(contents, doc);
|
|
3388
2463
|
return contents;
|
|
3389
2464
|
}, "de_ListCisScanConfigurationsCommand");
|
|
3390
|
-
var de_ListCisScanConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3391
|
-
const parsedOutput = {
|
|
3392
|
-
...output,
|
|
3393
|
-
body: await parseErrorBody(output.body, context)
|
|
3394
|
-
};
|
|
3395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
|
-
switch (errorCode) {
|
|
3397
|
-
case "AccessDeniedException":
|
|
3398
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "InternalServerException":
|
|
3401
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "ThrottlingException":
|
|
3404
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ValidationException":
|
|
3407
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3409
|
-
default:
|
|
3410
|
-
const parsedBody = parsedOutput.body;
|
|
3411
|
-
return throwDefaultError({
|
|
3412
|
-
output,
|
|
3413
|
-
parsedBody,
|
|
3414
|
-
errorCode
|
|
3415
|
-
});
|
|
3416
|
-
}
|
|
3417
|
-
}, "de_ListCisScanConfigurationsCommandError");
|
|
3418
2465
|
var de_ListCisScanResultsAggregatedByChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3419
2466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3420
|
-
return
|
|
2467
|
+
return de_CommandError(output, context);
|
|
3421
2468
|
}
|
|
3422
2469
|
const contents = (0, import_smithy_client.map)({
|
|
3423
2470
|
$metadata: deserializeMetadata(output)
|
|
@@ -3430,37 +2477,9 @@ var de_ListCisScanResultsAggregatedByChecksCommand = /* @__PURE__ */ __name(asyn
|
|
|
3430
2477
|
Object.assign(contents, doc);
|
|
3431
2478
|
return contents;
|
|
3432
2479
|
}, "de_ListCisScanResultsAggregatedByChecksCommand");
|
|
3433
|
-
var de_ListCisScanResultsAggregatedByChecksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3434
|
-
const parsedOutput = {
|
|
3435
|
-
...output,
|
|
3436
|
-
body: await parseErrorBody(output.body, context)
|
|
3437
|
-
};
|
|
3438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
|
-
switch (errorCode) {
|
|
3440
|
-
case "AccessDeniedException":
|
|
3441
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3442
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3443
|
-
case "InternalServerException":
|
|
3444
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3445
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "ThrottlingException":
|
|
3447
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3448
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "ValidationException":
|
|
3450
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3451
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3452
|
-
default:
|
|
3453
|
-
const parsedBody = parsedOutput.body;
|
|
3454
|
-
return throwDefaultError({
|
|
3455
|
-
output,
|
|
3456
|
-
parsedBody,
|
|
3457
|
-
errorCode
|
|
3458
|
-
});
|
|
3459
|
-
}
|
|
3460
|
-
}, "de_ListCisScanResultsAggregatedByChecksCommandError");
|
|
3461
2480
|
var de_ListCisScanResultsAggregatedByTargetResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3462
2481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3463
|
-
return
|
|
2482
|
+
return de_CommandError(output, context);
|
|
3464
2483
|
}
|
|
3465
2484
|
const contents = (0, import_smithy_client.map)({
|
|
3466
2485
|
$metadata: deserializeMetadata(output)
|
|
@@ -3473,37 +2492,9 @@ var de_ListCisScanResultsAggregatedByTargetResourceCommand = /* @__PURE__ */ __n
|
|
|
3473
2492
|
Object.assign(contents, doc);
|
|
3474
2493
|
return contents;
|
|
3475
2494
|
}, "de_ListCisScanResultsAggregatedByTargetResourceCommand");
|
|
3476
|
-
var de_ListCisScanResultsAggregatedByTargetResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3477
|
-
const parsedOutput = {
|
|
3478
|
-
...output,
|
|
3479
|
-
body: await parseErrorBody(output.body, context)
|
|
3480
|
-
};
|
|
3481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3482
|
-
switch (errorCode) {
|
|
3483
|
-
case "AccessDeniedException":
|
|
3484
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3485
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "InternalServerException":
|
|
3487
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3488
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3489
|
-
case "ThrottlingException":
|
|
3490
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3491
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3492
|
-
case "ValidationException":
|
|
3493
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3494
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3495
|
-
default:
|
|
3496
|
-
const parsedBody = parsedOutput.body;
|
|
3497
|
-
return throwDefaultError({
|
|
3498
|
-
output,
|
|
3499
|
-
parsedBody,
|
|
3500
|
-
errorCode
|
|
3501
|
-
});
|
|
3502
|
-
}
|
|
3503
|
-
}, "de_ListCisScanResultsAggregatedByTargetResourceCommandError");
|
|
3504
2495
|
var de_ListCisScansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3505
2496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3506
|
-
return
|
|
2497
|
+
return de_CommandError(output, context);
|
|
3507
2498
|
}
|
|
3508
2499
|
const contents = (0, import_smithy_client.map)({
|
|
3509
2500
|
$metadata: deserializeMetadata(output)
|
|
@@ -3516,37 +2507,9 @@ var de_ListCisScansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3516
2507
|
Object.assign(contents, doc);
|
|
3517
2508
|
return contents;
|
|
3518
2509
|
}, "de_ListCisScansCommand");
|
|
3519
|
-
var de_ListCisScansCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3520
|
-
const parsedOutput = {
|
|
3521
|
-
...output,
|
|
3522
|
-
body: await parseErrorBody(output.body, context)
|
|
3523
|
-
};
|
|
3524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3525
|
-
switch (errorCode) {
|
|
3526
|
-
case "AccessDeniedException":
|
|
3527
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "InternalServerException":
|
|
3530
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3531
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "ThrottlingException":
|
|
3533
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "ValidationException":
|
|
3536
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3537
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3538
|
-
default:
|
|
3539
|
-
const parsedBody = parsedOutput.body;
|
|
3540
|
-
return throwDefaultError({
|
|
3541
|
-
output,
|
|
3542
|
-
parsedBody,
|
|
3543
|
-
errorCode
|
|
3544
|
-
});
|
|
3545
|
-
}
|
|
3546
|
-
}, "de_ListCisScansCommandError");
|
|
3547
2510
|
var de_ListCoverageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3548
2511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3549
|
-
return
|
|
2512
|
+
return de_CommandError(output, context);
|
|
3550
2513
|
}
|
|
3551
2514
|
const contents = (0, import_smithy_client.map)({
|
|
3552
2515
|
$metadata: deserializeMetadata(output)
|
|
@@ -3559,34 +2522,9 @@ var de_ListCoverageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3559
2522
|
Object.assign(contents, doc);
|
|
3560
2523
|
return contents;
|
|
3561
2524
|
}, "de_ListCoverageCommand");
|
|
3562
|
-
var de_ListCoverageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3563
|
-
const parsedOutput = {
|
|
3564
|
-
...output,
|
|
3565
|
-
body: await parseErrorBody(output.body, context)
|
|
3566
|
-
};
|
|
3567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3568
|
-
switch (errorCode) {
|
|
3569
|
-
case "InternalServerException":
|
|
3570
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3571
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3572
|
-
case "ThrottlingException":
|
|
3573
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3574
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3575
|
-
case "ValidationException":
|
|
3576
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3578
|
-
default:
|
|
3579
|
-
const parsedBody = parsedOutput.body;
|
|
3580
|
-
return throwDefaultError({
|
|
3581
|
-
output,
|
|
3582
|
-
parsedBody,
|
|
3583
|
-
errorCode
|
|
3584
|
-
});
|
|
3585
|
-
}
|
|
3586
|
-
}, "de_ListCoverageCommandError");
|
|
3587
2525
|
var de_ListCoverageStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3588
2526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3589
|
-
return
|
|
2527
|
+
return de_CommandError(output, context);
|
|
3590
2528
|
}
|
|
3591
2529
|
const contents = (0, import_smithy_client.map)({
|
|
3592
2530
|
$metadata: deserializeMetadata(output)
|
|
@@ -3600,34 +2538,9 @@ var de_ListCoverageStatisticsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3600
2538
|
Object.assign(contents, doc);
|
|
3601
2539
|
return contents;
|
|
3602
2540
|
}, "de_ListCoverageStatisticsCommand");
|
|
3603
|
-
var de_ListCoverageStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3604
|
-
const parsedOutput = {
|
|
3605
|
-
...output,
|
|
3606
|
-
body: await parseErrorBody(output.body, context)
|
|
3607
|
-
};
|
|
3608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
|
-
switch (errorCode) {
|
|
3610
|
-
case "InternalServerException":
|
|
3611
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3612
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "ThrottlingException":
|
|
3614
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3615
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "ValidationException":
|
|
3617
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3619
|
-
default:
|
|
3620
|
-
const parsedBody = parsedOutput.body;
|
|
3621
|
-
return throwDefaultError({
|
|
3622
|
-
output,
|
|
3623
|
-
parsedBody,
|
|
3624
|
-
errorCode
|
|
3625
|
-
});
|
|
3626
|
-
}
|
|
3627
|
-
}, "de_ListCoverageStatisticsCommandError");
|
|
3628
2541
|
var de_ListDelegatedAdminAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3629
2542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3630
|
-
return
|
|
2543
|
+
return de_CommandError(output, context);
|
|
3631
2544
|
}
|
|
3632
2545
|
const contents = (0, import_smithy_client.map)({
|
|
3633
2546
|
$metadata: deserializeMetadata(output)
|
|
@@ -3640,37 +2553,9 @@ var de_ListDelegatedAdminAccountsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3640
2553
|
Object.assign(contents, doc);
|
|
3641
2554
|
return contents;
|
|
3642
2555
|
}, "de_ListDelegatedAdminAccountsCommand");
|
|
3643
|
-
var de_ListDelegatedAdminAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3644
|
-
const parsedOutput = {
|
|
3645
|
-
...output,
|
|
3646
|
-
body: await parseErrorBody(output.body, context)
|
|
3647
|
-
};
|
|
3648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3649
|
-
switch (errorCode) {
|
|
3650
|
-
case "AccessDeniedException":
|
|
3651
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3652
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "InternalServerException":
|
|
3654
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ThrottlingException":
|
|
3657
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3658
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "ValidationException":
|
|
3660
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3661
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3662
|
-
default:
|
|
3663
|
-
const parsedBody = parsedOutput.body;
|
|
3664
|
-
return throwDefaultError({
|
|
3665
|
-
output,
|
|
3666
|
-
parsedBody,
|
|
3667
|
-
errorCode
|
|
3668
|
-
});
|
|
3669
|
-
}
|
|
3670
|
-
}, "de_ListDelegatedAdminAccountsCommandError");
|
|
3671
2556
|
var de_ListFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3672
2557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3673
|
-
return
|
|
2558
|
+
return de_CommandError(output, context);
|
|
3674
2559
|
}
|
|
3675
2560
|
const contents = (0, import_smithy_client.map)({
|
|
3676
2561
|
$metadata: deserializeMetadata(output)
|
|
@@ -3683,37 +2568,9 @@ var de_ListFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3683
2568
|
Object.assign(contents, doc);
|
|
3684
2569
|
return contents;
|
|
3685
2570
|
}, "de_ListFiltersCommand");
|
|
3686
|
-
var de_ListFiltersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3687
|
-
const parsedOutput = {
|
|
3688
|
-
...output,
|
|
3689
|
-
body: await parseErrorBody(output.body, context)
|
|
3690
|
-
};
|
|
3691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3692
|
-
switch (errorCode) {
|
|
3693
|
-
case "AccessDeniedException":
|
|
3694
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3695
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3696
|
-
case "InternalServerException":
|
|
3697
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3698
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "ThrottlingException":
|
|
3700
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3701
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3702
|
-
case "ValidationException":
|
|
3703
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3704
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3705
|
-
default:
|
|
3706
|
-
const parsedBody = parsedOutput.body;
|
|
3707
|
-
return throwDefaultError({
|
|
3708
|
-
output,
|
|
3709
|
-
parsedBody,
|
|
3710
|
-
errorCode
|
|
3711
|
-
});
|
|
3712
|
-
}
|
|
3713
|
-
}, "de_ListFiltersCommandError");
|
|
3714
2571
|
var de_ListFindingAggregationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3715
2572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3716
|
-
return
|
|
2573
|
+
return de_CommandError(output, context);
|
|
3717
2574
|
}
|
|
3718
2575
|
const contents = (0, import_smithy_client.map)({
|
|
3719
2576
|
$metadata: deserializeMetadata(output)
|
|
@@ -3727,34 +2584,9 @@ var de_ListFindingAggregationsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3727
2584
|
Object.assign(contents, doc);
|
|
3728
2585
|
return contents;
|
|
3729
2586
|
}, "de_ListFindingAggregationsCommand");
|
|
3730
|
-
var de_ListFindingAggregationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3731
|
-
const parsedOutput = {
|
|
3732
|
-
...output,
|
|
3733
|
-
body: await parseErrorBody(output.body, context)
|
|
3734
|
-
};
|
|
3735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3736
|
-
switch (errorCode) {
|
|
3737
|
-
case "InternalServerException":
|
|
3738
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3739
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3740
|
-
case "ThrottlingException":
|
|
3741
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3742
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3743
|
-
case "ValidationException":
|
|
3744
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3745
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3746
|
-
default:
|
|
3747
|
-
const parsedBody = parsedOutput.body;
|
|
3748
|
-
return throwDefaultError({
|
|
3749
|
-
output,
|
|
3750
|
-
parsedBody,
|
|
3751
|
-
errorCode
|
|
3752
|
-
});
|
|
3753
|
-
}
|
|
3754
|
-
}, "de_ListFindingAggregationsCommandError");
|
|
3755
2587
|
var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3756
2588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3757
|
-
return
|
|
2589
|
+
return de_CommandError(output, context);
|
|
3758
2590
|
}
|
|
3759
2591
|
const contents = (0, import_smithy_client.map)({
|
|
3760
2592
|
$metadata: deserializeMetadata(output)
|
|
@@ -3767,34 +2599,9 @@ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3767
2599
|
Object.assign(contents, doc);
|
|
3768
2600
|
return contents;
|
|
3769
2601
|
}, "de_ListFindingsCommand");
|
|
3770
|
-
var de_ListFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3771
|
-
const parsedOutput = {
|
|
3772
|
-
...output,
|
|
3773
|
-
body: await parseErrorBody(output.body, context)
|
|
3774
|
-
};
|
|
3775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3776
|
-
switch (errorCode) {
|
|
3777
|
-
case "InternalServerException":
|
|
3778
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3779
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3780
|
-
case "ThrottlingException":
|
|
3781
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3782
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3783
|
-
case "ValidationException":
|
|
3784
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3785
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3786
|
-
default:
|
|
3787
|
-
const parsedBody = parsedOutput.body;
|
|
3788
|
-
return throwDefaultError({
|
|
3789
|
-
output,
|
|
3790
|
-
parsedBody,
|
|
3791
|
-
errorCode
|
|
3792
|
-
});
|
|
3793
|
-
}
|
|
3794
|
-
}, "de_ListFindingsCommandError");
|
|
3795
2602
|
var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3796
2603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3797
|
-
return
|
|
2604
|
+
return de_CommandError(output, context);
|
|
3798
2605
|
}
|
|
3799
2606
|
const contents = (0, import_smithy_client.map)({
|
|
3800
2607
|
$metadata: deserializeMetadata(output)
|
|
@@ -3807,37 +2614,9 @@ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3807
2614
|
Object.assign(contents, doc);
|
|
3808
2615
|
return contents;
|
|
3809
2616
|
}, "de_ListMembersCommand");
|
|
3810
|
-
var de_ListMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3811
|
-
const parsedOutput = {
|
|
3812
|
-
...output,
|
|
3813
|
-
body: await parseErrorBody(output.body, context)
|
|
3814
|
-
};
|
|
3815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3816
|
-
switch (errorCode) {
|
|
3817
|
-
case "AccessDeniedException":
|
|
3818
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3820
|
-
case "InternalServerException":
|
|
3821
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3822
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3823
|
-
case "ThrottlingException":
|
|
3824
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3825
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3826
|
-
case "ValidationException":
|
|
3827
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3828
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3829
|
-
default:
|
|
3830
|
-
const parsedBody = parsedOutput.body;
|
|
3831
|
-
return throwDefaultError({
|
|
3832
|
-
output,
|
|
3833
|
-
parsedBody,
|
|
3834
|
-
errorCode
|
|
3835
|
-
});
|
|
3836
|
-
}
|
|
3837
|
-
}, "de_ListMembersCommandError");
|
|
3838
2617
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3839
2618
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3840
|
-
return
|
|
2619
|
+
return de_CommandError(output, context);
|
|
3841
2620
|
}
|
|
3842
2621
|
const contents = (0, import_smithy_client.map)({
|
|
3843
2622
|
$metadata: deserializeMetadata(output)
|
|
@@ -3849,37 +2628,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3849
2628
|
Object.assign(contents, doc);
|
|
3850
2629
|
return contents;
|
|
3851
2630
|
}, "de_ListTagsForResourceCommand");
|
|
3852
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3853
|
-
const parsedOutput = {
|
|
3854
|
-
...output,
|
|
3855
|
-
body: await parseErrorBody(output.body, context)
|
|
3856
|
-
};
|
|
3857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3858
|
-
switch (errorCode) {
|
|
3859
|
-
case "InternalServerException":
|
|
3860
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3861
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3862
|
-
case "ResourceNotFoundException":
|
|
3863
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3864
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3865
|
-
case "ThrottlingException":
|
|
3866
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3867
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3868
|
-
case "ValidationException":
|
|
3869
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3870
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3871
|
-
default:
|
|
3872
|
-
const parsedBody = parsedOutput.body;
|
|
3873
|
-
return throwDefaultError({
|
|
3874
|
-
output,
|
|
3875
|
-
parsedBody,
|
|
3876
|
-
errorCode
|
|
3877
|
-
});
|
|
3878
|
-
}
|
|
3879
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3880
2631
|
var de_ListUsageTotalsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3881
2632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3882
|
-
return
|
|
2633
|
+
return de_CommandError(output, context);
|
|
3883
2634
|
}
|
|
3884
2635
|
const contents = (0, import_smithy_client.map)({
|
|
3885
2636
|
$metadata: deserializeMetadata(output)
|
|
@@ -3892,37 +2643,9 @@ var de_ListUsageTotalsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3892
2643
|
Object.assign(contents, doc);
|
|
3893
2644
|
return contents;
|
|
3894
2645
|
}, "de_ListUsageTotalsCommand");
|
|
3895
|
-
var de_ListUsageTotalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3896
|
-
const parsedOutput = {
|
|
3897
|
-
...output,
|
|
3898
|
-
body: await parseErrorBody(output.body, context)
|
|
3899
|
-
};
|
|
3900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3901
|
-
switch (errorCode) {
|
|
3902
|
-
case "AccessDeniedException":
|
|
3903
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3904
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3905
|
-
case "InternalServerException":
|
|
3906
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3908
|
-
case "ThrottlingException":
|
|
3909
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3910
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3911
|
-
case "ValidationException":
|
|
3912
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3913
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3914
|
-
default:
|
|
3915
|
-
const parsedBody = parsedOutput.body;
|
|
3916
|
-
return throwDefaultError({
|
|
3917
|
-
output,
|
|
3918
|
-
parsedBody,
|
|
3919
|
-
errorCode
|
|
3920
|
-
});
|
|
3921
|
-
}
|
|
3922
|
-
}, "de_ListUsageTotalsCommandError");
|
|
3923
2646
|
var de_ResetEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3924
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3925
|
-
return
|
|
2648
|
+
return de_CommandError(output, context);
|
|
3926
2649
|
}
|
|
3927
2650
|
const contents = (0, import_smithy_client.map)({
|
|
3928
2651
|
$metadata: deserializeMetadata(output)
|
|
@@ -3930,40 +2653,9 @@ var de_ResetEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3930
2653
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3931
2654
|
return contents;
|
|
3932
2655
|
}, "de_ResetEncryptionKeyCommand");
|
|
3933
|
-
var de_ResetEncryptionKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3934
|
-
const parsedOutput = {
|
|
3935
|
-
...output,
|
|
3936
|
-
body: await parseErrorBody(output.body, context)
|
|
3937
|
-
};
|
|
3938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3939
|
-
switch (errorCode) {
|
|
3940
|
-
case "AccessDeniedException":
|
|
3941
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3942
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3943
|
-
case "InternalServerException":
|
|
3944
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3945
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3946
|
-
case "ResourceNotFoundException":
|
|
3947
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
3948
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3949
|
-
case "ThrottlingException":
|
|
3950
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3951
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3952
|
-
case "ValidationException":
|
|
3953
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3954
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3955
|
-
default:
|
|
3956
|
-
const parsedBody = parsedOutput.body;
|
|
3957
|
-
return throwDefaultError({
|
|
3958
|
-
output,
|
|
3959
|
-
parsedBody,
|
|
3960
|
-
errorCode
|
|
3961
|
-
});
|
|
3962
|
-
}
|
|
3963
|
-
}, "de_ResetEncryptionKeyCommandError");
|
|
3964
2656
|
var de_SearchVulnerabilitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3965
2657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3966
|
-
return
|
|
2658
|
+
return de_CommandError(output, context);
|
|
3967
2659
|
}
|
|
3968
2660
|
const contents = (0, import_smithy_client.map)({
|
|
3969
2661
|
$metadata: deserializeMetadata(output)
|
|
@@ -3976,37 +2668,9 @@ var de_SearchVulnerabilitiesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3976
2668
|
Object.assign(contents, doc);
|
|
3977
2669
|
return contents;
|
|
3978
2670
|
}, "de_SearchVulnerabilitiesCommand");
|
|
3979
|
-
var de_SearchVulnerabilitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3980
|
-
const parsedOutput = {
|
|
3981
|
-
...output,
|
|
3982
|
-
body: await parseErrorBody(output.body, context)
|
|
3983
|
-
};
|
|
3984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3985
|
-
switch (errorCode) {
|
|
3986
|
-
case "AccessDeniedException":
|
|
3987
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
3988
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3989
|
-
case "InternalServerException":
|
|
3990
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
3991
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3992
|
-
case "ThrottlingException":
|
|
3993
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
3994
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3995
|
-
case "ValidationException":
|
|
3996
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
3997
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3998
|
-
default:
|
|
3999
|
-
const parsedBody = parsedOutput.body;
|
|
4000
|
-
return throwDefaultError({
|
|
4001
|
-
output,
|
|
4002
|
-
parsedBody,
|
|
4003
|
-
errorCode
|
|
4004
|
-
});
|
|
4005
|
-
}
|
|
4006
|
-
}, "de_SearchVulnerabilitiesCommandError");
|
|
4007
2671
|
var de_SendCisSessionHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4008
2672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4009
|
-
return
|
|
2673
|
+
return de_CommandError(output, context);
|
|
4010
2674
|
}
|
|
4011
2675
|
const contents = (0, import_smithy_client.map)({
|
|
4012
2676
|
$metadata: deserializeMetadata(output)
|
|
@@ -4014,163 +2678,39 @@ var de_SendCisSessionHealthCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4014
2678
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4015
2679
|
return contents;
|
|
4016
2680
|
}, "de_SendCisSessionHealthCommand");
|
|
4017
|
-
var de_SendCisSessionHealthCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4018
|
-
const parsedOutput = {
|
|
4019
|
-
...output,
|
|
4020
|
-
body: await parseErrorBody(output.body, context)
|
|
4021
|
-
};
|
|
4022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4023
|
-
switch (errorCode) {
|
|
4024
|
-
case "AccessDeniedException":
|
|
4025
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4026
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4027
|
-
case "ConflictException":
|
|
4028
|
-
case "com.amazonaws.inspector2#ConflictException":
|
|
4029
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4030
|
-
case "InternalServerException":
|
|
4031
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4032
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4033
|
-
case "ThrottlingException":
|
|
4034
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4035
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4036
|
-
case "ValidationException":
|
|
4037
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4038
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4039
|
-
default:
|
|
4040
|
-
const parsedBody = parsedOutput.body;
|
|
4041
|
-
return throwDefaultError({
|
|
4042
|
-
output,
|
|
4043
|
-
parsedBody,
|
|
4044
|
-
errorCode
|
|
4045
|
-
});
|
|
4046
|
-
}
|
|
4047
|
-
}, "de_SendCisSessionHealthCommandError");
|
|
4048
2681
|
var de_SendCisSessionTelemetryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4049
2682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4050
|
-
return
|
|
4051
|
-
}
|
|
4052
|
-
const contents = (0, import_smithy_client.map)({
|
|
4053
|
-
$metadata: deserializeMetadata(output)
|
|
4054
|
-
});
|
|
4055
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4056
|
-
return contents;
|
|
4057
|
-
}, "de_SendCisSessionTelemetryCommand");
|
|
4058
|
-
var de_SendCisSessionTelemetryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4059
|
-
const parsedOutput = {
|
|
4060
|
-
...output,
|
|
4061
|
-
body: await parseErrorBody(output.body, context)
|
|
4062
|
-
};
|
|
4063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4064
|
-
switch (errorCode) {
|
|
4065
|
-
case "AccessDeniedException":
|
|
4066
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4067
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4068
|
-
case "ConflictException":
|
|
4069
|
-
case "com.amazonaws.inspector2#ConflictException":
|
|
4070
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4071
|
-
case "InternalServerException":
|
|
4072
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4073
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4074
|
-
case "ThrottlingException":
|
|
4075
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4077
|
-
case "ValidationException":
|
|
4078
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4080
|
-
default:
|
|
4081
|
-
const parsedBody = parsedOutput.body;
|
|
4082
|
-
return throwDefaultError({
|
|
4083
|
-
output,
|
|
4084
|
-
parsedBody,
|
|
4085
|
-
errorCode
|
|
4086
|
-
});
|
|
4087
|
-
}
|
|
4088
|
-
}, "de_SendCisSessionTelemetryCommandError");
|
|
4089
|
-
var de_StartCisSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4090
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4091
|
-
return de_StartCisSessionCommandError(output, context);
|
|
4092
|
-
}
|
|
4093
|
-
const contents = (0, import_smithy_client.map)({
|
|
4094
|
-
$metadata: deserializeMetadata(output)
|
|
4095
|
-
});
|
|
4096
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4097
|
-
return contents;
|
|
4098
|
-
}, "de_StartCisSessionCommand");
|
|
4099
|
-
var de_StartCisSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4100
|
-
const parsedOutput = {
|
|
4101
|
-
...output,
|
|
4102
|
-
body: await parseErrorBody(output.body, context)
|
|
4103
|
-
};
|
|
4104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4105
|
-
switch (errorCode) {
|
|
4106
|
-
case "AccessDeniedException":
|
|
4107
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4108
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4109
|
-
case "ConflictException":
|
|
4110
|
-
case "com.amazonaws.inspector2#ConflictException":
|
|
4111
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4112
|
-
case "InternalServerException":
|
|
4113
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4114
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4115
|
-
case "ThrottlingException":
|
|
4116
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4117
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4118
|
-
case "ValidationException":
|
|
4119
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4120
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4121
|
-
default:
|
|
4122
|
-
const parsedBody = parsedOutput.body;
|
|
4123
|
-
return throwDefaultError({
|
|
4124
|
-
output,
|
|
4125
|
-
parsedBody,
|
|
4126
|
-
errorCode
|
|
4127
|
-
});
|
|
4128
|
-
}
|
|
4129
|
-
}, "de_StartCisSessionCommandError");
|
|
4130
|
-
var de_StopCisSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4131
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4132
|
-
return de_StopCisSessionCommandError(output, context);
|
|
4133
|
-
}
|
|
4134
|
-
const contents = (0, import_smithy_client.map)({
|
|
4135
|
-
$metadata: deserializeMetadata(output)
|
|
4136
|
-
});
|
|
4137
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4138
|
-
return contents;
|
|
4139
|
-
}, "de_StopCisSessionCommand");
|
|
4140
|
-
var de_StopCisSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4141
|
-
const parsedOutput = {
|
|
4142
|
-
...output,
|
|
4143
|
-
body: await parseErrorBody(output.body, context)
|
|
4144
|
-
};
|
|
4145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4146
|
-
switch (errorCode) {
|
|
4147
|
-
case "AccessDeniedException":
|
|
4148
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4150
|
-
case "ConflictException":
|
|
4151
|
-
case "com.amazonaws.inspector2#ConflictException":
|
|
4152
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4153
|
-
case "InternalServerException":
|
|
4154
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4155
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "ThrottlingException":
|
|
4157
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4158
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "ValidationException":
|
|
4160
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4162
|
-
default:
|
|
4163
|
-
const parsedBody = parsedOutput.body;
|
|
4164
|
-
return throwDefaultError({
|
|
4165
|
-
output,
|
|
4166
|
-
parsedBody,
|
|
4167
|
-
errorCode
|
|
4168
|
-
});
|
|
2683
|
+
return de_CommandError(output, context);
|
|
4169
2684
|
}
|
|
4170
|
-
|
|
2685
|
+
const contents = (0, import_smithy_client.map)({
|
|
2686
|
+
$metadata: deserializeMetadata(output)
|
|
2687
|
+
});
|
|
2688
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2689
|
+
return contents;
|
|
2690
|
+
}, "de_SendCisSessionTelemetryCommand");
|
|
2691
|
+
var de_StartCisSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2692
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2693
|
+
return de_CommandError(output, context);
|
|
2694
|
+
}
|
|
2695
|
+
const contents = (0, import_smithy_client.map)({
|
|
2696
|
+
$metadata: deserializeMetadata(output)
|
|
2697
|
+
});
|
|
2698
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2699
|
+
return contents;
|
|
2700
|
+
}, "de_StartCisSessionCommand");
|
|
2701
|
+
var de_StopCisSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2703
|
+
return de_CommandError(output, context);
|
|
2704
|
+
}
|
|
2705
|
+
const contents = (0, import_smithy_client.map)({
|
|
2706
|
+
$metadata: deserializeMetadata(output)
|
|
2707
|
+
});
|
|
2708
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2709
|
+
return contents;
|
|
2710
|
+
}, "de_StopCisSessionCommand");
|
|
4171
2711
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4172
2712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4173
|
-
return
|
|
2713
|
+
return de_CommandError(output, context);
|
|
4174
2714
|
}
|
|
4175
2715
|
const contents = (0, import_smithy_client.map)({
|
|
4176
2716
|
$metadata: deserializeMetadata(output)
|
|
@@ -4178,40 +2718,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4178
2718
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4179
2719
|
return contents;
|
|
4180
2720
|
}, "de_TagResourceCommand");
|
|
4181
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4182
|
-
const parsedOutput = {
|
|
4183
|
-
...output,
|
|
4184
|
-
body: await parseErrorBody(output.body, context)
|
|
4185
|
-
};
|
|
4186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4187
|
-
switch (errorCode) {
|
|
4188
|
-
case "BadRequestException":
|
|
4189
|
-
case "com.amazonaws.inspector2#BadRequestException":
|
|
4190
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4191
|
-
case "InternalServerException":
|
|
4192
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4194
|
-
case "ResourceNotFoundException":
|
|
4195
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
4196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4197
|
-
case "ThrottlingException":
|
|
4198
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4200
|
-
case "ValidationException":
|
|
4201
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4203
|
-
default:
|
|
4204
|
-
const parsedBody = parsedOutput.body;
|
|
4205
|
-
return throwDefaultError({
|
|
4206
|
-
output,
|
|
4207
|
-
parsedBody,
|
|
4208
|
-
errorCode
|
|
4209
|
-
});
|
|
4210
|
-
}
|
|
4211
|
-
}, "de_TagResourceCommandError");
|
|
4212
2721
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4213
2722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4214
|
-
return
|
|
2723
|
+
return de_CommandError(output, context);
|
|
4215
2724
|
}
|
|
4216
2725
|
const contents = (0, import_smithy_client.map)({
|
|
4217
2726
|
$metadata: deserializeMetadata(output)
|
|
@@ -4219,37 +2728,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4219
2728
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4220
2729
|
return contents;
|
|
4221
2730
|
}, "de_UntagResourceCommand");
|
|
4222
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4223
|
-
const parsedOutput = {
|
|
4224
|
-
...output,
|
|
4225
|
-
body: await parseErrorBody(output.body, context)
|
|
4226
|
-
};
|
|
4227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4228
|
-
switch (errorCode) {
|
|
4229
|
-
case "InternalServerException":
|
|
4230
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4231
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4232
|
-
case "ResourceNotFoundException":
|
|
4233
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
4234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4235
|
-
case "ThrottlingException":
|
|
4236
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4238
|
-
case "ValidationException":
|
|
4239
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4240
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4241
|
-
default:
|
|
4242
|
-
const parsedBody = parsedOutput.body;
|
|
4243
|
-
return throwDefaultError({
|
|
4244
|
-
output,
|
|
4245
|
-
parsedBody,
|
|
4246
|
-
errorCode
|
|
4247
|
-
});
|
|
4248
|
-
}
|
|
4249
|
-
}, "de_UntagResourceCommandError");
|
|
4250
2731
|
var de_UpdateCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4251
2732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4252
|
-
return
|
|
2733
|
+
return de_CommandError(output, context);
|
|
4253
2734
|
}
|
|
4254
2735
|
const contents = (0, import_smithy_client.map)({
|
|
4255
2736
|
$metadata: deserializeMetadata(output)
|
|
@@ -4261,40 +2742,9 @@ var de_UpdateCisScanConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4261
2742
|
Object.assign(contents, doc);
|
|
4262
2743
|
return contents;
|
|
4263
2744
|
}, "de_UpdateCisScanConfigurationCommand");
|
|
4264
|
-
var de_UpdateCisScanConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4265
|
-
const parsedOutput = {
|
|
4266
|
-
...output,
|
|
4267
|
-
body: await parseErrorBody(output.body, context)
|
|
4268
|
-
};
|
|
4269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4270
|
-
switch (errorCode) {
|
|
4271
|
-
case "AccessDeniedException":
|
|
4272
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4273
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4274
|
-
case "InternalServerException":
|
|
4275
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4276
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4277
|
-
case "ResourceNotFoundException":
|
|
4278
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
4279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4280
|
-
case "ThrottlingException":
|
|
4281
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4282
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4283
|
-
case "ValidationException":
|
|
4284
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4285
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4286
|
-
default:
|
|
4287
|
-
const parsedBody = parsedOutput.body;
|
|
4288
|
-
return throwDefaultError({
|
|
4289
|
-
output,
|
|
4290
|
-
parsedBody,
|
|
4291
|
-
errorCode
|
|
4292
|
-
});
|
|
4293
|
-
}
|
|
4294
|
-
}, "de_UpdateCisScanConfigurationCommandError");
|
|
4295
2745
|
var de_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4296
2746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4297
|
-
return
|
|
2747
|
+
return de_CommandError(output, context);
|
|
4298
2748
|
}
|
|
4299
2749
|
const contents = (0, import_smithy_client.map)({
|
|
4300
2750
|
$metadata: deserializeMetadata(output)
|
|
@@ -4302,37 +2752,9 @@ var de_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4302
2752
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4303
2753
|
return contents;
|
|
4304
2754
|
}, "de_UpdateConfigurationCommand");
|
|
4305
|
-
var de_UpdateConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4306
|
-
const parsedOutput = {
|
|
4307
|
-
...output,
|
|
4308
|
-
body: await parseErrorBody(output.body, context)
|
|
4309
|
-
};
|
|
4310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4311
|
-
switch (errorCode) {
|
|
4312
|
-
case "AccessDeniedException":
|
|
4313
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4314
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4315
|
-
case "InternalServerException":
|
|
4316
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4317
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4318
|
-
case "ThrottlingException":
|
|
4319
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4320
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4321
|
-
case "ValidationException":
|
|
4322
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4323
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4324
|
-
default:
|
|
4325
|
-
const parsedBody = parsedOutput.body;
|
|
4326
|
-
return throwDefaultError({
|
|
4327
|
-
output,
|
|
4328
|
-
parsedBody,
|
|
4329
|
-
errorCode
|
|
4330
|
-
});
|
|
4331
|
-
}
|
|
4332
|
-
}, "de_UpdateConfigurationCommandError");
|
|
4333
2755
|
var de_UpdateEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4334
2756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4335
|
-
return
|
|
2757
|
+
return de_CommandError(output, context);
|
|
4336
2758
|
}
|
|
4337
2759
|
const contents = (0, import_smithy_client.map)({
|
|
4338
2760
|
$metadata: deserializeMetadata(output)
|
|
@@ -4347,37 +2769,9 @@ var de_UpdateEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(asyn
|
|
|
4347
2769
|
Object.assign(contents, doc);
|
|
4348
2770
|
return contents;
|
|
4349
2771
|
}, "de_UpdateEc2DeepInspectionConfigurationCommand");
|
|
4350
|
-
var de_UpdateEc2DeepInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4351
|
-
const parsedOutput = {
|
|
4352
|
-
...output,
|
|
4353
|
-
body: await parseErrorBody(output.body, context)
|
|
4354
|
-
};
|
|
4355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4356
|
-
switch (errorCode) {
|
|
4357
|
-
case "AccessDeniedException":
|
|
4358
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4359
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4360
|
-
case "InternalServerException":
|
|
4361
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4362
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4363
|
-
case "ThrottlingException":
|
|
4364
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4365
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4366
|
-
case "ValidationException":
|
|
4367
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4368
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4369
|
-
default:
|
|
4370
|
-
const parsedBody = parsedOutput.body;
|
|
4371
|
-
return throwDefaultError({
|
|
4372
|
-
output,
|
|
4373
|
-
parsedBody,
|
|
4374
|
-
errorCode
|
|
4375
|
-
});
|
|
4376
|
-
}
|
|
4377
|
-
}, "de_UpdateEc2DeepInspectionConfigurationCommandError");
|
|
4378
2772
|
var de_UpdateEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4379
2773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4380
|
-
return
|
|
2774
|
+
return de_CommandError(output, context);
|
|
4381
2775
|
}
|
|
4382
2776
|
const contents = (0, import_smithy_client.map)({
|
|
4383
2777
|
$metadata: deserializeMetadata(output)
|
|
@@ -4385,40 +2779,9 @@ var de_UpdateEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4385
2779
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4386
2780
|
return contents;
|
|
4387
2781
|
}, "de_UpdateEncryptionKeyCommand");
|
|
4388
|
-
var de_UpdateEncryptionKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4389
|
-
const parsedOutput = {
|
|
4390
|
-
...output,
|
|
4391
|
-
body: await parseErrorBody(output.body, context)
|
|
4392
|
-
};
|
|
4393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4394
|
-
switch (errorCode) {
|
|
4395
|
-
case "AccessDeniedException":
|
|
4396
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4397
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4398
|
-
case "InternalServerException":
|
|
4399
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4400
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4401
|
-
case "ResourceNotFoundException":
|
|
4402
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
4403
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4404
|
-
case "ThrottlingException":
|
|
4405
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4406
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4407
|
-
case "ValidationException":
|
|
4408
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4409
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4410
|
-
default:
|
|
4411
|
-
const parsedBody = parsedOutput.body;
|
|
4412
|
-
return throwDefaultError({
|
|
4413
|
-
output,
|
|
4414
|
-
parsedBody,
|
|
4415
|
-
errorCode
|
|
4416
|
-
});
|
|
4417
|
-
}
|
|
4418
|
-
}, "de_UpdateEncryptionKeyCommandError");
|
|
4419
2782
|
var de_UpdateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4420
2783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4421
|
-
return
|
|
2784
|
+
return de_CommandError(output, context);
|
|
4422
2785
|
}
|
|
4423
2786
|
const contents = (0, import_smithy_client.map)({
|
|
4424
2787
|
$metadata: deserializeMetadata(output)
|
|
@@ -4430,40 +2793,9 @@ var de_UpdateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4430
2793
|
Object.assign(contents, doc);
|
|
4431
2794
|
return contents;
|
|
4432
2795
|
}, "de_UpdateFilterCommand");
|
|
4433
|
-
var de_UpdateFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4434
|
-
const parsedOutput = {
|
|
4435
|
-
...output,
|
|
4436
|
-
body: await parseErrorBody(output.body, context)
|
|
4437
|
-
};
|
|
4438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4439
|
-
switch (errorCode) {
|
|
4440
|
-
case "AccessDeniedException":
|
|
4441
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4442
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4443
|
-
case "InternalServerException":
|
|
4444
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4445
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4446
|
-
case "ResourceNotFoundException":
|
|
4447
|
-
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
4448
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4449
|
-
case "ThrottlingException":
|
|
4450
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4451
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4452
|
-
case "ValidationException":
|
|
4453
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4454
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4455
|
-
default:
|
|
4456
|
-
const parsedBody = parsedOutput.body;
|
|
4457
|
-
return throwDefaultError({
|
|
4458
|
-
output,
|
|
4459
|
-
parsedBody,
|
|
4460
|
-
errorCode
|
|
4461
|
-
});
|
|
4462
|
-
}
|
|
4463
|
-
}, "de_UpdateFilterCommandError");
|
|
4464
2796
|
var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4465
2797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4466
|
-
return
|
|
2798
|
+
return de_CommandError(output, context);
|
|
4467
2799
|
}
|
|
4468
2800
|
const contents = (0, import_smithy_client.map)({
|
|
4469
2801
|
$metadata: deserializeMetadata(output)
|
|
@@ -4475,37 +2807,9 @@ var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4475
2807
|
Object.assign(contents, doc);
|
|
4476
2808
|
return contents;
|
|
4477
2809
|
}, "de_UpdateOrganizationConfigurationCommand");
|
|
4478
|
-
var de_UpdateOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4479
|
-
const parsedOutput = {
|
|
4480
|
-
...output,
|
|
4481
|
-
body: await parseErrorBody(output.body, context)
|
|
4482
|
-
};
|
|
4483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4484
|
-
switch (errorCode) {
|
|
4485
|
-
case "AccessDeniedException":
|
|
4486
|
-
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
4487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4488
|
-
case "InternalServerException":
|
|
4489
|
-
case "com.amazonaws.inspector2#InternalServerException":
|
|
4490
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4491
|
-
case "ThrottlingException":
|
|
4492
|
-
case "com.amazonaws.inspector2#ThrottlingException":
|
|
4493
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4494
|
-
case "ValidationException":
|
|
4495
|
-
case "com.amazonaws.inspector2#ValidationException":
|
|
4496
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4497
|
-
default:
|
|
4498
|
-
const parsedBody = parsedOutput.body;
|
|
4499
|
-
return throwDefaultError({
|
|
4500
|
-
output,
|
|
4501
|
-
parsedBody,
|
|
4502
|
-
errorCode
|
|
4503
|
-
});
|
|
4504
|
-
}
|
|
4505
|
-
}, "de_UpdateOrganizationConfigurationCommandError");
|
|
4506
2810
|
var de_UpdateOrgEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4507
2811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4508
|
-
return
|
|
2812
|
+
return de_CommandError(output, context);
|
|
4509
2813
|
}
|
|
4510
2814
|
const contents = (0, import_smithy_client.map)({
|
|
4511
2815
|
$metadata: deserializeMetadata(output)
|
|
@@ -4513,7 +2817,7 @@ var de_UpdateOrgEc2DeepInspectionConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
4513
2817
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4514
2818
|
return contents;
|
|
4515
2819
|
}, "de_UpdateOrgEc2DeepInspectionConfigurationCommand");
|
|
4516
|
-
var
|
|
2820
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4517
2821
|
const parsedOutput = {
|
|
4518
2822
|
...output,
|
|
4519
2823
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4532,6 +2836,18 @@ var de_UpdateOrgEc2DeepInspectionConfigurationCommandError = /* @__PURE__ */ __n
|
|
|
4532
2836
|
case "ValidationException":
|
|
4533
2837
|
case "com.amazonaws.inspector2#ValidationException":
|
|
4534
2838
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2839
|
+
case "ResourceNotFoundException":
|
|
2840
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2841
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2842
|
+
case "BadRequestException":
|
|
2843
|
+
case "com.amazonaws.inspector2#BadRequestException":
|
|
2844
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2845
|
+
case "ServiceQuotaExceededException":
|
|
2846
|
+
case "com.amazonaws.inspector2#ServiceQuotaExceededException":
|
|
2847
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2848
|
+
case "ConflictException":
|
|
2849
|
+
case "com.amazonaws.inspector2#ConflictException":
|
|
2850
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4535
2851
|
default:
|
|
4536
2852
|
const parsedBody = parsedOutput.body;
|
|
4537
2853
|
return throwDefaultError({
|
|
@@ -4540,7 +2856,7 @@ var de_UpdateOrgEc2DeepInspectionConfigurationCommandError = /* @__PURE__ */ __n
|
|
|
4540
2856
|
errorCode
|
|
4541
2857
|
});
|
|
4542
2858
|
}
|
|
4543
|
-
}, "
|
|
2859
|
+
}, "de_CommandError");
|
|
4544
2860
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(Inspector2ServiceException);
|
|
4545
2861
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4546
2862
|
const contents = (0, import_smithy_client.map)({});
|