@aws-sdk/client-greengrassv2 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 +94 -905
- package/dist-es/protocols/Aws_restJson1.js +85 -896
- package/package.json +3 -3
|
@@ -359,7 +359,7 @@ export const se_UpdateConnectivityInfoCommand = async (input, context) => {
|
|
|
359
359
|
};
|
|
360
360
|
export const de_AssociateServiceRoleToAccountCommand = async (output, context) => {
|
|
361
361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
362
|
-
return
|
|
362
|
+
return de_CommandError(output, context);
|
|
363
363
|
}
|
|
364
364
|
const contents = map({
|
|
365
365
|
$metadata: deserializeMetadata(output),
|
|
@@ -371,31 +371,9 @@ export const de_AssociateServiceRoleToAccountCommand = async (output, context) =
|
|
|
371
371
|
Object.assign(contents, doc);
|
|
372
372
|
return contents;
|
|
373
373
|
};
|
|
374
|
-
const de_AssociateServiceRoleToAccountCommandError = 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 "InternalServerException":
|
|
382
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
383
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ValidationException":
|
|
385
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
386
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
387
|
-
default:
|
|
388
|
-
const parsedBody = parsedOutput.body;
|
|
389
|
-
return throwDefaultError({
|
|
390
|
-
output,
|
|
391
|
-
parsedBody,
|
|
392
|
-
errorCode,
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
374
|
export const de_BatchAssociateClientDeviceWithCoreDeviceCommand = async (output, context) => {
|
|
397
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
398
|
-
return
|
|
376
|
+
return de_CommandError(output, context);
|
|
399
377
|
}
|
|
400
378
|
const contents = map({
|
|
401
379
|
$metadata: deserializeMetadata(output),
|
|
@@ -407,40 +385,9 @@ export const de_BatchAssociateClientDeviceWithCoreDeviceCommand = async (output,
|
|
|
407
385
|
Object.assign(contents, doc);
|
|
408
386
|
return contents;
|
|
409
387
|
};
|
|
410
|
-
const de_BatchAssociateClientDeviceWithCoreDeviceCommandError = async (output, context) => {
|
|
411
|
-
const parsedOutput = {
|
|
412
|
-
...output,
|
|
413
|
-
body: await parseErrorBody(output.body, context),
|
|
414
|
-
};
|
|
415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
416
|
-
switch (errorCode) {
|
|
417
|
-
case "AccessDeniedException":
|
|
418
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
419
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
420
|
-
case "InternalServerException":
|
|
421
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
422
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
423
|
-
case "ResourceNotFoundException":
|
|
424
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
426
|
-
case "ThrottlingException":
|
|
427
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
428
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
429
|
-
case "ValidationException":
|
|
430
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
431
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
432
|
-
default:
|
|
433
|
-
const parsedBody = parsedOutput.body;
|
|
434
|
-
return throwDefaultError({
|
|
435
|
-
output,
|
|
436
|
-
parsedBody,
|
|
437
|
-
errorCode,
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
388
|
export const de_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (output, context) => {
|
|
442
389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
444
391
|
}
|
|
445
392
|
const contents = map({
|
|
446
393
|
$metadata: deserializeMetadata(output),
|
|
@@ -452,40 +399,9 @@ export const de_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (outp
|
|
|
452
399
|
Object.assign(contents, doc);
|
|
453
400
|
return contents;
|
|
454
401
|
};
|
|
455
|
-
const de_BatchDisassociateClientDeviceFromCoreDeviceCommandError = async (output, context) => {
|
|
456
|
-
const parsedOutput = {
|
|
457
|
-
...output,
|
|
458
|
-
body: await parseErrorBody(output.body, context),
|
|
459
|
-
};
|
|
460
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
461
|
-
switch (errorCode) {
|
|
462
|
-
case "AccessDeniedException":
|
|
463
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
464
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
465
|
-
case "InternalServerException":
|
|
466
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
467
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ResourceNotFoundException":
|
|
469
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
470
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ThrottlingException":
|
|
472
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
473
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ValidationException":
|
|
475
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
476
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
477
|
-
default:
|
|
478
|
-
const parsedBody = parsedOutput.body;
|
|
479
|
-
return throwDefaultError({
|
|
480
|
-
output,
|
|
481
|
-
parsedBody,
|
|
482
|
-
errorCode,
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
402
|
export const de_CancelDeploymentCommand = async (output, context) => {
|
|
487
403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
488
|
-
return
|
|
404
|
+
return de_CommandError(output, context);
|
|
489
405
|
}
|
|
490
406
|
const contents = map({
|
|
491
407
|
$metadata: deserializeMetadata(output),
|
|
@@ -497,43 +413,9 @@ export const de_CancelDeploymentCommand = async (output, context) => {
|
|
|
497
413
|
Object.assign(contents, doc);
|
|
498
414
|
return contents;
|
|
499
415
|
};
|
|
500
|
-
const de_CancelDeploymentCommandError = async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context),
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "AccessDeniedException":
|
|
508
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ConflictException":
|
|
511
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
512
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
513
|
-
case "InternalServerException":
|
|
514
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ResourceNotFoundException":
|
|
517
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ThrottlingException":
|
|
520
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
521
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ValidationException":
|
|
523
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
524
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
525
|
-
default:
|
|
526
|
-
const parsedBody = parsedOutput.body;
|
|
527
|
-
return throwDefaultError({
|
|
528
|
-
output,
|
|
529
|
-
parsedBody,
|
|
530
|
-
errorCode,
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
416
|
export const de_CreateComponentVersionCommand = async (output, context) => {
|
|
535
417
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
536
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
537
419
|
}
|
|
538
420
|
const contents = map({
|
|
539
421
|
$metadata: deserializeMetadata(output),
|
|
@@ -549,46 +431,9 @@ export const de_CreateComponentVersionCommand = async (output, context) => {
|
|
|
549
431
|
Object.assign(contents, doc);
|
|
550
432
|
return contents;
|
|
551
433
|
};
|
|
552
|
-
const de_CreateComponentVersionCommandError = async (output, context) => {
|
|
553
|
-
const parsedOutput = {
|
|
554
|
-
...output,
|
|
555
|
-
body: await parseErrorBody(output.body, context),
|
|
556
|
-
};
|
|
557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
-
switch (errorCode) {
|
|
559
|
-
case "AccessDeniedException":
|
|
560
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
561
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
562
|
-
case "ConflictException":
|
|
563
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
564
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
565
|
-
case "InternalServerException":
|
|
566
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
567
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
568
|
-
case "RequestAlreadyInProgressException":
|
|
569
|
-
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
570
|
-
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ServiceQuotaExceededException":
|
|
572
|
-
case "com.amazonaws.greengrassv2#ServiceQuotaExceededException":
|
|
573
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ThrottlingException":
|
|
575
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
576
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ValidationException":
|
|
578
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
579
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
580
|
-
default:
|
|
581
|
-
const parsedBody = parsedOutput.body;
|
|
582
|
-
return throwDefaultError({
|
|
583
|
-
output,
|
|
584
|
-
parsedBody,
|
|
585
|
-
errorCode,
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
434
|
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
590
435
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
591
|
-
return
|
|
436
|
+
return de_CommandError(output, context);
|
|
592
437
|
}
|
|
593
438
|
const contents = map({
|
|
594
439
|
$metadata: deserializeMetadata(output),
|
|
@@ -602,46 +447,9 @@ export const de_CreateDeploymentCommand = async (output, context) => {
|
|
|
602
447
|
Object.assign(contents, doc);
|
|
603
448
|
return contents;
|
|
604
449
|
};
|
|
605
|
-
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
606
|
-
const parsedOutput = {
|
|
607
|
-
...output,
|
|
608
|
-
body: await parseErrorBody(output.body, context),
|
|
609
|
-
};
|
|
610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
|
-
switch (errorCode) {
|
|
612
|
-
case "AccessDeniedException":
|
|
613
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ConflictException":
|
|
616
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
617
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
618
|
-
case "InternalServerException":
|
|
619
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
620
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
621
|
-
case "RequestAlreadyInProgressException":
|
|
622
|
-
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
623
|
-
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ResourceNotFoundException":
|
|
625
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ThrottlingException":
|
|
628
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
629
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ValidationException":
|
|
631
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
632
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
|
-
default:
|
|
634
|
-
const parsedBody = parsedOutput.body;
|
|
635
|
-
return throwDefaultError({
|
|
636
|
-
output,
|
|
637
|
-
parsedBody,
|
|
638
|
-
errorCode,
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
450
|
export const de_DeleteComponentCommand = async (output, context) => {
|
|
643
451
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
644
|
-
return
|
|
452
|
+
return de_CommandError(output, context);
|
|
645
453
|
}
|
|
646
454
|
const contents = map({
|
|
647
455
|
$metadata: deserializeMetadata(output),
|
|
@@ -649,43 +457,9 @@ export const de_DeleteComponentCommand = async (output, context) => {
|
|
|
649
457
|
await collectBody(output.body, context);
|
|
650
458
|
return contents;
|
|
651
459
|
};
|
|
652
|
-
const de_DeleteComponentCommandError = async (output, context) => {
|
|
653
|
-
const parsedOutput = {
|
|
654
|
-
...output,
|
|
655
|
-
body: await parseErrorBody(output.body, context),
|
|
656
|
-
};
|
|
657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
-
switch (errorCode) {
|
|
659
|
-
case "AccessDeniedException":
|
|
660
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
661
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ConflictException":
|
|
663
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
664
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
665
|
-
case "InternalServerException":
|
|
666
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ResourceNotFoundException":
|
|
669
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ThrottlingException":
|
|
672
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
673
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ValidationException":
|
|
675
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
676
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
677
|
-
default:
|
|
678
|
-
const parsedBody = parsedOutput.body;
|
|
679
|
-
return throwDefaultError({
|
|
680
|
-
output,
|
|
681
|
-
parsedBody,
|
|
682
|
-
errorCode,
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
460
|
export const de_DeleteCoreDeviceCommand = async (output, context) => {
|
|
687
461
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
688
|
-
return
|
|
462
|
+
return de_CommandError(output, context);
|
|
689
463
|
}
|
|
690
464
|
const contents = map({
|
|
691
465
|
$metadata: deserializeMetadata(output),
|
|
@@ -693,43 +467,9 @@ export const de_DeleteCoreDeviceCommand = async (output, context) => {
|
|
|
693
467
|
await collectBody(output.body, context);
|
|
694
468
|
return contents;
|
|
695
469
|
};
|
|
696
|
-
const de_DeleteCoreDeviceCommandError = 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 "AccessDeniedException":
|
|
704
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
705
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ConflictException":
|
|
707
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
708
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
709
|
-
case "InternalServerException":
|
|
710
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
711
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ResourceNotFoundException":
|
|
713
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
714
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ThrottlingException":
|
|
716
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
717
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ValidationException":
|
|
719
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
720
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
721
|
-
default:
|
|
722
|
-
const parsedBody = parsedOutput.body;
|
|
723
|
-
return throwDefaultError({
|
|
724
|
-
output,
|
|
725
|
-
parsedBody,
|
|
726
|
-
errorCode,
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
470
|
export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
731
471
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
732
|
-
return
|
|
472
|
+
return de_CommandError(output, context);
|
|
733
473
|
}
|
|
734
474
|
const contents = map({
|
|
735
475
|
$metadata: deserializeMetadata(output),
|
|
@@ -737,43 +477,9 @@ export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
|
737
477
|
await collectBody(output.body, context);
|
|
738
478
|
return contents;
|
|
739
479
|
};
|
|
740
|
-
const de_DeleteDeploymentCommandError = async (output, context) => {
|
|
741
|
-
const parsedOutput = {
|
|
742
|
-
...output,
|
|
743
|
-
body: await parseErrorBody(output.body, context),
|
|
744
|
-
};
|
|
745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
|
-
switch (errorCode) {
|
|
747
|
-
case "AccessDeniedException":
|
|
748
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ConflictException":
|
|
751
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
752
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
753
|
-
case "InternalServerException":
|
|
754
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ResourceNotFoundException":
|
|
757
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ThrottlingException":
|
|
760
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
761
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ValidationException":
|
|
763
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
764
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
|
-
default:
|
|
766
|
-
const parsedBody = parsedOutput.body;
|
|
767
|
-
return throwDefaultError({
|
|
768
|
-
output,
|
|
769
|
-
parsedBody,
|
|
770
|
-
errorCode,
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
};
|
|
774
480
|
export const de_DescribeComponentCommand = async (output, context) => {
|
|
775
481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
777
483
|
}
|
|
778
484
|
const contents = map({
|
|
779
485
|
$metadata: deserializeMetadata(output),
|
|
@@ -793,120 +499,39 @@ export const de_DescribeComponentCommand = async (output, context) => {
|
|
|
793
499
|
Object.assign(contents, doc);
|
|
794
500
|
return contents;
|
|
795
501
|
};
|
|
796
|
-
const de_DescribeComponentCommandError = async (output, context) => {
|
|
797
|
-
const parsedOutput = {
|
|
798
|
-
...output,
|
|
799
|
-
body: await parseErrorBody(output.body, context),
|
|
800
|
-
};
|
|
801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
-
switch (errorCode) {
|
|
803
|
-
case "AccessDeniedException":
|
|
804
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
805
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
806
|
-
case "InternalServerException":
|
|
807
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
808
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ResourceNotFoundException":
|
|
810
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
811
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ThrottlingException":
|
|
813
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
814
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ValidationException":
|
|
816
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
817
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
818
|
-
default:
|
|
819
|
-
const parsedBody = parsedOutput.body;
|
|
820
|
-
return throwDefaultError({
|
|
821
|
-
output,
|
|
822
|
-
parsedBody,
|
|
823
|
-
errorCode,
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
502
|
export const de_DisassociateServiceRoleFromAccountCommand = async (output, context) => {
|
|
828
503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
504
|
+
return de_CommandError(output, context);
|
|
830
505
|
}
|
|
831
506
|
const contents = map({
|
|
832
507
|
$metadata: deserializeMetadata(output),
|
|
833
508
|
});
|
|
834
509
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
835
510
|
const doc = take(data, {
|
|
836
|
-
disassociatedAt: [, __expectString, `DisassociatedAt`],
|
|
837
|
-
});
|
|
838
|
-
Object.assign(contents, doc);
|
|
839
|
-
return contents;
|
|
840
|
-
};
|
|
841
|
-
const
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
body: await parseErrorBody(output.body, context),
|
|
845
|
-
};
|
|
846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
|
-
switch (errorCode) {
|
|
848
|
-
case "InternalServerException":
|
|
849
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
850
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
851
|
-
default:
|
|
852
|
-
const parsedBody = parsedOutput.body;
|
|
853
|
-
return throwDefaultError({
|
|
854
|
-
output,
|
|
855
|
-
parsedBody,
|
|
856
|
-
errorCode,
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
|
-
export const de_GetComponentCommand = async (output, context) => {
|
|
861
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
862
|
-
return de_GetComponentCommandError(output, context);
|
|
863
|
-
}
|
|
864
|
-
const contents = map({
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
});
|
|
867
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
868
|
-
const doc = take(data, {
|
|
869
|
-
recipe: context.base64Decoder,
|
|
870
|
-
recipeOutputFormat: __expectString,
|
|
871
|
-
tags: _json,
|
|
872
|
-
});
|
|
873
|
-
Object.assign(contents, doc);
|
|
874
|
-
return contents;
|
|
875
|
-
};
|
|
876
|
-
const de_GetComponentCommandError = async (output, context) => {
|
|
877
|
-
const parsedOutput = {
|
|
878
|
-
...output,
|
|
879
|
-
body: await parseErrorBody(output.body, context),
|
|
880
|
-
};
|
|
881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
-
switch (errorCode) {
|
|
883
|
-
case "AccessDeniedException":
|
|
884
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
885
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
886
|
-
case "InternalServerException":
|
|
887
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
888
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ResourceNotFoundException":
|
|
890
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
891
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ThrottlingException":
|
|
893
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
894
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
895
|
-
case "ValidationException":
|
|
896
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
897
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
898
|
-
default:
|
|
899
|
-
const parsedBody = parsedOutput.body;
|
|
900
|
-
return throwDefaultError({
|
|
901
|
-
output,
|
|
902
|
-
parsedBody,
|
|
903
|
-
errorCode,
|
|
904
|
-
});
|
|
511
|
+
disassociatedAt: [, __expectString, `DisassociatedAt`],
|
|
512
|
+
});
|
|
513
|
+
Object.assign(contents, doc);
|
|
514
|
+
return contents;
|
|
515
|
+
};
|
|
516
|
+
export const de_GetComponentCommand = async (output, context) => {
|
|
517
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
|
+
return de_CommandError(output, context);
|
|
905
519
|
}
|
|
520
|
+
const contents = map({
|
|
521
|
+
$metadata: deserializeMetadata(output),
|
|
522
|
+
});
|
|
523
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
524
|
+
const doc = take(data, {
|
|
525
|
+
recipe: context.base64Decoder,
|
|
526
|
+
recipeOutputFormat: __expectString,
|
|
527
|
+
tags: _json,
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
530
|
+
return contents;
|
|
906
531
|
};
|
|
907
532
|
export const de_GetComponentVersionArtifactCommand = async (output, context) => {
|
|
908
533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
909
|
-
return
|
|
534
|
+
return de_CommandError(output, context);
|
|
910
535
|
}
|
|
911
536
|
const contents = map({
|
|
912
537
|
$metadata: deserializeMetadata(output),
|
|
@@ -918,40 +543,9 @@ export const de_GetComponentVersionArtifactCommand = async (output, context) =>
|
|
|
918
543
|
Object.assign(contents, doc);
|
|
919
544
|
return contents;
|
|
920
545
|
};
|
|
921
|
-
const de_GetComponentVersionArtifactCommandError = 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 "AccessDeniedException":
|
|
929
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InternalServerException":
|
|
932
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ResourceNotFoundException":
|
|
935
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ThrottlingException":
|
|
938
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ValidationException":
|
|
941
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode,
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
};
|
|
952
546
|
export const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
953
547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
955
549
|
}
|
|
956
550
|
const contents = map({
|
|
957
551
|
$metadata: deserializeMetadata(output),
|
|
@@ -964,31 +558,9 @@ export const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
|
964
558
|
Object.assign(contents, doc);
|
|
965
559
|
return contents;
|
|
966
560
|
};
|
|
967
|
-
const de_GetConnectivityInfoCommandError = async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context),
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "InternalServerException":
|
|
975
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
976
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ValidationException":
|
|
978
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
979
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode,
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
561
|
export const de_GetCoreDeviceCommand = async (output, context) => {
|
|
990
562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
-
return
|
|
563
|
+
return de_CommandError(output, context);
|
|
992
564
|
}
|
|
993
565
|
const contents = map({
|
|
994
566
|
$metadata: deserializeMetadata(output),
|
|
@@ -1006,40 +578,9 @@ export const de_GetCoreDeviceCommand = async (output, context) => {
|
|
|
1006
578
|
Object.assign(contents, doc);
|
|
1007
579
|
return contents;
|
|
1008
580
|
};
|
|
1009
|
-
const de_GetCoreDeviceCommandError = 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 "AccessDeniedException":
|
|
1017
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1018
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "InternalServerException":
|
|
1020
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1021
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ResourceNotFoundException":
|
|
1023
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ThrottlingException":
|
|
1026
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1027
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "ValidationException":
|
|
1029
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1031
|
-
default:
|
|
1032
|
-
const parsedBody = parsedOutput.body;
|
|
1033
|
-
return throwDefaultError({
|
|
1034
|
-
output,
|
|
1035
|
-
parsedBody,
|
|
1036
|
-
errorCode,
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
};
|
|
1040
581
|
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1041
582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
583
|
+
return de_CommandError(output, context);
|
|
1043
584
|
}
|
|
1044
585
|
const contents = map({
|
|
1045
586
|
$metadata: deserializeMetadata(output),
|
|
@@ -1064,40 +605,9 @@ export const de_GetDeploymentCommand = async (output, context) => {
|
|
|
1064
605
|
Object.assign(contents, doc);
|
|
1065
606
|
return contents;
|
|
1066
607
|
};
|
|
1067
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context),
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "AccessDeniedException":
|
|
1075
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1076
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "InternalServerException":
|
|
1078
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1079
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "ResourceNotFoundException":
|
|
1081
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1082
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ThrottlingException":
|
|
1084
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1085
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "ValidationException":
|
|
1087
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1088
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1089
|
-
default:
|
|
1090
|
-
const parsedBody = parsedOutput.body;
|
|
1091
|
-
return throwDefaultError({
|
|
1092
|
-
output,
|
|
1093
|
-
parsedBody,
|
|
1094
|
-
errorCode,
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
};
|
|
1098
608
|
export const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
1099
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1100
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
1101
611
|
}
|
|
1102
612
|
const contents = map({
|
|
1103
613
|
$metadata: deserializeMetadata(output),
|
|
@@ -1110,28 +620,9 @@ export const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
|
1110
620
|
Object.assign(contents, doc);
|
|
1111
621
|
return contents;
|
|
1112
622
|
};
|
|
1113
|
-
const de_GetServiceRoleForAccountCommandError = async (output, context) => {
|
|
1114
|
-
const parsedOutput = {
|
|
1115
|
-
...output,
|
|
1116
|
-
body: await parseErrorBody(output.body, context),
|
|
1117
|
-
};
|
|
1118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
|
-
switch (errorCode) {
|
|
1120
|
-
case "InternalServerException":
|
|
1121
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1122
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
623
|
export const de_ListClientDevicesAssociatedWithCoreDeviceCommand = async (output, context) => {
|
|
1133
624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
1135
626
|
}
|
|
1136
627
|
const contents = map({
|
|
1137
628
|
$metadata: deserializeMetadata(output),
|
|
@@ -1144,132 +635,39 @@ export const de_ListClientDevicesAssociatedWithCoreDeviceCommand = async (output
|
|
|
1144
635
|
Object.assign(contents, doc);
|
|
1145
636
|
return contents;
|
|
1146
637
|
};
|
|
1147
|
-
const de_ListClientDevicesAssociatedWithCoreDeviceCommandError = async (output, context) => {
|
|
1148
|
-
const parsedOutput = {
|
|
1149
|
-
...output,
|
|
1150
|
-
body: await parseErrorBody(output.body, context),
|
|
1151
|
-
};
|
|
1152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
-
switch (errorCode) {
|
|
1154
|
-
case "AccessDeniedException":
|
|
1155
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "InternalServerException":
|
|
1158
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1159
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ResourceNotFoundException":
|
|
1161
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1162
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ThrottlingException":
|
|
1164
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1165
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ValidationException":
|
|
1167
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1169
|
-
default:
|
|
1170
|
-
const parsedBody = parsedOutput.body;
|
|
1171
|
-
return throwDefaultError({
|
|
1172
|
-
output,
|
|
1173
|
-
parsedBody,
|
|
1174
|
-
errorCode,
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
638
|
export const de_ListComponentsCommand = async (output, context) => {
|
|
1179
639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
|
-
return
|
|
1181
|
-
}
|
|
1182
|
-
const contents = map({
|
|
1183
|
-
$metadata: deserializeMetadata(output),
|
|
1184
|
-
});
|
|
1185
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1186
|
-
const doc = take(data, {
|
|
1187
|
-
components: (_) => de_ComponentList(_, context),
|
|
1188
|
-
nextToken: __expectString,
|
|
1189
|
-
});
|
|
1190
|
-
Object.assign(contents, doc);
|
|
1191
|
-
return contents;
|
|
1192
|
-
};
|
|
1193
|
-
const de_ListComponentsCommandError = async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context),
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ResourceNotFoundException":
|
|
1207
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ThrottlingException":
|
|
1210
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1211
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ValidationException":
|
|
1213
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1214
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody,
|
|
1220
|
-
errorCode,
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
export const de_ListComponentVersionsCommand = async (output, context) => {
|
|
1225
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1226
|
-
return de_ListComponentVersionsCommandError(output, context);
|
|
640
|
+
return de_CommandError(output, context);
|
|
1227
641
|
}
|
|
1228
642
|
const contents = map({
|
|
1229
643
|
$metadata: deserializeMetadata(output),
|
|
1230
644
|
});
|
|
1231
645
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1232
|
-
const doc = take(data, {
|
|
1233
|
-
|
|
1234
|
-
nextToken: __expectString,
|
|
1235
|
-
});
|
|
1236
|
-
Object.assign(contents, doc);
|
|
1237
|
-
return contents;
|
|
1238
|
-
};
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
body: await parseErrorBody(output.body, context),
|
|
1243
|
-
};
|
|
1244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
|
-
switch (errorCode) {
|
|
1246
|
-
case "AccessDeniedException":
|
|
1247
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1248
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "InternalServerException":
|
|
1250
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1251
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ResourceNotFoundException":
|
|
1253
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1254
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ThrottlingException":
|
|
1256
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1257
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ValidationException":
|
|
1259
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1260
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1261
|
-
default:
|
|
1262
|
-
const parsedBody = parsedOutput.body;
|
|
1263
|
-
return throwDefaultError({
|
|
1264
|
-
output,
|
|
1265
|
-
parsedBody,
|
|
1266
|
-
errorCode,
|
|
1267
|
-
});
|
|
646
|
+
const doc = take(data, {
|
|
647
|
+
components: (_) => de_ComponentList(_, context),
|
|
648
|
+
nextToken: __expectString,
|
|
649
|
+
});
|
|
650
|
+
Object.assign(contents, doc);
|
|
651
|
+
return contents;
|
|
652
|
+
};
|
|
653
|
+
export const de_ListComponentVersionsCommand = async (output, context) => {
|
|
654
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
+
return de_CommandError(output, context);
|
|
1268
656
|
}
|
|
657
|
+
const contents = map({
|
|
658
|
+
$metadata: deserializeMetadata(output),
|
|
659
|
+
});
|
|
660
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
661
|
+
const doc = take(data, {
|
|
662
|
+
componentVersions: _json,
|
|
663
|
+
nextToken: __expectString,
|
|
664
|
+
});
|
|
665
|
+
Object.assign(contents, doc);
|
|
666
|
+
return contents;
|
|
1269
667
|
};
|
|
1270
668
|
export const de_ListCoreDevicesCommand = async (output, context) => {
|
|
1271
669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
-
return
|
|
670
|
+
return de_CommandError(output, context);
|
|
1273
671
|
}
|
|
1274
672
|
const contents = map({
|
|
1275
673
|
$metadata: deserializeMetadata(output),
|
|
@@ -1282,37 +680,9 @@ export const de_ListCoreDevicesCommand = async (output, context) => {
|
|
|
1282
680
|
Object.assign(contents, doc);
|
|
1283
681
|
return contents;
|
|
1284
682
|
};
|
|
1285
|
-
const de_ListCoreDevicesCommandError = async (output, context) => {
|
|
1286
|
-
const parsedOutput = {
|
|
1287
|
-
...output,
|
|
1288
|
-
body: await parseErrorBody(output.body, context),
|
|
1289
|
-
};
|
|
1290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
|
-
switch (errorCode) {
|
|
1292
|
-
case "AccessDeniedException":
|
|
1293
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1294
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "InternalServerException":
|
|
1296
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1297
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ThrottlingException":
|
|
1299
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1300
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ValidationException":
|
|
1302
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1303
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1304
|
-
default:
|
|
1305
|
-
const parsedBody = parsedOutput.body;
|
|
1306
|
-
return throwDefaultError({
|
|
1307
|
-
output,
|
|
1308
|
-
parsedBody,
|
|
1309
|
-
errorCode,
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
};
|
|
1313
683
|
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
1314
684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1315
|
-
return
|
|
685
|
+
return de_CommandError(output, context);
|
|
1316
686
|
}
|
|
1317
687
|
const contents = map({
|
|
1318
688
|
$metadata: deserializeMetadata(output),
|
|
@@ -1325,37 +695,9 @@ export const de_ListDeploymentsCommand = async (output, context) => {
|
|
|
1325
695
|
Object.assign(contents, doc);
|
|
1326
696
|
return contents;
|
|
1327
697
|
};
|
|
1328
|
-
const de_ListDeploymentsCommandError = async (output, context) => {
|
|
1329
|
-
const parsedOutput = {
|
|
1330
|
-
...output,
|
|
1331
|
-
body: await parseErrorBody(output.body, context),
|
|
1332
|
-
};
|
|
1333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
-
switch (errorCode) {
|
|
1335
|
-
case "AccessDeniedException":
|
|
1336
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1337
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InternalServerException":
|
|
1339
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "ThrottlingException":
|
|
1342
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1343
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ValidationException":
|
|
1345
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1346
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1347
|
-
default:
|
|
1348
|
-
const parsedBody = parsedOutput.body;
|
|
1349
|
-
return throwDefaultError({
|
|
1350
|
-
output,
|
|
1351
|
-
parsedBody,
|
|
1352
|
-
errorCode,
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
};
|
|
1356
698
|
export const de_ListEffectiveDeploymentsCommand = async (output, context) => {
|
|
1357
699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1358
|
-
return
|
|
700
|
+
return de_CommandError(output, context);
|
|
1359
701
|
}
|
|
1360
702
|
const contents = map({
|
|
1361
703
|
$metadata: deserializeMetadata(output),
|
|
@@ -1368,40 +710,9 @@ export const de_ListEffectiveDeploymentsCommand = async (output, context) => {
|
|
|
1368
710
|
Object.assign(contents, doc);
|
|
1369
711
|
return contents;
|
|
1370
712
|
};
|
|
1371
|
-
const de_ListEffectiveDeploymentsCommandError = async (output, context) => {
|
|
1372
|
-
const parsedOutput = {
|
|
1373
|
-
...output,
|
|
1374
|
-
body: await parseErrorBody(output.body, context),
|
|
1375
|
-
};
|
|
1376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
-
switch (errorCode) {
|
|
1378
|
-
case "AccessDeniedException":
|
|
1379
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1380
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "InternalServerException":
|
|
1382
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1383
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ResourceNotFoundException":
|
|
1385
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1386
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ThrottlingException":
|
|
1388
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1389
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ValidationException":
|
|
1391
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1392
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1393
|
-
default:
|
|
1394
|
-
const parsedBody = parsedOutput.body;
|
|
1395
|
-
return throwDefaultError({
|
|
1396
|
-
output,
|
|
1397
|
-
parsedBody,
|
|
1398
|
-
errorCode,
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
};
|
|
1402
713
|
export const de_ListInstalledComponentsCommand = async (output, context) => {
|
|
1403
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1404
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
1405
716
|
}
|
|
1406
717
|
const contents = map({
|
|
1407
718
|
$metadata: deserializeMetadata(output),
|
|
@@ -1414,40 +725,9 @@ export const de_ListInstalledComponentsCommand = async (output, context) => {
|
|
|
1414
725
|
Object.assign(contents, doc);
|
|
1415
726
|
return contents;
|
|
1416
727
|
};
|
|
1417
|
-
const de_ListInstalledComponentsCommandError = async (output, context) => {
|
|
1418
|
-
const parsedOutput = {
|
|
1419
|
-
...output,
|
|
1420
|
-
body: await parseErrorBody(output.body, context),
|
|
1421
|
-
};
|
|
1422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
-
switch (errorCode) {
|
|
1424
|
-
case "AccessDeniedException":
|
|
1425
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "InternalServerException":
|
|
1428
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1429
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ResourceNotFoundException":
|
|
1431
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1432
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ThrottlingException":
|
|
1434
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1435
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ValidationException":
|
|
1437
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1438
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1439
|
-
default:
|
|
1440
|
-
const parsedBody = parsedOutput.body;
|
|
1441
|
-
return throwDefaultError({
|
|
1442
|
-
output,
|
|
1443
|
-
parsedBody,
|
|
1444
|
-
errorCode,
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
728
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1449
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
1451
731
|
}
|
|
1452
732
|
const contents = map({
|
|
1453
733
|
$metadata: deserializeMetadata(output),
|
|
@@ -1459,34 +739,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1459
739
|
Object.assign(contents, doc);
|
|
1460
740
|
return contents;
|
|
1461
741
|
};
|
|
1462
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1463
|
-
const parsedOutput = {
|
|
1464
|
-
...output,
|
|
1465
|
-
body: await parseErrorBody(output.body, context),
|
|
1466
|
-
};
|
|
1467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
-
switch (errorCode) {
|
|
1469
|
-
case "InternalServerException":
|
|
1470
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1471
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ResourceNotFoundException":
|
|
1473
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1474
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ValidationException":
|
|
1476
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1477
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1478
|
-
default:
|
|
1479
|
-
const parsedBody = parsedOutput.body;
|
|
1480
|
-
return throwDefaultError({
|
|
1481
|
-
output,
|
|
1482
|
-
parsedBody,
|
|
1483
|
-
errorCode,
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
742
|
export const de_ResolveComponentCandidatesCommand = async (output, context) => {
|
|
1488
743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
744
|
+
return de_CommandError(output, context);
|
|
1490
745
|
}
|
|
1491
746
|
const contents = map({
|
|
1492
747
|
$metadata: deserializeMetadata(output),
|
|
@@ -1498,43 +753,9 @@ export const de_ResolveComponentCandidatesCommand = async (output, context) => {
|
|
|
1498
753
|
Object.assign(contents, doc);
|
|
1499
754
|
return contents;
|
|
1500
755
|
};
|
|
1501
|
-
const de_ResolveComponentCandidatesCommandError = async (output, context) => {
|
|
1502
|
-
const parsedOutput = {
|
|
1503
|
-
...output,
|
|
1504
|
-
body: await parseErrorBody(output.body, context),
|
|
1505
|
-
};
|
|
1506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
|
-
switch (errorCode) {
|
|
1508
|
-
case "AccessDeniedException":
|
|
1509
|
-
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
1510
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ConflictException":
|
|
1512
|
-
case "com.amazonaws.greengrassv2#ConflictException":
|
|
1513
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "InternalServerException":
|
|
1515
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "ResourceNotFoundException":
|
|
1518
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1519
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "ThrottlingException":
|
|
1521
|
-
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
1522
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ValidationException":
|
|
1524
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1526
|
-
default:
|
|
1527
|
-
const parsedBody = parsedOutput.body;
|
|
1528
|
-
return throwDefaultError({
|
|
1529
|
-
output,
|
|
1530
|
-
parsedBody,
|
|
1531
|
-
errorCode,
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
};
|
|
1535
756
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1536
757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
|
-
return
|
|
758
|
+
return de_CommandError(output, context);
|
|
1538
759
|
}
|
|
1539
760
|
const contents = map({
|
|
1540
761
|
$metadata: deserializeMetadata(output),
|
|
@@ -1542,34 +763,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1542
763
|
await collectBody(output.body, context);
|
|
1543
764
|
return contents;
|
|
1544
765
|
};
|
|
1545
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1546
|
-
const parsedOutput = {
|
|
1547
|
-
...output,
|
|
1548
|
-
body: await parseErrorBody(output.body, context),
|
|
1549
|
-
};
|
|
1550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
|
-
switch (errorCode) {
|
|
1552
|
-
case "InternalServerException":
|
|
1553
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1554
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ResourceNotFoundException":
|
|
1556
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "ValidationException":
|
|
1559
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1560
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1561
|
-
default:
|
|
1562
|
-
const parsedBody = parsedOutput.body;
|
|
1563
|
-
return throwDefaultError({
|
|
1564
|
-
output,
|
|
1565
|
-
parsedBody,
|
|
1566
|
-
errorCode,
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
};
|
|
1570
766
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1571
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1572
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
1573
769
|
}
|
|
1574
770
|
const contents = map({
|
|
1575
771
|
$metadata: deserializeMetadata(output),
|
|
@@ -1577,34 +773,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1577
773
|
await collectBody(output.body, context);
|
|
1578
774
|
return contents;
|
|
1579
775
|
};
|
|
1580
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1581
|
-
const parsedOutput = {
|
|
1582
|
-
...output,
|
|
1583
|
-
body: await parseErrorBody(output.body, context),
|
|
1584
|
-
};
|
|
1585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
|
-
switch (errorCode) {
|
|
1587
|
-
case "InternalServerException":
|
|
1588
|
-
case "com.amazonaws.greengrassv2#InternalServerException":
|
|
1589
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ResourceNotFoundException":
|
|
1591
|
-
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
1592
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ValidationException":
|
|
1594
|
-
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1595
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1596
|
-
default:
|
|
1597
|
-
const parsedBody = parsedOutput.body;
|
|
1598
|
-
return throwDefaultError({
|
|
1599
|
-
output,
|
|
1600
|
-
parsedBody,
|
|
1601
|
-
errorCode,
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
};
|
|
1605
776
|
export const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
1606
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1607
|
-
return
|
|
778
|
+
return de_CommandError(output, context);
|
|
1608
779
|
}
|
|
1609
780
|
const contents = map({
|
|
1610
781
|
$metadata: deserializeMetadata(output),
|
|
@@ -1617,7 +788,7 @@ export const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
|
1617
788
|
Object.assign(contents, doc);
|
|
1618
789
|
return contents;
|
|
1619
790
|
};
|
|
1620
|
-
const
|
|
791
|
+
const de_CommandError = async (output, context) => {
|
|
1621
792
|
const parsedOutput = {
|
|
1622
793
|
...output,
|
|
1623
794
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1630,6 +801,24 @@ const de_UpdateConnectivityInfoCommandError = async (output, context) => {
|
|
|
1630
801
|
case "ValidationException":
|
|
1631
802
|
case "com.amazonaws.greengrassv2#ValidationException":
|
|
1632
803
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
804
|
+
case "AccessDeniedException":
|
|
805
|
+
case "com.amazonaws.greengrassv2#AccessDeniedException":
|
|
806
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
807
|
+
case "ResourceNotFoundException":
|
|
808
|
+
case "com.amazonaws.greengrassv2#ResourceNotFoundException":
|
|
809
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
|
+
case "ThrottlingException":
|
|
811
|
+
case "com.amazonaws.greengrassv2#ThrottlingException":
|
|
812
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
813
|
+
case "ConflictException":
|
|
814
|
+
case "com.amazonaws.greengrassv2#ConflictException":
|
|
815
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
816
|
+
case "RequestAlreadyInProgressException":
|
|
817
|
+
case "com.amazonaws.greengrassv2#RequestAlreadyInProgressException":
|
|
818
|
+
throw await de_RequestAlreadyInProgressExceptionRes(parsedOutput, context);
|
|
819
|
+
case "ServiceQuotaExceededException":
|
|
820
|
+
case "com.amazonaws.greengrassv2#ServiceQuotaExceededException":
|
|
821
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1633
822
|
default:
|
|
1634
823
|
const parsedBody = parsedOutput.body;
|
|
1635
824
|
return throwDefaultError({
|