@aws-sdk/client-application-insights 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 +58 -867
- package/dist-es/protocols/Aws_json1_1.js +78 -887
- package/package.json +3 -3
|
@@ -202,7 +202,7 @@ export const se_UpdateWorkloadCommand = async (input, context) => {
|
|
|
202
202
|
};
|
|
203
203
|
export const de_AddWorkloadCommand = async (output, context) => {
|
|
204
204
|
if (output.statusCode >= 300) {
|
|
205
|
-
return
|
|
205
|
+
return de_CommandError(output, context);
|
|
206
206
|
}
|
|
207
207
|
const data = await parseBody(output.body, context);
|
|
208
208
|
let contents = {};
|
|
@@ -213,37 +213,9 @@ export const de_AddWorkloadCommand = async (output, context) => {
|
|
|
213
213
|
};
|
|
214
214
|
return response;
|
|
215
215
|
};
|
|
216
|
-
const de_AddWorkloadCommandError = async (output, context) => {
|
|
217
|
-
const parsedOutput = {
|
|
218
|
-
...output,
|
|
219
|
-
body: await parseErrorBody(output.body, context),
|
|
220
|
-
};
|
|
221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
222
|
-
switch (errorCode) {
|
|
223
|
-
case "InternalServerException":
|
|
224
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
225
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
226
|
-
case "ResourceInUseException":
|
|
227
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
228
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
229
|
-
case "ResourceNotFoundException":
|
|
230
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
231
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
232
|
-
case "ValidationException":
|
|
233
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
234
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
235
|
-
default:
|
|
236
|
-
const parsedBody = parsedOutput.body;
|
|
237
|
-
return throwDefaultError({
|
|
238
|
-
output,
|
|
239
|
-
parsedBody,
|
|
240
|
-
errorCode,
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
216
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
245
217
|
if (output.statusCode >= 300) {
|
|
246
|
-
return
|
|
218
|
+
return de_CommandError(output, context);
|
|
247
219
|
}
|
|
248
220
|
const data = await parseBody(output.body, context);
|
|
249
221
|
let contents = {};
|
|
@@ -254,43 +226,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
254
226
|
};
|
|
255
227
|
return response;
|
|
256
228
|
};
|
|
257
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
258
|
-
const parsedOutput = {
|
|
259
|
-
...output,
|
|
260
|
-
body: await parseErrorBody(output.body, context),
|
|
261
|
-
};
|
|
262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
263
|
-
switch (errorCode) {
|
|
264
|
-
case "AccessDeniedException":
|
|
265
|
-
case "com.amazonaws.applicationinsights#AccessDeniedException":
|
|
266
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
267
|
-
case "InternalServerException":
|
|
268
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
269
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
270
|
-
case "ResourceInUseException":
|
|
271
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
272
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
273
|
-
case "ResourceNotFoundException":
|
|
274
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
275
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
276
|
-
case "TagsAlreadyExistException":
|
|
277
|
-
case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
|
|
278
|
-
throw await de_TagsAlreadyExistExceptionRes(parsedOutput, context);
|
|
279
|
-
case "ValidationException":
|
|
280
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
281
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
282
|
-
default:
|
|
283
|
-
const parsedBody = parsedOutput.body;
|
|
284
|
-
return throwDefaultError({
|
|
285
|
-
output,
|
|
286
|
-
parsedBody,
|
|
287
|
-
errorCode,
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
229
|
export const de_CreateComponentCommand = async (output, context) => {
|
|
292
230
|
if (output.statusCode >= 300) {
|
|
293
|
-
return
|
|
231
|
+
return de_CommandError(output, context);
|
|
294
232
|
}
|
|
295
233
|
const data = await parseBody(output.body, context);
|
|
296
234
|
let contents = {};
|
|
@@ -301,37 +239,9 @@ export const de_CreateComponentCommand = async (output, context) => {
|
|
|
301
239
|
};
|
|
302
240
|
return response;
|
|
303
241
|
};
|
|
304
|
-
const de_CreateComponentCommandError = async (output, context) => {
|
|
305
|
-
const parsedOutput = {
|
|
306
|
-
...output,
|
|
307
|
-
body: await parseErrorBody(output.body, context),
|
|
308
|
-
};
|
|
309
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
310
|
-
switch (errorCode) {
|
|
311
|
-
case "InternalServerException":
|
|
312
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
313
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
314
|
-
case "ResourceInUseException":
|
|
315
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
316
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
317
|
-
case "ResourceNotFoundException":
|
|
318
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
320
|
-
case "ValidationException":
|
|
321
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
323
|
-
default:
|
|
324
|
-
const parsedBody = parsedOutput.body;
|
|
325
|
-
return throwDefaultError({
|
|
326
|
-
output,
|
|
327
|
-
parsedBody,
|
|
328
|
-
errorCode,
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
242
|
export const de_CreateLogPatternCommand = async (output, context) => {
|
|
333
243
|
if (output.statusCode >= 300) {
|
|
334
|
-
return
|
|
244
|
+
return de_CommandError(output, context);
|
|
335
245
|
}
|
|
336
246
|
const data = await parseBody(output.body, context);
|
|
337
247
|
let contents = {};
|
|
@@ -342,37 +252,9 @@ export const de_CreateLogPatternCommand = async (output, context) => {
|
|
|
342
252
|
};
|
|
343
253
|
return response;
|
|
344
254
|
};
|
|
345
|
-
const de_CreateLogPatternCommandError = async (output, context) => {
|
|
346
|
-
const parsedOutput = {
|
|
347
|
-
...output,
|
|
348
|
-
body: await parseErrorBody(output.body, context),
|
|
349
|
-
};
|
|
350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
-
switch (errorCode) {
|
|
352
|
-
case "InternalServerException":
|
|
353
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
354
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
355
|
-
case "ResourceInUseException":
|
|
356
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
357
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ResourceNotFoundException":
|
|
359
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
360
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ValidationException":
|
|
362
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
363
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
364
|
-
default:
|
|
365
|
-
const parsedBody = parsedOutput.body;
|
|
366
|
-
return throwDefaultError({
|
|
367
|
-
output,
|
|
368
|
-
parsedBody,
|
|
369
|
-
errorCode,
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
255
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
374
256
|
if (output.statusCode >= 300) {
|
|
375
|
-
return
|
|
257
|
+
return de_CommandError(output, context);
|
|
376
258
|
}
|
|
377
259
|
const data = await parseBody(output.body, context);
|
|
378
260
|
let contents = {};
|
|
@@ -383,37 +265,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
383
265
|
};
|
|
384
266
|
return response;
|
|
385
267
|
};
|
|
386
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
switch (errorCode) {
|
|
393
|
-
case "BadRequestException":
|
|
394
|
-
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
395
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
396
|
-
case "InternalServerException":
|
|
397
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
398
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ResourceNotFoundException":
|
|
400
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
401
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ValidationException":
|
|
403
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
404
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
405
|
-
default:
|
|
406
|
-
const parsedBody = parsedOutput.body;
|
|
407
|
-
return throwDefaultError({
|
|
408
|
-
output,
|
|
409
|
-
parsedBody,
|
|
410
|
-
errorCode,
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
268
|
export const de_DeleteComponentCommand = async (output, context) => {
|
|
415
269
|
if (output.statusCode >= 300) {
|
|
416
|
-
return
|
|
270
|
+
return de_CommandError(output, context);
|
|
417
271
|
}
|
|
418
272
|
const data = await parseBody(output.body, context);
|
|
419
273
|
let contents = {};
|
|
@@ -424,34 +278,9 @@ export const de_DeleteComponentCommand = async (output, context) => {
|
|
|
424
278
|
};
|
|
425
279
|
return response;
|
|
426
280
|
};
|
|
427
|
-
const de_DeleteComponentCommandError = async (output, context) => {
|
|
428
|
-
const parsedOutput = {
|
|
429
|
-
...output,
|
|
430
|
-
body: await parseErrorBody(output.body, context),
|
|
431
|
-
};
|
|
432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
|
-
switch (errorCode) {
|
|
434
|
-
case "InternalServerException":
|
|
435
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
436
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
437
|
-
case "ResourceNotFoundException":
|
|
438
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
439
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
440
|
-
case "ValidationException":
|
|
441
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
443
|
-
default:
|
|
444
|
-
const parsedBody = parsedOutput.body;
|
|
445
|
-
return throwDefaultError({
|
|
446
|
-
output,
|
|
447
|
-
parsedBody,
|
|
448
|
-
errorCode,
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
281
|
export const de_DeleteLogPatternCommand = async (output, context) => {
|
|
453
282
|
if (output.statusCode >= 300) {
|
|
454
|
-
return
|
|
283
|
+
return de_CommandError(output, context);
|
|
455
284
|
}
|
|
456
285
|
const data = await parseBody(output.body, context);
|
|
457
286
|
let contents = {};
|
|
@@ -462,37 +291,9 @@ export const de_DeleteLogPatternCommand = async (output, context) => {
|
|
|
462
291
|
};
|
|
463
292
|
return response;
|
|
464
293
|
};
|
|
465
|
-
const de_DeleteLogPatternCommandError = async (output, context) => {
|
|
466
|
-
const parsedOutput = {
|
|
467
|
-
...output,
|
|
468
|
-
body: await parseErrorBody(output.body, context),
|
|
469
|
-
};
|
|
470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
|
-
switch (errorCode) {
|
|
472
|
-
case "BadRequestException":
|
|
473
|
-
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
474
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
475
|
-
case "InternalServerException":
|
|
476
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ResourceNotFoundException":
|
|
479
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ValidationException":
|
|
482
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
483
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
484
|
-
default:
|
|
485
|
-
const parsedBody = parsedOutput.body;
|
|
486
|
-
return throwDefaultError({
|
|
487
|
-
output,
|
|
488
|
-
parsedBody,
|
|
489
|
-
errorCode,
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
294
|
export const de_DescribeApplicationCommand = async (output, context) => {
|
|
494
295
|
if (output.statusCode >= 300) {
|
|
495
|
-
return
|
|
296
|
+
return de_CommandError(output, context);
|
|
496
297
|
}
|
|
497
298
|
const data = await parseBody(output.body, context);
|
|
498
299
|
let contents = {};
|
|
@@ -503,34 +304,9 @@ export const de_DescribeApplicationCommand = async (output, context) => {
|
|
|
503
304
|
};
|
|
504
305
|
return response;
|
|
505
306
|
};
|
|
506
|
-
const de_DescribeApplicationCommandError = async (output, context) => {
|
|
507
|
-
const parsedOutput = {
|
|
508
|
-
...output,
|
|
509
|
-
body: await parseErrorBody(output.body, context),
|
|
510
|
-
};
|
|
511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
|
-
switch (errorCode) {
|
|
513
|
-
case "InternalServerException":
|
|
514
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ResourceNotFoundException":
|
|
517
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ValidationException":
|
|
520
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
521
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
522
|
-
default:
|
|
523
|
-
const parsedBody = parsedOutput.body;
|
|
524
|
-
return throwDefaultError({
|
|
525
|
-
output,
|
|
526
|
-
parsedBody,
|
|
527
|
-
errorCode,
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
307
|
export const de_DescribeComponentCommand = async (output, context) => {
|
|
532
308
|
if (output.statusCode >= 300) {
|
|
533
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
534
310
|
}
|
|
535
311
|
const data = await parseBody(output.body, context);
|
|
536
312
|
let contents = {};
|
|
@@ -541,34 +317,9 @@ export const de_DescribeComponentCommand = async (output, context) => {
|
|
|
541
317
|
};
|
|
542
318
|
return response;
|
|
543
319
|
};
|
|
544
|
-
const de_DescribeComponentCommandError = async (output, context) => {
|
|
545
|
-
const parsedOutput = {
|
|
546
|
-
...output,
|
|
547
|
-
body: await parseErrorBody(output.body, context),
|
|
548
|
-
};
|
|
549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
|
-
switch (errorCode) {
|
|
551
|
-
case "InternalServerException":
|
|
552
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
553
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ResourceNotFoundException":
|
|
555
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ValidationException":
|
|
558
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
560
|
-
default:
|
|
561
|
-
const parsedBody = parsedOutput.body;
|
|
562
|
-
return throwDefaultError({
|
|
563
|
-
output,
|
|
564
|
-
parsedBody,
|
|
565
|
-
errorCode,
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
320
|
export const de_DescribeComponentConfigurationCommand = async (output, context) => {
|
|
570
321
|
if (output.statusCode >= 300) {
|
|
571
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
572
323
|
}
|
|
573
324
|
const data = await parseBody(output.body, context);
|
|
574
325
|
let contents = {};
|
|
@@ -579,72 +330,22 @@ export const de_DescribeComponentConfigurationCommand = async (output, context)
|
|
|
579
330
|
};
|
|
580
331
|
return response;
|
|
581
332
|
};
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
case "ResourceNotFoundException":
|
|
593
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
595
|
-
case "ValidationException":
|
|
596
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
597
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
598
|
-
default:
|
|
599
|
-
const parsedBody = parsedOutput.body;
|
|
600
|
-
return throwDefaultError({
|
|
601
|
-
output,
|
|
602
|
-
parsedBody,
|
|
603
|
-
errorCode,
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
};
|
|
607
|
-
export const de_DescribeComponentConfigurationRecommendationCommand = async (output, context) => {
|
|
608
|
-
if (output.statusCode >= 300) {
|
|
609
|
-
return de_DescribeComponentConfigurationRecommendationCommandError(output, context);
|
|
610
|
-
}
|
|
611
|
-
const data = await parseBody(output.body, context);
|
|
612
|
-
let contents = {};
|
|
613
|
-
contents = _json(data);
|
|
614
|
-
const response = {
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
...contents,
|
|
333
|
+
export const de_DescribeComponentConfigurationRecommendationCommand = async (output, context) => {
|
|
334
|
+
if (output.statusCode >= 300) {
|
|
335
|
+
return de_CommandError(output, context);
|
|
336
|
+
}
|
|
337
|
+
const data = await parseBody(output.body, context);
|
|
338
|
+
let contents = {};
|
|
339
|
+
contents = _json(data);
|
|
340
|
+
const response = {
|
|
341
|
+
$metadata: deserializeMetadata(output),
|
|
342
|
+
...contents,
|
|
617
343
|
};
|
|
618
344
|
return response;
|
|
619
345
|
};
|
|
620
|
-
const de_DescribeComponentConfigurationRecommendationCommandError = async (output, context) => {
|
|
621
|
-
const parsedOutput = {
|
|
622
|
-
...output,
|
|
623
|
-
body: await parseErrorBody(output.body, context),
|
|
624
|
-
};
|
|
625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
|
-
switch (errorCode) {
|
|
627
|
-
case "InternalServerException":
|
|
628
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
629
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ResourceNotFoundException":
|
|
631
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
632
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
633
|
-
case "ValidationException":
|
|
634
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
635
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
636
|
-
default:
|
|
637
|
-
const parsedBody = parsedOutput.body;
|
|
638
|
-
return throwDefaultError({
|
|
639
|
-
output,
|
|
640
|
-
parsedBody,
|
|
641
|
-
errorCode,
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
346
|
export const de_DescribeLogPatternCommand = async (output, context) => {
|
|
646
347
|
if (output.statusCode >= 300) {
|
|
647
|
-
return
|
|
348
|
+
return de_CommandError(output, context);
|
|
648
349
|
}
|
|
649
350
|
const data = await parseBody(output.body, context);
|
|
650
351
|
let contents = {};
|
|
@@ -655,34 +356,9 @@ export const de_DescribeLogPatternCommand = async (output, context) => {
|
|
|
655
356
|
};
|
|
656
357
|
return response;
|
|
657
358
|
};
|
|
658
|
-
const de_DescribeLogPatternCommandError = async (output, context) => {
|
|
659
|
-
const parsedOutput = {
|
|
660
|
-
...output,
|
|
661
|
-
body: await parseErrorBody(output.body, context),
|
|
662
|
-
};
|
|
663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
-
switch (errorCode) {
|
|
665
|
-
case "InternalServerException":
|
|
666
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ResourceNotFoundException":
|
|
669
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ValidationException":
|
|
672
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
673
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
674
|
-
default:
|
|
675
|
-
const parsedBody = parsedOutput.body;
|
|
676
|
-
return throwDefaultError({
|
|
677
|
-
output,
|
|
678
|
-
parsedBody,
|
|
679
|
-
errorCode,
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
359
|
export const de_DescribeObservationCommand = async (output, context) => {
|
|
684
360
|
if (output.statusCode >= 300) {
|
|
685
|
-
return
|
|
361
|
+
return de_CommandError(output, context);
|
|
686
362
|
}
|
|
687
363
|
const data = await parseBody(output.body, context);
|
|
688
364
|
let contents = {};
|
|
@@ -693,34 +369,9 @@ export const de_DescribeObservationCommand = async (output, context) => {
|
|
|
693
369
|
};
|
|
694
370
|
return response;
|
|
695
371
|
};
|
|
696
|
-
const de_DescribeObservationCommandError = async (output, context) => {
|
|
697
|
-
const parsedOutput = {
|
|
698
|
-
...output,
|
|
699
|
-
body: await parseErrorBody(output.body, context),
|
|
700
|
-
};
|
|
701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
-
switch (errorCode) {
|
|
703
|
-
case "InternalServerException":
|
|
704
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
705
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ResourceNotFoundException":
|
|
707
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
708
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ValidationException":
|
|
710
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
711
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
712
|
-
default:
|
|
713
|
-
const parsedBody = parsedOutput.body;
|
|
714
|
-
return throwDefaultError({
|
|
715
|
-
output,
|
|
716
|
-
parsedBody,
|
|
717
|
-
errorCode,
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
372
|
export const de_DescribeProblemCommand = async (output, context) => {
|
|
722
373
|
if (output.statusCode >= 300) {
|
|
723
|
-
return
|
|
374
|
+
return de_CommandError(output, context);
|
|
724
375
|
}
|
|
725
376
|
const data = await parseBody(output.body, context);
|
|
726
377
|
let contents = {};
|
|
@@ -731,34 +382,9 @@ export const de_DescribeProblemCommand = async (output, context) => {
|
|
|
731
382
|
};
|
|
732
383
|
return response;
|
|
733
384
|
};
|
|
734
|
-
const de_DescribeProblemCommandError = async (output, context) => {
|
|
735
|
-
const parsedOutput = {
|
|
736
|
-
...output,
|
|
737
|
-
body: await parseErrorBody(output.body, context),
|
|
738
|
-
};
|
|
739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
|
-
switch (errorCode) {
|
|
741
|
-
case "InternalServerException":
|
|
742
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
743
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ResourceNotFoundException":
|
|
745
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
746
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ValidationException":
|
|
748
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
749
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
750
|
-
default:
|
|
751
|
-
const parsedBody = parsedOutput.body;
|
|
752
|
-
return throwDefaultError({
|
|
753
|
-
output,
|
|
754
|
-
parsedBody,
|
|
755
|
-
errorCode,
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
};
|
|
759
385
|
export const de_DescribeProblemObservationsCommand = async (output, context) => {
|
|
760
386
|
if (output.statusCode >= 300) {
|
|
761
|
-
return
|
|
387
|
+
return de_CommandError(output, context);
|
|
762
388
|
}
|
|
763
389
|
const data = await parseBody(output.body, context);
|
|
764
390
|
let contents = {};
|
|
@@ -769,34 +395,9 @@ export const de_DescribeProblemObservationsCommand = async (output, context) =>
|
|
|
769
395
|
};
|
|
770
396
|
return response;
|
|
771
397
|
};
|
|
772
|
-
const de_DescribeProblemObservationsCommandError = async (output, context) => {
|
|
773
|
-
const parsedOutput = {
|
|
774
|
-
...output,
|
|
775
|
-
body: await parseErrorBody(output.body, context),
|
|
776
|
-
};
|
|
777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
|
-
switch (errorCode) {
|
|
779
|
-
case "InternalServerException":
|
|
780
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
781
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ResourceNotFoundException":
|
|
783
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
784
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ValidationException":
|
|
786
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
398
|
export const de_DescribeWorkloadCommand = async (output, context) => {
|
|
798
399
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
400
|
+
return de_CommandError(output, context);
|
|
800
401
|
}
|
|
801
402
|
const data = await parseBody(output.body, context);
|
|
802
403
|
let contents = {};
|
|
@@ -807,34 +408,9 @@ export const de_DescribeWorkloadCommand = async (output, context) => {
|
|
|
807
408
|
};
|
|
808
409
|
return response;
|
|
809
410
|
};
|
|
810
|
-
const de_DescribeWorkloadCommandError = async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context),
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "InternalServerException":
|
|
818
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
819
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ResourceNotFoundException":
|
|
821
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
822
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ValidationException":
|
|
824
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
825
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
411
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
836
412
|
if (output.statusCode >= 300) {
|
|
837
|
-
return
|
|
413
|
+
return de_CommandError(output, context);
|
|
838
414
|
}
|
|
839
415
|
const data = await parseBody(output.body, context);
|
|
840
416
|
let contents = {};
|
|
@@ -845,31 +421,9 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
845
421
|
};
|
|
846
422
|
return response;
|
|
847
423
|
};
|
|
848
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
849
|
-
const parsedOutput = {
|
|
850
|
-
...output,
|
|
851
|
-
body: await parseErrorBody(output.body, context),
|
|
852
|
-
};
|
|
853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
-
switch (errorCode) {
|
|
855
|
-
case "InternalServerException":
|
|
856
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
857
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ValidationException":
|
|
859
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
424
|
export const de_ListComponentsCommand = async (output, context) => {
|
|
871
425
|
if (output.statusCode >= 300) {
|
|
872
|
-
return
|
|
426
|
+
return de_CommandError(output, context);
|
|
873
427
|
}
|
|
874
428
|
const data = await parseBody(output.body, context);
|
|
875
429
|
let contents = {};
|
|
@@ -880,34 +434,9 @@ export const de_ListComponentsCommand = async (output, context) => {
|
|
|
880
434
|
};
|
|
881
435
|
return response;
|
|
882
436
|
};
|
|
883
|
-
const de_ListComponentsCommandError = async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context),
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "InternalServerException":
|
|
891
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
892
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ResourceNotFoundException":
|
|
894
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ValidationException":
|
|
897
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
899
|
-
default:
|
|
900
|
-
const parsedBody = parsedOutput.body;
|
|
901
|
-
return throwDefaultError({
|
|
902
|
-
output,
|
|
903
|
-
parsedBody,
|
|
904
|
-
errorCode,
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
437
|
export const de_ListConfigurationHistoryCommand = async (output, context) => {
|
|
909
438
|
if (output.statusCode >= 300) {
|
|
910
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
911
440
|
}
|
|
912
441
|
const data = await parseBody(output.body, context);
|
|
913
442
|
let contents = {};
|
|
@@ -918,34 +447,9 @@ export const de_ListConfigurationHistoryCommand = async (output, context) => {
|
|
|
918
447
|
};
|
|
919
448
|
return response;
|
|
920
449
|
};
|
|
921
|
-
const de_ListConfigurationHistoryCommandError = async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context),
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "InternalServerException":
|
|
929
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
930
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ValidationException":
|
|
935
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
936
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
450
|
export const de_ListLogPatternsCommand = async (output, context) => {
|
|
947
451
|
if (output.statusCode >= 300) {
|
|
948
|
-
return
|
|
452
|
+
return de_CommandError(output, context);
|
|
949
453
|
}
|
|
950
454
|
const data = await parseBody(output.body, context);
|
|
951
455
|
let contents = {};
|
|
@@ -956,34 +460,9 @@ export const de_ListLogPatternsCommand = async (output, context) => {
|
|
|
956
460
|
};
|
|
957
461
|
return response;
|
|
958
462
|
};
|
|
959
|
-
const de_ListLogPatternsCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "InternalServerException":
|
|
967
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
968
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ResourceNotFoundException":
|
|
970
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
971
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ValidationException":
|
|
973
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
974
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
};
|
|
984
463
|
export const de_ListLogPatternSetsCommand = async (output, context) => {
|
|
985
464
|
if (output.statusCode >= 300) {
|
|
986
|
-
return
|
|
465
|
+
return de_CommandError(output, context);
|
|
987
466
|
}
|
|
988
467
|
const data = await parseBody(output.body, context);
|
|
989
468
|
let contents = {};
|
|
@@ -994,107 +473,22 @@ export const de_ListLogPatternSetsCommand = async (output, context) => {
|
|
|
994
473
|
};
|
|
995
474
|
return response;
|
|
996
475
|
};
|
|
997
|
-
const de_ListLogPatternSetsCommandError = async (output, context) => {
|
|
998
|
-
const parsedOutput = {
|
|
999
|
-
...output,
|
|
1000
|
-
body: await parseErrorBody(output.body, context),
|
|
1001
|
-
};
|
|
1002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
-
switch (errorCode) {
|
|
1004
|
-
case "InternalServerException":
|
|
1005
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1006
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "ResourceNotFoundException":
|
|
1008
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1009
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ValidationException":
|
|
1011
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1012
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
|
-
default:
|
|
1014
|
-
const parsedBody = parsedOutput.body;
|
|
1015
|
-
return throwDefaultError({
|
|
1016
|
-
output,
|
|
1017
|
-
parsedBody,
|
|
1018
|
-
errorCode,
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
};
|
|
1022
476
|
export const de_ListProblemsCommand = async (output, context) => {
|
|
1023
|
-
if (output.statusCode >= 300) {
|
|
1024
|
-
return
|
|
1025
|
-
}
|
|
1026
|
-
const data = await parseBody(output.body, context);
|
|
1027
|
-
let contents = {};
|
|
1028
|
-
contents = de_ListProblemsResponse(data, context);
|
|
1029
|
-
const response = {
|
|
1030
|
-
$metadata: deserializeMetadata(output),
|
|
1031
|
-
...contents,
|
|
1032
|
-
};
|
|
1033
|
-
return response;
|
|
1034
|
-
};
|
|
1035
|
-
const de_ListProblemsCommandError = async (output, context) => {
|
|
1036
|
-
const parsedOutput = {
|
|
1037
|
-
...output,
|
|
1038
|
-
body: await parseErrorBody(output.body, context),
|
|
1039
|
-
};
|
|
1040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
-
switch (errorCode) {
|
|
1042
|
-
case "InternalServerException":
|
|
1043
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1044
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ResourceNotFoundException":
|
|
1046
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ValidationException":
|
|
1049
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1050
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1051
|
-
default:
|
|
1052
|
-
const parsedBody = parsedOutput.body;
|
|
1053
|
-
return throwDefaultError({
|
|
1054
|
-
output,
|
|
1055
|
-
parsedBody,
|
|
1056
|
-
errorCode,
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
};
|
|
1060
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1061
|
-
if (output.statusCode >= 300) {
|
|
1062
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1063
|
-
}
|
|
1064
|
-
const data = await parseBody(output.body, context);
|
|
1065
|
-
let contents = {};
|
|
1066
|
-
contents = _json(data);
|
|
1067
|
-
const response = {
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
...contents,
|
|
1070
|
-
};
|
|
1071
|
-
return response;
|
|
1072
|
-
};
|
|
1073
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1074
|
-
const parsedOutput = {
|
|
1075
|
-
...output,
|
|
1076
|
-
body: await parseErrorBody(output.body, context),
|
|
1077
|
-
};
|
|
1078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
-
switch (errorCode) {
|
|
1080
|
-
case "ResourceNotFoundException":
|
|
1081
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1082
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ValidationException":
|
|
1084
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1085
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1086
|
-
default:
|
|
1087
|
-
const parsedBody = parsedOutput.body;
|
|
1088
|
-
return throwDefaultError({
|
|
1089
|
-
output,
|
|
1090
|
-
parsedBody,
|
|
1091
|
-
errorCode,
|
|
1092
|
-
});
|
|
477
|
+
if (output.statusCode >= 300) {
|
|
478
|
+
return de_CommandError(output, context);
|
|
1093
479
|
}
|
|
480
|
+
const data = await parseBody(output.body, context);
|
|
481
|
+
let contents = {};
|
|
482
|
+
contents = de_ListProblemsResponse(data, context);
|
|
483
|
+
const response = {
|
|
484
|
+
$metadata: deserializeMetadata(output),
|
|
485
|
+
...contents,
|
|
486
|
+
};
|
|
487
|
+
return response;
|
|
1094
488
|
};
|
|
1095
|
-
export const
|
|
489
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1096
490
|
if (output.statusCode >= 300) {
|
|
1097
|
-
return
|
|
491
|
+
return de_CommandError(output, context);
|
|
1098
492
|
}
|
|
1099
493
|
const data = await parseBody(output.body, context);
|
|
1100
494
|
let contents = {};
|
|
@@ -1105,34 +499,22 @@ export const de_ListWorkloadsCommand = async (output, context) => {
|
|
|
1105
499
|
};
|
|
1106
500
|
return response;
|
|
1107
501
|
};
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
body: await parseErrorBody(output.body, context),
|
|
1112
|
-
};
|
|
1113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
|
-
switch (errorCode) {
|
|
1115
|
-
case "InternalServerException":
|
|
1116
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1117
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ResourceNotFoundException":
|
|
1119
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1120
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ValidationException":
|
|
1122
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1123
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1124
|
-
default:
|
|
1125
|
-
const parsedBody = parsedOutput.body;
|
|
1126
|
-
return throwDefaultError({
|
|
1127
|
-
output,
|
|
1128
|
-
parsedBody,
|
|
1129
|
-
errorCode,
|
|
1130
|
-
});
|
|
502
|
+
export const de_ListWorkloadsCommand = async (output, context) => {
|
|
503
|
+
if (output.statusCode >= 300) {
|
|
504
|
+
return de_CommandError(output, context);
|
|
1131
505
|
}
|
|
506
|
+
const data = await parseBody(output.body, context);
|
|
507
|
+
let contents = {};
|
|
508
|
+
contents = _json(data);
|
|
509
|
+
const response = {
|
|
510
|
+
$metadata: deserializeMetadata(output),
|
|
511
|
+
...contents,
|
|
512
|
+
};
|
|
513
|
+
return response;
|
|
1132
514
|
};
|
|
1133
515
|
export const de_RemoveWorkloadCommand = async (output, context) => {
|
|
1134
516
|
if (output.statusCode >= 300) {
|
|
1135
|
-
return
|
|
517
|
+
return de_CommandError(output, context);
|
|
1136
518
|
}
|
|
1137
519
|
const data = await parseBody(output.body, context);
|
|
1138
520
|
let contents = {};
|
|
@@ -1143,34 +525,9 @@ export const de_RemoveWorkloadCommand = async (output, context) => {
|
|
|
1143
525
|
};
|
|
1144
526
|
return response;
|
|
1145
527
|
};
|
|
1146
|
-
const de_RemoveWorkloadCommandError = async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context),
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "InternalServerException":
|
|
1154
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1155
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ResourceNotFoundException":
|
|
1157
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1158
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ValidationException":
|
|
1160
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody,
|
|
1167
|
-
errorCode,
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
528
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1172
529
|
if (output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
530
|
+
return de_CommandError(output, context);
|
|
1174
531
|
}
|
|
1175
532
|
const data = await parseBody(output.body, context);
|
|
1176
533
|
let contents = {};
|
|
@@ -1181,34 +538,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1181
538
|
};
|
|
1182
539
|
return response;
|
|
1183
540
|
};
|
|
1184
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1185
|
-
const parsedOutput = {
|
|
1186
|
-
...output,
|
|
1187
|
-
body: await parseErrorBody(output.body, context),
|
|
1188
|
-
};
|
|
1189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
-
switch (errorCode) {
|
|
1191
|
-
case "ResourceNotFoundException":
|
|
1192
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1193
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "TooManyTagsException":
|
|
1195
|
-
case "com.amazonaws.applicationinsights#TooManyTagsException":
|
|
1196
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "ValidationException":
|
|
1198
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1199
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1200
|
-
default:
|
|
1201
|
-
const parsedBody = parsedOutput.body;
|
|
1202
|
-
return throwDefaultError({
|
|
1203
|
-
output,
|
|
1204
|
-
parsedBody,
|
|
1205
|
-
errorCode,
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
541
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1210
542
|
if (output.statusCode >= 300) {
|
|
1211
|
-
return
|
|
543
|
+
return de_CommandError(output, context);
|
|
1212
544
|
}
|
|
1213
545
|
const data = await parseBody(output.body, context);
|
|
1214
546
|
let contents = {};
|
|
@@ -1219,31 +551,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1219
551
|
};
|
|
1220
552
|
return response;
|
|
1221
553
|
};
|
|
1222
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1223
|
-
const parsedOutput = {
|
|
1224
|
-
...output,
|
|
1225
|
-
body: await parseErrorBody(output.body, context),
|
|
1226
|
-
};
|
|
1227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
-
switch (errorCode) {
|
|
1229
|
-
case "ResourceNotFoundException":
|
|
1230
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1231
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ValidationException":
|
|
1233
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1234
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode,
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
};
|
|
1244
554
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1245
555
|
if (output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
556
|
+
return de_CommandError(output, context);
|
|
1247
557
|
}
|
|
1248
558
|
const data = await parseBody(output.body, context);
|
|
1249
559
|
let contents = {};
|
|
@@ -1254,34 +564,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1254
564
|
};
|
|
1255
565
|
return response;
|
|
1256
566
|
};
|
|
1257
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1258
|
-
const parsedOutput = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseErrorBody(output.body, context),
|
|
1261
|
-
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
-
switch (errorCode) {
|
|
1264
|
-
case "InternalServerException":
|
|
1265
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ResourceNotFoundException":
|
|
1268
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ValidationException":
|
|
1271
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1273
|
-
default:
|
|
1274
|
-
const parsedBody = parsedOutput.body;
|
|
1275
|
-
return throwDefaultError({
|
|
1276
|
-
output,
|
|
1277
|
-
parsedBody,
|
|
1278
|
-
errorCode,
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
};
|
|
1282
567
|
export const de_UpdateComponentCommand = async (output, context) => {
|
|
1283
568
|
if (output.statusCode >= 300) {
|
|
1284
|
-
return
|
|
569
|
+
return de_CommandError(output, context);
|
|
1285
570
|
}
|
|
1286
571
|
const data = await parseBody(output.body, context);
|
|
1287
572
|
let contents = {};
|
|
@@ -1292,37 +577,9 @@ export const de_UpdateComponentCommand = async (output, context) => {
|
|
|
1292
577
|
};
|
|
1293
578
|
return response;
|
|
1294
579
|
};
|
|
1295
|
-
const de_UpdateComponentCommandError = async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context),
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "InternalServerException":
|
|
1303
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ResourceInUseException":
|
|
1306
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
1307
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ResourceNotFoundException":
|
|
1309
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ValidationException":
|
|
1312
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1313
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1314
|
-
default:
|
|
1315
|
-
const parsedBody = parsedOutput.body;
|
|
1316
|
-
return throwDefaultError({
|
|
1317
|
-
output,
|
|
1318
|
-
parsedBody,
|
|
1319
|
-
errorCode,
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
};
|
|
1323
580
|
export const de_UpdateComponentConfigurationCommand = async (output, context) => {
|
|
1324
581
|
if (output.statusCode >= 300) {
|
|
1325
|
-
return
|
|
582
|
+
return de_CommandError(output, context);
|
|
1326
583
|
}
|
|
1327
584
|
const data = await parseBody(output.body, context);
|
|
1328
585
|
let contents = {};
|
|
@@ -1333,37 +590,9 @@ export const de_UpdateComponentConfigurationCommand = async (output, context) =>
|
|
|
1333
590
|
};
|
|
1334
591
|
return response;
|
|
1335
592
|
};
|
|
1336
|
-
const de_UpdateComponentConfigurationCommandError = async (output, context) => {
|
|
1337
|
-
const parsedOutput = {
|
|
1338
|
-
...output,
|
|
1339
|
-
body: await parseErrorBody(output.body, context),
|
|
1340
|
-
};
|
|
1341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
|
-
switch (errorCode) {
|
|
1343
|
-
case "InternalServerException":
|
|
1344
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1345
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ResourceInUseException":
|
|
1347
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
1348
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ResourceNotFoundException":
|
|
1350
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1351
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "ValidationException":
|
|
1353
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1354
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1355
|
-
default:
|
|
1356
|
-
const parsedBody = parsedOutput.body;
|
|
1357
|
-
return throwDefaultError({
|
|
1358
|
-
output,
|
|
1359
|
-
parsedBody,
|
|
1360
|
-
errorCode,
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
};
|
|
1364
593
|
export const de_UpdateLogPatternCommand = async (output, context) => {
|
|
1365
594
|
if (output.statusCode >= 300) {
|
|
1366
|
-
return
|
|
595
|
+
return de_CommandError(output, context);
|
|
1367
596
|
}
|
|
1368
597
|
const data = await parseBody(output.body, context);
|
|
1369
598
|
let contents = {};
|
|
@@ -1374,37 +603,9 @@ export const de_UpdateLogPatternCommand = async (output, context) => {
|
|
|
1374
603
|
};
|
|
1375
604
|
return response;
|
|
1376
605
|
};
|
|
1377
|
-
const de_UpdateLogPatternCommandError = async (output, context) => {
|
|
1378
|
-
const parsedOutput = {
|
|
1379
|
-
...output,
|
|
1380
|
-
body: await parseErrorBody(output.body, context),
|
|
1381
|
-
};
|
|
1382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
|
-
switch (errorCode) {
|
|
1384
|
-
case "InternalServerException":
|
|
1385
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1386
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ResourceInUseException":
|
|
1388
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
1389
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ResourceNotFoundException":
|
|
1391
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ValidationException":
|
|
1394
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1395
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
|
-
default:
|
|
1397
|
-
const parsedBody = parsedOutput.body;
|
|
1398
|
-
return throwDefaultError({
|
|
1399
|
-
output,
|
|
1400
|
-
parsedBody,
|
|
1401
|
-
errorCode,
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
606
|
export const de_UpdateProblemCommand = async (output, context) => {
|
|
1406
607
|
if (output.statusCode >= 300) {
|
|
1407
|
-
return
|
|
608
|
+
return de_CommandError(output, context);
|
|
1408
609
|
}
|
|
1409
610
|
const data = await parseBody(output.body, context);
|
|
1410
611
|
let contents = {};
|
|
@@ -1415,34 +616,9 @@ export const de_UpdateProblemCommand = async (output, context) => {
|
|
|
1415
616
|
};
|
|
1416
617
|
return response;
|
|
1417
618
|
};
|
|
1418
|
-
const de_UpdateProblemCommandError = async (output, context) => {
|
|
1419
|
-
const parsedOutput = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseErrorBody(output.body, context),
|
|
1422
|
-
};
|
|
1423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
-
switch (errorCode) {
|
|
1425
|
-
case "InternalServerException":
|
|
1426
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ResourceNotFoundException":
|
|
1429
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ValidationException":
|
|
1432
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1434
|
-
default:
|
|
1435
|
-
const parsedBody = parsedOutput.body;
|
|
1436
|
-
return throwDefaultError({
|
|
1437
|
-
output,
|
|
1438
|
-
parsedBody,
|
|
1439
|
-
errorCode,
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
};
|
|
1443
619
|
export const de_UpdateWorkloadCommand = async (output, context) => {
|
|
1444
620
|
if (output.statusCode >= 300) {
|
|
1445
|
-
return
|
|
621
|
+
return de_CommandError(output, context);
|
|
1446
622
|
}
|
|
1447
623
|
const data = await parseBody(output.body, context);
|
|
1448
624
|
let contents = {};
|
|
@@ -1453,7 +629,7 @@ export const de_UpdateWorkloadCommand = async (output, context) => {
|
|
|
1453
629
|
};
|
|
1454
630
|
return response;
|
|
1455
631
|
};
|
|
1456
|
-
const
|
|
632
|
+
const de_CommandError = async (output, context) => {
|
|
1457
633
|
const parsedOutput = {
|
|
1458
634
|
...output,
|
|
1459
635
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1463,12 +639,27 @@ const de_UpdateWorkloadCommandError = async (output, context) => {
|
|
|
1463
639
|
case "InternalServerException":
|
|
1464
640
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1465
641
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
642
|
+
case "ResourceInUseException":
|
|
643
|
+
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
644
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1466
645
|
case "ResourceNotFoundException":
|
|
1467
646
|
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1468
647
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1469
648
|
case "ValidationException":
|
|
1470
649
|
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1471
650
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
651
|
+
case "AccessDeniedException":
|
|
652
|
+
case "com.amazonaws.applicationinsights#AccessDeniedException":
|
|
653
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
654
|
+
case "TagsAlreadyExistException":
|
|
655
|
+
case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
|
|
656
|
+
throw await de_TagsAlreadyExistExceptionRes(parsedOutput, context);
|
|
657
|
+
case "BadRequestException":
|
|
658
|
+
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
659
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
660
|
+
case "TooManyTagsException":
|
|
661
|
+
case "com.amazonaws.applicationinsights#TooManyTagsException":
|
|
662
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1472
663
|
default:
|
|
1473
664
|
const parsedBody = parsedOutput.body;
|
|
1474
665
|
return throwDefaultError({
|