@aws-sdk/client-rum 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +19 -515
- package/dist-es/protocols/Aws_restJson1.js +18 -514
- package/package.json +3 -3
|
@@ -257,7 +257,7 @@ export const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
|
257
257
|
};
|
|
258
258
|
export const de_BatchCreateRumMetricDefinitionsCommand = async (output, context) => {
|
|
259
259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
260
|
-
return
|
|
260
|
+
return de_CommandError(output, context);
|
|
261
261
|
}
|
|
262
262
|
const contents = map({
|
|
263
263
|
$metadata: deserializeMetadata(output),
|
|
@@ -270,46 +270,9 @@ export const de_BatchCreateRumMetricDefinitionsCommand = async (output, context)
|
|
|
270
270
|
Object.assign(contents, doc);
|
|
271
271
|
return contents;
|
|
272
272
|
};
|
|
273
|
-
const de_BatchCreateRumMetricDefinitionsCommandError = async (output, context) => {
|
|
274
|
-
const parsedOutput = {
|
|
275
|
-
...output,
|
|
276
|
-
body: await parseErrorBody(output.body, context),
|
|
277
|
-
};
|
|
278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
279
|
-
switch (errorCode) {
|
|
280
|
-
case "AccessDeniedException":
|
|
281
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
283
|
-
case "ConflictException":
|
|
284
|
-
case "com.amazonaws.rum#ConflictException":
|
|
285
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
286
|
-
case "InternalServerException":
|
|
287
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
289
|
-
case "ResourceNotFoundException":
|
|
290
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
292
|
-
case "ServiceQuotaExceededException":
|
|
293
|
-
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
294
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
295
|
-
case "ThrottlingException":
|
|
296
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
297
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
298
|
-
case "ValidationException":
|
|
299
|
-
case "com.amazonaws.rum#ValidationException":
|
|
300
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
301
|
-
default:
|
|
302
|
-
const parsedBody = parsedOutput.body;
|
|
303
|
-
return throwDefaultError({
|
|
304
|
-
output,
|
|
305
|
-
parsedBody,
|
|
306
|
-
errorCode,
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
273
|
export const de_BatchDeleteRumMetricDefinitionsCommand = async (output, context) => {
|
|
311
274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
312
|
-
return
|
|
275
|
+
return de_CommandError(output, context);
|
|
313
276
|
}
|
|
314
277
|
const contents = map({
|
|
315
278
|
$metadata: deserializeMetadata(output),
|
|
@@ -322,43 +285,9 @@ export const de_BatchDeleteRumMetricDefinitionsCommand = async (output, context)
|
|
|
322
285
|
Object.assign(contents, doc);
|
|
323
286
|
return contents;
|
|
324
287
|
};
|
|
325
|
-
const de_BatchDeleteRumMetricDefinitionsCommandError = async (output, context) => {
|
|
326
|
-
const parsedOutput = {
|
|
327
|
-
...output,
|
|
328
|
-
body: await parseErrorBody(output.body, context),
|
|
329
|
-
};
|
|
330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
|
-
switch (errorCode) {
|
|
332
|
-
case "AccessDeniedException":
|
|
333
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
334
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
335
|
-
case "ConflictException":
|
|
336
|
-
case "com.amazonaws.rum#ConflictException":
|
|
337
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
338
|
-
case "InternalServerException":
|
|
339
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
341
|
-
case "ResourceNotFoundException":
|
|
342
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
343
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
344
|
-
case "ThrottlingException":
|
|
345
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
346
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
347
|
-
case "ValidationException":
|
|
348
|
-
case "com.amazonaws.rum#ValidationException":
|
|
349
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
350
|
-
default:
|
|
351
|
-
const parsedBody = parsedOutput.body;
|
|
352
|
-
return throwDefaultError({
|
|
353
|
-
output,
|
|
354
|
-
parsedBody,
|
|
355
|
-
errorCode,
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
288
|
export const de_BatchGetRumMetricDefinitionsCommand = async (output, context) => {
|
|
360
289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
361
|
-
return
|
|
290
|
+
return de_CommandError(output, context);
|
|
362
291
|
}
|
|
363
292
|
const contents = map({
|
|
364
293
|
$metadata: deserializeMetadata(output),
|
|
@@ -371,37 +300,9 @@ export const de_BatchGetRumMetricDefinitionsCommand = async (output, context) =>
|
|
|
371
300
|
Object.assign(contents, doc);
|
|
372
301
|
return contents;
|
|
373
302
|
};
|
|
374
|
-
const de_BatchGetRumMetricDefinitionsCommandError = async (output, context) => {
|
|
375
|
-
const parsedOutput = {
|
|
376
|
-
...output,
|
|
377
|
-
body: await parseErrorBody(output.body, context),
|
|
378
|
-
};
|
|
379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
|
-
switch (errorCode) {
|
|
381
|
-
case "AccessDeniedException":
|
|
382
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
383
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
384
|
-
case "InternalServerException":
|
|
385
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
386
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
387
|
-
case "ResourceNotFoundException":
|
|
388
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
389
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
390
|
-
case "ValidationException":
|
|
391
|
-
case "com.amazonaws.rum#ValidationException":
|
|
392
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
393
|
-
default:
|
|
394
|
-
const parsedBody = parsedOutput.body;
|
|
395
|
-
return throwDefaultError({
|
|
396
|
-
output,
|
|
397
|
-
parsedBody,
|
|
398
|
-
errorCode,
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
303
|
export const de_CreateAppMonitorCommand = async (output, context) => {
|
|
403
304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
404
|
-
return
|
|
305
|
+
return de_CommandError(output, context);
|
|
405
306
|
}
|
|
406
307
|
const contents = map({
|
|
407
308
|
$metadata: deserializeMetadata(output),
|
|
@@ -413,46 +314,9 @@ export const de_CreateAppMonitorCommand = async (output, context) => {
|
|
|
413
314
|
Object.assign(contents, doc);
|
|
414
315
|
return contents;
|
|
415
316
|
};
|
|
416
|
-
const de_CreateAppMonitorCommandError = async (output, context) => {
|
|
417
|
-
const parsedOutput = {
|
|
418
|
-
...output,
|
|
419
|
-
body: await parseErrorBody(output.body, context),
|
|
420
|
-
};
|
|
421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
|
-
switch (errorCode) {
|
|
423
|
-
case "AccessDeniedException":
|
|
424
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
425
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
426
|
-
case "ConflictException":
|
|
427
|
-
case "com.amazonaws.rum#ConflictException":
|
|
428
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
429
|
-
case "InternalServerException":
|
|
430
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
431
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
432
|
-
case "ResourceNotFoundException":
|
|
433
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
434
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
435
|
-
case "ServiceQuotaExceededException":
|
|
436
|
-
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
437
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ThrottlingException":
|
|
439
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
440
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ValidationException":
|
|
442
|
-
case "com.amazonaws.rum#ValidationException":
|
|
443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
444
|
-
default:
|
|
445
|
-
const parsedBody = parsedOutput.body;
|
|
446
|
-
return throwDefaultError({
|
|
447
|
-
output,
|
|
448
|
-
parsedBody,
|
|
449
|
-
errorCode,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
317
|
export const de_DeleteAppMonitorCommand = async (output, context) => {
|
|
454
318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
455
|
-
return
|
|
319
|
+
return de_CommandError(output, context);
|
|
456
320
|
}
|
|
457
321
|
const contents = map({
|
|
458
322
|
$metadata: deserializeMetadata(output),
|
|
@@ -460,43 +324,9 @@ export const de_DeleteAppMonitorCommand = async (output, context) => {
|
|
|
460
324
|
await collectBody(output.body, context);
|
|
461
325
|
return contents;
|
|
462
326
|
};
|
|
463
|
-
const de_DeleteAppMonitorCommandError = async (output, context) => {
|
|
464
|
-
const parsedOutput = {
|
|
465
|
-
...output,
|
|
466
|
-
body: await parseErrorBody(output.body, context),
|
|
467
|
-
};
|
|
468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
-
switch (errorCode) {
|
|
470
|
-
case "AccessDeniedException":
|
|
471
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
472
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ConflictException":
|
|
474
|
-
case "com.amazonaws.rum#ConflictException":
|
|
475
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
476
|
-
case "InternalServerException":
|
|
477
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
478
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
479
|
-
case "ResourceNotFoundException":
|
|
480
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
481
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
482
|
-
case "ThrottlingException":
|
|
483
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
484
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
485
|
-
case "ValidationException":
|
|
486
|
-
case "com.amazonaws.rum#ValidationException":
|
|
487
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
488
|
-
default:
|
|
489
|
-
const parsedBody = parsedOutput.body;
|
|
490
|
-
return throwDefaultError({
|
|
491
|
-
output,
|
|
492
|
-
parsedBody,
|
|
493
|
-
errorCode,
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
327
|
export const de_DeleteRumMetricsDestinationCommand = async (output, context) => {
|
|
498
328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
499
|
-
return
|
|
329
|
+
return de_CommandError(output, context);
|
|
500
330
|
}
|
|
501
331
|
const contents = map({
|
|
502
332
|
$metadata: deserializeMetadata(output),
|
|
@@ -504,43 +334,9 @@ export const de_DeleteRumMetricsDestinationCommand = async (output, context) =>
|
|
|
504
334
|
await collectBody(output.body, context);
|
|
505
335
|
return contents;
|
|
506
336
|
};
|
|
507
|
-
const de_DeleteRumMetricsDestinationCommandError = async (output, context) => {
|
|
508
|
-
const parsedOutput = {
|
|
509
|
-
...output,
|
|
510
|
-
body: await parseErrorBody(output.body, context),
|
|
511
|
-
};
|
|
512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
|
-
switch (errorCode) {
|
|
514
|
-
case "AccessDeniedException":
|
|
515
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
516
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
517
|
-
case "ConflictException":
|
|
518
|
-
case "com.amazonaws.rum#ConflictException":
|
|
519
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
520
|
-
case "InternalServerException":
|
|
521
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
522
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ResourceNotFoundException":
|
|
524
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
525
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
526
|
-
case "ThrottlingException":
|
|
527
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
528
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
529
|
-
case "ValidationException":
|
|
530
|
-
case "com.amazonaws.rum#ValidationException":
|
|
531
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
532
|
-
default:
|
|
533
|
-
const parsedBody = parsedOutput.body;
|
|
534
|
-
return throwDefaultError({
|
|
535
|
-
output,
|
|
536
|
-
parsedBody,
|
|
537
|
-
errorCode,
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
337
|
export const de_GetAppMonitorCommand = async (output, context) => {
|
|
542
338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
-
return
|
|
339
|
+
return de_CommandError(output, context);
|
|
544
340
|
}
|
|
545
341
|
const contents = map({
|
|
546
342
|
$metadata: deserializeMetadata(output),
|
|
@@ -552,40 +348,9 @@ export const de_GetAppMonitorCommand = async (output, context) => {
|
|
|
552
348
|
Object.assign(contents, doc);
|
|
553
349
|
return contents;
|
|
554
350
|
};
|
|
555
|
-
const de_GetAppMonitorCommandError = async (output, context) => {
|
|
556
|
-
const parsedOutput = {
|
|
557
|
-
...output,
|
|
558
|
-
body: await parseErrorBody(output.body, context),
|
|
559
|
-
};
|
|
560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
|
-
switch (errorCode) {
|
|
562
|
-
case "AccessDeniedException":
|
|
563
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
564
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
565
|
-
case "InternalServerException":
|
|
566
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
567
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ResourceNotFoundException":
|
|
569
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ThrottlingException":
|
|
572
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
573
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ValidationException":
|
|
575
|
-
case "com.amazonaws.rum#ValidationException":
|
|
576
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
577
|
-
default:
|
|
578
|
-
const parsedBody = parsedOutput.body;
|
|
579
|
-
return throwDefaultError({
|
|
580
|
-
output,
|
|
581
|
-
parsedBody,
|
|
582
|
-
errorCode,
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
351
|
export const de_GetAppMonitorDataCommand = async (output, context) => {
|
|
587
352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
589
354
|
}
|
|
590
355
|
const contents = map({
|
|
591
356
|
$metadata: deserializeMetadata(output),
|
|
@@ -598,40 +363,9 @@ export const de_GetAppMonitorDataCommand = async (output, context) => {
|
|
|
598
363
|
Object.assign(contents, doc);
|
|
599
364
|
return contents;
|
|
600
365
|
};
|
|
601
|
-
const de_GetAppMonitorDataCommandError = async (output, context) => {
|
|
602
|
-
const parsedOutput = {
|
|
603
|
-
...output,
|
|
604
|
-
body: await parseErrorBody(output.body, context),
|
|
605
|
-
};
|
|
606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
|
-
switch (errorCode) {
|
|
608
|
-
case "AccessDeniedException":
|
|
609
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
610
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
611
|
-
case "InternalServerException":
|
|
612
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
613
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ResourceNotFoundException":
|
|
615
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ThrottlingException":
|
|
618
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
619
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ValidationException":
|
|
621
|
-
case "com.amazonaws.rum#ValidationException":
|
|
622
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
623
|
-
default:
|
|
624
|
-
const parsedBody = parsedOutput.body;
|
|
625
|
-
return throwDefaultError({
|
|
626
|
-
output,
|
|
627
|
-
parsedBody,
|
|
628
|
-
errorCode,
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
366
|
export const de_ListAppMonitorsCommand = async (output, context) => {
|
|
633
367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
-
return
|
|
368
|
+
return de_CommandError(output, context);
|
|
635
369
|
}
|
|
636
370
|
const contents = map({
|
|
637
371
|
$metadata: deserializeMetadata(output),
|
|
@@ -644,37 +378,9 @@ export const de_ListAppMonitorsCommand = async (output, context) => {
|
|
|
644
378
|
Object.assign(contents, doc);
|
|
645
379
|
return contents;
|
|
646
380
|
};
|
|
647
|
-
const de_ListAppMonitorsCommandError = async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context),
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "AccessDeniedException":
|
|
655
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
656
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
657
|
-
case "InternalServerException":
|
|
658
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
659
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ThrottlingException":
|
|
661
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ValidationException":
|
|
664
|
-
case "com.amazonaws.rum#ValidationException":
|
|
665
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
381
|
export const de_ListRumMetricsDestinationsCommand = async (output, context) => {
|
|
676
382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
-
return
|
|
383
|
+
return de_CommandError(output, context);
|
|
678
384
|
}
|
|
679
385
|
const contents = map({
|
|
680
386
|
$metadata: deserializeMetadata(output),
|
|
@@ -687,37 +393,9 @@ export const de_ListRumMetricsDestinationsCommand = async (output, context) => {
|
|
|
687
393
|
Object.assign(contents, doc);
|
|
688
394
|
return contents;
|
|
689
395
|
};
|
|
690
|
-
const de_ListRumMetricsDestinationsCommandError = async (output, context) => {
|
|
691
|
-
const parsedOutput = {
|
|
692
|
-
...output,
|
|
693
|
-
body: await parseErrorBody(output.body, context),
|
|
694
|
-
};
|
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
-
switch (errorCode) {
|
|
697
|
-
case "AccessDeniedException":
|
|
698
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
699
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
700
|
-
case "InternalServerException":
|
|
701
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
702
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ResourceNotFoundException":
|
|
704
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
705
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ValidationException":
|
|
707
|
-
case "com.amazonaws.rum#ValidationException":
|
|
708
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
709
|
-
default:
|
|
710
|
-
const parsedBody = parsedOutput.body;
|
|
711
|
-
return throwDefaultError({
|
|
712
|
-
output,
|
|
713
|
-
parsedBody,
|
|
714
|
-
errorCode,
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
};
|
|
718
396
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
719
397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
720
|
-
return
|
|
398
|
+
return de_CommandError(output, context);
|
|
721
399
|
}
|
|
722
400
|
const contents = map({
|
|
723
401
|
$metadata: deserializeMetadata(output),
|
|
@@ -730,34 +408,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
730
408
|
Object.assign(contents, doc);
|
|
731
409
|
return contents;
|
|
732
410
|
};
|
|
733
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
734
|
-
const parsedOutput = {
|
|
735
|
-
...output,
|
|
736
|
-
body: await parseErrorBody(output.body, context),
|
|
737
|
-
};
|
|
738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
-
switch (errorCode) {
|
|
740
|
-
case "InternalServerException":
|
|
741
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
742
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ResourceNotFoundException":
|
|
744
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ValidationException":
|
|
747
|
-
case "com.amazonaws.rum#ValidationException":
|
|
748
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
749
|
-
default:
|
|
750
|
-
const parsedBody = parsedOutput.body;
|
|
751
|
-
return throwDefaultError({
|
|
752
|
-
output,
|
|
753
|
-
parsedBody,
|
|
754
|
-
errorCode,
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
411
|
export const de_PutRumEventsCommand = async (output, context) => {
|
|
759
412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
|
-
return
|
|
413
|
+
return de_CommandError(output, context);
|
|
761
414
|
}
|
|
762
415
|
const contents = map({
|
|
763
416
|
$metadata: deserializeMetadata(output),
|
|
@@ -765,40 +418,9 @@ export const de_PutRumEventsCommand = async (output, context) => {
|
|
|
765
418
|
await collectBody(output.body, context);
|
|
766
419
|
return contents;
|
|
767
420
|
};
|
|
768
|
-
const de_PutRumEventsCommandError = async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context),
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "AccessDeniedException":
|
|
776
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
778
|
-
case "InternalServerException":
|
|
779
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
780
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ResourceNotFoundException":
|
|
782
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
783
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ThrottlingException":
|
|
785
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
786
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ValidationException":
|
|
788
|
-
case "com.amazonaws.rum#ValidationException":
|
|
789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
|
-
default:
|
|
791
|
-
const parsedBody = parsedOutput.body;
|
|
792
|
-
return throwDefaultError({
|
|
793
|
-
output,
|
|
794
|
-
parsedBody,
|
|
795
|
-
errorCode,
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
};
|
|
799
421
|
export const de_PutRumMetricsDestinationCommand = async (output, context) => {
|
|
800
422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
-
return
|
|
423
|
+
return de_CommandError(output, context);
|
|
802
424
|
}
|
|
803
425
|
const contents = map({
|
|
804
426
|
$metadata: deserializeMetadata(output),
|
|
@@ -806,43 +428,9 @@ export const de_PutRumMetricsDestinationCommand = async (output, context) => {
|
|
|
806
428
|
await collectBody(output.body, context);
|
|
807
429
|
return contents;
|
|
808
430
|
};
|
|
809
|
-
const de_PutRumMetricsDestinationCommandError = async (output, context) => {
|
|
810
|
-
const parsedOutput = {
|
|
811
|
-
...output,
|
|
812
|
-
body: await parseErrorBody(output.body, context),
|
|
813
|
-
};
|
|
814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
|
-
switch (errorCode) {
|
|
816
|
-
case "AccessDeniedException":
|
|
817
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
818
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ConflictException":
|
|
820
|
-
case "com.amazonaws.rum#ConflictException":
|
|
821
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
822
|
-
case "InternalServerException":
|
|
823
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
825
|
-
case "ResourceNotFoundException":
|
|
826
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
827
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ThrottlingException":
|
|
829
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
830
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ValidationException":
|
|
832
|
-
case "com.amazonaws.rum#ValidationException":
|
|
833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
|
-
default:
|
|
835
|
-
const parsedBody = parsedOutput.body;
|
|
836
|
-
return throwDefaultError({
|
|
837
|
-
output,
|
|
838
|
-
parsedBody,
|
|
839
|
-
errorCode,
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
431
|
export const de_TagResourceCommand = async (output, context) => {
|
|
844
432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
845
|
-
return
|
|
433
|
+
return de_CommandError(output, context);
|
|
846
434
|
}
|
|
847
435
|
const contents = map({
|
|
848
436
|
$metadata: deserializeMetadata(output),
|
|
@@ -850,34 +438,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
850
438
|
await collectBody(output.body, context);
|
|
851
439
|
return contents;
|
|
852
440
|
};
|
|
853
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
854
|
-
const parsedOutput = {
|
|
855
|
-
...output,
|
|
856
|
-
body: await parseErrorBody(output.body, context),
|
|
857
|
-
};
|
|
858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
-
switch (errorCode) {
|
|
860
|
-
case "InternalServerException":
|
|
861
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ResourceNotFoundException":
|
|
864
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
865
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ValidationException":
|
|
867
|
-
case "com.amazonaws.rum#ValidationException":
|
|
868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
869
|
-
default:
|
|
870
|
-
const parsedBody = parsedOutput.body;
|
|
871
|
-
return throwDefaultError({
|
|
872
|
-
output,
|
|
873
|
-
parsedBody,
|
|
874
|
-
errorCode,
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
441
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
879
442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
880
|
-
return
|
|
443
|
+
return de_CommandError(output, context);
|
|
881
444
|
}
|
|
882
445
|
const contents = map({
|
|
883
446
|
$metadata: deserializeMetadata(output),
|
|
@@ -885,34 +448,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
885
448
|
await collectBody(output.body, context);
|
|
886
449
|
return contents;
|
|
887
450
|
};
|
|
888
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "InternalServerException":
|
|
896
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
897
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
898
|
-
case "ResourceNotFoundException":
|
|
899
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
900
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ValidationException":
|
|
902
|
-
case "com.amazonaws.rum#ValidationException":
|
|
903
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
904
|
-
default:
|
|
905
|
-
const parsedBody = parsedOutput.body;
|
|
906
|
-
return throwDefaultError({
|
|
907
|
-
output,
|
|
908
|
-
parsedBody,
|
|
909
|
-
errorCode,
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
451
|
export const de_UpdateAppMonitorCommand = async (output, context) => {
|
|
914
452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return
|
|
453
|
+
return de_CommandError(output, context);
|
|
916
454
|
}
|
|
917
455
|
const contents = map({
|
|
918
456
|
$metadata: deserializeMetadata(output),
|
|
@@ -920,43 +458,9 @@ export const de_UpdateAppMonitorCommand = async (output, context) => {
|
|
|
920
458
|
await collectBody(output.body, context);
|
|
921
459
|
return contents;
|
|
922
460
|
};
|
|
923
|
-
const de_UpdateAppMonitorCommandError = async (output, context) => {
|
|
924
|
-
const parsedOutput = {
|
|
925
|
-
...output,
|
|
926
|
-
body: await parseErrorBody(output.body, context),
|
|
927
|
-
};
|
|
928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
-
switch (errorCode) {
|
|
930
|
-
case "AccessDeniedException":
|
|
931
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
932
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ConflictException":
|
|
934
|
-
case "com.amazonaws.rum#ConflictException":
|
|
935
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
936
|
-
case "InternalServerException":
|
|
937
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
938
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ResourceNotFoundException":
|
|
940
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ThrottlingException":
|
|
943
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
944
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ValidationException":
|
|
946
|
-
case "com.amazonaws.rum#ValidationException":
|
|
947
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
948
|
-
default:
|
|
949
|
-
const parsedBody = parsedOutput.body;
|
|
950
|
-
return throwDefaultError({
|
|
951
|
-
output,
|
|
952
|
-
parsedBody,
|
|
953
|
-
errorCode,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
461
|
export const de_UpdateRumMetricDefinitionCommand = async (output, context) => {
|
|
958
462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
959
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
960
464
|
}
|
|
961
465
|
const contents = map({
|
|
962
466
|
$metadata: deserializeMetadata(output),
|
|
@@ -964,7 +468,7 @@ export const de_UpdateRumMetricDefinitionCommand = async (output, context) => {
|
|
|
964
468
|
await collectBody(output.body, context);
|
|
965
469
|
return contents;
|
|
966
470
|
};
|
|
967
|
-
const
|
|
471
|
+
const de_CommandError = async (output, context) => {
|
|
968
472
|
const parsedOutput = {
|
|
969
473
|
...output,
|
|
970
474
|
body: await parseErrorBody(output.body, context),
|