@aws-sdk/client-cloudtrail 3.504.0 → 3.509.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 +362 -2369
- package/dist-es/protocols/Aws_json1_1.js +358 -2365
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2168,7 +2168,7 @@ var se_UpdateTrailCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2168
2168
|
}, "se_UpdateTrailCommand");
|
|
2169
2169
|
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2170
2170
|
if (output.statusCode >= 300) {
|
|
2171
|
-
return
|
|
2171
|
+
return de_CommandError(output, context);
|
|
2172
2172
|
}
|
|
2173
2173
|
const data = await parseBody(output.body, context);
|
|
2174
2174
|
let contents = {};
|
|
@@ -2179,517 +2179,9 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2179
2179
|
};
|
|
2180
2180
|
return response;
|
|
2181
2181
|
}, "de_AddTagsCommand");
|
|
2182
|
-
var
|
|
2183
|
-
const parsedOutput = {
|
|
2184
|
-
...output,
|
|
2185
|
-
body: await parseErrorBody(output.body, context)
|
|
2186
|
-
};
|
|
2187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
|
-
switch (errorCode) {
|
|
2189
|
-
case "ChannelARNInvalidException":
|
|
2190
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
2191
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ChannelNotFoundException":
|
|
2193
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2194
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "CloudTrailARNInvalidException":
|
|
2196
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2197
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "ConflictException":
|
|
2199
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2200
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "EventDataStoreARNInvalidException":
|
|
2202
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2203
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "EventDataStoreNotFoundException":
|
|
2205
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2206
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "InactiveEventDataStoreException":
|
|
2208
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2209
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "InvalidTagParameterException":
|
|
2211
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
2212
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "InvalidTrailNameException":
|
|
2214
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2215
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "NoManagementAccountSLRExistsException":
|
|
2217
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2218
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "NotOrganizationMasterAccountException":
|
|
2220
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2221
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "OperationNotPermittedException":
|
|
2223
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2224
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "ResourceNotFoundException":
|
|
2226
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2227
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "ResourceTypeNotSupportedException":
|
|
2229
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2230
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "TagsLimitExceededException":
|
|
2232
|
-
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
2233
|
-
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "UnsupportedOperationException":
|
|
2235
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2236
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2237
|
-
default:
|
|
2238
|
-
const parsedBody = parsedOutput.body;
|
|
2239
|
-
return throwDefaultError({
|
|
2240
|
-
output,
|
|
2241
|
-
parsedBody,
|
|
2242
|
-
errorCode
|
|
2243
|
-
});
|
|
2244
|
-
}
|
|
2245
|
-
}, "de_AddTagsCommandError");
|
|
2246
|
-
var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2247
|
-
if (output.statusCode >= 300) {
|
|
2248
|
-
return de_CancelQueryCommandError(output, context);
|
|
2249
|
-
}
|
|
2250
|
-
const data = await parseBody(output.body, context);
|
|
2251
|
-
let contents = {};
|
|
2252
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2253
|
-
const response = {
|
|
2254
|
-
$metadata: deserializeMetadata(output),
|
|
2255
|
-
...contents
|
|
2256
|
-
};
|
|
2257
|
-
return response;
|
|
2258
|
-
}, "de_CancelQueryCommand");
|
|
2259
|
-
var de_CancelQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2260
|
-
const parsedOutput = {
|
|
2261
|
-
...output,
|
|
2262
|
-
body: await parseErrorBody(output.body, context)
|
|
2263
|
-
};
|
|
2264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2265
|
-
switch (errorCode) {
|
|
2266
|
-
case "ConflictException":
|
|
2267
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2268
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "EventDataStoreARNInvalidException":
|
|
2270
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2271
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2272
|
-
case "EventDataStoreNotFoundException":
|
|
2273
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2274
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2275
|
-
case "InactiveEventDataStoreException":
|
|
2276
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2277
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2278
|
-
case "InactiveQueryException":
|
|
2279
|
-
case "com.amazonaws.cloudtrail#InactiveQueryException":
|
|
2280
|
-
throw await de_InactiveQueryExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "InvalidParameterException":
|
|
2282
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2283
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "NoManagementAccountSLRExistsException":
|
|
2285
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2286
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "OperationNotPermittedException":
|
|
2288
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2289
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "QueryIdNotFoundException":
|
|
2291
|
-
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
2292
|
-
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
2293
|
-
case "UnsupportedOperationException":
|
|
2294
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2295
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2296
|
-
default:
|
|
2297
|
-
const parsedBody = parsedOutput.body;
|
|
2298
|
-
return throwDefaultError({
|
|
2299
|
-
output,
|
|
2300
|
-
parsedBody,
|
|
2301
|
-
errorCode
|
|
2302
|
-
});
|
|
2303
|
-
}
|
|
2304
|
-
}, "de_CancelQueryCommandError");
|
|
2305
|
-
var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2306
|
-
if (output.statusCode >= 300) {
|
|
2307
|
-
return de_CreateChannelCommandError(output, context);
|
|
2308
|
-
}
|
|
2309
|
-
const data = await parseBody(output.body, context);
|
|
2310
|
-
let contents = {};
|
|
2311
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2312
|
-
const response = {
|
|
2313
|
-
$metadata: deserializeMetadata(output),
|
|
2314
|
-
...contents
|
|
2315
|
-
};
|
|
2316
|
-
return response;
|
|
2317
|
-
}, "de_CreateChannelCommand");
|
|
2318
|
-
var de_CreateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2319
|
-
const parsedOutput = {
|
|
2320
|
-
...output,
|
|
2321
|
-
body: await parseErrorBody(output.body, context)
|
|
2322
|
-
};
|
|
2323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
|
-
switch (errorCode) {
|
|
2325
|
-
case "ChannelAlreadyExistsException":
|
|
2326
|
-
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
2327
|
-
throw await de_ChannelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ChannelMaxLimitExceededException":
|
|
2329
|
-
case "com.amazonaws.cloudtrail#ChannelMaxLimitExceededException":
|
|
2330
|
-
throw await de_ChannelMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "EventDataStoreARNInvalidException":
|
|
2332
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2333
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "EventDataStoreNotFoundException":
|
|
2335
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2336
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "InactiveEventDataStoreException":
|
|
2338
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2339
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "InvalidEventDataStoreCategoryException":
|
|
2341
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
2342
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "InvalidParameterException":
|
|
2344
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2345
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "InvalidSourceException":
|
|
2347
|
-
case "com.amazonaws.cloudtrail#InvalidSourceException":
|
|
2348
|
-
throw await de_InvalidSourceExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "InvalidTagParameterException":
|
|
2350
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
2351
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "OperationNotPermittedException":
|
|
2353
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2354
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "TagsLimitExceededException":
|
|
2356
|
-
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
2357
|
-
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "UnsupportedOperationException":
|
|
2359
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2360
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2361
|
-
default:
|
|
2362
|
-
const parsedBody = parsedOutput.body;
|
|
2363
|
-
return throwDefaultError({
|
|
2364
|
-
output,
|
|
2365
|
-
parsedBody,
|
|
2366
|
-
errorCode
|
|
2367
|
-
});
|
|
2368
|
-
}
|
|
2369
|
-
}, "de_CreateChannelCommandError");
|
|
2370
|
-
var de_CreateEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2371
|
-
if (output.statusCode >= 300) {
|
|
2372
|
-
return de_CreateEventDataStoreCommandError(output, context);
|
|
2373
|
-
}
|
|
2374
|
-
const data = await parseBody(output.body, context);
|
|
2375
|
-
let contents = {};
|
|
2376
|
-
contents = de_CreateEventDataStoreResponse(data, context);
|
|
2377
|
-
const response = {
|
|
2378
|
-
$metadata: deserializeMetadata(output),
|
|
2379
|
-
...contents
|
|
2380
|
-
};
|
|
2381
|
-
return response;
|
|
2382
|
-
}, "de_CreateEventDataStoreCommand");
|
|
2383
|
-
var de_CreateEventDataStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
|
-
const parsedOutput = {
|
|
2385
|
-
...output,
|
|
2386
|
-
body: await parseErrorBody(output.body, context)
|
|
2387
|
-
};
|
|
2388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
|
-
switch (errorCode) {
|
|
2390
|
-
case "CloudTrailAccessNotEnabledException":
|
|
2391
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2392
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "ConflictException":
|
|
2394
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2395
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "EventDataStoreAlreadyExistsException":
|
|
2397
|
-
case "com.amazonaws.cloudtrail#EventDataStoreAlreadyExistsException":
|
|
2398
|
-
throw await de_EventDataStoreAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "EventDataStoreMaxLimitExceededException":
|
|
2400
|
-
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
2401
|
-
throw await de_EventDataStoreMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2403
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2404
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "InsufficientEncryptionPolicyException":
|
|
2406
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2407
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "InvalidEventSelectorsException":
|
|
2409
|
-
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
2410
|
-
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "InvalidKmsKeyIdException":
|
|
2412
|
-
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
2413
|
-
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "InvalidParameterException":
|
|
2415
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2416
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "InvalidTagParameterException":
|
|
2418
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
2419
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "KmsException":
|
|
2421
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
2422
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "KmsKeyNotFoundException":
|
|
2424
|
-
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
2425
|
-
throw await de_KmsKeyNotFoundExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "NoManagementAccountSLRExistsException":
|
|
2427
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2428
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "NotOrganizationMasterAccountException":
|
|
2430
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2431
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "OperationNotPermittedException":
|
|
2433
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2434
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
2436
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
2437
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "OrganizationsNotInUseException":
|
|
2439
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
2440
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "UnsupportedOperationException":
|
|
2442
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2443
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2444
|
-
default:
|
|
2445
|
-
const parsedBody = parsedOutput.body;
|
|
2446
|
-
return throwDefaultError({
|
|
2447
|
-
output,
|
|
2448
|
-
parsedBody,
|
|
2449
|
-
errorCode
|
|
2450
|
-
});
|
|
2451
|
-
}
|
|
2452
|
-
}, "de_CreateEventDataStoreCommandError");
|
|
2453
|
-
var de_CreateTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2454
|
-
if (output.statusCode >= 300) {
|
|
2455
|
-
return de_CreateTrailCommandError(output, context);
|
|
2456
|
-
}
|
|
2457
|
-
const data = await parseBody(output.body, context);
|
|
2458
|
-
let contents = {};
|
|
2459
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2460
|
-
const response = {
|
|
2461
|
-
$metadata: deserializeMetadata(output),
|
|
2462
|
-
...contents
|
|
2463
|
-
};
|
|
2464
|
-
return response;
|
|
2465
|
-
}, "de_CreateTrailCommand");
|
|
2466
|
-
var de_CreateTrailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2467
|
-
const parsedOutput = {
|
|
2468
|
-
...output,
|
|
2469
|
-
body: await parseErrorBody(output.body, context)
|
|
2470
|
-
};
|
|
2471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
-
switch (errorCode) {
|
|
2473
|
-
case "CloudTrailAccessNotEnabledException":
|
|
2474
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2475
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "CloudTrailInvalidClientTokenIdException":
|
|
2477
|
-
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
2478
|
-
throw await de_CloudTrailInvalidClientTokenIdExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "CloudWatchLogsDeliveryUnavailableException":
|
|
2480
|
-
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
2481
|
-
throw await de_CloudWatchLogsDeliveryUnavailableExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "ConflictException":
|
|
2483
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2484
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2486
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2487
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "InsufficientEncryptionPolicyException":
|
|
2489
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
2490
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
2491
|
-
case "InsufficientS3BucketPolicyException":
|
|
2492
|
-
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
2493
|
-
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "InsufficientSnsTopicPolicyException":
|
|
2495
|
-
case "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException":
|
|
2496
|
-
throw await de_InsufficientSnsTopicPolicyExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "InvalidCloudWatchLogsLogGroupArnException":
|
|
2498
|
-
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException":
|
|
2499
|
-
throw await de_InvalidCloudWatchLogsLogGroupArnExceptionRes(parsedOutput, context);
|
|
2500
|
-
case "InvalidCloudWatchLogsRoleArnException":
|
|
2501
|
-
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException":
|
|
2502
|
-
throw await de_InvalidCloudWatchLogsRoleArnExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "InvalidKmsKeyIdException":
|
|
2504
|
-
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
2505
|
-
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "InvalidParameterCombinationException":
|
|
2507
|
-
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
2508
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "InvalidS3BucketNameException":
|
|
2510
|
-
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
2511
|
-
throw await de_InvalidS3BucketNameExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "InvalidS3PrefixException":
|
|
2513
|
-
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
2514
|
-
throw await de_InvalidS3PrefixExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "InvalidSnsTopicNameException":
|
|
2516
|
-
case "com.amazonaws.cloudtrail#InvalidSnsTopicNameException":
|
|
2517
|
-
throw await de_InvalidSnsTopicNameExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "InvalidTagParameterException":
|
|
2519
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
2520
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "InvalidTrailNameException":
|
|
2522
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2523
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "KmsException":
|
|
2525
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
2526
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
2527
|
-
case "KmsKeyDisabledException":
|
|
2528
|
-
case "com.amazonaws.cloudtrail#KmsKeyDisabledException":
|
|
2529
|
-
throw await de_KmsKeyDisabledExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "KmsKeyNotFoundException":
|
|
2531
|
-
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
2532
|
-
throw await de_KmsKeyNotFoundExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "MaximumNumberOfTrailsExceededException":
|
|
2534
|
-
case "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException":
|
|
2535
|
-
throw await de_MaximumNumberOfTrailsExceededExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "NoManagementAccountSLRExistsException":
|
|
2537
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2538
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "NotOrganizationMasterAccountException":
|
|
2540
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2541
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "OperationNotPermittedException":
|
|
2543
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2544
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
2546
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
2547
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "OrganizationsNotInUseException":
|
|
2549
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
2550
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "S3BucketDoesNotExistException":
|
|
2552
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
2553
|
-
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "TagsLimitExceededException":
|
|
2555
|
-
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
2556
|
-
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "ThrottlingException":
|
|
2558
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
2559
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "TrailAlreadyExistsException":
|
|
2561
|
-
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
2562
|
-
throw await de_TrailAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "TrailNotProvidedException":
|
|
2564
|
-
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
2565
|
-
throw await de_TrailNotProvidedExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "UnsupportedOperationException":
|
|
2567
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2568
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2569
|
-
default:
|
|
2570
|
-
const parsedBody = parsedOutput.body;
|
|
2571
|
-
return throwDefaultError({
|
|
2572
|
-
output,
|
|
2573
|
-
parsedBody,
|
|
2574
|
-
errorCode
|
|
2575
|
-
});
|
|
2576
|
-
}
|
|
2577
|
-
}, "de_CreateTrailCommandError");
|
|
2578
|
-
var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2579
|
-
if (output.statusCode >= 300) {
|
|
2580
|
-
return de_DeleteChannelCommandError(output, context);
|
|
2581
|
-
}
|
|
2582
|
-
const data = await parseBody(output.body, context);
|
|
2583
|
-
let contents = {};
|
|
2584
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2585
|
-
const response = {
|
|
2586
|
-
$metadata: deserializeMetadata(output),
|
|
2587
|
-
...contents
|
|
2588
|
-
};
|
|
2589
|
-
return response;
|
|
2590
|
-
}, "de_DeleteChannelCommand");
|
|
2591
|
-
var de_DeleteChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2592
|
-
const parsedOutput = {
|
|
2593
|
-
...output,
|
|
2594
|
-
body: await parseErrorBody(output.body, context)
|
|
2595
|
-
};
|
|
2596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2597
|
-
switch (errorCode) {
|
|
2598
|
-
case "ChannelARNInvalidException":
|
|
2599
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
2600
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
2601
|
-
case "ChannelNotFoundException":
|
|
2602
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
2603
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
2604
|
-
case "OperationNotPermittedException":
|
|
2605
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2606
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "UnsupportedOperationException":
|
|
2608
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2609
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2610
|
-
default:
|
|
2611
|
-
const parsedBody = parsedOutput.body;
|
|
2612
|
-
return throwDefaultError({
|
|
2613
|
-
output,
|
|
2614
|
-
parsedBody,
|
|
2615
|
-
errorCode
|
|
2616
|
-
});
|
|
2617
|
-
}
|
|
2618
|
-
}, "de_DeleteChannelCommandError");
|
|
2619
|
-
var de_DeleteEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2620
|
-
if (output.statusCode >= 300) {
|
|
2621
|
-
return de_DeleteEventDataStoreCommandError(output, context);
|
|
2622
|
-
}
|
|
2623
|
-
const data = await parseBody(output.body, context);
|
|
2624
|
-
let contents = {};
|
|
2625
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2626
|
-
const response = {
|
|
2627
|
-
$metadata: deserializeMetadata(output),
|
|
2628
|
-
...contents
|
|
2629
|
-
};
|
|
2630
|
-
return response;
|
|
2631
|
-
}, "de_DeleteEventDataStoreCommand");
|
|
2632
|
-
var de_DeleteEventDataStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2633
|
-
const parsedOutput = {
|
|
2634
|
-
...output,
|
|
2635
|
-
body: await parseErrorBody(output.body, context)
|
|
2636
|
-
};
|
|
2637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2638
|
-
switch (errorCode) {
|
|
2639
|
-
case "ChannelExistsForEDSException":
|
|
2640
|
-
case "com.amazonaws.cloudtrail#ChannelExistsForEDSException":
|
|
2641
|
-
throw await de_ChannelExistsForEDSExceptionRes(parsedOutput, context);
|
|
2642
|
-
case "ConflictException":
|
|
2643
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2644
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2645
|
-
case "EventDataStoreARNInvalidException":
|
|
2646
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2647
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "EventDataStoreFederationEnabledException":
|
|
2649
|
-
case "com.amazonaws.cloudtrail#EventDataStoreFederationEnabledException":
|
|
2650
|
-
throw await de_EventDataStoreFederationEnabledExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "EventDataStoreHasOngoingImportException":
|
|
2652
|
-
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException":
|
|
2653
|
-
throw await de_EventDataStoreHasOngoingImportExceptionRes(parsedOutput, context);
|
|
2654
|
-
case "EventDataStoreNotFoundException":
|
|
2655
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2656
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "EventDataStoreTerminationProtectedException":
|
|
2658
|
-
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
2659
|
-
throw await de_EventDataStoreTerminationProtectedExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "InactiveEventDataStoreException":
|
|
2661
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2662
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2664
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2665
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "InvalidParameterException":
|
|
2667
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2668
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "NoManagementAccountSLRExistsException":
|
|
2670
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2671
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "NotOrganizationMasterAccountException":
|
|
2673
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2674
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "OperationNotPermittedException":
|
|
2676
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2677
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "UnsupportedOperationException":
|
|
2679
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2680
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2681
|
-
default:
|
|
2682
|
-
const parsedBody = parsedOutput.body;
|
|
2683
|
-
return throwDefaultError({
|
|
2684
|
-
output,
|
|
2685
|
-
parsedBody,
|
|
2686
|
-
errorCode
|
|
2687
|
-
});
|
|
2688
|
-
}
|
|
2689
|
-
}, "de_DeleteEventDataStoreCommandError");
|
|
2690
|
-
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2182
|
+
var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2691
2183
|
if (output.statusCode >= 300) {
|
|
2692
|
-
return
|
|
2184
|
+
return de_CommandError(output, context);
|
|
2693
2185
|
}
|
|
2694
2186
|
const data = await parseBody(output.body, context);
|
|
2695
2187
|
let contents = {};
|
|
@@ -2699,44 +2191,10 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2699
2191
|
...contents
|
|
2700
2192
|
};
|
|
2701
2193
|
return response;
|
|
2702
|
-
}, "
|
|
2703
|
-
var
|
|
2704
|
-
const parsedOutput = {
|
|
2705
|
-
...output,
|
|
2706
|
-
body: await parseErrorBody(output.body, context)
|
|
2707
|
-
};
|
|
2708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
|
-
switch (errorCode) {
|
|
2710
|
-
case "OperationNotPermittedException":
|
|
2711
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2712
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "ResourceARNNotValidException":
|
|
2714
|
-
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
2715
|
-
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "ResourceNotFoundException":
|
|
2717
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "ResourcePolicyNotFoundException":
|
|
2720
|
-
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
2721
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "ResourceTypeNotSupportedException":
|
|
2723
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2724
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "UnsupportedOperationException":
|
|
2726
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2727
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2728
|
-
default:
|
|
2729
|
-
const parsedBody = parsedOutput.body;
|
|
2730
|
-
return throwDefaultError({
|
|
2731
|
-
output,
|
|
2732
|
-
parsedBody,
|
|
2733
|
-
errorCode
|
|
2734
|
-
});
|
|
2735
|
-
}
|
|
2736
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
2737
|
-
var de_DeleteTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2194
|
+
}, "de_CancelQueryCommand");
|
|
2195
|
+
var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2738
2196
|
if (output.statusCode >= 300) {
|
|
2739
|
-
return
|
|
2197
|
+
return de_CommandError(output, context);
|
|
2740
2198
|
}
|
|
2741
2199
|
const data = await parseBody(output.body, context);
|
|
2742
2200
|
let contents = {};
|
|
@@ -2746,59 +2204,23 @@ var de_DeleteTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2746
2204
|
...contents
|
|
2747
2205
|
};
|
|
2748
2206
|
return response;
|
|
2749
|
-
}, "
|
|
2750
|
-
var
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
body: await parseErrorBody(output.body, context)
|
|
2754
|
-
};
|
|
2755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
|
-
switch (errorCode) {
|
|
2757
|
-
case "CloudTrailARNInvalidException":
|
|
2758
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2759
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "ConflictException":
|
|
2761
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2762
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2764
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2765
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "InvalidHomeRegionException":
|
|
2767
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2768
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "InvalidTrailNameException":
|
|
2770
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2771
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "NoManagementAccountSLRExistsException":
|
|
2773
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2774
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "NotOrganizationMasterAccountException":
|
|
2776
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2777
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "OperationNotPermittedException":
|
|
2779
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2780
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ThrottlingException":
|
|
2782
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
2783
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "TrailNotFoundException":
|
|
2785
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2786
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "UnsupportedOperationException":
|
|
2788
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2789
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2790
|
-
default:
|
|
2791
|
-
const parsedBody = parsedOutput.body;
|
|
2792
|
-
return throwDefaultError({
|
|
2793
|
-
output,
|
|
2794
|
-
parsedBody,
|
|
2795
|
-
errorCode
|
|
2796
|
-
});
|
|
2207
|
+
}, "de_CreateChannelCommand");
|
|
2208
|
+
var de_CreateEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2209
|
+
if (output.statusCode >= 300) {
|
|
2210
|
+
return de_CommandError(output, context);
|
|
2797
2211
|
}
|
|
2798
|
-
|
|
2799
|
-
|
|
2212
|
+
const data = await parseBody(output.body, context);
|
|
2213
|
+
let contents = {};
|
|
2214
|
+
contents = de_CreateEventDataStoreResponse(data, context);
|
|
2215
|
+
const response = {
|
|
2216
|
+
$metadata: deserializeMetadata(output),
|
|
2217
|
+
...contents
|
|
2218
|
+
};
|
|
2219
|
+
return response;
|
|
2220
|
+
}, "de_CreateEventDataStoreCommand");
|
|
2221
|
+
var de_CreateTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2800
2222
|
if (output.statusCode >= 300) {
|
|
2801
|
-
return
|
|
2223
|
+
return de_CommandError(output, context);
|
|
2802
2224
|
}
|
|
2803
2225
|
const data = await parseBody(output.body, context);
|
|
2804
2226
|
let contents = {};
|
|
@@ -2808,112 +2230,49 @@ var de_DeregisterOrganizationDelegatedAdminCommand = /* @__PURE__ */ __name(asyn
|
|
|
2808
2230
|
...contents
|
|
2809
2231
|
};
|
|
2810
2232
|
return response;
|
|
2811
|
-
}, "
|
|
2812
|
-
var
|
|
2813
|
-
const parsedOutput = {
|
|
2814
|
-
...output,
|
|
2815
|
-
body: await parseErrorBody(output.body, context)
|
|
2816
|
-
};
|
|
2817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2818
|
-
switch (errorCode) {
|
|
2819
|
-
case "AccountNotFoundException":
|
|
2820
|
-
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
2821
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "AccountNotRegisteredException":
|
|
2823
|
-
case "com.amazonaws.cloudtrail#AccountNotRegisteredException":
|
|
2824
|
-
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "CloudTrailAccessNotEnabledException":
|
|
2826
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2827
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ConflictException":
|
|
2829
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2830
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2832
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2833
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "InvalidParameterException":
|
|
2835
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2836
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "NotOrganizationManagementAccountException":
|
|
2838
|
-
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
2839
|
-
throw await de_NotOrganizationManagementAccountExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "OperationNotPermittedException":
|
|
2841
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2842
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
2844
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
2845
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "OrganizationsNotInUseException":
|
|
2847
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
2848
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "UnsupportedOperationException":
|
|
2850
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2851
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2852
|
-
default:
|
|
2853
|
-
const parsedBody = parsedOutput.body;
|
|
2854
|
-
return throwDefaultError({
|
|
2855
|
-
output,
|
|
2856
|
-
parsedBody,
|
|
2857
|
-
errorCode
|
|
2858
|
-
});
|
|
2859
|
-
}
|
|
2860
|
-
}, "de_DeregisterOrganizationDelegatedAdminCommandError");
|
|
2861
|
-
var de_DescribeQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2233
|
+
}, "de_CreateTrailCommand");
|
|
2234
|
+
var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2862
2235
|
if (output.statusCode >= 300) {
|
|
2863
|
-
return
|
|
2236
|
+
return de_CommandError(output, context);
|
|
2864
2237
|
}
|
|
2865
2238
|
const data = await parseBody(output.body, context);
|
|
2866
2239
|
let contents = {};
|
|
2867
|
-
contents =
|
|
2240
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2868
2241
|
const response = {
|
|
2869
2242
|
$metadata: deserializeMetadata(output),
|
|
2870
2243
|
...contents
|
|
2871
2244
|
};
|
|
2872
2245
|
return response;
|
|
2873
|
-
}, "
|
|
2874
|
-
var
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2246
|
+
}, "de_DeleteChannelCommand");
|
|
2247
|
+
var de_DeleteEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2248
|
+
if (output.statusCode >= 300) {
|
|
2249
|
+
return de_CommandError(output, context);
|
|
2250
|
+
}
|
|
2251
|
+
const data = await parseBody(output.body, context);
|
|
2252
|
+
let contents = {};
|
|
2253
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2254
|
+
const response = {
|
|
2255
|
+
$metadata: deserializeMetadata(output),
|
|
2256
|
+
...contents
|
|
2878
2257
|
};
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
case "EventDataStoreNotFoundException":
|
|
2885
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2886
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "InactiveEventDataStoreException":
|
|
2888
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2889
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "InvalidParameterException":
|
|
2891
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2892
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "NoManagementAccountSLRExistsException":
|
|
2894
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2895
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "OperationNotPermittedException":
|
|
2897
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2898
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "QueryIdNotFoundException":
|
|
2900
|
-
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
2901
|
-
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "UnsupportedOperationException":
|
|
2903
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2904
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2905
|
-
default:
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody,
|
|
2910
|
-
errorCode
|
|
2911
|
-
});
|
|
2258
|
+
return response;
|
|
2259
|
+
}, "de_DeleteEventDataStoreCommand");
|
|
2260
|
+
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2261
|
+
if (output.statusCode >= 300) {
|
|
2262
|
+
return de_CommandError(output, context);
|
|
2912
2263
|
}
|
|
2913
|
-
|
|
2914
|
-
|
|
2264
|
+
const data = await parseBody(output.body, context);
|
|
2265
|
+
let contents = {};
|
|
2266
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2267
|
+
const response = {
|
|
2268
|
+
$metadata: deserializeMetadata(output),
|
|
2269
|
+
...contents
|
|
2270
|
+
};
|
|
2271
|
+
return response;
|
|
2272
|
+
}, "de_DeleteResourcePolicyCommand");
|
|
2273
|
+
var de_DeleteTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2915
2274
|
if (output.statusCode >= 300) {
|
|
2916
|
-
return
|
|
2275
|
+
return de_CommandError(output, context);
|
|
2917
2276
|
}
|
|
2918
2277
|
const data = await parseBody(output.body, context);
|
|
2919
2278
|
let contents = {};
|
|
@@ -2923,38 +2282,49 @@ var de_DescribeTrailsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2923
2282
|
...contents
|
|
2924
2283
|
};
|
|
2925
2284
|
return response;
|
|
2926
|
-
}, "
|
|
2927
|
-
var
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2285
|
+
}, "de_DeleteTrailCommand");
|
|
2286
|
+
var de_DeregisterOrganizationDelegatedAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2287
|
+
if (output.statusCode >= 300) {
|
|
2288
|
+
return de_CommandError(output, context);
|
|
2289
|
+
}
|
|
2290
|
+
const data = await parseBody(output.body, context);
|
|
2291
|
+
let contents = {};
|
|
2292
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2293
|
+
const response = {
|
|
2294
|
+
$metadata: deserializeMetadata(output),
|
|
2295
|
+
...contents
|
|
2931
2296
|
};
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
case "NoManagementAccountSLRExistsException":
|
|
2938
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2939
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "OperationNotPermittedException":
|
|
2941
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2942
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "UnsupportedOperationException":
|
|
2944
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2945
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode
|
|
2952
|
-
});
|
|
2297
|
+
return response;
|
|
2298
|
+
}, "de_DeregisterOrganizationDelegatedAdminCommand");
|
|
2299
|
+
var de_DescribeQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2300
|
+
if (output.statusCode >= 300) {
|
|
2301
|
+
return de_CommandError(output, context);
|
|
2953
2302
|
}
|
|
2954
|
-
|
|
2303
|
+
const data = await parseBody(output.body, context);
|
|
2304
|
+
let contents = {};
|
|
2305
|
+
contents = de_DescribeQueryResponse(data, context);
|
|
2306
|
+
const response = {
|
|
2307
|
+
$metadata: deserializeMetadata(output),
|
|
2308
|
+
...contents
|
|
2309
|
+
};
|
|
2310
|
+
return response;
|
|
2311
|
+
}, "de_DescribeQueryCommand");
|
|
2312
|
+
var de_DescribeTrailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2313
|
+
if (output.statusCode >= 300) {
|
|
2314
|
+
return de_CommandError(output, context);
|
|
2315
|
+
}
|
|
2316
|
+
const data = await parseBody(output.body, context);
|
|
2317
|
+
let contents = {};
|
|
2318
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2319
|
+
const response = {
|
|
2320
|
+
$metadata: deserializeMetadata(output),
|
|
2321
|
+
...contents
|
|
2322
|
+
};
|
|
2323
|
+
return response;
|
|
2324
|
+
}, "de_DescribeTrailsCommand");
|
|
2955
2325
|
var de_DisableFederationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2956
2326
|
if (output.statusCode >= 300) {
|
|
2957
|
-
return
|
|
2327
|
+
return de_CommandError(output, context);
|
|
2958
2328
|
}
|
|
2959
2329
|
const data = await parseBody(output.body, context);
|
|
2960
2330
|
let contents = {};
|
|
@@ -2965,67 +2335,9 @@ var de_DisableFederationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2965
2335
|
};
|
|
2966
2336
|
return response;
|
|
2967
2337
|
}, "de_DisableFederationCommand");
|
|
2968
|
-
var de_DisableFederationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2969
|
-
const parsedOutput = {
|
|
2970
|
-
...output,
|
|
2971
|
-
body: await parseErrorBody(output.body, context)
|
|
2972
|
-
};
|
|
2973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
|
-
switch (errorCode) {
|
|
2975
|
-
case "AccessDeniedException":
|
|
2976
|
-
case "com.amazonaws.cloudtrail#AccessDeniedException":
|
|
2977
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "CloudTrailAccessNotEnabledException":
|
|
2979
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
2980
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "ConcurrentModificationException":
|
|
2982
|
-
case "com.amazonaws.cloudtrail#ConcurrentModificationException":
|
|
2983
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "EventDataStoreARNInvalidException":
|
|
2985
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
2986
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "EventDataStoreNotFoundException":
|
|
2988
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2989
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "InactiveEventDataStoreException":
|
|
2991
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2992
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2994
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2995
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "InvalidParameterException":
|
|
2997
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2998
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2999
|
-
case "NoManagementAccountSLRExistsException":
|
|
3000
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3001
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3002
|
-
case "NotOrganizationMasterAccountException":
|
|
3003
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
3004
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
3005
|
-
case "OperationNotPermittedException":
|
|
3006
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3007
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3008
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
3009
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
3010
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
3011
|
-
case "OrganizationsNotInUseException":
|
|
3012
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
3013
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3014
|
-
case "UnsupportedOperationException":
|
|
3015
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3016
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3017
|
-
default:
|
|
3018
|
-
const parsedBody = parsedOutput.body;
|
|
3019
|
-
return throwDefaultError({
|
|
3020
|
-
output,
|
|
3021
|
-
parsedBody,
|
|
3022
|
-
errorCode
|
|
3023
|
-
});
|
|
3024
|
-
}
|
|
3025
|
-
}, "de_DisableFederationCommandError");
|
|
3026
2338
|
var de_EnableFederationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3027
2339
|
if (output.statusCode >= 300) {
|
|
3028
|
-
return
|
|
2340
|
+
return de_CommandError(output, context);
|
|
3029
2341
|
}
|
|
3030
2342
|
const data = await parseBody(output.body, context);
|
|
3031
2343
|
let contents = {};
|
|
@@ -3036,70 +2348,9 @@ var de_EnableFederationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3036
2348
|
};
|
|
3037
2349
|
return response;
|
|
3038
2350
|
}, "de_EnableFederationCommand");
|
|
3039
|
-
var de_EnableFederationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3040
|
-
const parsedOutput = {
|
|
3041
|
-
...output,
|
|
3042
|
-
body: await parseErrorBody(output.body, context)
|
|
3043
|
-
};
|
|
3044
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3045
|
-
switch (errorCode) {
|
|
3046
|
-
case "AccessDeniedException":
|
|
3047
|
-
case "com.amazonaws.cloudtrail#AccessDeniedException":
|
|
3048
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "CloudTrailAccessNotEnabledException":
|
|
3050
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
3051
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
3052
|
-
case "ConcurrentModificationException":
|
|
3053
|
-
case "com.amazonaws.cloudtrail#ConcurrentModificationException":
|
|
3054
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "EventDataStoreARNInvalidException":
|
|
3056
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3057
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "EventDataStoreFederationEnabledException":
|
|
3059
|
-
case "com.amazonaws.cloudtrail#EventDataStoreFederationEnabledException":
|
|
3060
|
-
throw await de_EventDataStoreFederationEnabledExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "EventDataStoreNotFoundException":
|
|
3062
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
3063
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
3064
|
-
case "InactiveEventDataStoreException":
|
|
3065
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
3066
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
3067
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
3068
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
3069
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
3070
|
-
case "InvalidParameterException":
|
|
3071
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3072
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3073
|
-
case "NoManagementAccountSLRExistsException":
|
|
3074
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3075
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3076
|
-
case "NotOrganizationMasterAccountException":
|
|
3077
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
3078
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
3079
|
-
case "OperationNotPermittedException":
|
|
3080
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3081
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
3083
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
3084
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
3085
|
-
case "OrganizationsNotInUseException":
|
|
3086
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
3087
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3088
|
-
case "UnsupportedOperationException":
|
|
3089
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3090
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3091
|
-
default:
|
|
3092
|
-
const parsedBody = parsedOutput.body;
|
|
3093
|
-
return throwDefaultError({
|
|
3094
|
-
output,
|
|
3095
|
-
parsedBody,
|
|
3096
|
-
errorCode
|
|
3097
|
-
});
|
|
3098
|
-
}
|
|
3099
|
-
}, "de_EnableFederationCommandError");
|
|
3100
2351
|
var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3101
2352
|
if (output.statusCode >= 300) {
|
|
3102
|
-
return
|
|
2353
|
+
return de_CommandError(output, context);
|
|
3103
2354
|
}
|
|
3104
2355
|
const data = await parseBody(output.body, context);
|
|
3105
2356
|
let contents = {};
|
|
@@ -3110,37 +2361,9 @@ var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3110
2361
|
};
|
|
3111
2362
|
return response;
|
|
3112
2363
|
}, "de_GetChannelCommand");
|
|
3113
|
-
var de_GetChannelCommandError = /* @__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 "ChannelARNInvalidException":
|
|
3121
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
3122
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "ChannelNotFoundException":
|
|
3124
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
3125
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "OperationNotPermittedException":
|
|
3127
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3128
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "UnsupportedOperationException":
|
|
3130
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3131
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3132
|
-
default:
|
|
3133
|
-
const parsedBody = parsedOutput.body;
|
|
3134
|
-
return throwDefaultError({
|
|
3135
|
-
output,
|
|
3136
|
-
parsedBody,
|
|
3137
|
-
errorCode
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3140
|
-
}, "de_GetChannelCommandError");
|
|
3141
2364
|
var de_GetEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
2365
|
if (output.statusCode >= 300) {
|
|
3143
|
-
return
|
|
2366
|
+
return de_CommandError(output, context);
|
|
3144
2367
|
}
|
|
3145
2368
|
const data = await parseBody(output.body, context);
|
|
3146
2369
|
let contents = {};
|
|
@@ -3151,43 +2374,9 @@ var de_GetEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3151
2374
|
};
|
|
3152
2375
|
return response;
|
|
3153
2376
|
}, "de_GetEventDataStoreCommand");
|
|
3154
|
-
var de_GetEventDataStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3155
|
-
const parsedOutput = {
|
|
3156
|
-
...output,
|
|
3157
|
-
body: await parseErrorBody(output.body, context)
|
|
3158
|
-
};
|
|
3159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
|
-
switch (errorCode) {
|
|
3161
|
-
case "EventDataStoreARNInvalidException":
|
|
3162
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3163
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
3164
|
-
case "EventDataStoreNotFoundException":
|
|
3165
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
3166
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
3167
|
-
case "InvalidParameterException":
|
|
3168
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3169
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "NoManagementAccountSLRExistsException":
|
|
3171
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3172
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3173
|
-
case "OperationNotPermittedException":
|
|
3174
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3175
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3176
|
-
case "UnsupportedOperationException":
|
|
3177
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3178
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3179
|
-
default:
|
|
3180
|
-
const parsedBody = parsedOutput.body;
|
|
3181
|
-
return throwDefaultError({
|
|
3182
|
-
output,
|
|
3183
|
-
parsedBody,
|
|
3184
|
-
errorCode
|
|
3185
|
-
});
|
|
3186
|
-
}
|
|
3187
|
-
}, "de_GetEventDataStoreCommandError");
|
|
3188
2377
|
var de_GetEventSelectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3189
2378
|
if (output.statusCode >= 300) {
|
|
3190
|
-
return
|
|
2379
|
+
return de_CommandError(output, context);
|
|
3191
2380
|
}
|
|
3192
2381
|
const data = await parseBody(output.body, context);
|
|
3193
2382
|
let contents = {};
|
|
@@ -3198,84 +2387,22 @@ var de_GetEventSelectorsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3198
2387
|
};
|
|
3199
2388
|
return response;
|
|
3200
2389
|
}, "de_GetEventSelectorsCommand");
|
|
3201
|
-
var de_GetEventSelectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3202
|
-
const parsedOutput = {
|
|
3203
|
-
...output,
|
|
3204
|
-
body: await parseErrorBody(output.body, context)
|
|
3205
|
-
};
|
|
3206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3207
|
-
switch (errorCode) {
|
|
3208
|
-
case "CloudTrailARNInvalidException":
|
|
3209
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
3210
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "InvalidTrailNameException":
|
|
3212
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3213
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "NoManagementAccountSLRExistsException":
|
|
3215
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3216
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3217
|
-
case "OperationNotPermittedException":
|
|
3218
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3219
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3220
|
-
case "TrailNotFoundException":
|
|
3221
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
3222
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
3223
|
-
case "UnsupportedOperationException":
|
|
3224
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3225
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3226
|
-
default:
|
|
3227
|
-
const parsedBody = parsedOutput.body;
|
|
3228
|
-
return throwDefaultError({
|
|
3229
|
-
output,
|
|
3230
|
-
parsedBody,
|
|
3231
|
-
errorCode
|
|
3232
|
-
});
|
|
3233
|
-
}
|
|
3234
|
-
}, "de_GetEventSelectorsCommandError");
|
|
3235
2390
|
var de_GetImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3236
2391
|
if (output.statusCode >= 300) {
|
|
3237
|
-
return
|
|
2392
|
+
return de_CommandError(output, context);
|
|
3238
2393
|
}
|
|
3239
2394
|
const data = await parseBody(output.body, context);
|
|
3240
2395
|
let contents = {};
|
|
3241
2396
|
contents = de_GetImportResponse(data, context);
|
|
3242
2397
|
const response = {
|
|
3243
2398
|
$metadata: deserializeMetadata(output),
|
|
3244
|
-
...contents
|
|
3245
|
-
};
|
|
3246
|
-
return response;
|
|
3247
|
-
}, "de_GetImportCommand");
|
|
3248
|
-
var de_GetImportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3249
|
-
const parsedOutput = {
|
|
3250
|
-
...output,
|
|
3251
|
-
body: await parseErrorBody(output.body, context)
|
|
3252
|
-
};
|
|
3253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
|
-
switch (errorCode) {
|
|
3255
|
-
case "ImportNotFoundException":
|
|
3256
|
-
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
3257
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "InvalidParameterException":
|
|
3259
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3260
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "OperationNotPermittedException":
|
|
3262
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3263
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "UnsupportedOperationException":
|
|
3265
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3266
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3267
|
-
default:
|
|
3268
|
-
const parsedBody = parsedOutput.body;
|
|
3269
|
-
return throwDefaultError({
|
|
3270
|
-
output,
|
|
3271
|
-
parsedBody,
|
|
3272
|
-
errorCode
|
|
3273
|
-
});
|
|
3274
|
-
}
|
|
3275
|
-
}, "de_GetImportCommandError");
|
|
2399
|
+
...contents
|
|
2400
|
+
};
|
|
2401
|
+
return response;
|
|
2402
|
+
}, "de_GetImportCommand");
|
|
3276
2403
|
var de_GetInsightSelectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3277
2404
|
if (output.statusCode >= 300) {
|
|
3278
|
-
return
|
|
2405
|
+
return de_CommandError(output, context);
|
|
3279
2406
|
}
|
|
3280
2407
|
const data = await parseBody(output.body, context);
|
|
3281
2408
|
let contents = {};
|
|
@@ -3286,55 +2413,9 @@ var de_GetInsightSelectorsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3286
2413
|
};
|
|
3287
2414
|
return response;
|
|
3288
2415
|
}, "de_GetInsightSelectorsCommand");
|
|
3289
|
-
var de_GetInsightSelectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3290
|
-
const parsedOutput = {
|
|
3291
|
-
...output,
|
|
3292
|
-
body: await parseErrorBody(output.body, context)
|
|
3293
|
-
};
|
|
3294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3295
|
-
switch (errorCode) {
|
|
3296
|
-
case "CloudTrailARNInvalidException":
|
|
3297
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
3298
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
3299
|
-
case "InsightNotEnabledException":
|
|
3300
|
-
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
3301
|
-
throw await de_InsightNotEnabledExceptionRes(parsedOutput, context);
|
|
3302
|
-
case "InvalidParameterCombinationException":
|
|
3303
|
-
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
3304
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3305
|
-
case "InvalidParameterException":
|
|
3306
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3307
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3308
|
-
case "InvalidTrailNameException":
|
|
3309
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3310
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "NoManagementAccountSLRExistsException":
|
|
3312
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3313
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "OperationNotPermittedException":
|
|
3315
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3316
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3317
|
-
case "ThrottlingException":
|
|
3318
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
3319
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "TrailNotFoundException":
|
|
3321
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
3322
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
3323
|
-
case "UnsupportedOperationException":
|
|
3324
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3325
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3326
|
-
default:
|
|
3327
|
-
const parsedBody = parsedOutput.body;
|
|
3328
|
-
return throwDefaultError({
|
|
3329
|
-
output,
|
|
3330
|
-
parsedBody,
|
|
3331
|
-
errorCode
|
|
3332
|
-
});
|
|
3333
|
-
}
|
|
3334
|
-
}, "de_GetInsightSelectorsCommandError");
|
|
3335
2416
|
var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3336
2417
|
if (output.statusCode >= 300) {
|
|
3337
|
-
return
|
|
2418
|
+
return de_CommandError(output, context);
|
|
3338
2419
|
}
|
|
3339
2420
|
const data = await parseBody(output.body, context);
|
|
3340
2421
|
let contents = {};
|
|
@@ -3345,58 +2426,9 @@ var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3345
2426
|
};
|
|
3346
2427
|
return response;
|
|
3347
2428
|
}, "de_GetQueryResultsCommand");
|
|
3348
|
-
var de_GetQueryResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3349
|
-
const parsedOutput = {
|
|
3350
|
-
...output,
|
|
3351
|
-
body: await parseErrorBody(output.body, context)
|
|
3352
|
-
};
|
|
3353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3354
|
-
switch (errorCode) {
|
|
3355
|
-
case "EventDataStoreARNInvalidException":
|
|
3356
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3357
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "EventDataStoreNotFoundException":
|
|
3359
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
3360
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "InactiveEventDataStoreException":
|
|
3362
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
3363
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "InsufficientEncryptionPolicyException":
|
|
3365
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
3366
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "InvalidMaxResultsException":
|
|
3368
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
3369
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "InvalidNextTokenException":
|
|
3371
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3372
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "InvalidParameterException":
|
|
3374
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3375
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3376
|
-
case "NoManagementAccountSLRExistsException":
|
|
3377
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3378
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "OperationNotPermittedException":
|
|
3380
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3381
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3382
|
-
case "QueryIdNotFoundException":
|
|
3383
|
-
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
3384
|
-
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
3385
|
-
case "UnsupportedOperationException":
|
|
3386
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3387
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3388
|
-
default:
|
|
3389
|
-
const parsedBody = parsedOutput.body;
|
|
3390
|
-
return throwDefaultError({
|
|
3391
|
-
output,
|
|
3392
|
-
parsedBody,
|
|
3393
|
-
errorCode
|
|
3394
|
-
});
|
|
3395
|
-
}
|
|
3396
|
-
}, "de_GetQueryResultsCommandError");
|
|
3397
2429
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3398
2430
|
if (output.statusCode >= 300) {
|
|
3399
|
-
return
|
|
2431
|
+
return de_CommandError(output, context);
|
|
3400
2432
|
}
|
|
3401
2433
|
const data = await parseBody(output.body, context);
|
|
3402
2434
|
let contents = {};
|
|
@@ -3407,43 +2439,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3407
2439
|
};
|
|
3408
2440
|
return response;
|
|
3409
2441
|
}, "de_GetResourcePolicyCommand");
|
|
3410
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3411
|
-
const parsedOutput = {
|
|
3412
|
-
...output,
|
|
3413
|
-
body: await parseErrorBody(output.body, context)
|
|
3414
|
-
};
|
|
3415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3416
|
-
switch (errorCode) {
|
|
3417
|
-
case "OperationNotPermittedException":
|
|
3418
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3419
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "ResourceARNNotValidException":
|
|
3421
|
-
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
3422
|
-
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "ResourceNotFoundException":
|
|
3424
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
3425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3426
|
-
case "ResourcePolicyNotFoundException":
|
|
3427
|
-
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
3428
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
3429
|
-
case "ResourceTypeNotSupportedException":
|
|
3430
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
3431
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
3432
|
-
case "UnsupportedOperationException":
|
|
3433
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3434
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3435
|
-
default:
|
|
3436
|
-
const parsedBody = parsedOutput.body;
|
|
3437
|
-
return throwDefaultError({
|
|
3438
|
-
output,
|
|
3439
|
-
parsedBody,
|
|
3440
|
-
errorCode
|
|
3441
|
-
});
|
|
3442
|
-
}
|
|
3443
|
-
}, "de_GetResourcePolicyCommandError");
|
|
3444
2442
|
var de_GetTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3445
2443
|
if (output.statusCode >= 300) {
|
|
3446
|
-
return
|
|
2444
|
+
return de_CommandError(output, context);
|
|
3447
2445
|
}
|
|
3448
2446
|
const data = await parseBody(output.body, context);
|
|
3449
2447
|
let contents = {};
|
|
@@ -3454,40 +2452,9 @@ var de_GetTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3454
2452
|
};
|
|
3455
2453
|
return response;
|
|
3456
2454
|
}, "de_GetTrailCommand");
|
|
3457
|
-
var de_GetTrailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3458
|
-
const parsedOutput = {
|
|
3459
|
-
...output,
|
|
3460
|
-
body: await parseErrorBody(output.body, context)
|
|
3461
|
-
};
|
|
3462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
|
-
switch (errorCode) {
|
|
3464
|
-
case "CloudTrailARNInvalidException":
|
|
3465
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
3466
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "InvalidTrailNameException":
|
|
3468
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3469
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
3470
|
-
case "OperationNotPermittedException":
|
|
3471
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3472
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "TrailNotFoundException":
|
|
3474
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
3475
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "UnsupportedOperationException":
|
|
3477
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3478
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3479
|
-
default:
|
|
3480
|
-
const parsedBody = parsedOutput.body;
|
|
3481
|
-
return throwDefaultError({
|
|
3482
|
-
output,
|
|
3483
|
-
parsedBody,
|
|
3484
|
-
errorCode
|
|
3485
|
-
});
|
|
3486
|
-
}
|
|
3487
|
-
}, "de_GetTrailCommandError");
|
|
3488
2455
|
var de_GetTrailStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3489
2456
|
if (output.statusCode >= 300) {
|
|
3490
|
-
return
|
|
2457
|
+
return de_CommandError(output, context);
|
|
3491
2458
|
}
|
|
3492
2459
|
const data = await parseBody(output.body, context);
|
|
3493
2460
|
let contents = {};
|
|
@@ -3498,122 +2465,35 @@ var de_GetTrailStatusCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3498
2465
|
};
|
|
3499
2466
|
return response;
|
|
3500
2467
|
}, "de_GetTrailStatusCommand");
|
|
3501
|
-
var de_GetTrailStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3502
|
-
const parsedOutput = {
|
|
3503
|
-
...output,
|
|
3504
|
-
body: await parseErrorBody(output.body, context)
|
|
3505
|
-
};
|
|
3506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3507
|
-
switch (errorCode) {
|
|
3508
|
-
case "CloudTrailARNInvalidException":
|
|
3509
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
3510
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
3511
|
-
case "InvalidTrailNameException":
|
|
3512
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3513
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "OperationNotPermittedException":
|
|
3515
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3516
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "TrailNotFoundException":
|
|
3518
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
3519
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
3520
|
-
case "UnsupportedOperationException":
|
|
3521
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3522
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3523
|
-
default:
|
|
3524
|
-
const parsedBody = parsedOutput.body;
|
|
3525
|
-
return throwDefaultError({
|
|
3526
|
-
output,
|
|
3527
|
-
parsedBody,
|
|
3528
|
-
errorCode
|
|
3529
|
-
});
|
|
3530
|
-
}
|
|
3531
|
-
}, "de_GetTrailStatusCommandError");
|
|
3532
2468
|
var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3533
2469
|
if (output.statusCode >= 300) {
|
|
3534
|
-
return
|
|
3535
|
-
}
|
|
3536
|
-
const data = await parseBody(output.body, context);
|
|
3537
|
-
let contents = {};
|
|
3538
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3539
|
-
const response = {
|
|
3540
|
-
$metadata: deserializeMetadata(output),
|
|
3541
|
-
...contents
|
|
3542
|
-
};
|
|
3543
|
-
return response;
|
|
3544
|
-
}, "de_ListChannelsCommand");
|
|
3545
|
-
var de_ListChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3546
|
-
const parsedOutput = {
|
|
3547
|
-
...output,
|
|
3548
|
-
body: await parseErrorBody(output.body, context)
|
|
3549
|
-
};
|
|
3550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3551
|
-
switch (errorCode) {
|
|
3552
|
-
case "InvalidNextTokenException":
|
|
3553
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3554
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "OperationNotPermittedException":
|
|
3556
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3557
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "UnsupportedOperationException":
|
|
3559
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3560
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3561
|
-
default:
|
|
3562
|
-
const parsedBody = parsedOutput.body;
|
|
3563
|
-
return throwDefaultError({
|
|
3564
|
-
output,
|
|
3565
|
-
parsedBody,
|
|
3566
|
-
errorCode
|
|
3567
|
-
});
|
|
3568
|
-
}
|
|
3569
|
-
}, "de_ListChannelsCommandError");
|
|
3570
|
-
var de_ListEventDataStoresCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3571
|
-
if (output.statusCode >= 300) {
|
|
3572
|
-
return de_ListEventDataStoresCommandError(output, context);
|
|
2470
|
+
return de_CommandError(output, context);
|
|
3573
2471
|
}
|
|
3574
2472
|
const data = await parseBody(output.body, context);
|
|
3575
|
-
let contents = {};
|
|
3576
|
-
contents =
|
|
3577
|
-
const response = {
|
|
3578
|
-
$metadata: deserializeMetadata(output),
|
|
3579
|
-
...contents
|
|
3580
|
-
};
|
|
3581
|
-
return response;
|
|
3582
|
-
}, "
|
|
3583
|
-
var
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
body: await parseErrorBody(output.body, context)
|
|
3587
|
-
};
|
|
3588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3589
|
-
switch (errorCode) {
|
|
3590
|
-
case "InvalidMaxResultsException":
|
|
3591
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
3592
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "InvalidNextTokenException":
|
|
3594
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3595
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "NoManagementAccountSLRExistsException":
|
|
3597
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3598
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3599
|
-
case "OperationNotPermittedException":
|
|
3600
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3601
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3602
|
-
case "UnsupportedOperationException":
|
|
3603
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3604
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3605
|
-
default:
|
|
3606
|
-
const parsedBody = parsedOutput.body;
|
|
3607
|
-
return throwDefaultError({
|
|
3608
|
-
output,
|
|
3609
|
-
parsedBody,
|
|
3610
|
-
errorCode
|
|
3611
|
-
});
|
|
2473
|
+
let contents = {};
|
|
2474
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2475
|
+
const response = {
|
|
2476
|
+
$metadata: deserializeMetadata(output),
|
|
2477
|
+
...contents
|
|
2478
|
+
};
|
|
2479
|
+
return response;
|
|
2480
|
+
}, "de_ListChannelsCommand");
|
|
2481
|
+
var de_ListEventDataStoresCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2482
|
+
if (output.statusCode >= 300) {
|
|
2483
|
+
return de_CommandError(output, context);
|
|
3612
2484
|
}
|
|
3613
|
-
|
|
2485
|
+
const data = await parseBody(output.body, context);
|
|
2486
|
+
let contents = {};
|
|
2487
|
+
contents = de_ListEventDataStoresResponse(data, context);
|
|
2488
|
+
const response = {
|
|
2489
|
+
$metadata: deserializeMetadata(output),
|
|
2490
|
+
...contents
|
|
2491
|
+
};
|
|
2492
|
+
return response;
|
|
2493
|
+
}, "de_ListEventDataStoresCommand");
|
|
3614
2494
|
var de_ListImportFailuresCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3615
2495
|
if (output.statusCode >= 300) {
|
|
3616
|
-
return
|
|
2496
|
+
return de_CommandError(output, context);
|
|
3617
2497
|
}
|
|
3618
2498
|
const data = await parseBody(output.body, context);
|
|
3619
2499
|
let contents = {};
|
|
@@ -3624,34 +2504,9 @@ var de_ListImportFailuresCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3624
2504
|
};
|
|
3625
2505
|
return response;
|
|
3626
2506
|
}, "de_ListImportFailuresCommand");
|
|
3627
|
-
var de_ListImportFailuresCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3628
|
-
const parsedOutput = {
|
|
3629
|
-
...output,
|
|
3630
|
-
body: await parseErrorBody(output.body, context)
|
|
3631
|
-
};
|
|
3632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3633
|
-
switch (errorCode) {
|
|
3634
|
-
case "InvalidNextTokenException":
|
|
3635
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3636
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3637
|
-
case "OperationNotPermittedException":
|
|
3638
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3639
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3640
|
-
case "UnsupportedOperationException":
|
|
3641
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3642
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3643
|
-
default:
|
|
3644
|
-
const parsedBody = parsedOutput.body;
|
|
3645
|
-
return throwDefaultError({
|
|
3646
|
-
output,
|
|
3647
|
-
parsedBody,
|
|
3648
|
-
errorCode
|
|
3649
|
-
});
|
|
3650
|
-
}
|
|
3651
|
-
}, "de_ListImportFailuresCommandError");
|
|
3652
2507
|
var de_ListImportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3653
2508
|
if (output.statusCode >= 300) {
|
|
3654
|
-
return
|
|
2509
|
+
return de_CommandError(output, context);
|
|
3655
2510
|
}
|
|
3656
2511
|
const data = await parseBody(output.body, context);
|
|
3657
2512
|
let contents = {};
|
|
@@ -3662,40 +2517,9 @@ var de_ListImportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3662
2517
|
};
|
|
3663
2518
|
return response;
|
|
3664
2519
|
}, "de_ListImportsCommand");
|
|
3665
|
-
var de_ListImportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3666
|
-
const parsedOutput = {
|
|
3667
|
-
...output,
|
|
3668
|
-
body: await parseErrorBody(output.body, context)
|
|
3669
|
-
};
|
|
3670
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3671
|
-
switch (errorCode) {
|
|
3672
|
-
case "EventDataStoreARNInvalidException":
|
|
3673
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3674
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
3675
|
-
case "InvalidNextTokenException":
|
|
3676
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3677
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3678
|
-
case "InvalidParameterException":
|
|
3679
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3680
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3681
|
-
case "OperationNotPermittedException":
|
|
3682
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3683
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3684
|
-
case "UnsupportedOperationException":
|
|
3685
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3686
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3687
|
-
default:
|
|
3688
|
-
const parsedBody = parsedOutput.body;
|
|
3689
|
-
return throwDefaultError({
|
|
3690
|
-
output,
|
|
3691
|
-
parsedBody,
|
|
3692
|
-
errorCode
|
|
3693
|
-
});
|
|
3694
|
-
}
|
|
3695
|
-
}, "de_ListImportsCommandError");
|
|
3696
2520
|
var de_ListInsightsMetricDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3697
2521
|
if (output.statusCode >= 300) {
|
|
3698
|
-
return
|
|
2522
|
+
return de_CommandError(output, context);
|
|
3699
2523
|
}
|
|
3700
2524
|
const data = await parseBody(output.body, context);
|
|
3701
2525
|
let contents = {};
|
|
@@ -3706,34 +2530,9 @@ var de_ListInsightsMetricDataCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3706
2530
|
};
|
|
3707
2531
|
return response;
|
|
3708
2532
|
}, "de_ListInsightsMetricDataCommand");
|
|
3709
|
-
var de_ListInsightsMetricDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3710
|
-
const parsedOutput = {
|
|
3711
|
-
...output,
|
|
3712
|
-
body: await parseErrorBody(output.body, context)
|
|
3713
|
-
};
|
|
3714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3715
|
-
switch (errorCode) {
|
|
3716
|
-
case "InvalidParameterException":
|
|
3717
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3718
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3719
|
-
case "OperationNotPermittedException":
|
|
3720
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3721
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3722
|
-
case "UnsupportedOperationException":
|
|
3723
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3724
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3725
|
-
default:
|
|
3726
|
-
const parsedBody = parsedOutput.body;
|
|
3727
|
-
return throwDefaultError({
|
|
3728
|
-
output,
|
|
3729
|
-
parsedBody,
|
|
3730
|
-
errorCode
|
|
3731
|
-
});
|
|
3732
|
-
}
|
|
3733
|
-
}, "de_ListInsightsMetricDataCommandError");
|
|
3734
2533
|
var de_ListPublicKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3735
2534
|
if (output.statusCode >= 300) {
|
|
3736
|
-
return
|
|
2535
|
+
return de_CommandError(output, context);
|
|
3737
2536
|
}
|
|
3738
2537
|
const data = await parseBody(output.body, context);
|
|
3739
2538
|
let contents = {};
|
|
@@ -3744,37 +2543,9 @@ var de_ListPublicKeysCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3744
2543
|
};
|
|
3745
2544
|
return response;
|
|
3746
2545
|
}, "de_ListPublicKeysCommand");
|
|
3747
|
-
var de_ListPublicKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3748
|
-
const parsedOutput = {
|
|
3749
|
-
...output,
|
|
3750
|
-
body: await parseErrorBody(output.body, context)
|
|
3751
|
-
};
|
|
3752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3753
|
-
switch (errorCode) {
|
|
3754
|
-
case "InvalidTimeRangeException":
|
|
3755
|
-
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
3756
|
-
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "InvalidTokenException":
|
|
3758
|
-
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
3759
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
3760
|
-
case "OperationNotPermittedException":
|
|
3761
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3762
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3763
|
-
case "UnsupportedOperationException":
|
|
3764
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3765
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3766
|
-
default:
|
|
3767
|
-
const parsedBody = parsedOutput.body;
|
|
3768
|
-
return throwDefaultError({
|
|
3769
|
-
output,
|
|
3770
|
-
parsedBody,
|
|
3771
|
-
errorCode
|
|
3772
|
-
});
|
|
3773
|
-
}
|
|
3774
|
-
}, "de_ListPublicKeysCommandError");
|
|
3775
2546
|
var de_ListQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3776
2547
|
if (output.statusCode >= 300) {
|
|
3777
|
-
return
|
|
2548
|
+
return de_CommandError(output, context);
|
|
3778
2549
|
}
|
|
3779
2550
|
const data = await parseBody(output.body, context);
|
|
3780
2551
|
let contents = {};
|
|
@@ -3785,158 +2556,35 @@ var de_ListQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3785
2556
|
};
|
|
3786
2557
|
return response;
|
|
3787
2558
|
}, "de_ListQueriesCommand");
|
|
3788
|
-
var de_ListQueriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3789
|
-
const parsedOutput = {
|
|
3790
|
-
...output,
|
|
3791
|
-
body: await parseErrorBody(output.body, context)
|
|
3792
|
-
};
|
|
3793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3794
|
-
switch (errorCode) {
|
|
3795
|
-
case "EventDataStoreARNInvalidException":
|
|
3796
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3797
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
3798
|
-
case "EventDataStoreNotFoundException":
|
|
3799
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
3800
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
3801
|
-
case "InactiveEventDataStoreException":
|
|
3802
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
3803
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
3804
|
-
case "InvalidDateRangeException":
|
|
3805
|
-
case "com.amazonaws.cloudtrail#InvalidDateRangeException":
|
|
3806
|
-
throw await de_InvalidDateRangeExceptionRes(parsedOutput, context);
|
|
3807
|
-
case "InvalidMaxResultsException":
|
|
3808
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
3809
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
3810
|
-
case "InvalidNextTokenException":
|
|
3811
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3812
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3813
|
-
case "InvalidParameterException":
|
|
3814
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3815
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3816
|
-
case "InvalidQueryStatusException":
|
|
3817
|
-
case "com.amazonaws.cloudtrail#InvalidQueryStatusException":
|
|
3818
|
-
throw await de_InvalidQueryStatusExceptionRes(parsedOutput, context);
|
|
3819
|
-
case "NoManagementAccountSLRExistsException":
|
|
3820
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3821
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3822
|
-
case "OperationNotPermittedException":
|
|
3823
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3824
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3825
|
-
case "UnsupportedOperationException":
|
|
3826
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3827
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3828
|
-
default:
|
|
3829
|
-
const parsedBody = parsedOutput.body;
|
|
3830
|
-
return throwDefaultError({
|
|
3831
|
-
output,
|
|
3832
|
-
parsedBody,
|
|
3833
|
-
errorCode
|
|
3834
|
-
});
|
|
3835
|
-
}
|
|
3836
|
-
}, "de_ListQueriesCommandError");
|
|
3837
2559
|
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3838
2560
|
if (output.statusCode >= 300) {
|
|
3839
|
-
return
|
|
3840
|
-
}
|
|
3841
|
-
const data = await parseBody(output.body, context);
|
|
3842
|
-
let contents = {};
|
|
3843
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3844
|
-
const response = {
|
|
3845
|
-
$metadata: deserializeMetadata(output),
|
|
3846
|
-
...contents
|
|
3847
|
-
};
|
|
3848
|
-
return response;
|
|
3849
|
-
}, "de_ListTagsCommand");
|
|
3850
|
-
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3851
|
-
const parsedOutput = {
|
|
3852
|
-
...output,
|
|
3853
|
-
body: await parseErrorBody(output.body, context)
|
|
3854
|
-
};
|
|
3855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3856
|
-
switch (errorCode) {
|
|
3857
|
-
case "ChannelARNInvalidException":
|
|
3858
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
3859
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
3860
|
-
case "CloudTrailARNInvalidException":
|
|
3861
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
3862
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
3863
|
-
case "EventDataStoreARNInvalidException":
|
|
3864
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
3865
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
3866
|
-
case "EventDataStoreNotFoundException":
|
|
3867
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
3868
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
3869
|
-
case "InactiveEventDataStoreException":
|
|
3870
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
3871
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
3872
|
-
case "InvalidTokenException":
|
|
3873
|
-
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
3874
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
3875
|
-
case "InvalidTrailNameException":
|
|
3876
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
3877
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
3878
|
-
case "NoManagementAccountSLRExistsException":
|
|
3879
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
3880
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
3881
|
-
case "OperationNotPermittedException":
|
|
3882
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3883
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3884
|
-
case "ResourceNotFoundException":
|
|
3885
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
3886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3887
|
-
case "ResourceTypeNotSupportedException":
|
|
3888
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
3889
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
3890
|
-
case "UnsupportedOperationException":
|
|
3891
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3892
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3893
|
-
default:
|
|
3894
|
-
const parsedBody = parsedOutput.body;
|
|
3895
|
-
return throwDefaultError({
|
|
3896
|
-
output,
|
|
3897
|
-
parsedBody,
|
|
3898
|
-
errorCode
|
|
3899
|
-
});
|
|
3900
|
-
}
|
|
3901
|
-
}, "de_ListTagsCommandError");
|
|
3902
|
-
var de_ListTrailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3903
|
-
if (output.statusCode >= 300) {
|
|
3904
|
-
return de_ListTrailsCommandError(output, context);
|
|
2561
|
+
return de_CommandError(output, context);
|
|
3905
2562
|
}
|
|
3906
2563
|
const data = await parseBody(output.body, context);
|
|
3907
|
-
let contents = {};
|
|
3908
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3909
|
-
const response = {
|
|
3910
|
-
$metadata: deserializeMetadata(output),
|
|
3911
|
-
...contents
|
|
3912
|
-
};
|
|
3913
|
-
return response;
|
|
3914
|
-
}, "
|
|
3915
|
-
var
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
body: await parseErrorBody(output.body, context)
|
|
3919
|
-
};
|
|
3920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3921
|
-
switch (errorCode) {
|
|
3922
|
-
case "OperationNotPermittedException":
|
|
3923
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3924
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3925
|
-
case "UnsupportedOperationException":
|
|
3926
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3927
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3928
|
-
default:
|
|
3929
|
-
const parsedBody = parsedOutput.body;
|
|
3930
|
-
return throwDefaultError({
|
|
3931
|
-
output,
|
|
3932
|
-
parsedBody,
|
|
3933
|
-
errorCode
|
|
3934
|
-
});
|
|
2564
|
+
let contents = {};
|
|
2565
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2566
|
+
const response = {
|
|
2567
|
+
$metadata: deserializeMetadata(output),
|
|
2568
|
+
...contents
|
|
2569
|
+
};
|
|
2570
|
+
return response;
|
|
2571
|
+
}, "de_ListTagsCommand");
|
|
2572
|
+
var de_ListTrailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2573
|
+
if (output.statusCode >= 300) {
|
|
2574
|
+
return de_CommandError(output, context);
|
|
3935
2575
|
}
|
|
3936
|
-
|
|
2576
|
+
const data = await parseBody(output.body, context);
|
|
2577
|
+
let contents = {};
|
|
2578
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2579
|
+
const response = {
|
|
2580
|
+
$metadata: deserializeMetadata(output),
|
|
2581
|
+
...contents
|
|
2582
|
+
};
|
|
2583
|
+
return response;
|
|
2584
|
+
}, "de_ListTrailsCommand");
|
|
3937
2585
|
var de_LookupEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3938
2586
|
if (output.statusCode >= 300) {
|
|
3939
|
-
return
|
|
2587
|
+
return de_CommandError(output, context);
|
|
3940
2588
|
}
|
|
3941
2589
|
const data = await parseBody(output.body, context);
|
|
3942
2590
|
let contents = {};
|
|
@@ -3947,46 +2595,9 @@ var de_LookupEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3947
2595
|
};
|
|
3948
2596
|
return response;
|
|
3949
2597
|
}, "de_LookupEventsCommand");
|
|
3950
|
-
var de_LookupEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3951
|
-
const parsedOutput = {
|
|
3952
|
-
...output,
|
|
3953
|
-
body: await parseErrorBody(output.body, context)
|
|
3954
|
-
};
|
|
3955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3956
|
-
switch (errorCode) {
|
|
3957
|
-
case "InvalidEventCategoryException":
|
|
3958
|
-
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
3959
|
-
throw await de_InvalidEventCategoryExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "InvalidLookupAttributesException":
|
|
3961
|
-
case "com.amazonaws.cloudtrail#InvalidLookupAttributesException":
|
|
3962
|
-
throw await de_InvalidLookupAttributesExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "InvalidMaxResultsException":
|
|
3964
|
-
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
3965
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
3966
|
-
case "InvalidNextTokenException":
|
|
3967
|
-
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3968
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3969
|
-
case "InvalidTimeRangeException":
|
|
3970
|
-
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
3971
|
-
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
3972
|
-
case "OperationNotPermittedException":
|
|
3973
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
3974
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
3975
|
-
case "UnsupportedOperationException":
|
|
3976
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
3977
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3978
|
-
default:
|
|
3979
|
-
const parsedBody = parsedOutput.body;
|
|
3980
|
-
return throwDefaultError({
|
|
3981
|
-
output,
|
|
3982
|
-
parsedBody,
|
|
3983
|
-
errorCode
|
|
3984
|
-
});
|
|
3985
|
-
}
|
|
3986
|
-
}, "de_LookupEventsCommandError");
|
|
3987
2598
|
var de_PutEventSelectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3988
2599
|
if (output.statusCode >= 300) {
|
|
3989
|
-
return
|
|
2600
|
+
return de_CommandError(output, context);
|
|
3990
2601
|
}
|
|
3991
2602
|
const data = await parseBody(output.body, context);
|
|
3992
2603
|
let contents = {};
|
|
@@ -3997,61 +2608,9 @@ var de_PutEventSelectorsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3997
2608
|
};
|
|
3998
2609
|
return response;
|
|
3999
2610
|
}, "de_PutEventSelectorsCommand");
|
|
4000
|
-
var de_PutEventSelectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4001
|
-
const parsedOutput = {
|
|
4002
|
-
...output,
|
|
4003
|
-
body: await parseErrorBody(output.body, context)
|
|
4004
|
-
};
|
|
4005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4006
|
-
switch (errorCode) {
|
|
4007
|
-
case "CloudTrailARNInvalidException":
|
|
4008
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
4009
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
4010
|
-
case "ConflictException":
|
|
4011
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
4012
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4013
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4014
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4015
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4016
|
-
case "InvalidEventSelectorsException":
|
|
4017
|
-
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
4018
|
-
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
4019
|
-
case "InvalidHomeRegionException":
|
|
4020
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
4021
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
4022
|
-
case "InvalidTrailNameException":
|
|
4023
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
4024
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
4025
|
-
case "NoManagementAccountSLRExistsException":
|
|
4026
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4027
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4028
|
-
case "NotOrganizationMasterAccountException":
|
|
4029
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4030
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4031
|
-
case "OperationNotPermittedException":
|
|
4032
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4033
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4034
|
-
case "ThrottlingException":
|
|
4035
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
4036
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4037
|
-
case "TrailNotFoundException":
|
|
4038
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
4039
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
4040
|
-
case "UnsupportedOperationException":
|
|
4041
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4042
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4043
|
-
default:
|
|
4044
|
-
const parsedBody = parsedOutput.body;
|
|
4045
|
-
return throwDefaultError({
|
|
4046
|
-
output,
|
|
4047
|
-
parsedBody,
|
|
4048
|
-
errorCode
|
|
4049
|
-
});
|
|
4050
|
-
}
|
|
4051
|
-
}, "de_PutEventSelectorsCommandError");
|
|
4052
2611
|
var de_PutInsightSelectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4053
2612
|
if (output.statusCode >= 300) {
|
|
4054
|
-
return
|
|
2613
|
+
return de_CommandError(output, context);
|
|
4055
2614
|
}
|
|
4056
2615
|
const data = await parseBody(output.body, context);
|
|
4057
2616
|
let contents = {};
|
|
@@ -4062,73 +2621,9 @@ var de_PutInsightSelectorsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4062
2621
|
};
|
|
4063
2622
|
return response;
|
|
4064
2623
|
}, "de_PutInsightSelectorsCommand");
|
|
4065
|
-
var de_PutInsightSelectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4066
|
-
const parsedOutput = {
|
|
4067
|
-
...output,
|
|
4068
|
-
body: await parseErrorBody(output.body, context)
|
|
4069
|
-
};
|
|
4070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4071
|
-
switch (errorCode) {
|
|
4072
|
-
case "CloudTrailARNInvalidException":
|
|
4073
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
4074
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
4075
|
-
case "InsufficientEncryptionPolicyException":
|
|
4076
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
4077
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
4078
|
-
case "InsufficientS3BucketPolicyException":
|
|
4079
|
-
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
4080
|
-
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
4081
|
-
case "InvalidHomeRegionException":
|
|
4082
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
4083
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
4084
|
-
case "InvalidInsightSelectorsException":
|
|
4085
|
-
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
4086
|
-
throw await de_InvalidInsightSelectorsExceptionRes(parsedOutput, context);
|
|
4087
|
-
case "InvalidParameterCombinationException":
|
|
4088
|
-
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
4089
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
4090
|
-
case "InvalidParameterException":
|
|
4091
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4092
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4093
|
-
case "InvalidTrailNameException":
|
|
4094
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
4095
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
4096
|
-
case "KmsException":
|
|
4097
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
4098
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
4099
|
-
case "NoManagementAccountSLRExistsException":
|
|
4100
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4101
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4102
|
-
case "NotOrganizationMasterAccountException":
|
|
4103
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4104
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4105
|
-
case "OperationNotPermittedException":
|
|
4106
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4107
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4108
|
-
case "S3BucketDoesNotExistException":
|
|
4109
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
4110
|
-
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
4111
|
-
case "ThrottlingException":
|
|
4112
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
4113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4114
|
-
case "TrailNotFoundException":
|
|
4115
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
4116
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
4117
|
-
case "UnsupportedOperationException":
|
|
4118
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4119
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4120
|
-
default:
|
|
4121
|
-
const parsedBody = parsedOutput.body;
|
|
4122
|
-
return throwDefaultError({
|
|
4123
|
-
output,
|
|
4124
|
-
parsedBody,
|
|
4125
|
-
errorCode
|
|
4126
|
-
});
|
|
4127
|
-
}
|
|
4128
|
-
}, "de_PutInsightSelectorsCommandError");
|
|
4129
2624
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4130
2625
|
if (output.statusCode >= 300) {
|
|
4131
|
-
return
|
|
2626
|
+
return de_CommandError(output, context);
|
|
4132
2627
|
}
|
|
4133
2628
|
const data = await parseBody(output.body, context);
|
|
4134
2629
|
let contents = {};
|
|
@@ -4139,111 +2634,22 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4139
2634
|
};
|
|
4140
2635
|
return response;
|
|
4141
2636
|
}, "de_PutResourcePolicyCommand");
|
|
4142
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4143
|
-
const parsedOutput = {
|
|
4144
|
-
...output,
|
|
4145
|
-
body: await parseErrorBody(output.body, context)
|
|
4146
|
-
};
|
|
4147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4148
|
-
switch (errorCode) {
|
|
4149
|
-
case "OperationNotPermittedException":
|
|
4150
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4151
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4152
|
-
case "ResourceARNNotValidException":
|
|
4153
|
-
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
4154
|
-
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
4155
|
-
case "ResourceNotFoundException":
|
|
4156
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
4157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4158
|
-
case "ResourcePolicyNotValidException":
|
|
4159
|
-
case "com.amazonaws.cloudtrail#ResourcePolicyNotValidException":
|
|
4160
|
-
throw await de_ResourcePolicyNotValidExceptionRes(parsedOutput, context);
|
|
4161
|
-
case "ResourceTypeNotSupportedException":
|
|
4162
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
4163
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
4164
|
-
case "UnsupportedOperationException":
|
|
4165
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4166
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4167
|
-
default:
|
|
4168
|
-
const parsedBody = parsedOutput.body;
|
|
4169
|
-
return throwDefaultError({
|
|
4170
|
-
output,
|
|
4171
|
-
parsedBody,
|
|
4172
|
-
errorCode
|
|
4173
|
-
});
|
|
4174
|
-
}
|
|
4175
|
-
}, "de_PutResourcePolicyCommandError");
|
|
4176
2637
|
var de_RegisterOrganizationDelegatedAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4177
2638
|
if (output.statusCode >= 300) {
|
|
4178
|
-
return
|
|
2639
|
+
return de_CommandError(output, context);
|
|
4179
2640
|
}
|
|
4180
2641
|
const data = await parseBody(output.body, context);
|
|
4181
2642
|
let contents = {};
|
|
4182
2643
|
contents = (0, import_smithy_client._json)(data);
|
|
4183
2644
|
const response = {
|
|
4184
|
-
$metadata: deserializeMetadata(output),
|
|
4185
|
-
...contents
|
|
4186
|
-
};
|
|
4187
|
-
return response;
|
|
4188
|
-
}, "de_RegisterOrganizationDelegatedAdminCommand");
|
|
4189
|
-
var de_RegisterOrganizationDelegatedAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4190
|
-
const parsedOutput = {
|
|
4191
|
-
...output,
|
|
4192
|
-
body: await parseErrorBody(output.body, context)
|
|
4193
|
-
};
|
|
4194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4195
|
-
switch (errorCode) {
|
|
4196
|
-
case "AccountNotFoundException":
|
|
4197
|
-
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
4198
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
4199
|
-
case "AccountRegisteredException":
|
|
4200
|
-
case "com.amazonaws.cloudtrail#AccountRegisteredException":
|
|
4201
|
-
throw await de_AccountRegisteredExceptionRes(parsedOutput, context);
|
|
4202
|
-
case "CannotDelegateManagementAccountException":
|
|
4203
|
-
case "com.amazonaws.cloudtrail#CannotDelegateManagementAccountException":
|
|
4204
|
-
throw await de_CannotDelegateManagementAccountExceptionRes(parsedOutput, context);
|
|
4205
|
-
case "CloudTrailAccessNotEnabledException":
|
|
4206
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
4207
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
4208
|
-
case "ConflictException":
|
|
4209
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
4210
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4211
|
-
case "DelegatedAdminAccountLimitExceededException":
|
|
4212
|
-
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
4213
|
-
throw await de_DelegatedAdminAccountLimitExceededExceptionRes(parsedOutput, context);
|
|
4214
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4215
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4216
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4217
|
-
case "InvalidParameterException":
|
|
4218
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4219
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4220
|
-
case "NotOrganizationManagementAccountException":
|
|
4221
|
-
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
4222
|
-
throw await de_NotOrganizationManagementAccountExceptionRes(parsedOutput, context);
|
|
4223
|
-
case "OperationNotPermittedException":
|
|
4224
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4225
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4226
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
4227
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
4228
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
4229
|
-
case "OrganizationsNotInUseException":
|
|
4230
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
4231
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4232
|
-
case "UnsupportedOperationException":
|
|
4233
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4234
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4235
|
-
default:
|
|
4236
|
-
const parsedBody = parsedOutput.body;
|
|
4237
|
-
return throwDefaultError({
|
|
4238
|
-
output,
|
|
4239
|
-
parsedBody,
|
|
4240
|
-
errorCode
|
|
4241
|
-
});
|
|
4242
|
-
}
|
|
4243
|
-
}, "de_RegisterOrganizationDelegatedAdminCommandError");
|
|
2645
|
+
$metadata: deserializeMetadata(output),
|
|
2646
|
+
...contents
|
|
2647
|
+
};
|
|
2648
|
+
return response;
|
|
2649
|
+
}, "de_RegisterOrganizationDelegatedAdminCommand");
|
|
4244
2650
|
var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4245
2651
|
if (output.statusCode >= 300) {
|
|
4246
|
-
return
|
|
2652
|
+
return de_CommandError(output, context);
|
|
4247
2653
|
}
|
|
4248
2654
|
const data = await parseBody(output.body, context);
|
|
4249
2655
|
let contents = {};
|
|
@@ -4254,67 +2660,9 @@ var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4254
2660
|
};
|
|
4255
2661
|
return response;
|
|
4256
2662
|
}, "de_RemoveTagsCommand");
|
|
4257
|
-
var de_RemoveTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4258
|
-
const parsedOutput = {
|
|
4259
|
-
...output,
|
|
4260
|
-
body: await parseErrorBody(output.body, context)
|
|
4261
|
-
};
|
|
4262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4263
|
-
switch (errorCode) {
|
|
4264
|
-
case "ChannelARNInvalidException":
|
|
4265
|
-
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
4266
|
-
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
4267
|
-
case "ChannelNotFoundException":
|
|
4268
|
-
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
4269
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
4270
|
-
case "CloudTrailARNInvalidException":
|
|
4271
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
4272
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
4273
|
-
case "EventDataStoreARNInvalidException":
|
|
4274
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4275
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
4276
|
-
case "EventDataStoreNotFoundException":
|
|
4277
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
4278
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
4279
|
-
case "InactiveEventDataStoreException":
|
|
4280
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
4281
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
4282
|
-
case "InvalidTagParameterException":
|
|
4283
|
-
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
4284
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
4285
|
-
case "InvalidTrailNameException":
|
|
4286
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
4287
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
4288
|
-
case "NoManagementAccountSLRExistsException":
|
|
4289
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4290
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4291
|
-
case "NotOrganizationMasterAccountException":
|
|
4292
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4293
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4294
|
-
case "OperationNotPermittedException":
|
|
4295
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4296
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4297
|
-
case "ResourceNotFoundException":
|
|
4298
|
-
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
4299
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4300
|
-
case "ResourceTypeNotSupportedException":
|
|
4301
|
-
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
4302
|
-
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
4303
|
-
case "UnsupportedOperationException":
|
|
4304
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4305
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4306
|
-
default:
|
|
4307
|
-
const parsedBody = parsedOutput.body;
|
|
4308
|
-
return throwDefaultError({
|
|
4309
|
-
output,
|
|
4310
|
-
parsedBody,
|
|
4311
|
-
errorCode
|
|
4312
|
-
});
|
|
4313
|
-
}
|
|
4314
|
-
}, "de_RemoveTagsCommandError");
|
|
4315
2663
|
var de_RestoreEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4316
2664
|
if (output.statusCode >= 300) {
|
|
4317
|
-
return
|
|
2665
|
+
return de_CommandError(output, context);
|
|
4318
2666
|
}
|
|
4319
2667
|
const data = await parseBody(output.body, context);
|
|
4320
2668
|
let contents = {};
|
|
@@ -4325,64 +2673,9 @@ var de_RestoreEventDataStoreCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4325
2673
|
};
|
|
4326
2674
|
return response;
|
|
4327
2675
|
}, "de_RestoreEventDataStoreCommand");
|
|
4328
|
-
var de_RestoreEventDataStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4329
|
-
const parsedOutput = {
|
|
4330
|
-
...output,
|
|
4331
|
-
body: await parseErrorBody(output.body, context)
|
|
4332
|
-
};
|
|
4333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4334
|
-
switch (errorCode) {
|
|
4335
|
-
case "CloudTrailAccessNotEnabledException":
|
|
4336
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
4337
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
4338
|
-
case "EventDataStoreARNInvalidException":
|
|
4339
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4340
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
4341
|
-
case "EventDataStoreMaxLimitExceededException":
|
|
4342
|
-
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
4343
|
-
throw await de_EventDataStoreMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
4344
|
-
case "EventDataStoreNotFoundException":
|
|
4345
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
4346
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
4347
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4348
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4349
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4350
|
-
case "InvalidEventDataStoreStatusException":
|
|
4351
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
4352
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
4353
|
-
case "InvalidParameterException":
|
|
4354
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4355
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4356
|
-
case "NoManagementAccountSLRExistsException":
|
|
4357
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4358
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4359
|
-
case "NotOrganizationMasterAccountException":
|
|
4360
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4361
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4362
|
-
case "OperationNotPermittedException":
|
|
4363
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4364
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4365
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
4366
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
4367
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
4368
|
-
case "OrganizationsNotInUseException":
|
|
4369
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
4370
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4371
|
-
case "UnsupportedOperationException":
|
|
4372
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4373
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4374
|
-
default:
|
|
4375
|
-
const parsedBody = parsedOutput.body;
|
|
4376
|
-
return throwDefaultError({
|
|
4377
|
-
output,
|
|
4378
|
-
parsedBody,
|
|
4379
|
-
errorCode
|
|
4380
|
-
});
|
|
4381
|
-
}
|
|
4382
|
-
}, "de_RestoreEventDataStoreCommandError");
|
|
4383
2676
|
var de_StartEventDataStoreIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4384
2677
|
if (output.statusCode >= 300) {
|
|
4385
|
-
return
|
|
2678
|
+
return de_CommandError(output, context);
|
|
4386
2679
|
}
|
|
4387
2680
|
const data = await parseBody(output.body, context);
|
|
4388
2681
|
let contents = {};
|
|
@@ -4393,55 +2686,9 @@ var de_StartEventDataStoreIngestionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4393
2686
|
};
|
|
4394
2687
|
return response;
|
|
4395
2688
|
}, "de_StartEventDataStoreIngestionCommand");
|
|
4396
|
-
var de_StartEventDataStoreIngestionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4397
|
-
const parsedOutput = {
|
|
4398
|
-
...output,
|
|
4399
|
-
body: await parseErrorBody(output.body, context)
|
|
4400
|
-
};
|
|
4401
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4402
|
-
switch (errorCode) {
|
|
4403
|
-
case "EventDataStoreARNInvalidException":
|
|
4404
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4405
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
4406
|
-
case "EventDataStoreNotFoundException":
|
|
4407
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
4408
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
4409
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4410
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4411
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4412
|
-
case "InvalidEventDataStoreCategoryException":
|
|
4413
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
4414
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
4415
|
-
case "InvalidEventDataStoreStatusException":
|
|
4416
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
4417
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
4418
|
-
case "InvalidParameterException":
|
|
4419
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4420
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4421
|
-
case "NoManagementAccountSLRExistsException":
|
|
4422
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4423
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4424
|
-
case "NotOrganizationMasterAccountException":
|
|
4425
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4426
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4427
|
-
case "OperationNotPermittedException":
|
|
4428
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4429
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4430
|
-
case "UnsupportedOperationException":
|
|
4431
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4432
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4433
|
-
default:
|
|
4434
|
-
const parsedBody = parsedOutput.body;
|
|
4435
|
-
return throwDefaultError({
|
|
4436
|
-
output,
|
|
4437
|
-
parsedBody,
|
|
4438
|
-
errorCode
|
|
4439
|
-
});
|
|
4440
|
-
}
|
|
4441
|
-
}, "de_StartEventDataStoreIngestionCommandError");
|
|
4442
2689
|
var de_StartImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4443
2690
|
if (output.statusCode >= 300) {
|
|
4444
|
-
return
|
|
2691
|
+
return de_CommandError(output, context);
|
|
4445
2692
|
}
|
|
4446
2693
|
const data = await parseBody(output.body, context);
|
|
4447
2694
|
let contents = {};
|
|
@@ -4452,61 +2699,9 @@ var de_StartImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4452
2699
|
};
|
|
4453
2700
|
return response;
|
|
4454
2701
|
}, "de_StartImportCommand");
|
|
4455
|
-
var de_StartImportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4456
|
-
const parsedOutput = {
|
|
4457
|
-
...output,
|
|
4458
|
-
body: await parseErrorBody(output.body, context)
|
|
4459
|
-
};
|
|
4460
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4461
|
-
switch (errorCode) {
|
|
4462
|
-
case "AccountHasOngoingImportException":
|
|
4463
|
-
case "com.amazonaws.cloudtrail#AccountHasOngoingImportException":
|
|
4464
|
-
throw await de_AccountHasOngoingImportExceptionRes(parsedOutput, context);
|
|
4465
|
-
case "EventDataStoreARNInvalidException":
|
|
4466
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4467
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
4468
|
-
case "EventDataStoreNotFoundException":
|
|
4469
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
4470
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
4471
|
-
case "ImportNotFoundException":
|
|
4472
|
-
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
4473
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
4474
|
-
case "InactiveEventDataStoreException":
|
|
4475
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
4476
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
4477
|
-
case "InsufficientEncryptionPolicyException":
|
|
4478
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
4479
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
4480
|
-
case "InvalidEventDataStoreCategoryException":
|
|
4481
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
4482
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
4483
|
-
case "InvalidEventDataStoreStatusException":
|
|
4484
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
4485
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
4486
|
-
case "InvalidImportSourceException":
|
|
4487
|
-
case "com.amazonaws.cloudtrail#InvalidImportSourceException":
|
|
4488
|
-
throw await de_InvalidImportSourceExceptionRes(parsedOutput, context);
|
|
4489
|
-
case "InvalidParameterException":
|
|
4490
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4491
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4492
|
-
case "OperationNotPermittedException":
|
|
4493
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4494
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4495
|
-
case "UnsupportedOperationException":
|
|
4496
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4497
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4498
|
-
default:
|
|
4499
|
-
const parsedBody = parsedOutput.body;
|
|
4500
|
-
return throwDefaultError({
|
|
4501
|
-
output,
|
|
4502
|
-
parsedBody,
|
|
4503
|
-
errorCode
|
|
4504
|
-
});
|
|
4505
|
-
}
|
|
4506
|
-
}, "de_StartImportCommandError");
|
|
4507
2702
|
var de_StartLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4508
2703
|
if (output.statusCode >= 300) {
|
|
4509
|
-
return
|
|
2704
|
+
return de_CommandError(output, context);
|
|
4510
2705
|
}
|
|
4511
2706
|
const data = await parseBody(output.body, context);
|
|
4512
2707
|
let contents = {};
|
|
@@ -4516,59 +2711,10 @@ var de_StartLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4516
2711
|
...contents
|
|
4517
2712
|
};
|
|
4518
2713
|
return response;
|
|
4519
|
-
}, "de_StartLoggingCommand");
|
|
4520
|
-
var de_StartLoggingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4521
|
-
const parsedOutput = {
|
|
4522
|
-
...output,
|
|
4523
|
-
body: await parseErrorBody(output.body, context)
|
|
4524
|
-
};
|
|
4525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4526
|
-
switch (errorCode) {
|
|
4527
|
-
case "CloudTrailARNInvalidException":
|
|
4528
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
4529
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
4530
|
-
case "ConflictException":
|
|
4531
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
4532
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4533
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4534
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4535
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4536
|
-
case "InvalidHomeRegionException":
|
|
4537
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
4538
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
4539
|
-
case "InvalidTrailNameException":
|
|
4540
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
4541
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
4542
|
-
case "NoManagementAccountSLRExistsException":
|
|
4543
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4544
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4545
|
-
case "NotOrganizationMasterAccountException":
|
|
4546
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4547
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4548
|
-
case "OperationNotPermittedException":
|
|
4549
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4550
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4551
|
-
case "ThrottlingException":
|
|
4552
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
4553
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4554
|
-
case "TrailNotFoundException":
|
|
4555
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
4556
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
4557
|
-
case "UnsupportedOperationException":
|
|
4558
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4559
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4560
|
-
default:
|
|
4561
|
-
const parsedBody = parsedOutput.body;
|
|
4562
|
-
return throwDefaultError({
|
|
4563
|
-
output,
|
|
4564
|
-
parsedBody,
|
|
4565
|
-
errorCode
|
|
4566
|
-
});
|
|
4567
|
-
}
|
|
4568
|
-
}, "de_StartLoggingCommandError");
|
|
2714
|
+
}, "de_StartLoggingCommand");
|
|
4569
2715
|
var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4570
2716
|
if (output.statusCode >= 300) {
|
|
4571
|
-
return
|
|
2717
|
+
return de_CommandError(output, context);
|
|
4572
2718
|
}
|
|
4573
2719
|
const data = await parseBody(output.body, context);
|
|
4574
2720
|
let contents = {};
|
|
@@ -4579,67 +2725,9 @@ var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4579
2725
|
};
|
|
4580
2726
|
return response;
|
|
4581
2727
|
}, "de_StartQueryCommand");
|
|
4582
|
-
var de_StartQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4583
|
-
const parsedOutput = {
|
|
4584
|
-
...output,
|
|
4585
|
-
body: await parseErrorBody(output.body, context)
|
|
4586
|
-
};
|
|
4587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4588
|
-
switch (errorCode) {
|
|
4589
|
-
case "EventDataStoreARNInvalidException":
|
|
4590
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4591
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
4592
|
-
case "EventDataStoreNotFoundException":
|
|
4593
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
4594
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
4595
|
-
case "InactiveEventDataStoreException":
|
|
4596
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
4597
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
4598
|
-
case "InsufficientEncryptionPolicyException":
|
|
4599
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
4600
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
4601
|
-
case "InsufficientS3BucketPolicyException":
|
|
4602
|
-
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
4603
|
-
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
4604
|
-
case "InvalidParameterException":
|
|
4605
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4606
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4607
|
-
case "InvalidQueryStatementException":
|
|
4608
|
-
case "com.amazonaws.cloudtrail#InvalidQueryStatementException":
|
|
4609
|
-
throw await de_InvalidQueryStatementExceptionRes(parsedOutput, context);
|
|
4610
|
-
case "InvalidS3BucketNameException":
|
|
4611
|
-
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
4612
|
-
throw await de_InvalidS3BucketNameExceptionRes(parsedOutput, context);
|
|
4613
|
-
case "InvalidS3PrefixException":
|
|
4614
|
-
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
4615
|
-
throw await de_InvalidS3PrefixExceptionRes(parsedOutput, context);
|
|
4616
|
-
case "MaxConcurrentQueriesException":
|
|
4617
|
-
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
4618
|
-
throw await de_MaxConcurrentQueriesExceptionRes(parsedOutput, context);
|
|
4619
|
-
case "NoManagementAccountSLRExistsException":
|
|
4620
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4621
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4622
|
-
case "OperationNotPermittedException":
|
|
4623
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4624
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4625
|
-
case "S3BucketDoesNotExistException":
|
|
4626
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
4627
|
-
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
4628
|
-
case "UnsupportedOperationException":
|
|
4629
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4630
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4631
|
-
default:
|
|
4632
|
-
const parsedBody = parsedOutput.body;
|
|
4633
|
-
return throwDefaultError({
|
|
4634
|
-
output,
|
|
4635
|
-
parsedBody,
|
|
4636
|
-
errorCode
|
|
4637
|
-
});
|
|
4638
|
-
}
|
|
4639
|
-
}, "de_StartQueryCommandError");
|
|
4640
2728
|
var de_StopEventDataStoreIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4641
2729
|
if (output.statusCode >= 300) {
|
|
4642
|
-
return
|
|
2730
|
+
return de_CommandError(output, context);
|
|
4643
2731
|
}
|
|
4644
2732
|
const data = await parseBody(output.body, context);
|
|
4645
2733
|
let contents = {};
|
|
@@ -4650,55 +2738,9 @@ var de_StopEventDataStoreIngestionCommand = /* @__PURE__ */ __name(async (output
|
|
|
4650
2738
|
};
|
|
4651
2739
|
return response;
|
|
4652
2740
|
}, "de_StopEventDataStoreIngestionCommand");
|
|
4653
|
-
var de_StopEventDataStoreIngestionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4654
|
-
const parsedOutput = {
|
|
4655
|
-
...output,
|
|
4656
|
-
body: await parseErrorBody(output.body, context)
|
|
4657
|
-
};
|
|
4658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4659
|
-
switch (errorCode) {
|
|
4660
|
-
case "EventDataStoreARNInvalidException":
|
|
4661
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4662
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
4663
|
-
case "EventDataStoreNotFoundException":
|
|
4664
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
4665
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
4666
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4667
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4668
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4669
|
-
case "InvalidEventDataStoreCategoryException":
|
|
4670
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
4671
|
-
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
4672
|
-
case "InvalidEventDataStoreStatusException":
|
|
4673
|
-
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
4674
|
-
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
4675
|
-
case "InvalidParameterException":
|
|
4676
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4677
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4678
|
-
case "NoManagementAccountSLRExistsException":
|
|
4679
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4680
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4681
|
-
case "NotOrganizationMasterAccountException":
|
|
4682
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4683
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4684
|
-
case "OperationNotPermittedException":
|
|
4685
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4686
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4687
|
-
case "UnsupportedOperationException":
|
|
4688
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4689
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4690
|
-
default:
|
|
4691
|
-
const parsedBody = parsedOutput.body;
|
|
4692
|
-
return throwDefaultError({
|
|
4693
|
-
output,
|
|
4694
|
-
parsedBody,
|
|
4695
|
-
errorCode
|
|
4696
|
-
});
|
|
4697
|
-
}
|
|
4698
|
-
}, "de_StopEventDataStoreIngestionCommandError");
|
|
4699
2741
|
var de_StopImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4700
2742
|
if (output.statusCode >= 300) {
|
|
4701
|
-
return
|
|
2743
|
+
return de_CommandError(output, context);
|
|
4702
2744
|
}
|
|
4703
2745
|
const data = await parseBody(output.body, context);
|
|
4704
2746
|
let contents = {};
|
|
@@ -4709,37 +2751,9 @@ var de_StopImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4709
2751
|
};
|
|
4710
2752
|
return response;
|
|
4711
2753
|
}, "de_StopImportCommand");
|
|
4712
|
-
var de_StopImportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4713
|
-
const parsedOutput = {
|
|
4714
|
-
...output,
|
|
4715
|
-
body: await parseErrorBody(output.body, context)
|
|
4716
|
-
};
|
|
4717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4718
|
-
switch (errorCode) {
|
|
4719
|
-
case "ImportNotFoundException":
|
|
4720
|
-
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
4721
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
4722
|
-
case "InvalidParameterException":
|
|
4723
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4724
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4725
|
-
case "OperationNotPermittedException":
|
|
4726
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4727
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4728
|
-
case "UnsupportedOperationException":
|
|
4729
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4730
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4731
|
-
default:
|
|
4732
|
-
const parsedBody = parsedOutput.body;
|
|
4733
|
-
return throwDefaultError({
|
|
4734
|
-
output,
|
|
4735
|
-
parsedBody,
|
|
4736
|
-
errorCode
|
|
4737
|
-
});
|
|
4738
|
-
}
|
|
4739
|
-
}, "de_StopImportCommandError");
|
|
4740
2754
|
var de_StopLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4741
2755
|
if (output.statusCode >= 300) {
|
|
4742
|
-
return
|
|
2756
|
+
return de_CommandError(output, context);
|
|
4743
2757
|
}
|
|
4744
2758
|
const data = await parseBody(output.body, context);
|
|
4745
2759
|
let contents = {};
|
|
@@ -4750,58 +2764,9 @@ var de_StopLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4750
2764
|
};
|
|
4751
2765
|
return response;
|
|
4752
2766
|
}, "de_StopLoggingCommand");
|
|
4753
|
-
var de_StopLoggingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4754
|
-
const parsedOutput = {
|
|
4755
|
-
...output,
|
|
4756
|
-
body: await parseErrorBody(output.body, context)
|
|
4757
|
-
};
|
|
4758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4759
|
-
switch (errorCode) {
|
|
4760
|
-
case "CloudTrailARNInvalidException":
|
|
4761
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
4762
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
4763
|
-
case "ConflictException":
|
|
4764
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
4765
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4766
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4767
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4768
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4769
|
-
case "InvalidHomeRegionException":
|
|
4770
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
4771
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
4772
|
-
case "InvalidTrailNameException":
|
|
4773
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
4774
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
4775
|
-
case "NoManagementAccountSLRExistsException":
|
|
4776
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4777
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4778
|
-
case "NotOrganizationMasterAccountException":
|
|
4779
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4780
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4781
|
-
case "OperationNotPermittedException":
|
|
4782
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4783
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4784
|
-
case "ThrottlingException":
|
|
4785
|
-
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
4786
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4787
|
-
case "TrailNotFoundException":
|
|
4788
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
4789
|
-
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
4790
|
-
case "UnsupportedOperationException":
|
|
4791
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4792
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4793
|
-
default:
|
|
4794
|
-
const parsedBody = parsedOutput.body;
|
|
4795
|
-
return throwDefaultError({
|
|
4796
|
-
output,
|
|
4797
|
-
parsedBody,
|
|
4798
|
-
errorCode
|
|
4799
|
-
});
|
|
4800
|
-
}
|
|
4801
|
-
}, "de_StopLoggingCommandError");
|
|
4802
2767
|
var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4803
2768
|
if (output.statusCode >= 300) {
|
|
4804
|
-
return
|
|
2769
|
+
return de_CommandError(output, context);
|
|
4805
2770
|
}
|
|
4806
2771
|
const data = await parseBody(output.body, context);
|
|
4807
2772
|
let contents = {};
|
|
@@ -4812,7 +2777,33 @@ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4812
2777
|
};
|
|
4813
2778
|
return response;
|
|
4814
2779
|
}, "de_UpdateChannelCommand");
|
|
4815
|
-
var
|
|
2780
|
+
var de_UpdateEventDataStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2781
|
+
if (output.statusCode >= 300) {
|
|
2782
|
+
return de_CommandError(output, context);
|
|
2783
|
+
}
|
|
2784
|
+
const data = await parseBody(output.body, context);
|
|
2785
|
+
let contents = {};
|
|
2786
|
+
contents = de_UpdateEventDataStoreResponse(data, context);
|
|
2787
|
+
const response = {
|
|
2788
|
+
$metadata: deserializeMetadata(output),
|
|
2789
|
+
...contents
|
|
2790
|
+
};
|
|
2791
|
+
return response;
|
|
2792
|
+
}, "de_UpdateEventDataStoreCommand");
|
|
2793
|
+
var de_UpdateTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2794
|
+
if (output.statusCode >= 300) {
|
|
2795
|
+
return de_CommandError(output, context);
|
|
2796
|
+
}
|
|
2797
|
+
const data = await parseBody(output.body, context);
|
|
2798
|
+
let contents = {};
|
|
2799
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2800
|
+
const response = {
|
|
2801
|
+
$metadata: deserializeMetadata(output),
|
|
2802
|
+
...contents
|
|
2803
|
+
};
|
|
2804
|
+
return response;
|
|
2805
|
+
}, "de_UpdateTrailCommand");
|
|
2806
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4816
2807
|
const parsedOutput = {
|
|
4817
2808
|
...output,
|
|
4818
2809
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4822,12 +2813,15 @@ var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4822
2813
|
case "ChannelARNInvalidException":
|
|
4823
2814
|
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
4824
2815
|
throw await de_ChannelARNInvalidExceptionRes(parsedOutput, context);
|
|
4825
|
-
case "ChannelAlreadyExistsException":
|
|
4826
|
-
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
4827
|
-
throw await de_ChannelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
4828
2816
|
case "ChannelNotFoundException":
|
|
4829
2817
|
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
4830
2818
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
2819
|
+
case "CloudTrailARNInvalidException":
|
|
2820
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2821
|
+
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
2822
|
+
case "ConflictException":
|
|
2823
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
2824
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4831
2825
|
case "EventDataStoreARNInvalidException":
|
|
4832
2826
|
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4833
2827
|
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
@@ -4837,65 +2831,63 @@ var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4837
2831
|
case "InactiveEventDataStoreException":
|
|
4838
2832
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
4839
2833
|
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
4840
|
-
case "
|
|
4841
|
-
case "com.amazonaws.cloudtrail#
|
|
4842
|
-
throw await
|
|
4843
|
-
case "
|
|
4844
|
-
case "com.amazonaws.cloudtrail#
|
|
4845
|
-
throw await
|
|
2834
|
+
case "InvalidTagParameterException":
|
|
2835
|
+
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
2836
|
+
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
2837
|
+
case "InvalidTrailNameException":
|
|
2838
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2839
|
+
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
2840
|
+
case "NoManagementAccountSLRExistsException":
|
|
2841
|
+
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
2842
|
+
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
2843
|
+
case "NotOrganizationMasterAccountException":
|
|
2844
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2845
|
+
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4846
2846
|
case "OperationNotPermittedException":
|
|
4847
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4848
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4849
|
-
case "
|
|
4850
|
-
case "com.amazonaws.cloudtrail#
|
|
4851
|
-
throw await
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
2847
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2848
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2849
|
+
case "ResourceNotFoundException":
|
|
2850
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
2851
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2852
|
+
case "ResourceTypeNotSupportedException":
|
|
2853
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2854
|
+
throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
|
|
2855
|
+
case "TagsLimitExceededException":
|
|
2856
|
+
case "com.amazonaws.cloudtrail#TagsLimitExceededException":
|
|
2857
|
+
throw await de_TagsLimitExceededExceptionRes(parsedOutput, context);
|
|
2858
|
+
case "UnsupportedOperationException":
|
|
2859
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2860
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2861
|
+
case "InactiveQueryException":
|
|
2862
|
+
case "com.amazonaws.cloudtrail#InactiveQueryException":
|
|
2863
|
+
throw await de_InactiveQueryExceptionRes(parsedOutput, context);
|
|
2864
|
+
case "InvalidParameterException":
|
|
2865
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2866
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2867
|
+
case "QueryIdNotFoundException":
|
|
2868
|
+
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
2869
|
+
throw await de_QueryIdNotFoundExceptionRes(parsedOutput, context);
|
|
2870
|
+
case "ChannelAlreadyExistsException":
|
|
2871
|
+
case "com.amazonaws.cloudtrail#ChannelAlreadyExistsException":
|
|
2872
|
+
throw await de_ChannelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2873
|
+
case "ChannelMaxLimitExceededException":
|
|
2874
|
+
case "com.amazonaws.cloudtrail#ChannelMaxLimitExceededException":
|
|
2875
|
+
throw await de_ChannelMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
2876
|
+
case "InvalidEventDataStoreCategoryException":
|
|
2877
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreCategoryException":
|
|
2878
|
+
throw await de_InvalidEventDataStoreCategoryExceptionRes(parsedOutput, context);
|
|
2879
|
+
case "InvalidSourceException":
|
|
2880
|
+
case "com.amazonaws.cloudtrail#InvalidSourceException":
|
|
2881
|
+
throw await de_InvalidSourceExceptionRes(parsedOutput, context);
|
|
4881
2882
|
case "CloudTrailAccessNotEnabledException":
|
|
4882
2883
|
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
4883
2884
|
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
4884
|
-
case "EventDataStoreARNInvalidException":
|
|
4885
|
-
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
4886
|
-
throw await de_EventDataStoreARNInvalidExceptionRes(parsedOutput, context);
|
|
4887
2885
|
case "EventDataStoreAlreadyExistsException":
|
|
4888
2886
|
case "com.amazonaws.cloudtrail#EventDataStoreAlreadyExistsException":
|
|
4889
2887
|
throw await de_EventDataStoreAlreadyExistsExceptionRes(parsedOutput, context);
|
|
4890
|
-
case "
|
|
4891
|
-
case "com.amazonaws.cloudtrail#
|
|
4892
|
-
throw await
|
|
4893
|
-
case "EventDataStoreNotFoundException":
|
|
4894
|
-
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
4895
|
-
throw await de_EventDataStoreNotFoundExceptionRes(parsedOutput, context);
|
|
4896
|
-
case "InactiveEventDataStoreException":
|
|
4897
|
-
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
4898
|
-
throw await de_InactiveEventDataStoreExceptionRes(parsedOutput, context);
|
|
2888
|
+
case "EventDataStoreMaxLimitExceededException":
|
|
2889
|
+
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
2890
|
+
throw await de_EventDataStoreMaxLimitExceededExceptionRes(parsedOutput, context);
|
|
4899
2891
|
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4900
2892
|
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4901
2893
|
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
@@ -4905,89 +2897,27 @@ var de_UpdateEventDataStoreCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
4905
2897
|
case "InvalidEventSelectorsException":
|
|
4906
2898
|
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
4907
2899
|
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
4908
|
-
case "InvalidInsightSelectorsException":
|
|
4909
|
-
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
4910
|
-
throw await de_InvalidInsightSelectorsExceptionRes(parsedOutput, context);
|
|
4911
2900
|
case "InvalidKmsKeyIdException":
|
|
4912
2901
|
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
4913
2902
|
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
4914
|
-
case "InvalidParameterException":
|
|
4915
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
4916
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4917
2903
|
case "KmsException":
|
|
4918
2904
|
case "com.amazonaws.cloudtrail#KmsException":
|
|
4919
2905
|
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
4920
2906
|
case "KmsKeyNotFoundException":
|
|
4921
2907
|
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
4922
2908
|
throw await de_KmsKeyNotFoundExceptionRes(parsedOutput, context);
|
|
4923
|
-
case "NoManagementAccountSLRExistsException":
|
|
4924
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
4925
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
4926
|
-
case "NotOrganizationMasterAccountException":
|
|
4927
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
4928
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
4929
|
-
case "OperationNotPermittedException":
|
|
4930
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
4931
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
4932
2909
|
case "OrganizationNotInAllFeaturesModeException":
|
|
4933
2910
|
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
4934
2911
|
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
4935
2912
|
case "OrganizationsNotInUseException":
|
|
4936
2913
|
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
4937
2914
|
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4938
|
-
case "UnsupportedOperationException":
|
|
4939
|
-
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
4940
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4941
|
-
default:
|
|
4942
|
-
const parsedBody = parsedOutput.body;
|
|
4943
|
-
return throwDefaultError({
|
|
4944
|
-
output,
|
|
4945
|
-
parsedBody,
|
|
4946
|
-
errorCode
|
|
4947
|
-
});
|
|
4948
|
-
}
|
|
4949
|
-
}, "de_UpdateEventDataStoreCommandError");
|
|
4950
|
-
var de_UpdateTrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4951
|
-
if (output.statusCode >= 300) {
|
|
4952
|
-
return de_UpdateTrailCommandError(output, context);
|
|
4953
|
-
}
|
|
4954
|
-
const data = await parseBody(output.body, context);
|
|
4955
|
-
let contents = {};
|
|
4956
|
-
contents = (0, import_smithy_client._json)(data);
|
|
4957
|
-
const response = {
|
|
4958
|
-
$metadata: deserializeMetadata(output),
|
|
4959
|
-
...contents
|
|
4960
|
-
};
|
|
4961
|
-
return response;
|
|
4962
|
-
}, "de_UpdateTrailCommand");
|
|
4963
|
-
var de_UpdateTrailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4964
|
-
const parsedOutput = {
|
|
4965
|
-
...output,
|
|
4966
|
-
body: await parseErrorBody(output.body, context)
|
|
4967
|
-
};
|
|
4968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4969
|
-
switch (errorCode) {
|
|
4970
|
-
case "CloudTrailARNInvalidException":
|
|
4971
|
-
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
4972
|
-
throw await de_CloudTrailARNInvalidExceptionRes(parsedOutput, context);
|
|
4973
|
-
case "CloudTrailAccessNotEnabledException":
|
|
4974
|
-
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
4975
|
-
throw await de_CloudTrailAccessNotEnabledExceptionRes(parsedOutput, context);
|
|
4976
2915
|
case "CloudTrailInvalidClientTokenIdException":
|
|
4977
2916
|
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
4978
2917
|
throw await de_CloudTrailInvalidClientTokenIdExceptionRes(parsedOutput, context);
|
|
4979
2918
|
case "CloudWatchLogsDeliveryUnavailableException":
|
|
4980
2919
|
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
4981
2920
|
throw await de_CloudWatchLogsDeliveryUnavailableExceptionRes(parsedOutput, context);
|
|
4982
|
-
case "ConflictException":
|
|
4983
|
-
case "com.amazonaws.cloudtrail#ConflictException":
|
|
4984
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4985
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
4986
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
4987
|
-
throw await de_InsufficientDependencyServiceAccessPermissionExceptionRes(parsedOutput, context);
|
|
4988
|
-
case "InsufficientEncryptionPolicyException":
|
|
4989
|
-
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
4990
|
-
throw await de_InsufficientEncryptionPolicyExceptionRes(parsedOutput, context);
|
|
4991
2921
|
case "InsufficientS3BucketPolicyException":
|
|
4992
2922
|
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
4993
2923
|
throw await de_InsufficientS3BucketPolicyExceptionRes(parsedOutput, context);
|
|
@@ -5000,21 +2930,9 @@ var de_UpdateTrailCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
5000
2930
|
case "InvalidCloudWatchLogsRoleArnException":
|
|
5001
2931
|
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException":
|
|
5002
2932
|
throw await de_InvalidCloudWatchLogsRoleArnExceptionRes(parsedOutput, context);
|
|
5003
|
-
case "InvalidEventSelectorsException":
|
|
5004
|
-
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
5005
|
-
throw await de_InvalidEventSelectorsExceptionRes(parsedOutput, context);
|
|
5006
|
-
case "InvalidHomeRegionException":
|
|
5007
|
-
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
5008
|
-
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
5009
|
-
case "InvalidKmsKeyIdException":
|
|
5010
|
-
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
5011
|
-
throw await de_InvalidKmsKeyIdExceptionRes(parsedOutput, context);
|
|
5012
2933
|
case "InvalidParameterCombinationException":
|
|
5013
2934
|
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
5014
2935
|
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5015
|
-
case "InvalidParameterException":
|
|
5016
|
-
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
5017
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5018
2936
|
case "InvalidS3BucketNameException":
|
|
5019
2937
|
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
5020
2938
|
throw await de_InvalidS3BucketNameExceptionRes(parsedOutput, context);
|
|
@@ -5024,48 +2942,123 @@ var de_UpdateTrailCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
5024
2942
|
case "InvalidSnsTopicNameException":
|
|
5025
2943
|
case "com.amazonaws.cloudtrail#InvalidSnsTopicNameException":
|
|
5026
2944
|
throw await de_InvalidSnsTopicNameExceptionRes(parsedOutput, context);
|
|
5027
|
-
case "InvalidTrailNameException":
|
|
5028
|
-
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
5029
|
-
throw await de_InvalidTrailNameExceptionRes(parsedOutput, context);
|
|
5030
|
-
case "KmsException":
|
|
5031
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
5032
|
-
throw await de_KmsExceptionRes(parsedOutput, context);
|
|
5033
2945
|
case "KmsKeyDisabledException":
|
|
5034
2946
|
case "com.amazonaws.cloudtrail#KmsKeyDisabledException":
|
|
5035
2947
|
throw await de_KmsKeyDisabledExceptionRes(parsedOutput, context);
|
|
5036
|
-
case "
|
|
5037
|
-
case "com.amazonaws.cloudtrail#
|
|
5038
|
-
throw await
|
|
5039
|
-
case "NoManagementAccountSLRExistsException":
|
|
5040
|
-
case "com.amazonaws.cloudtrail#NoManagementAccountSLRExistsException":
|
|
5041
|
-
throw await de_NoManagementAccountSLRExistsExceptionRes(parsedOutput, context);
|
|
5042
|
-
case "NotOrganizationMasterAccountException":
|
|
5043
|
-
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
5044
|
-
throw await de_NotOrganizationMasterAccountExceptionRes(parsedOutput, context);
|
|
5045
|
-
case "OperationNotPermittedException":
|
|
5046
|
-
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
5047
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
5048
|
-
case "OrganizationNotInAllFeaturesModeException":
|
|
5049
|
-
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
5050
|
-
throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
|
|
5051
|
-
case "OrganizationsNotInUseException":
|
|
5052
|
-
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
5053
|
-
throw await de_OrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2948
|
+
case "MaximumNumberOfTrailsExceededException":
|
|
2949
|
+
case "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException":
|
|
2950
|
+
throw await de_MaximumNumberOfTrailsExceededExceptionRes(parsedOutput, context);
|
|
5054
2951
|
case "S3BucketDoesNotExistException":
|
|
5055
2952
|
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
5056
2953
|
throw await de_S3BucketDoesNotExistExceptionRes(parsedOutput, context);
|
|
5057
2954
|
case "ThrottlingException":
|
|
5058
2955
|
case "com.amazonaws.cloudtrail#ThrottlingException":
|
|
5059
2956
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5060
|
-
case "
|
|
5061
|
-
case "com.amazonaws.cloudtrail#
|
|
5062
|
-
throw await
|
|
2957
|
+
case "TrailAlreadyExistsException":
|
|
2958
|
+
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
2959
|
+
throw await de_TrailAlreadyExistsExceptionRes(parsedOutput, context);
|
|
5063
2960
|
case "TrailNotProvidedException":
|
|
5064
2961
|
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
5065
2962
|
throw await de_TrailNotProvidedExceptionRes(parsedOutput, context);
|
|
5066
|
-
case "
|
|
5067
|
-
case "com.amazonaws.cloudtrail#
|
|
5068
|
-
throw await
|
|
2963
|
+
case "ChannelExistsForEDSException":
|
|
2964
|
+
case "com.amazonaws.cloudtrail#ChannelExistsForEDSException":
|
|
2965
|
+
throw await de_ChannelExistsForEDSExceptionRes(parsedOutput, context);
|
|
2966
|
+
case "EventDataStoreFederationEnabledException":
|
|
2967
|
+
case "com.amazonaws.cloudtrail#EventDataStoreFederationEnabledException":
|
|
2968
|
+
throw await de_EventDataStoreFederationEnabledExceptionRes(parsedOutput, context);
|
|
2969
|
+
case "EventDataStoreHasOngoingImportException":
|
|
2970
|
+
case "com.amazonaws.cloudtrail#EventDataStoreHasOngoingImportException":
|
|
2971
|
+
throw await de_EventDataStoreHasOngoingImportExceptionRes(parsedOutput, context);
|
|
2972
|
+
case "EventDataStoreTerminationProtectedException":
|
|
2973
|
+
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
2974
|
+
throw await de_EventDataStoreTerminationProtectedExceptionRes(parsedOutput, context);
|
|
2975
|
+
case "ResourceARNNotValidException":
|
|
2976
|
+
case "com.amazonaws.cloudtrail#ResourceARNNotValidException":
|
|
2977
|
+
throw await de_ResourceARNNotValidExceptionRes(parsedOutput, context);
|
|
2978
|
+
case "ResourcePolicyNotFoundException":
|
|
2979
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotFoundException":
|
|
2980
|
+
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2981
|
+
case "InvalidHomeRegionException":
|
|
2982
|
+
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2983
|
+
throw await de_InvalidHomeRegionExceptionRes(parsedOutput, context);
|
|
2984
|
+
case "TrailNotFoundException":
|
|
2985
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2986
|
+
throw await de_TrailNotFoundExceptionRes(parsedOutput, context);
|
|
2987
|
+
case "AccountNotFoundException":
|
|
2988
|
+
case "com.amazonaws.cloudtrail#AccountNotFoundException":
|
|
2989
|
+
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2990
|
+
case "AccountNotRegisteredException":
|
|
2991
|
+
case "com.amazonaws.cloudtrail#AccountNotRegisteredException":
|
|
2992
|
+
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
2993
|
+
case "NotOrganizationManagementAccountException":
|
|
2994
|
+
case "com.amazonaws.cloudtrail#NotOrganizationManagementAccountException":
|
|
2995
|
+
throw await de_NotOrganizationManagementAccountExceptionRes(parsedOutput, context);
|
|
2996
|
+
case "AccessDeniedException":
|
|
2997
|
+
case "com.amazonaws.cloudtrail#AccessDeniedException":
|
|
2998
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2999
|
+
case "ConcurrentModificationException":
|
|
3000
|
+
case "com.amazonaws.cloudtrail#ConcurrentModificationException":
|
|
3001
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3002
|
+
case "ImportNotFoundException":
|
|
3003
|
+
case "com.amazonaws.cloudtrail#ImportNotFoundException":
|
|
3004
|
+
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
3005
|
+
case "InsightNotEnabledException":
|
|
3006
|
+
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
3007
|
+
throw await de_InsightNotEnabledExceptionRes(parsedOutput, context);
|
|
3008
|
+
case "InvalidMaxResultsException":
|
|
3009
|
+
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
3010
|
+
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
3011
|
+
case "InvalidNextTokenException":
|
|
3012
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
3013
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3014
|
+
case "InvalidTimeRangeException":
|
|
3015
|
+
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
3016
|
+
throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
|
|
3017
|
+
case "InvalidTokenException":
|
|
3018
|
+
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
3019
|
+
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
3020
|
+
case "InvalidDateRangeException":
|
|
3021
|
+
case "com.amazonaws.cloudtrail#InvalidDateRangeException":
|
|
3022
|
+
throw await de_InvalidDateRangeExceptionRes(parsedOutput, context);
|
|
3023
|
+
case "InvalidQueryStatusException":
|
|
3024
|
+
case "com.amazonaws.cloudtrail#InvalidQueryStatusException":
|
|
3025
|
+
throw await de_InvalidQueryStatusExceptionRes(parsedOutput, context);
|
|
3026
|
+
case "InvalidEventCategoryException":
|
|
3027
|
+
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
3028
|
+
throw await de_InvalidEventCategoryExceptionRes(parsedOutput, context);
|
|
3029
|
+
case "InvalidLookupAttributesException":
|
|
3030
|
+
case "com.amazonaws.cloudtrail#InvalidLookupAttributesException":
|
|
3031
|
+
throw await de_InvalidLookupAttributesExceptionRes(parsedOutput, context);
|
|
3032
|
+
case "InvalidInsightSelectorsException":
|
|
3033
|
+
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
3034
|
+
throw await de_InvalidInsightSelectorsExceptionRes(parsedOutput, context);
|
|
3035
|
+
case "ResourcePolicyNotValidException":
|
|
3036
|
+
case "com.amazonaws.cloudtrail#ResourcePolicyNotValidException":
|
|
3037
|
+
throw await de_ResourcePolicyNotValidExceptionRes(parsedOutput, context);
|
|
3038
|
+
case "AccountRegisteredException":
|
|
3039
|
+
case "com.amazonaws.cloudtrail#AccountRegisteredException":
|
|
3040
|
+
throw await de_AccountRegisteredExceptionRes(parsedOutput, context);
|
|
3041
|
+
case "CannotDelegateManagementAccountException":
|
|
3042
|
+
case "com.amazonaws.cloudtrail#CannotDelegateManagementAccountException":
|
|
3043
|
+
throw await de_CannotDelegateManagementAccountExceptionRes(parsedOutput, context);
|
|
3044
|
+
case "DelegatedAdminAccountLimitExceededException":
|
|
3045
|
+
case "com.amazonaws.cloudtrail#DelegatedAdminAccountLimitExceededException":
|
|
3046
|
+
throw await de_DelegatedAdminAccountLimitExceededExceptionRes(parsedOutput, context);
|
|
3047
|
+
case "InvalidEventDataStoreStatusException":
|
|
3048
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
3049
|
+
throw await de_InvalidEventDataStoreStatusExceptionRes(parsedOutput, context);
|
|
3050
|
+
case "AccountHasOngoingImportException":
|
|
3051
|
+
case "com.amazonaws.cloudtrail#AccountHasOngoingImportException":
|
|
3052
|
+
throw await de_AccountHasOngoingImportExceptionRes(parsedOutput, context);
|
|
3053
|
+
case "InvalidImportSourceException":
|
|
3054
|
+
case "com.amazonaws.cloudtrail#InvalidImportSourceException":
|
|
3055
|
+
throw await de_InvalidImportSourceExceptionRes(parsedOutput, context);
|
|
3056
|
+
case "InvalidQueryStatementException":
|
|
3057
|
+
case "com.amazonaws.cloudtrail#InvalidQueryStatementException":
|
|
3058
|
+
throw await de_InvalidQueryStatementExceptionRes(parsedOutput, context);
|
|
3059
|
+
case "MaxConcurrentQueriesException":
|
|
3060
|
+
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
3061
|
+
throw await de_MaxConcurrentQueriesExceptionRes(parsedOutput, context);
|
|
5069
3062
|
default:
|
|
5070
3063
|
const parsedBody = parsedOutput.body;
|
|
5071
3064
|
return throwDefaultError({
|
|
@@ -5074,7 +3067,7 @@ var de_UpdateTrailCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
5074
3067
|
errorCode
|
|
5075
3068
|
});
|
|
5076
3069
|
}
|
|
5077
|
-
}, "
|
|
3070
|
+
}, "de_CommandError");
|
|
5078
3071
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5079
3072
|
const body = parsedOutput.body;
|
|
5080
3073
|
const deserialized = (0, import_smithy_client._json)(body);
|