@aws-sdk/client-synthetics 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 +42 -560
- package/dist-es/protocols/Aws_restJson1.js +40 -558
- package/package.json +3 -3
|
@@ -292,7 +292,7 @@ export const se_UpdateCanaryCommand = async (input, context) => {
|
|
|
292
292
|
};
|
|
293
293
|
export const de_AssociateResourceCommand = async (output, context) => {
|
|
294
294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
295
|
-
return
|
|
295
|
+
return de_CommandError(output, context);
|
|
296
296
|
}
|
|
297
297
|
const contents = map({
|
|
298
298
|
$metadata: deserializeMetadata(output),
|
|
@@ -300,40 +300,9 @@ export const de_AssociateResourceCommand = async (output, context) => {
|
|
|
300
300
|
await collectBody(output.body, context);
|
|
301
301
|
return contents;
|
|
302
302
|
};
|
|
303
|
-
const de_AssociateResourceCommandError = async (output, context) => {
|
|
304
|
-
const parsedOutput = {
|
|
305
|
-
...output,
|
|
306
|
-
body: await parseErrorBody(output.body, context),
|
|
307
|
-
};
|
|
308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
|
-
switch (errorCode) {
|
|
310
|
-
case "ConflictException":
|
|
311
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
312
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
313
|
-
case "InternalServerException":
|
|
314
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ResourceNotFoundException":
|
|
317
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ServiceQuotaExceededException":
|
|
320
|
-
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
321
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ValidationException":
|
|
323
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
324
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
325
|
-
default:
|
|
326
|
-
const parsedBody = parsedOutput.body;
|
|
327
|
-
return throwDefaultError({
|
|
328
|
-
output,
|
|
329
|
-
parsedBody,
|
|
330
|
-
errorCode,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
303
|
export const de_CreateCanaryCommand = async (output, context) => {
|
|
335
304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
336
|
-
return
|
|
305
|
+
return de_CommandError(output, context);
|
|
337
306
|
}
|
|
338
307
|
const contents = map({
|
|
339
308
|
$metadata: deserializeMetadata(output),
|
|
@@ -345,34 +314,9 @@ export const de_CreateCanaryCommand = async (output, context) => {
|
|
|
345
314
|
Object.assign(contents, doc);
|
|
346
315
|
return contents;
|
|
347
316
|
};
|
|
348
|
-
const de_CreateCanaryCommandError = async (output, context) => {
|
|
349
|
-
const parsedOutput = {
|
|
350
|
-
...output,
|
|
351
|
-
body: await parseErrorBody(output.body, context),
|
|
352
|
-
};
|
|
353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
354
|
-
switch (errorCode) {
|
|
355
|
-
case "InternalServerException":
|
|
356
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
357
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
358
|
-
case "RequestEntityTooLargeException":
|
|
359
|
-
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
360
|
-
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ValidationException":
|
|
362
|
-
case "com.amazonaws.synthetics#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
317
|
export const de_CreateGroupCommand = async (output, context) => {
|
|
374
318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
375
|
-
return
|
|
319
|
+
return de_CommandError(output, context);
|
|
376
320
|
}
|
|
377
321
|
const contents = map({
|
|
378
322
|
$metadata: deserializeMetadata(output),
|
|
@@ -384,37 +328,9 @@ export const de_CreateGroupCommand = async (output, context) => {
|
|
|
384
328
|
Object.assign(contents, doc);
|
|
385
329
|
return contents;
|
|
386
330
|
};
|
|
387
|
-
const de_CreateGroupCommandError = async (output, context) => {
|
|
388
|
-
const parsedOutput = {
|
|
389
|
-
...output,
|
|
390
|
-
body: await parseErrorBody(output.body, context),
|
|
391
|
-
};
|
|
392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
|
-
switch (errorCode) {
|
|
394
|
-
case "ConflictException":
|
|
395
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
396
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
397
|
-
case "InternalServerException":
|
|
398
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
399
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ServiceQuotaExceededException":
|
|
401
|
-
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
402
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ValidationException":
|
|
404
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
405
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
406
|
-
default:
|
|
407
|
-
const parsedBody = parsedOutput.body;
|
|
408
|
-
return throwDefaultError({
|
|
409
|
-
output,
|
|
410
|
-
parsedBody,
|
|
411
|
-
errorCode,
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
331
|
export const de_DeleteCanaryCommand = async (output, context) => {
|
|
416
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
417
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
418
334
|
}
|
|
419
335
|
const contents = map({
|
|
420
336
|
$metadata: deserializeMetadata(output),
|
|
@@ -422,37 +338,9 @@ export const de_DeleteCanaryCommand = async (output, context) => {
|
|
|
422
338
|
await collectBody(output.body, context);
|
|
423
339
|
return contents;
|
|
424
340
|
};
|
|
425
|
-
const de_DeleteCanaryCommandError = async (output, context) => {
|
|
426
|
-
const parsedOutput = {
|
|
427
|
-
...output,
|
|
428
|
-
body: await parseErrorBody(output.body, context),
|
|
429
|
-
};
|
|
430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
|
-
switch (errorCode) {
|
|
432
|
-
case "ConflictException":
|
|
433
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
434
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
435
|
-
case "InternalServerException":
|
|
436
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
437
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ResourceNotFoundException":
|
|
439
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
440
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ValidationException":
|
|
442
|
-
case "com.amazonaws.synthetics#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
341
|
export const de_DeleteGroupCommand = async (output, context) => {
|
|
454
342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
455
|
-
return
|
|
343
|
+
return de_CommandError(output, context);
|
|
456
344
|
}
|
|
457
345
|
const contents = map({
|
|
458
346
|
$metadata: deserializeMetadata(output),
|
|
@@ -460,37 +348,9 @@ export const de_DeleteGroupCommand = async (output, context) => {
|
|
|
460
348
|
await collectBody(output.body, context);
|
|
461
349
|
return contents;
|
|
462
350
|
};
|
|
463
|
-
const de_DeleteGroupCommandError = 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 "ConflictException":
|
|
471
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
472
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
473
|
-
case "InternalServerException":
|
|
474
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
475
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
476
|
-
case "ResourceNotFoundException":
|
|
477
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
478
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
479
|
-
case "ValidationException":
|
|
480
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
481
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
482
|
-
default:
|
|
483
|
-
const parsedBody = parsedOutput.body;
|
|
484
|
-
return throwDefaultError({
|
|
485
|
-
output,
|
|
486
|
-
parsedBody,
|
|
487
|
-
errorCode,
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
351
|
export const de_DescribeCanariesCommand = async (output, context) => {
|
|
492
352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
493
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
494
354
|
}
|
|
495
355
|
const contents = map({
|
|
496
356
|
$metadata: deserializeMetadata(output),
|
|
@@ -503,31 +363,9 @@ export const de_DescribeCanariesCommand = async (output, context) => {
|
|
|
503
363
|
Object.assign(contents, doc);
|
|
504
364
|
return contents;
|
|
505
365
|
};
|
|
506
|
-
const de_DescribeCanariesCommandError = 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.synthetics#InternalServerException":
|
|
515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ValidationException":
|
|
517
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
518
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
519
|
-
default:
|
|
520
|
-
const parsedBody = parsedOutput.body;
|
|
521
|
-
return throwDefaultError({
|
|
522
|
-
output,
|
|
523
|
-
parsedBody,
|
|
524
|
-
errorCode,
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
366
|
export const de_DescribeCanariesLastRunCommand = async (output, context) => {
|
|
529
367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
|
-
return
|
|
368
|
+
return de_CommandError(output, context);
|
|
531
369
|
}
|
|
532
370
|
const contents = map({
|
|
533
371
|
$metadata: deserializeMetadata(output),
|
|
@@ -540,31 +378,9 @@ export const de_DescribeCanariesLastRunCommand = async (output, context) => {
|
|
|
540
378
|
Object.assign(contents, doc);
|
|
541
379
|
return contents;
|
|
542
380
|
};
|
|
543
|
-
const de_DescribeCanariesLastRunCommandError = async (output, context) => {
|
|
544
|
-
const parsedOutput = {
|
|
545
|
-
...output,
|
|
546
|
-
body: await parseErrorBody(output.body, context),
|
|
547
|
-
};
|
|
548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
|
-
switch (errorCode) {
|
|
550
|
-
case "InternalServerException":
|
|
551
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
552
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
553
|
-
case "ValidationException":
|
|
554
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
556
|
-
default:
|
|
557
|
-
const parsedBody = parsedOutput.body;
|
|
558
|
-
return throwDefaultError({
|
|
559
|
-
output,
|
|
560
|
-
parsedBody,
|
|
561
|
-
errorCode,
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
381
|
export const de_DescribeRuntimeVersionsCommand = async (output, context) => {
|
|
566
382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
-
return
|
|
383
|
+
return de_CommandError(output, context);
|
|
568
384
|
}
|
|
569
385
|
const contents = map({
|
|
570
386
|
$metadata: deserializeMetadata(output),
|
|
@@ -577,31 +393,9 @@ export const de_DescribeRuntimeVersionsCommand = async (output, context) => {
|
|
|
577
393
|
Object.assign(contents, doc);
|
|
578
394
|
return contents;
|
|
579
395
|
};
|
|
580
|
-
const de_DescribeRuntimeVersionsCommandError = async (output, context) => {
|
|
581
|
-
const parsedOutput = {
|
|
582
|
-
...output,
|
|
583
|
-
body: await parseErrorBody(output.body, context),
|
|
584
|
-
};
|
|
585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
-
switch (errorCode) {
|
|
587
|
-
case "InternalServerException":
|
|
588
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
589
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ValidationException":
|
|
591
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
592
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
593
|
-
default:
|
|
594
|
-
const parsedBody = parsedOutput.body;
|
|
595
|
-
return throwDefaultError({
|
|
596
|
-
output,
|
|
597
|
-
parsedBody,
|
|
598
|
-
errorCode,
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
396
|
export const de_DisassociateResourceCommand = async (output, context) => {
|
|
603
397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return
|
|
398
|
+
return de_CommandError(output, context);
|
|
605
399
|
}
|
|
606
400
|
const contents = map({
|
|
607
401
|
$metadata: deserializeMetadata(output),
|
|
@@ -609,37 +403,9 @@ export const de_DisassociateResourceCommand = async (output, context) => {
|
|
|
609
403
|
await collectBody(output.body, context);
|
|
610
404
|
return contents;
|
|
611
405
|
};
|
|
612
|
-
const de_DisassociateResourceCommandError = async (output, context) => {
|
|
613
|
-
const parsedOutput = {
|
|
614
|
-
...output,
|
|
615
|
-
body: await parseErrorBody(output.body, context),
|
|
616
|
-
};
|
|
617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
|
-
switch (errorCode) {
|
|
619
|
-
case "ConflictException":
|
|
620
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
621
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
622
|
-
case "InternalServerException":
|
|
623
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
624
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ResourceNotFoundException":
|
|
626
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
627
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ValidationException":
|
|
629
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
631
|
-
default:
|
|
632
|
-
const parsedBody = parsedOutput.body;
|
|
633
|
-
return throwDefaultError({
|
|
634
|
-
output,
|
|
635
|
-
parsedBody,
|
|
636
|
-
errorCode,
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
};
|
|
640
406
|
export const de_GetCanaryCommand = async (output, context) => {
|
|
641
407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
643
409
|
}
|
|
644
410
|
const contents = map({
|
|
645
411
|
$metadata: deserializeMetadata(output),
|
|
@@ -651,31 +417,9 @@ export const de_GetCanaryCommand = async (output, context) => {
|
|
|
651
417
|
Object.assign(contents, doc);
|
|
652
418
|
return contents;
|
|
653
419
|
};
|
|
654
|
-
const de_GetCanaryCommandError = async (output, context) => {
|
|
655
|
-
const parsedOutput = {
|
|
656
|
-
...output,
|
|
657
|
-
body: await parseErrorBody(output.body, context),
|
|
658
|
-
};
|
|
659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
660
|
-
switch (errorCode) {
|
|
661
|
-
case "InternalServerException":
|
|
662
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
664
|
-
case "ValidationException":
|
|
665
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
666
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
667
|
-
default:
|
|
668
|
-
const parsedBody = parsedOutput.body;
|
|
669
|
-
return throwDefaultError({
|
|
670
|
-
output,
|
|
671
|
-
parsedBody,
|
|
672
|
-
errorCode,
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
};
|
|
676
420
|
export const de_GetCanaryRunsCommand = async (output, context) => {
|
|
677
421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
679
423
|
}
|
|
680
424
|
const contents = map({
|
|
681
425
|
$metadata: deserializeMetadata(output),
|
|
@@ -688,34 +432,9 @@ export const de_GetCanaryRunsCommand = async (output, context) => {
|
|
|
688
432
|
Object.assign(contents, doc);
|
|
689
433
|
return contents;
|
|
690
434
|
};
|
|
691
|
-
const de_GetCanaryRunsCommandError = async (output, context) => {
|
|
692
|
-
const parsedOutput = {
|
|
693
|
-
...output,
|
|
694
|
-
body: await parseErrorBody(output.body, context),
|
|
695
|
-
};
|
|
696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
-
switch (errorCode) {
|
|
698
|
-
case "InternalServerException":
|
|
699
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
700
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ResourceNotFoundException":
|
|
702
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
704
|
-
case "ValidationException":
|
|
705
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
706
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
707
|
-
default:
|
|
708
|
-
const parsedBody = parsedOutput.body;
|
|
709
|
-
return throwDefaultError({
|
|
710
|
-
output,
|
|
711
|
-
parsedBody,
|
|
712
|
-
errorCode,
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
435
|
export const de_GetGroupCommand = async (output, context) => {
|
|
717
436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
|
-
return
|
|
437
|
+
return de_CommandError(output, context);
|
|
719
438
|
}
|
|
720
439
|
const contents = map({
|
|
721
440
|
$metadata: deserializeMetadata(output),
|
|
@@ -727,37 +446,9 @@ export const de_GetGroupCommand = async (output, context) => {
|
|
|
727
446
|
Object.assign(contents, doc);
|
|
728
447
|
return contents;
|
|
729
448
|
};
|
|
730
|
-
const de_GetGroupCommandError = async (output, context) => {
|
|
731
|
-
const parsedOutput = {
|
|
732
|
-
...output,
|
|
733
|
-
body: await parseErrorBody(output.body, context),
|
|
734
|
-
};
|
|
735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
|
-
switch (errorCode) {
|
|
737
|
-
case "ConflictException":
|
|
738
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
739
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
740
|
-
case "InternalServerException":
|
|
741
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
742
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ResourceNotFoundException":
|
|
744
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ValidationException":
|
|
747
|
-
case "com.amazonaws.synthetics#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
449
|
export const de_ListAssociatedGroupsCommand = async (output, context) => {
|
|
759
450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
|
-
return
|
|
451
|
+
return de_CommandError(output, context);
|
|
761
452
|
}
|
|
762
453
|
const contents = map({
|
|
763
454
|
$metadata: deserializeMetadata(output),
|
|
@@ -770,34 +461,9 @@ export const de_ListAssociatedGroupsCommand = async (output, context) => {
|
|
|
770
461
|
Object.assign(contents, doc);
|
|
771
462
|
return contents;
|
|
772
463
|
};
|
|
773
|
-
const de_ListAssociatedGroupsCommandError = async (output, context) => {
|
|
774
|
-
const parsedOutput = {
|
|
775
|
-
...output,
|
|
776
|
-
body: await parseErrorBody(output.body, context),
|
|
777
|
-
};
|
|
778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
-
switch (errorCode) {
|
|
780
|
-
case "InternalServerException":
|
|
781
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
782
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
783
|
-
case "ResourceNotFoundException":
|
|
784
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
785
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ValidationException":
|
|
787
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
788
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
789
|
-
default:
|
|
790
|
-
const parsedBody = parsedOutput.body;
|
|
791
|
-
return throwDefaultError({
|
|
792
|
-
output,
|
|
793
|
-
parsedBody,
|
|
794
|
-
errorCode,
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
464
|
export const de_ListGroupResourcesCommand = async (output, context) => {
|
|
799
465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
800
|
-
return
|
|
466
|
+
return de_CommandError(output, context);
|
|
801
467
|
}
|
|
802
468
|
const contents = map({
|
|
803
469
|
$metadata: deserializeMetadata(output),
|
|
@@ -810,37 +476,9 @@ export const de_ListGroupResourcesCommand = async (output, context) => {
|
|
|
810
476
|
Object.assign(contents, doc);
|
|
811
477
|
return contents;
|
|
812
478
|
};
|
|
813
|
-
const de_ListGroupResourcesCommandError = async (output, context) => {
|
|
814
|
-
const parsedOutput = {
|
|
815
|
-
...output,
|
|
816
|
-
body: await parseErrorBody(output.body, context),
|
|
817
|
-
};
|
|
818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
-
switch (errorCode) {
|
|
820
|
-
case "ConflictException":
|
|
821
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
822
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
823
|
-
case "InternalServerException":
|
|
824
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
825
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ResourceNotFoundException":
|
|
827
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ValidationException":
|
|
830
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
831
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
return throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
errorCode,
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
479
|
export const de_ListGroupsCommand = async (output, context) => {
|
|
842
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
844
482
|
}
|
|
845
483
|
const contents = map({
|
|
846
484
|
$metadata: deserializeMetadata(output),
|
|
@@ -853,31 +491,9 @@ export const de_ListGroupsCommand = async (output, context) => {
|
|
|
853
491
|
Object.assign(contents, doc);
|
|
854
492
|
return contents;
|
|
855
493
|
};
|
|
856
|
-
const de_ListGroupsCommandError = async (output, context) => {
|
|
857
|
-
const parsedOutput = {
|
|
858
|
-
...output,
|
|
859
|
-
body: await parseErrorBody(output.body, context),
|
|
860
|
-
};
|
|
861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
-
switch (errorCode) {
|
|
863
|
-
case "InternalServerException":
|
|
864
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ValidationException":
|
|
867
|
-
case "com.amazonaws.synthetics#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
494
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
879
495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
880
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
881
497
|
}
|
|
882
498
|
const contents = map({
|
|
883
499
|
$metadata: deserializeMetadata(output),
|
|
@@ -889,40 +505,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
889
505
|
Object.assign(contents, doc);
|
|
890
506
|
return contents;
|
|
891
507
|
};
|
|
892
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
893
|
-
const parsedOutput = {
|
|
894
|
-
...output,
|
|
895
|
-
body: await parseErrorBody(output.body, context),
|
|
896
|
-
};
|
|
897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
-
switch (errorCode) {
|
|
899
|
-
case "BadRequestException":
|
|
900
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
901
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ConflictException":
|
|
903
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
904
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
905
|
-
case "InternalFailureException":
|
|
906
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
907
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
908
|
-
case "NotFoundException":
|
|
909
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
910
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
911
|
-
case "TooManyRequestsException":
|
|
912
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
913
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
914
|
-
default:
|
|
915
|
-
const parsedBody = parsedOutput.body;
|
|
916
|
-
return throwDefaultError({
|
|
917
|
-
output,
|
|
918
|
-
parsedBody,
|
|
919
|
-
errorCode,
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
};
|
|
923
508
|
export const de_StartCanaryCommand = async (output, context) => {
|
|
924
509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
925
|
-
return
|
|
510
|
+
return de_CommandError(output, context);
|
|
926
511
|
}
|
|
927
512
|
const contents = map({
|
|
928
513
|
$metadata: deserializeMetadata(output),
|
|
@@ -930,37 +515,9 @@ export const de_StartCanaryCommand = async (output, context) => {
|
|
|
930
515
|
await collectBody(output.body, context);
|
|
931
516
|
return contents;
|
|
932
517
|
};
|
|
933
|
-
const de_StartCanaryCommandError = async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context),
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "ConflictException":
|
|
941
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
942
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
943
|
-
case "InternalServerException":
|
|
944
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
945
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ResourceNotFoundException":
|
|
947
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
948
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ValidationException":
|
|
950
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
951
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
952
|
-
default:
|
|
953
|
-
const parsedBody = parsedOutput.body;
|
|
954
|
-
return throwDefaultError({
|
|
955
|
-
output,
|
|
956
|
-
parsedBody,
|
|
957
|
-
errorCode,
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
};
|
|
961
518
|
export const de_StopCanaryCommand = async (output, context) => {
|
|
962
519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
963
|
-
return
|
|
520
|
+
return de_CommandError(output, context);
|
|
964
521
|
}
|
|
965
522
|
const contents = map({
|
|
966
523
|
$metadata: deserializeMetadata(output),
|
|
@@ -968,37 +525,9 @@ export const de_StopCanaryCommand = async (output, context) => {
|
|
|
968
525
|
await collectBody(output.body, context);
|
|
969
526
|
return contents;
|
|
970
527
|
};
|
|
971
|
-
const de_StopCanaryCommandError = async (output, context) => {
|
|
972
|
-
const parsedOutput = {
|
|
973
|
-
...output,
|
|
974
|
-
body: await parseErrorBody(output.body, context),
|
|
975
|
-
};
|
|
976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
-
switch (errorCode) {
|
|
978
|
-
case "ConflictException":
|
|
979
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
980
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
981
|
-
case "InternalServerException":
|
|
982
|
-
case "com.amazonaws.synthetics#InternalServerException":
|
|
983
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ResourceNotFoundException":
|
|
985
|
-
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
986
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ValidationException":
|
|
988
|
-
case "com.amazonaws.synthetics#ValidationException":
|
|
989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode,
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
528
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1000
529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
530
|
+
return de_CommandError(output, context);
|
|
1002
531
|
}
|
|
1003
532
|
const contents = map({
|
|
1004
533
|
$metadata: deserializeMetadata(output),
|
|
@@ -1006,40 +535,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1006
535
|
await collectBody(output.body, context);
|
|
1007
536
|
return contents;
|
|
1008
537
|
};
|
|
1009
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1010
|
-
const parsedOutput = {
|
|
1011
|
-
...output,
|
|
1012
|
-
body: await parseErrorBody(output.body, context),
|
|
1013
|
-
};
|
|
1014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
-
switch (errorCode) {
|
|
1016
|
-
case "BadRequestException":
|
|
1017
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
1018
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ConflictException":
|
|
1020
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1021
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "InternalFailureException":
|
|
1023
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1024
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "NotFoundException":
|
|
1026
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
1027
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "TooManyRequestsException":
|
|
1029
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1030
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1031
|
-
default:
|
|
1032
|
-
const parsedBody = parsedOutput.body;
|
|
1033
|
-
return throwDefaultError({
|
|
1034
|
-
output,
|
|
1035
|
-
parsedBody,
|
|
1036
|
-
errorCode,
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
};
|
|
1040
538
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1041
539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
540
|
+
return de_CommandError(output, context);
|
|
1043
541
|
}
|
|
1044
542
|
const contents = map({
|
|
1045
543
|
$metadata: deserializeMetadata(output),
|
|
@@ -1047,40 +545,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1047
545
|
await collectBody(output.body, context);
|
|
1048
546
|
return contents;
|
|
1049
547
|
};
|
|
1050
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1051
|
-
const parsedOutput = {
|
|
1052
|
-
...output,
|
|
1053
|
-
body: await parseErrorBody(output.body, context),
|
|
1054
|
-
};
|
|
1055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
|
-
switch (errorCode) {
|
|
1057
|
-
case "BadRequestException":
|
|
1058
|
-
case "com.amazonaws.synthetics#BadRequestException":
|
|
1059
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ConflictException":
|
|
1061
|
-
case "com.amazonaws.synthetics#ConflictException":
|
|
1062
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "InternalFailureException":
|
|
1064
|
-
case "com.amazonaws.synthetics#InternalFailureException":
|
|
1065
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "NotFoundException":
|
|
1067
|
-
case "com.amazonaws.synthetics#NotFoundException":
|
|
1068
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "TooManyRequestsException":
|
|
1070
|
-
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
1071
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1072
|
-
default:
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode,
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
548
|
export const de_UpdateCanaryCommand = async (output, context) => {
|
|
1082
549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
|
-
return
|
|
550
|
+
return de_CommandError(output, context);
|
|
1084
551
|
}
|
|
1085
552
|
const contents = map({
|
|
1086
553
|
$metadata: deserializeMetadata(output),
|
|
@@ -1088,7 +555,7 @@ export const de_UpdateCanaryCommand = async (output, context) => {
|
|
|
1088
555
|
await collectBody(output.body, context);
|
|
1089
556
|
return contents;
|
|
1090
557
|
};
|
|
1091
|
-
const
|
|
558
|
+
const de_CommandError = async (output, context) => {
|
|
1092
559
|
const parsedOutput = {
|
|
1093
560
|
...output,
|
|
1094
561
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1101,15 +568,30 @@ const de_UpdateCanaryCommandError = async (output, context) => {
|
|
|
1101
568
|
case "InternalServerException":
|
|
1102
569
|
case "com.amazonaws.synthetics#InternalServerException":
|
|
1103
570
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "RequestEntityTooLargeException":
|
|
1105
|
-
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
1106
|
-
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
1107
571
|
case "ResourceNotFoundException":
|
|
1108
572
|
case "com.amazonaws.synthetics#ResourceNotFoundException":
|
|
1109
573
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
574
|
+
case "ServiceQuotaExceededException":
|
|
575
|
+
case "com.amazonaws.synthetics#ServiceQuotaExceededException":
|
|
576
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1110
577
|
case "ValidationException":
|
|
1111
578
|
case "com.amazonaws.synthetics#ValidationException":
|
|
1112
579
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
580
|
+
case "RequestEntityTooLargeException":
|
|
581
|
+
case "com.amazonaws.synthetics#RequestEntityTooLargeException":
|
|
582
|
+
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
583
|
+
case "BadRequestException":
|
|
584
|
+
case "com.amazonaws.synthetics#BadRequestException":
|
|
585
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
586
|
+
case "InternalFailureException":
|
|
587
|
+
case "com.amazonaws.synthetics#InternalFailureException":
|
|
588
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
589
|
+
case "NotFoundException":
|
|
590
|
+
case "com.amazonaws.synthetics#NotFoundException":
|
|
591
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
592
|
+
case "TooManyRequestsException":
|
|
593
|
+
case "com.amazonaws.synthetics#TooManyRequestsException":
|
|
594
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1113
595
|
default:
|
|
1114
596
|
const parsedBody = parsedOutput.body;
|
|
1115
597
|
return throwDefaultError({
|