@aws-sdk/client-workspaces 3.504.0 → 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 +181 -2107
- package/dist-es/protocols/Aws_json1_1.js +293 -2219
- package/dist-types/models/models_0.d.ts +70 -0
- package/package.json +3 -3
|
@@ -442,7 +442,7 @@ export const se_UpdateWorkspaceImagePermissionCommand = async (input, context) =
|
|
|
442
442
|
};
|
|
443
443
|
export const de_AssociateConnectionAliasCommand = async (output, context) => {
|
|
444
444
|
if (output.statusCode >= 300) {
|
|
445
|
-
return
|
|
445
|
+
return de_CommandError(output, context);
|
|
446
446
|
}
|
|
447
447
|
const data = await parseBody(output.body, context);
|
|
448
448
|
let contents = {};
|
|
@@ -453,43 +453,9 @@ export const de_AssociateConnectionAliasCommand = async (output, context) => {
|
|
|
453
453
|
};
|
|
454
454
|
return response;
|
|
455
455
|
};
|
|
456
|
-
const de_AssociateConnectionAliasCommandError = async (output, context) => {
|
|
457
|
-
const parsedOutput = {
|
|
458
|
-
...output,
|
|
459
|
-
body: await parseErrorBody(output.body, context),
|
|
460
|
-
};
|
|
461
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
462
|
-
switch (errorCode) {
|
|
463
|
-
case "AccessDeniedException":
|
|
464
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
465
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
466
|
-
case "InvalidParameterValuesException":
|
|
467
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
468
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
469
|
-
case "InvalidResourceStateException":
|
|
470
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
471
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
472
|
-
case "OperationNotSupportedException":
|
|
473
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
474
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ResourceAssociatedException":
|
|
476
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
477
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ResourceNotFoundException":
|
|
479
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
481
|
-
default:
|
|
482
|
-
const parsedBody = parsedOutput.body;
|
|
483
|
-
return throwDefaultError({
|
|
484
|
-
output,
|
|
485
|
-
parsedBody,
|
|
486
|
-
errorCode,
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
456
|
export const de_AssociateIpGroupsCommand = async (output, context) => {
|
|
491
457
|
if (output.statusCode >= 300) {
|
|
492
|
-
return
|
|
458
|
+
return de_CommandError(output, context);
|
|
493
459
|
}
|
|
494
460
|
const data = await parseBody(output.body, context);
|
|
495
461
|
let contents = {};
|
|
@@ -500,43 +466,9 @@ export const de_AssociateIpGroupsCommand = async (output, context) => {
|
|
|
500
466
|
};
|
|
501
467
|
return response;
|
|
502
468
|
};
|
|
503
|
-
const de_AssociateIpGroupsCommandError = async (output, context) => {
|
|
504
|
-
const parsedOutput = {
|
|
505
|
-
...output,
|
|
506
|
-
body: await parseErrorBody(output.body, context),
|
|
507
|
-
};
|
|
508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
|
-
switch (errorCode) {
|
|
510
|
-
case "AccessDeniedException":
|
|
511
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
512
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
513
|
-
case "InvalidParameterValuesException":
|
|
514
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
515
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
516
|
-
case "InvalidResourceStateException":
|
|
517
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
518
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
519
|
-
case "OperationNotSupportedException":
|
|
520
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
521
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ResourceLimitExceededException":
|
|
523
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
524
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ResourceNotFoundException":
|
|
526
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
528
|
-
default:
|
|
529
|
-
const parsedBody = parsedOutput.body;
|
|
530
|
-
return throwDefaultError({
|
|
531
|
-
output,
|
|
532
|
-
parsedBody,
|
|
533
|
-
errorCode,
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
469
|
export const de_AssociateWorkspaceApplicationCommand = async (output, context) => {
|
|
538
470
|
if (output.statusCode >= 300) {
|
|
539
|
-
return
|
|
471
|
+
return de_CommandError(output, context);
|
|
540
472
|
}
|
|
541
473
|
const data = await parseBody(output.body, context);
|
|
542
474
|
let contents = {};
|
|
@@ -547,55 +479,9 @@ export const de_AssociateWorkspaceApplicationCommand = async (output, context) =
|
|
|
547
479
|
};
|
|
548
480
|
return response;
|
|
549
481
|
};
|
|
550
|
-
const de_AssociateWorkspaceApplicationCommandError = async (output, context) => {
|
|
551
|
-
const parsedOutput = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseErrorBody(output.body, context),
|
|
554
|
-
};
|
|
555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
-
switch (errorCode) {
|
|
557
|
-
case "AccessDeniedException":
|
|
558
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ApplicationNotSupportedException":
|
|
561
|
-
case "com.amazonaws.workspaces#ApplicationNotSupportedException":
|
|
562
|
-
throw await de_ApplicationNotSupportedExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ComputeNotCompatibleException":
|
|
564
|
-
case "com.amazonaws.workspaces#ComputeNotCompatibleException":
|
|
565
|
-
throw await de_ComputeNotCompatibleExceptionRes(parsedOutput, context);
|
|
566
|
-
case "IncompatibleApplicationsException":
|
|
567
|
-
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
568
|
-
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
569
|
-
case "InvalidParameterValuesException":
|
|
570
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
571
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
572
|
-
case "OperatingSystemNotCompatibleException":
|
|
573
|
-
case "com.amazonaws.workspaces#OperatingSystemNotCompatibleException":
|
|
574
|
-
throw await de_OperatingSystemNotCompatibleExceptionRes(parsedOutput, context);
|
|
575
|
-
case "OperationNotSupportedException":
|
|
576
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
577
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ResourceAlreadyExistsException":
|
|
579
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
580
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ResourceInUseException":
|
|
582
|
-
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
583
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ResourceNotFoundException":
|
|
585
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
587
|
-
default:
|
|
588
|
-
const parsedBody = parsedOutput.body;
|
|
589
|
-
return throwDefaultError({
|
|
590
|
-
output,
|
|
591
|
-
parsedBody,
|
|
592
|
-
errorCode,
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
};
|
|
596
482
|
export const de_AuthorizeIpRulesCommand = async (output, context) => {
|
|
597
483
|
if (output.statusCode >= 300) {
|
|
598
|
-
return
|
|
484
|
+
return de_CommandError(output, context);
|
|
599
485
|
}
|
|
600
486
|
const data = await parseBody(output.body, context);
|
|
601
487
|
let contents = {};
|
|
@@ -606,40 +492,9 @@ export const de_AuthorizeIpRulesCommand = async (output, context) => {
|
|
|
606
492
|
};
|
|
607
493
|
return response;
|
|
608
494
|
};
|
|
609
|
-
const de_AuthorizeIpRulesCommandError = async (output, context) => {
|
|
610
|
-
const parsedOutput = {
|
|
611
|
-
...output,
|
|
612
|
-
body: await parseErrorBody(output.body, context),
|
|
613
|
-
};
|
|
614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
-
switch (errorCode) {
|
|
616
|
-
case "AccessDeniedException":
|
|
617
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
618
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
619
|
-
case "InvalidParameterValuesException":
|
|
620
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
621
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
622
|
-
case "InvalidResourceStateException":
|
|
623
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
624
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ResourceLimitExceededException":
|
|
626
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
627
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ResourceNotFoundException":
|
|
629
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
631
|
-
default:
|
|
632
|
-
const parsedBody = parsedOutput.body;
|
|
633
|
-
return throwDefaultError({
|
|
634
|
-
output,
|
|
635
|
-
parsedBody,
|
|
636
|
-
errorCode,
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
};
|
|
640
495
|
export const de_CopyWorkspaceImageCommand = async (output, context) => {
|
|
641
496
|
if (output.statusCode >= 300) {
|
|
642
|
-
return
|
|
497
|
+
return de_CommandError(output, context);
|
|
643
498
|
}
|
|
644
499
|
const data = await parseBody(output.body, context);
|
|
645
500
|
let contents = {};
|
|
@@ -650,46 +505,9 @@ export const de_CopyWorkspaceImageCommand = async (output, context) => {
|
|
|
650
505
|
};
|
|
651
506
|
return response;
|
|
652
507
|
};
|
|
653
|
-
const de_CopyWorkspaceImageCommandError = async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context),
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "AccessDeniedException":
|
|
661
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
662
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
663
|
-
case "InvalidParameterValuesException":
|
|
664
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
665
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
666
|
-
case "OperationNotSupportedException":
|
|
667
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
668
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ResourceAlreadyExistsException":
|
|
670
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
671
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ResourceLimitExceededException":
|
|
673
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
674
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
675
|
-
case "ResourceNotFoundException":
|
|
676
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
677
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ResourceUnavailableException":
|
|
679
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
680
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
681
|
-
default:
|
|
682
|
-
const parsedBody = parsedOutput.body;
|
|
683
|
-
return throwDefaultError({
|
|
684
|
-
output,
|
|
685
|
-
parsedBody,
|
|
686
|
-
errorCode,
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
508
|
export const de_CreateConnectClientAddInCommand = async (output, context) => {
|
|
691
509
|
if (output.statusCode >= 300) {
|
|
692
|
-
return
|
|
510
|
+
return de_CommandError(output, context);
|
|
693
511
|
}
|
|
694
512
|
const data = await parseBody(output.body, context);
|
|
695
513
|
let contents = {};
|
|
@@ -700,40 +518,9 @@ export const de_CreateConnectClientAddInCommand = async (output, context) => {
|
|
|
700
518
|
};
|
|
701
519
|
return response;
|
|
702
520
|
};
|
|
703
|
-
const de_CreateConnectClientAddInCommandError = async (output, context) => {
|
|
704
|
-
const parsedOutput = {
|
|
705
|
-
...output,
|
|
706
|
-
body: await parseErrorBody(output.body, context),
|
|
707
|
-
};
|
|
708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
-
switch (errorCode) {
|
|
710
|
-
case "AccessDeniedException":
|
|
711
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
713
|
-
case "InvalidParameterValuesException":
|
|
714
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
715
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ResourceAlreadyExistsException":
|
|
717
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
718
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ResourceCreationFailedException":
|
|
720
|
-
case "com.amazonaws.workspaces#ResourceCreationFailedException":
|
|
721
|
-
throw await de_ResourceCreationFailedExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ResourceNotFoundException":
|
|
723
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode,
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
521
|
export const de_CreateConnectionAliasCommand = async (output, context) => {
|
|
735
522
|
if (output.statusCode >= 300) {
|
|
736
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
737
524
|
}
|
|
738
525
|
const data = await parseBody(output.body, context);
|
|
739
526
|
let contents = {};
|
|
@@ -744,43 +531,9 @@ export const de_CreateConnectionAliasCommand = async (output, context) => {
|
|
|
744
531
|
};
|
|
745
532
|
return response;
|
|
746
533
|
};
|
|
747
|
-
const de_CreateConnectionAliasCommandError = async (output, context) => {
|
|
748
|
-
const parsedOutput = {
|
|
749
|
-
...output,
|
|
750
|
-
body: await parseErrorBody(output.body, context),
|
|
751
|
-
};
|
|
752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
-
switch (errorCode) {
|
|
754
|
-
case "AccessDeniedException":
|
|
755
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
756
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
757
|
-
case "InvalidParameterValuesException":
|
|
758
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
759
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
760
|
-
case "InvalidResourceStateException":
|
|
761
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
762
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
763
|
-
case "OperationNotSupportedException":
|
|
764
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
765
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ResourceAlreadyExistsException":
|
|
767
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
768
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ResourceLimitExceededException":
|
|
770
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
771
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
772
|
-
default:
|
|
773
|
-
const parsedBody = parsedOutput.body;
|
|
774
|
-
return throwDefaultError({
|
|
775
|
-
output,
|
|
776
|
-
parsedBody,
|
|
777
|
-
errorCode,
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
534
|
export const de_CreateIpGroupCommand = async (output, context) => {
|
|
782
535
|
if (output.statusCode >= 300) {
|
|
783
|
-
return
|
|
536
|
+
return de_CommandError(output, context);
|
|
784
537
|
}
|
|
785
538
|
const data = await parseBody(output.body, context);
|
|
786
539
|
let contents = {};
|
|
@@ -791,544 +544,22 @@ export const de_CreateIpGroupCommand = async (output, context) => {
|
|
|
791
544
|
};
|
|
792
545
|
return response;
|
|
793
546
|
};
|
|
794
|
-
const de_CreateIpGroupCommandError = async (output, context) => {
|
|
795
|
-
const parsedOutput = {
|
|
796
|
-
...output,
|
|
797
|
-
body: await parseErrorBody(output.body, context),
|
|
798
|
-
};
|
|
799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
|
-
switch (errorCode) {
|
|
801
|
-
case "AccessDeniedException":
|
|
802
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
803
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
804
|
-
case "InvalidParameterValuesException":
|
|
805
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
806
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ResourceAlreadyExistsException":
|
|
808
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
809
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
810
|
-
case "ResourceCreationFailedException":
|
|
811
|
-
case "com.amazonaws.workspaces#ResourceCreationFailedException":
|
|
812
|
-
throw await de_ResourceCreationFailedExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ResourceLimitExceededException":
|
|
814
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
815
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
816
|
-
default:
|
|
817
|
-
const parsedBody = parsedOutput.body;
|
|
818
|
-
return throwDefaultError({
|
|
819
|
-
output,
|
|
820
|
-
parsedBody,
|
|
821
|
-
errorCode,
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
547
|
export const de_CreateStandbyWorkspacesCommand = async (output, context) => {
|
|
826
548
|
if (output.statusCode >= 300) {
|
|
827
|
-
return
|
|
828
|
-
}
|
|
829
|
-
const data = await parseBody(output.body, context);
|
|
830
|
-
let contents = {};
|
|
831
|
-
contents = _json(data);
|
|
832
|
-
const response = {
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
...contents,
|
|
835
|
-
};
|
|
836
|
-
return response;
|
|
837
|
-
};
|
|
838
|
-
const de_CreateStandbyWorkspacesCommandError = async (output, context) => {
|
|
839
|
-
const parsedOutput = {
|
|
840
|
-
...output,
|
|
841
|
-
body: await parseErrorBody(output.body, context),
|
|
842
|
-
};
|
|
843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
-
switch (errorCode) {
|
|
845
|
-
case "AccessDeniedException":
|
|
846
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
847
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
848
|
-
case "InvalidParameterValuesException":
|
|
849
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
850
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
851
|
-
case "OperationNotSupportedException":
|
|
852
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
853
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
854
|
-
case "ResourceLimitExceededException":
|
|
855
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
856
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ResourceNotFoundException":
|
|
858
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody,
|
|
865
|
-
errorCode,
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
|
-
export const de_CreateTagsCommand = async (output, context) => {
|
|
870
|
-
if (output.statusCode >= 300) {
|
|
871
|
-
return de_CreateTagsCommandError(output, context);
|
|
872
|
-
}
|
|
873
|
-
const data = await parseBody(output.body, context);
|
|
874
|
-
let contents = {};
|
|
875
|
-
contents = _json(data);
|
|
876
|
-
const response = {
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
...contents,
|
|
879
|
-
};
|
|
880
|
-
return response;
|
|
881
|
-
};
|
|
882
|
-
const de_CreateTagsCommandError = async (output, context) => {
|
|
883
|
-
const parsedOutput = {
|
|
884
|
-
...output,
|
|
885
|
-
body: await parseErrorBody(output.body, context),
|
|
886
|
-
};
|
|
887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
|
-
switch (errorCode) {
|
|
889
|
-
case "InvalidParameterValuesException":
|
|
890
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
891
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ResourceLimitExceededException":
|
|
893
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
894
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
895
|
-
case "ResourceNotFoundException":
|
|
896
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
897
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
898
|
-
default:
|
|
899
|
-
const parsedBody = parsedOutput.body;
|
|
900
|
-
return throwDefaultError({
|
|
901
|
-
output,
|
|
902
|
-
parsedBody,
|
|
903
|
-
errorCode,
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
};
|
|
907
|
-
export const de_CreateUpdatedWorkspaceImageCommand = async (output, context) => {
|
|
908
|
-
if (output.statusCode >= 300) {
|
|
909
|
-
return de_CreateUpdatedWorkspaceImageCommandError(output, context);
|
|
549
|
+
return de_CommandError(output, context);
|
|
910
550
|
}
|
|
911
551
|
const data = await parseBody(output.body, context);
|
|
912
552
|
let contents = {};
|
|
913
553
|
contents = _json(data);
|
|
914
554
|
const response = {
|
|
915
555
|
$metadata: deserializeMetadata(output),
|
|
916
|
-
...contents,
|
|
917
|
-
};
|
|
918
|
-
return response;
|
|
919
|
-
};
|
|
920
|
-
const de_CreateUpdatedWorkspaceImageCommandError = async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context),
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "AccessDeniedException":
|
|
928
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
929
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
930
|
-
case "InvalidParameterValuesException":
|
|
931
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
932
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
933
|
-
case "InvalidResourceStateException":
|
|
934
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
935
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
936
|
-
case "OperationNotSupportedException":
|
|
937
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
938
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ResourceAlreadyExistsException":
|
|
940
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
941
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ResourceLimitExceededException":
|
|
943
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
944
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ResourceNotFoundException":
|
|
946
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
947
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
948
|
-
default:
|
|
949
|
-
const parsedBody = parsedOutput.body;
|
|
950
|
-
return throwDefaultError({
|
|
951
|
-
output,
|
|
952
|
-
parsedBody,
|
|
953
|
-
errorCode,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
export const de_CreateWorkspaceBundleCommand = async (output, context) => {
|
|
958
|
-
if (output.statusCode >= 300) {
|
|
959
|
-
return de_CreateWorkspaceBundleCommandError(output, context);
|
|
960
|
-
}
|
|
961
|
-
const data = await parseBody(output.body, context);
|
|
962
|
-
let contents = {};
|
|
963
|
-
contents = de_CreateWorkspaceBundleResult(data, context);
|
|
964
|
-
const response = {
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
...contents,
|
|
967
|
-
};
|
|
968
|
-
return response;
|
|
969
|
-
};
|
|
970
|
-
const de_CreateWorkspaceBundleCommandError = async (output, context) => {
|
|
971
|
-
const parsedOutput = {
|
|
972
|
-
...output,
|
|
973
|
-
body: await parseErrorBody(output.body, context),
|
|
974
|
-
};
|
|
975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
-
switch (errorCode) {
|
|
977
|
-
case "AccessDeniedException":
|
|
978
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
980
|
-
case "InvalidParameterValuesException":
|
|
981
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
982
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ResourceAlreadyExistsException":
|
|
984
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
985
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ResourceLimitExceededException":
|
|
987
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
988
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
989
|
-
case "ResourceNotFoundException":
|
|
990
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
991
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
992
|
-
case "ResourceUnavailableException":
|
|
993
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
994
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
995
|
-
default:
|
|
996
|
-
const parsedBody = parsedOutput.body;
|
|
997
|
-
return throwDefaultError({
|
|
998
|
-
output,
|
|
999
|
-
parsedBody,
|
|
1000
|
-
errorCode,
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
};
|
|
1004
|
-
export const de_CreateWorkspaceImageCommand = async (output, context) => {
|
|
1005
|
-
if (output.statusCode >= 300) {
|
|
1006
|
-
return de_CreateWorkspaceImageCommandError(output, context);
|
|
1007
|
-
}
|
|
1008
|
-
const data = await parseBody(output.body, context);
|
|
1009
|
-
let contents = {};
|
|
1010
|
-
contents = de_CreateWorkspaceImageResult(data, context);
|
|
1011
|
-
const response = {
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
1013
|
-
...contents,
|
|
1014
|
-
};
|
|
1015
|
-
return response;
|
|
1016
|
-
};
|
|
1017
|
-
const de_CreateWorkspaceImageCommandError = async (output, context) => {
|
|
1018
|
-
const parsedOutput = {
|
|
1019
|
-
...output,
|
|
1020
|
-
body: await parseErrorBody(output.body, context),
|
|
1021
|
-
};
|
|
1022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
-
switch (errorCode) {
|
|
1024
|
-
case "AccessDeniedException":
|
|
1025
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1026
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "InvalidParameterValuesException":
|
|
1028
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1029
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "InvalidResourceStateException":
|
|
1031
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1032
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "OperationNotSupportedException":
|
|
1034
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1035
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "ResourceAlreadyExistsException":
|
|
1037
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1038
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ResourceLimitExceededException":
|
|
1040
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1041
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "ResourceNotFoundException":
|
|
1043
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1044
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1045
|
-
default:
|
|
1046
|
-
const parsedBody = parsedOutput.body;
|
|
1047
|
-
return throwDefaultError({
|
|
1048
|
-
output,
|
|
1049
|
-
parsedBody,
|
|
1050
|
-
errorCode,
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
export const de_CreateWorkspacesCommand = async (output, context) => {
|
|
1055
|
-
if (output.statusCode >= 300) {
|
|
1056
|
-
return de_CreateWorkspacesCommandError(output, context);
|
|
1057
|
-
}
|
|
1058
|
-
const data = await parseBody(output.body, context);
|
|
1059
|
-
let contents = {};
|
|
1060
|
-
contents = de_CreateWorkspacesResult(data, context);
|
|
1061
|
-
const response = {
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
...contents,
|
|
1064
|
-
};
|
|
1065
|
-
return response;
|
|
1066
|
-
};
|
|
1067
|
-
const de_CreateWorkspacesCommandError = 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 "InvalidParameterValuesException":
|
|
1075
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1076
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ResourceLimitExceededException":
|
|
1078
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1079
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
export const de_DeleteClientBrandingCommand = async (output, context) => {
|
|
1090
|
-
if (output.statusCode >= 300) {
|
|
1091
|
-
return de_DeleteClientBrandingCommandError(output, context);
|
|
1092
|
-
}
|
|
1093
|
-
const data = await parseBody(output.body, context);
|
|
1094
|
-
let contents = {};
|
|
1095
|
-
contents = _json(data);
|
|
1096
|
-
const response = {
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
...contents,
|
|
1099
|
-
};
|
|
1100
|
-
return response;
|
|
1101
|
-
};
|
|
1102
|
-
const de_DeleteClientBrandingCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "AccessDeniedException":
|
|
1110
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1111
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "InvalidParameterValuesException":
|
|
1113
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1114
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ResourceNotFoundException":
|
|
1116
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1117
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1118
|
-
default:
|
|
1119
|
-
const parsedBody = parsedOutput.body;
|
|
1120
|
-
return throwDefaultError({
|
|
1121
|
-
output,
|
|
1122
|
-
parsedBody,
|
|
1123
|
-
errorCode,
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
};
|
|
1127
|
-
export const de_DeleteConnectClientAddInCommand = async (output, context) => {
|
|
1128
|
-
if (output.statusCode >= 300) {
|
|
1129
|
-
return de_DeleteConnectClientAddInCommandError(output, context);
|
|
1130
|
-
}
|
|
1131
|
-
const data = await parseBody(output.body, context);
|
|
1132
|
-
let contents = {};
|
|
1133
|
-
contents = _json(data);
|
|
1134
|
-
const response = {
|
|
1135
|
-
$metadata: deserializeMetadata(output),
|
|
1136
|
-
...contents,
|
|
1137
|
-
};
|
|
1138
|
-
return response;
|
|
1139
|
-
};
|
|
1140
|
-
const de_DeleteConnectClientAddInCommandError = async (output, context) => {
|
|
1141
|
-
const parsedOutput = {
|
|
1142
|
-
...output,
|
|
1143
|
-
body: await parseErrorBody(output.body, context),
|
|
1144
|
-
};
|
|
1145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
-
switch (errorCode) {
|
|
1147
|
-
case "AccessDeniedException":
|
|
1148
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "InvalidParameterValuesException":
|
|
1151
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1152
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ResourceNotFoundException":
|
|
1154
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1156
|
-
default:
|
|
1157
|
-
const parsedBody = parsedOutput.body;
|
|
1158
|
-
return throwDefaultError({
|
|
1159
|
-
output,
|
|
1160
|
-
parsedBody,
|
|
1161
|
-
errorCode,
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
};
|
|
1165
|
-
export const de_DeleteConnectionAliasCommand = async (output, context) => {
|
|
1166
|
-
if (output.statusCode >= 300) {
|
|
1167
|
-
return de_DeleteConnectionAliasCommandError(output, context);
|
|
1168
|
-
}
|
|
1169
|
-
const data = await parseBody(output.body, context);
|
|
1170
|
-
let contents = {};
|
|
1171
|
-
contents = _json(data);
|
|
1172
|
-
const response = {
|
|
1173
|
-
$metadata: deserializeMetadata(output),
|
|
1174
|
-
...contents,
|
|
1175
|
-
};
|
|
1176
|
-
return response;
|
|
1177
|
-
};
|
|
1178
|
-
const de_DeleteConnectionAliasCommandError = async (output, context) => {
|
|
1179
|
-
const parsedOutput = {
|
|
1180
|
-
...output,
|
|
1181
|
-
body: await parseErrorBody(output.body, context),
|
|
1182
|
-
};
|
|
1183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
-
switch (errorCode) {
|
|
1185
|
-
case "AccessDeniedException":
|
|
1186
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1187
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "InvalidParameterValuesException":
|
|
1189
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1190
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "InvalidResourceStateException":
|
|
1192
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1193
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "OperationNotSupportedException":
|
|
1195
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1196
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "ResourceAssociatedException":
|
|
1198
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
1199
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ResourceNotFoundException":
|
|
1201
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
return throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
errorCode,
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
};
|
|
1212
|
-
export const de_DeleteIpGroupCommand = async (output, context) => {
|
|
1213
|
-
if (output.statusCode >= 300) {
|
|
1214
|
-
return de_DeleteIpGroupCommandError(output, context);
|
|
1215
|
-
}
|
|
1216
|
-
const data = await parseBody(output.body, context);
|
|
1217
|
-
let contents = {};
|
|
1218
|
-
contents = _json(data);
|
|
1219
|
-
const response = {
|
|
1220
|
-
$metadata: deserializeMetadata(output),
|
|
1221
|
-
...contents,
|
|
1222
|
-
};
|
|
1223
|
-
return response;
|
|
1224
|
-
};
|
|
1225
|
-
const de_DeleteIpGroupCommandError = async (output, context) => {
|
|
1226
|
-
const parsedOutput = {
|
|
1227
|
-
...output,
|
|
1228
|
-
body: await parseErrorBody(output.body, context),
|
|
1229
|
-
};
|
|
1230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
|
-
switch (errorCode) {
|
|
1232
|
-
case "AccessDeniedException":
|
|
1233
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1234
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "InvalidParameterValuesException":
|
|
1236
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1237
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ResourceAssociatedException":
|
|
1239
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
1240
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "ResourceNotFoundException":
|
|
1242
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1243
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1244
|
-
default:
|
|
1245
|
-
const parsedBody = parsedOutput.body;
|
|
1246
|
-
return throwDefaultError({
|
|
1247
|
-
output,
|
|
1248
|
-
parsedBody,
|
|
1249
|
-
errorCode,
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
export const de_DeleteTagsCommand = async (output, context) => {
|
|
1254
|
-
if (output.statusCode >= 300) {
|
|
1255
|
-
return de_DeleteTagsCommandError(output, context);
|
|
1256
|
-
}
|
|
1257
|
-
const data = await parseBody(output.body, context);
|
|
1258
|
-
let contents = {};
|
|
1259
|
-
contents = _json(data);
|
|
1260
|
-
const response = {
|
|
1261
|
-
$metadata: deserializeMetadata(output),
|
|
1262
|
-
...contents,
|
|
1263
|
-
};
|
|
1264
|
-
return response;
|
|
1265
|
-
};
|
|
1266
|
-
const de_DeleteTagsCommandError = async (output, context) => {
|
|
1267
|
-
const parsedOutput = {
|
|
1268
|
-
...output,
|
|
1269
|
-
body: await parseErrorBody(output.body, context),
|
|
1270
|
-
};
|
|
1271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
-
switch (errorCode) {
|
|
1273
|
-
case "InvalidParameterValuesException":
|
|
1274
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1275
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ResourceNotFoundException":
|
|
1277
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode,
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
|
-
export const de_DeleteWorkspaceBundleCommand = async (output, context) => {
|
|
1289
|
-
if (output.statusCode >= 300) {
|
|
1290
|
-
return de_DeleteWorkspaceBundleCommandError(output, context);
|
|
1291
|
-
}
|
|
1292
|
-
const data = await parseBody(output.body, context);
|
|
1293
|
-
let contents = {};
|
|
1294
|
-
contents = _json(data);
|
|
1295
|
-
const response = {
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
...contents,
|
|
1298
|
-
};
|
|
1299
|
-
return response;
|
|
1300
|
-
};
|
|
1301
|
-
const de_DeleteWorkspaceBundleCommandError = async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context),
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "AccessDeniedException":
|
|
1309
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1310
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "InvalidParameterValuesException":
|
|
1312
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1313
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ResourceAssociatedException":
|
|
1315
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
1316
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ResourceNotFoundException":
|
|
1318
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1320
|
-
default:
|
|
1321
|
-
const parsedBody = parsedOutput.body;
|
|
1322
|
-
return throwDefaultError({
|
|
1323
|
-
output,
|
|
1324
|
-
parsedBody,
|
|
1325
|
-
errorCode,
|
|
1326
|
-
});
|
|
1327
|
-
}
|
|
556
|
+
...contents,
|
|
557
|
+
};
|
|
558
|
+
return response;
|
|
1328
559
|
};
|
|
1329
|
-
export const
|
|
560
|
+
export const de_CreateTagsCommand = async (output, context) => {
|
|
1330
561
|
if (output.statusCode >= 300) {
|
|
1331
|
-
return
|
|
562
|
+
return de_CommandError(output, context);
|
|
1332
563
|
}
|
|
1333
564
|
const data = await parseBody(output.body, context);
|
|
1334
565
|
let contents = {};
|
|
@@ -1339,125 +570,61 @@ export const de_DeleteWorkspaceImageCommand = async (output, context) => {
|
|
|
1339
570
|
};
|
|
1340
571
|
return response;
|
|
1341
572
|
};
|
|
1342
|
-
const
|
|
1343
|
-
const parsedOutput = {
|
|
1344
|
-
...output,
|
|
1345
|
-
body: await parseErrorBody(output.body, context),
|
|
1346
|
-
};
|
|
1347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
|
-
switch (errorCode) {
|
|
1349
|
-
case "AccessDeniedException":
|
|
1350
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "InvalidResourceStateException":
|
|
1353
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1354
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "ResourceAssociatedException":
|
|
1356
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
1357
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
1358
|
-
default:
|
|
1359
|
-
const parsedBody = parsedOutput.body;
|
|
1360
|
-
return throwDefaultError({
|
|
1361
|
-
output,
|
|
1362
|
-
parsedBody,
|
|
1363
|
-
errorCode,
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
};
|
|
1367
|
-
export const de_DeployWorkspaceApplicationsCommand = async (output, context) => {
|
|
573
|
+
export const de_CreateUpdatedWorkspaceImageCommand = async (output, context) => {
|
|
1368
574
|
if (output.statusCode >= 300) {
|
|
1369
|
-
return
|
|
575
|
+
return de_CommandError(output, context);
|
|
1370
576
|
}
|
|
1371
577
|
const data = await parseBody(output.body, context);
|
|
1372
578
|
let contents = {};
|
|
1373
|
-
contents =
|
|
579
|
+
contents = _json(data);
|
|
1374
580
|
const response = {
|
|
1375
581
|
$metadata: deserializeMetadata(output),
|
|
1376
582
|
...contents,
|
|
1377
583
|
};
|
|
1378
584
|
return response;
|
|
1379
585
|
};
|
|
1380
|
-
const
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
body: await parseErrorBody(output.body, context),
|
|
1384
|
-
};
|
|
1385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
-
switch (errorCode) {
|
|
1387
|
-
case "AccessDeniedException":
|
|
1388
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1389
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "IncompatibleApplicationsException":
|
|
1391
|
-
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
1392
|
-
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "InvalidParameterValuesException":
|
|
1394
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1395
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "OperationNotSupportedException":
|
|
1397
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1398
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ResourceInUseException":
|
|
1400
|
-
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
1401
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ResourceNotFoundException":
|
|
1403
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
-
default:
|
|
1406
|
-
const parsedBody = parsedOutput.body;
|
|
1407
|
-
return throwDefaultError({
|
|
1408
|
-
output,
|
|
1409
|
-
parsedBody,
|
|
1410
|
-
errorCode,
|
|
1411
|
-
});
|
|
586
|
+
export const de_CreateWorkspaceBundleCommand = async (output, context) => {
|
|
587
|
+
if (output.statusCode >= 300) {
|
|
588
|
+
return de_CommandError(output, context);
|
|
1412
589
|
}
|
|
590
|
+
const data = await parseBody(output.body, context);
|
|
591
|
+
let contents = {};
|
|
592
|
+
contents = de_CreateWorkspaceBundleResult(data, context);
|
|
593
|
+
const response = {
|
|
594
|
+
$metadata: deserializeMetadata(output),
|
|
595
|
+
...contents,
|
|
596
|
+
};
|
|
597
|
+
return response;
|
|
1413
598
|
};
|
|
1414
|
-
export const
|
|
599
|
+
export const de_CreateWorkspaceImageCommand = async (output, context) => {
|
|
1415
600
|
if (output.statusCode >= 300) {
|
|
1416
|
-
return
|
|
601
|
+
return de_CommandError(output, context);
|
|
1417
602
|
}
|
|
1418
603
|
const data = await parseBody(output.body, context);
|
|
1419
604
|
let contents = {};
|
|
1420
|
-
contents =
|
|
605
|
+
contents = de_CreateWorkspaceImageResult(data, context);
|
|
1421
606
|
const response = {
|
|
1422
607
|
$metadata: deserializeMetadata(output),
|
|
1423
608
|
...contents,
|
|
1424
609
|
};
|
|
1425
610
|
return response;
|
|
1426
611
|
};
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
body: await parseErrorBody(output.body, context),
|
|
1431
|
-
};
|
|
1432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
switch (errorCode) {
|
|
1434
|
-
case "AccessDeniedException":
|
|
1435
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "InvalidParameterValuesException":
|
|
1438
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1439
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "InvalidResourceStateException":
|
|
1441
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1442
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "OperationNotSupportedException":
|
|
1444
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1445
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ResourceNotFoundException":
|
|
1447
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1448
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1449
|
-
default:
|
|
1450
|
-
const parsedBody = parsedOutput.body;
|
|
1451
|
-
return throwDefaultError({
|
|
1452
|
-
output,
|
|
1453
|
-
parsedBody,
|
|
1454
|
-
errorCode,
|
|
1455
|
-
});
|
|
612
|
+
export const de_CreateWorkspacesCommand = async (output, context) => {
|
|
613
|
+
if (output.statusCode >= 300) {
|
|
614
|
+
return de_CommandError(output, context);
|
|
1456
615
|
}
|
|
616
|
+
const data = await parseBody(output.body, context);
|
|
617
|
+
let contents = {};
|
|
618
|
+
contents = de_CreateWorkspacesResult(data, context);
|
|
619
|
+
const response = {
|
|
620
|
+
$metadata: deserializeMetadata(output),
|
|
621
|
+
...contents,
|
|
622
|
+
};
|
|
623
|
+
return response;
|
|
1457
624
|
};
|
|
1458
|
-
export const
|
|
625
|
+
export const de_DeleteClientBrandingCommand = async (output, context) => {
|
|
1459
626
|
if (output.statusCode >= 300) {
|
|
1460
|
-
return
|
|
627
|
+
return de_CommandError(output, context);
|
|
1461
628
|
}
|
|
1462
629
|
const data = await parseBody(output.body, context);
|
|
1463
630
|
let contents = {};
|
|
@@ -1468,183 +635,74 @@ export const de_DescribeAccountCommand = async (output, context) => {
|
|
|
1468
635
|
};
|
|
1469
636
|
return response;
|
|
1470
637
|
};
|
|
1471
|
-
const
|
|
1472
|
-
const parsedOutput = {
|
|
1473
|
-
...output,
|
|
1474
|
-
body: await parseErrorBody(output.body, context),
|
|
1475
|
-
};
|
|
1476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
-
switch (errorCode) {
|
|
1478
|
-
case "AccessDeniedException":
|
|
1479
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1480
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1481
|
-
default:
|
|
1482
|
-
const parsedBody = parsedOutput.body;
|
|
1483
|
-
return throwDefaultError({
|
|
1484
|
-
output,
|
|
1485
|
-
parsedBody,
|
|
1486
|
-
errorCode,
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
};
|
|
1490
|
-
export const de_DescribeAccountModificationsCommand = async (output, context) => {
|
|
638
|
+
export const de_DeleteConnectClientAddInCommand = async (output, context) => {
|
|
1491
639
|
if (output.statusCode >= 300) {
|
|
1492
|
-
return
|
|
640
|
+
return de_CommandError(output, context);
|
|
1493
641
|
}
|
|
1494
642
|
const data = await parseBody(output.body, context);
|
|
1495
643
|
let contents = {};
|
|
1496
|
-
contents =
|
|
644
|
+
contents = _json(data);
|
|
1497
645
|
const response = {
|
|
1498
646
|
$metadata: deserializeMetadata(output),
|
|
1499
647
|
...contents,
|
|
1500
648
|
};
|
|
1501
649
|
return response;
|
|
1502
650
|
};
|
|
1503
|
-
const
|
|
1504
|
-
const parsedOutput = {
|
|
1505
|
-
...output,
|
|
1506
|
-
body: await parseErrorBody(output.body, context),
|
|
1507
|
-
};
|
|
1508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
|
-
switch (errorCode) {
|
|
1510
|
-
case "AccessDeniedException":
|
|
1511
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1512
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1513
|
-
default:
|
|
1514
|
-
const parsedBody = parsedOutput.body;
|
|
1515
|
-
return throwDefaultError({
|
|
1516
|
-
output,
|
|
1517
|
-
parsedBody,
|
|
1518
|
-
errorCode,
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
};
|
|
1522
|
-
export const de_DescribeApplicationAssociationsCommand = async (output, context) => {
|
|
651
|
+
export const de_DeleteConnectionAliasCommand = async (output, context) => {
|
|
1523
652
|
if (output.statusCode >= 300) {
|
|
1524
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
1525
654
|
}
|
|
1526
655
|
const data = await parseBody(output.body, context);
|
|
1527
656
|
let contents = {};
|
|
1528
|
-
contents =
|
|
657
|
+
contents = _json(data);
|
|
1529
658
|
const response = {
|
|
1530
659
|
$metadata: deserializeMetadata(output),
|
|
1531
660
|
...contents,
|
|
1532
661
|
};
|
|
1533
662
|
return response;
|
|
1534
663
|
};
|
|
1535
|
-
const
|
|
1536
|
-
const parsedOutput = {
|
|
1537
|
-
...output,
|
|
1538
|
-
body: await parseErrorBody(output.body, context),
|
|
1539
|
-
};
|
|
1540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
-
switch (errorCode) {
|
|
1542
|
-
case "AccessDeniedException":
|
|
1543
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1544
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "InvalidParameterValuesException":
|
|
1546
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1547
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "OperationNotSupportedException":
|
|
1549
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1550
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "ResourceNotFoundException":
|
|
1552
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1553
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1554
|
-
default:
|
|
1555
|
-
const parsedBody = parsedOutput.body;
|
|
1556
|
-
return throwDefaultError({
|
|
1557
|
-
output,
|
|
1558
|
-
parsedBody,
|
|
1559
|
-
errorCode,
|
|
1560
|
-
});
|
|
1561
|
-
}
|
|
1562
|
-
};
|
|
1563
|
-
export const de_DescribeApplicationsCommand = async (output, context) => {
|
|
664
|
+
export const de_DeleteIpGroupCommand = async (output, context) => {
|
|
1564
665
|
if (output.statusCode >= 300) {
|
|
1565
|
-
return
|
|
666
|
+
return de_CommandError(output, context);
|
|
1566
667
|
}
|
|
1567
668
|
const data = await parseBody(output.body, context);
|
|
1568
669
|
let contents = {};
|
|
1569
|
-
contents =
|
|
670
|
+
contents = _json(data);
|
|
1570
671
|
const response = {
|
|
1571
672
|
$metadata: deserializeMetadata(output),
|
|
1572
673
|
...contents,
|
|
1573
674
|
};
|
|
1574
675
|
return response;
|
|
1575
676
|
};
|
|
1576
|
-
const
|
|
1577
|
-
const parsedOutput = {
|
|
1578
|
-
...output,
|
|
1579
|
-
body: await parseErrorBody(output.body, context),
|
|
1580
|
-
};
|
|
1581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
-
switch (errorCode) {
|
|
1583
|
-
case "AccessDeniedException":
|
|
1584
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "InvalidParameterValuesException":
|
|
1587
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1588
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "OperationNotSupportedException":
|
|
1590
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1591
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceNotFoundException":
|
|
1593
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
default:
|
|
1596
|
-
const parsedBody = parsedOutput.body;
|
|
1597
|
-
return throwDefaultError({
|
|
1598
|
-
output,
|
|
1599
|
-
parsedBody,
|
|
1600
|
-
errorCode,
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
|
-
export const de_DescribeBundleAssociationsCommand = async (output, context) => {
|
|
677
|
+
export const de_DeleteTagsCommand = async (output, context) => {
|
|
1605
678
|
if (output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
679
|
+
return de_CommandError(output, context);
|
|
1607
680
|
}
|
|
1608
681
|
const data = await parseBody(output.body, context);
|
|
1609
682
|
let contents = {};
|
|
1610
|
-
contents =
|
|
683
|
+
contents = _json(data);
|
|
1611
684
|
const response = {
|
|
1612
685
|
$metadata: deserializeMetadata(output),
|
|
1613
686
|
...contents,
|
|
1614
687
|
};
|
|
1615
688
|
return response;
|
|
1616
689
|
};
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
body: await parseErrorBody(output.body, context),
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "AccessDeniedException":
|
|
1625
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1626
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "InvalidParameterValuesException":
|
|
1628
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1629
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "OperationNotSupportedException":
|
|
1631
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1632
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ResourceNotFoundException":
|
|
1634
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1635
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
-
default:
|
|
1637
|
-
const parsedBody = parsedOutput.body;
|
|
1638
|
-
return throwDefaultError({
|
|
1639
|
-
output,
|
|
1640
|
-
parsedBody,
|
|
1641
|
-
errorCode,
|
|
1642
|
-
});
|
|
690
|
+
export const de_DeleteWorkspaceBundleCommand = async (output, context) => {
|
|
691
|
+
if (output.statusCode >= 300) {
|
|
692
|
+
return de_CommandError(output, context);
|
|
1643
693
|
}
|
|
694
|
+
const data = await parseBody(output.body, context);
|
|
695
|
+
let contents = {};
|
|
696
|
+
contents = _json(data);
|
|
697
|
+
const response = {
|
|
698
|
+
$metadata: deserializeMetadata(output),
|
|
699
|
+
...contents,
|
|
700
|
+
};
|
|
701
|
+
return response;
|
|
1644
702
|
};
|
|
1645
|
-
export const
|
|
703
|
+
export const de_DeleteWorkspaceImageCommand = async (output, context) => {
|
|
1646
704
|
if (output.statusCode >= 300) {
|
|
1647
|
-
return
|
|
705
|
+
return de_CommandError(output, context);
|
|
1648
706
|
}
|
|
1649
707
|
const data = await parseBody(output.body, context);
|
|
1650
708
|
let contents = {};
|
|
@@ -1655,72 +713,22 @@ export const de_DescribeClientBrandingCommand = async (output, context) => {
|
|
|
1655
713
|
};
|
|
1656
714
|
return response;
|
|
1657
715
|
};
|
|
1658
|
-
const
|
|
1659
|
-
const parsedOutput = {
|
|
1660
|
-
...output,
|
|
1661
|
-
body: await parseErrorBody(output.body, context),
|
|
1662
|
-
};
|
|
1663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
|
-
switch (errorCode) {
|
|
1665
|
-
case "AccessDeniedException":
|
|
1666
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "InvalidParameterValuesException":
|
|
1669
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1670
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ResourceNotFoundException":
|
|
1672
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1673
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1674
|
-
default:
|
|
1675
|
-
const parsedBody = parsedOutput.body;
|
|
1676
|
-
return throwDefaultError({
|
|
1677
|
-
output,
|
|
1678
|
-
parsedBody,
|
|
1679
|
-
errorCode,
|
|
1680
|
-
});
|
|
1681
|
-
}
|
|
1682
|
-
};
|
|
1683
|
-
export const de_DescribeClientPropertiesCommand = async (output, context) => {
|
|
716
|
+
export const de_DeployWorkspaceApplicationsCommand = async (output, context) => {
|
|
1684
717
|
if (output.statusCode >= 300) {
|
|
1685
|
-
return
|
|
718
|
+
return de_CommandError(output, context);
|
|
1686
719
|
}
|
|
1687
720
|
const data = await parseBody(output.body, context);
|
|
1688
721
|
let contents = {};
|
|
1689
|
-
contents =
|
|
722
|
+
contents = de_DeployWorkspaceApplicationsResult(data, context);
|
|
1690
723
|
const response = {
|
|
1691
724
|
$metadata: deserializeMetadata(output),
|
|
1692
725
|
...contents,
|
|
1693
726
|
};
|
|
1694
727
|
return response;
|
|
1695
728
|
};
|
|
1696
|
-
const
|
|
1697
|
-
const parsedOutput = {
|
|
1698
|
-
...output,
|
|
1699
|
-
body: await parseErrorBody(output.body, context),
|
|
1700
|
-
};
|
|
1701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
|
-
switch (errorCode) {
|
|
1703
|
-
case "AccessDeniedException":
|
|
1704
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1705
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "InvalidParameterValuesException":
|
|
1707
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1708
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "ResourceNotFoundException":
|
|
1710
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1711
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1712
|
-
default:
|
|
1713
|
-
const parsedBody = parsedOutput.body;
|
|
1714
|
-
return throwDefaultError({
|
|
1715
|
-
output,
|
|
1716
|
-
parsedBody,
|
|
1717
|
-
errorCode,
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
};
|
|
1721
|
-
export const de_DescribeConnectClientAddInsCommand = async (output, context) => {
|
|
729
|
+
export const de_DeregisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
1722
730
|
if (output.statusCode >= 300) {
|
|
1723
|
-
return
|
|
731
|
+
return de_CommandError(output, context);
|
|
1724
732
|
}
|
|
1725
733
|
const data = await parseBody(output.body, context);
|
|
1726
734
|
let contents = {};
|
|
@@ -1731,34 +739,9 @@ export const de_DescribeConnectClientAddInsCommand = async (output, context) =>
|
|
|
1731
739
|
};
|
|
1732
740
|
return response;
|
|
1733
741
|
};
|
|
1734
|
-
const
|
|
1735
|
-
const parsedOutput = {
|
|
1736
|
-
...output,
|
|
1737
|
-
body: await parseErrorBody(output.body, context),
|
|
1738
|
-
};
|
|
1739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1740
|
-
switch (errorCode) {
|
|
1741
|
-
case "AccessDeniedException":
|
|
1742
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1743
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "InvalidParameterValuesException":
|
|
1745
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1746
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "ResourceNotFoundException":
|
|
1748
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1750
|
-
default:
|
|
1751
|
-
const parsedBody = parsedOutput.body;
|
|
1752
|
-
return throwDefaultError({
|
|
1753
|
-
output,
|
|
1754
|
-
parsedBody,
|
|
1755
|
-
errorCode,
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
};
|
|
1759
|
-
export const de_DescribeConnectionAliasesCommand = async (output, context) => {
|
|
742
|
+
export const de_DescribeAccountCommand = async (output, context) => {
|
|
1760
743
|
if (output.statusCode >= 300) {
|
|
1761
|
-
return
|
|
744
|
+
return de_CommandError(output, context);
|
|
1762
745
|
}
|
|
1763
746
|
const data = await parseBody(output.body, context);
|
|
1764
747
|
let contents = {};
|
|
@@ -1769,256 +752,100 @@ export const de_DescribeConnectionAliasesCommand = async (output, context) => {
|
|
|
1769
752
|
};
|
|
1770
753
|
return response;
|
|
1771
754
|
};
|
|
1772
|
-
const
|
|
1773
|
-
const parsedOutput = {
|
|
1774
|
-
...output,
|
|
1775
|
-
body: await parseErrorBody(output.body, context),
|
|
1776
|
-
};
|
|
1777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
|
-
switch (errorCode) {
|
|
1779
|
-
case "AccessDeniedException":
|
|
1780
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1781
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "InvalidParameterValuesException":
|
|
1783
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1784
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "OperationNotSupportedException":
|
|
1786
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1787
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1788
|
-
default:
|
|
1789
|
-
const parsedBody = parsedOutput.body;
|
|
1790
|
-
return throwDefaultError({
|
|
1791
|
-
output,
|
|
1792
|
-
parsedBody,
|
|
1793
|
-
errorCode,
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
};
|
|
1797
|
-
export const de_DescribeConnectionAliasPermissionsCommand = async (output, context) => {
|
|
755
|
+
export const de_DescribeAccountModificationsCommand = async (output, context) => {
|
|
1798
756
|
if (output.statusCode >= 300) {
|
|
1799
|
-
return
|
|
757
|
+
return de_CommandError(output, context);
|
|
1800
758
|
}
|
|
1801
759
|
const data = await parseBody(output.body, context);
|
|
1802
760
|
let contents = {};
|
|
1803
|
-
contents =
|
|
761
|
+
contents = de_DescribeAccountModificationsResult(data, context);
|
|
1804
762
|
const response = {
|
|
1805
763
|
$metadata: deserializeMetadata(output),
|
|
1806
764
|
...contents,
|
|
1807
765
|
};
|
|
1808
766
|
return response;
|
|
1809
767
|
};
|
|
1810
|
-
const
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context),
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "AccessDeniedException":
|
|
1818
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "InvalidParameterValuesException":
|
|
1821
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1822
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "OperationNotSupportedException":
|
|
1824
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1825
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "ResourceNotFoundException":
|
|
1827
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1829
|
-
default:
|
|
1830
|
-
const parsedBody = parsedOutput.body;
|
|
1831
|
-
return throwDefaultError({
|
|
1832
|
-
output,
|
|
1833
|
-
parsedBody,
|
|
1834
|
-
errorCode,
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1837
|
-
};
|
|
1838
|
-
export const de_DescribeImageAssociationsCommand = async (output, context) => {
|
|
768
|
+
export const de_DescribeApplicationAssociationsCommand = async (output, context) => {
|
|
1839
769
|
if (output.statusCode >= 300) {
|
|
1840
|
-
return
|
|
770
|
+
return de_CommandError(output, context);
|
|
1841
771
|
}
|
|
1842
772
|
const data = await parseBody(output.body, context);
|
|
1843
773
|
let contents = {};
|
|
1844
|
-
contents =
|
|
774
|
+
contents = de_DescribeApplicationAssociationsResult(data, context);
|
|
1845
775
|
const response = {
|
|
1846
776
|
$metadata: deserializeMetadata(output),
|
|
1847
777
|
...contents,
|
|
1848
778
|
};
|
|
1849
779
|
return response;
|
|
1850
780
|
};
|
|
1851
|
-
const
|
|
1852
|
-
const parsedOutput = {
|
|
1853
|
-
...output,
|
|
1854
|
-
body: await parseErrorBody(output.body, context),
|
|
1855
|
-
};
|
|
1856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
|
-
switch (errorCode) {
|
|
1858
|
-
case "AccessDeniedException":
|
|
1859
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1860
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "InvalidParameterValuesException":
|
|
1862
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1863
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "OperationNotSupportedException":
|
|
1865
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1866
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "ResourceNotFoundException":
|
|
1868
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1869
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1870
|
-
default:
|
|
1871
|
-
const parsedBody = parsedOutput.body;
|
|
1872
|
-
return throwDefaultError({
|
|
1873
|
-
output,
|
|
1874
|
-
parsedBody,
|
|
1875
|
-
errorCode,
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
};
|
|
1879
|
-
export const de_DescribeIpGroupsCommand = async (output, context) => {
|
|
781
|
+
export const de_DescribeApplicationsCommand = async (output, context) => {
|
|
1880
782
|
if (output.statusCode >= 300) {
|
|
1881
|
-
return
|
|
783
|
+
return de_CommandError(output, context);
|
|
1882
784
|
}
|
|
1883
785
|
const data = await parseBody(output.body, context);
|
|
1884
786
|
let contents = {};
|
|
1885
|
-
contents =
|
|
787
|
+
contents = de_DescribeApplicationsResult(data, context);
|
|
1886
788
|
const response = {
|
|
1887
789
|
$metadata: deserializeMetadata(output),
|
|
1888
790
|
...contents,
|
|
1889
791
|
};
|
|
1890
792
|
return response;
|
|
1891
793
|
};
|
|
1892
|
-
const
|
|
1893
|
-
const parsedOutput = {
|
|
1894
|
-
...output,
|
|
1895
|
-
body: await parseErrorBody(output.body, context),
|
|
1896
|
-
};
|
|
1897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
|
-
switch (errorCode) {
|
|
1899
|
-
case "AccessDeniedException":
|
|
1900
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "InvalidParameterValuesException":
|
|
1903
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1904
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1905
|
-
default:
|
|
1906
|
-
const parsedBody = parsedOutput.body;
|
|
1907
|
-
return throwDefaultError({
|
|
1908
|
-
output,
|
|
1909
|
-
parsedBody,
|
|
1910
|
-
errorCode,
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
export const de_DescribeTagsCommand = async (output, context) => {
|
|
794
|
+
export const de_DescribeBundleAssociationsCommand = async (output, context) => {
|
|
1915
795
|
if (output.statusCode >= 300) {
|
|
1916
|
-
return
|
|
796
|
+
return de_CommandError(output, context);
|
|
1917
797
|
}
|
|
1918
798
|
const data = await parseBody(output.body, context);
|
|
1919
799
|
let contents = {};
|
|
1920
|
-
contents =
|
|
800
|
+
contents = de_DescribeBundleAssociationsResult(data, context);
|
|
1921
801
|
const response = {
|
|
1922
802
|
$metadata: deserializeMetadata(output),
|
|
1923
803
|
...contents,
|
|
1924
804
|
};
|
|
1925
805
|
return response;
|
|
1926
806
|
};
|
|
1927
|
-
const
|
|
1928
|
-
const parsedOutput = {
|
|
1929
|
-
...output,
|
|
1930
|
-
body: await parseErrorBody(output.body, context),
|
|
1931
|
-
};
|
|
1932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
|
-
switch (errorCode) {
|
|
1934
|
-
case "ResourceNotFoundException":
|
|
1935
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1937
|
-
default:
|
|
1938
|
-
const parsedBody = parsedOutput.body;
|
|
1939
|
-
return throwDefaultError({
|
|
1940
|
-
output,
|
|
1941
|
-
parsedBody,
|
|
1942
|
-
errorCode,
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
};
|
|
1946
|
-
export const de_DescribeWorkspaceAssociationsCommand = async (output, context) => {
|
|
807
|
+
export const de_DescribeClientBrandingCommand = async (output, context) => {
|
|
1947
808
|
if (output.statusCode >= 300) {
|
|
1948
|
-
return
|
|
809
|
+
return de_CommandError(output, context);
|
|
1949
810
|
}
|
|
1950
811
|
const data = await parseBody(output.body, context);
|
|
1951
812
|
let contents = {};
|
|
1952
|
-
contents =
|
|
813
|
+
contents = _json(data);
|
|
1953
814
|
const response = {
|
|
1954
815
|
$metadata: deserializeMetadata(output),
|
|
1955
816
|
...contents,
|
|
1956
817
|
};
|
|
1957
818
|
return response;
|
|
1958
819
|
};
|
|
1959
|
-
const
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
body: await parseErrorBody(output.body, context),
|
|
1963
|
-
};
|
|
1964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
|
-
switch (errorCode) {
|
|
1966
|
-
case "AccessDeniedException":
|
|
1967
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1968
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "InvalidParameterValuesException":
|
|
1970
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1971
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "OperationNotSupportedException":
|
|
1973
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1974
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ResourceNotFoundException":
|
|
1976
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1978
|
-
default:
|
|
1979
|
-
const parsedBody = parsedOutput.body;
|
|
1980
|
-
return throwDefaultError({
|
|
1981
|
-
output,
|
|
1982
|
-
parsedBody,
|
|
1983
|
-
errorCode,
|
|
1984
|
-
});
|
|
820
|
+
export const de_DescribeClientPropertiesCommand = async (output, context) => {
|
|
821
|
+
if (output.statusCode >= 300) {
|
|
822
|
+
return de_CommandError(output, context);
|
|
1985
823
|
}
|
|
824
|
+
const data = await parseBody(output.body, context);
|
|
825
|
+
let contents = {};
|
|
826
|
+
contents = _json(data);
|
|
827
|
+
const response = {
|
|
828
|
+
$metadata: deserializeMetadata(output),
|
|
829
|
+
...contents,
|
|
830
|
+
};
|
|
831
|
+
return response;
|
|
1986
832
|
};
|
|
1987
|
-
export const
|
|
833
|
+
export const de_DescribeConnectClientAddInsCommand = async (output, context) => {
|
|
1988
834
|
if (output.statusCode >= 300) {
|
|
1989
|
-
return
|
|
835
|
+
return de_CommandError(output, context);
|
|
1990
836
|
}
|
|
1991
837
|
const data = await parseBody(output.body, context);
|
|
1992
838
|
let contents = {};
|
|
1993
|
-
contents =
|
|
839
|
+
contents = _json(data);
|
|
1994
840
|
const response = {
|
|
1995
841
|
$metadata: deserializeMetadata(output),
|
|
1996
842
|
...contents,
|
|
1997
843
|
};
|
|
1998
844
|
return response;
|
|
1999
845
|
};
|
|
2000
|
-
const
|
|
2001
|
-
const parsedOutput = {
|
|
2002
|
-
...output,
|
|
2003
|
-
body: await parseErrorBody(output.body, context),
|
|
2004
|
-
};
|
|
2005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
-
switch (errorCode) {
|
|
2007
|
-
case "InvalidParameterValuesException":
|
|
2008
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2009
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2010
|
-
default:
|
|
2011
|
-
const parsedBody = parsedOutput.body;
|
|
2012
|
-
return throwDefaultError({
|
|
2013
|
-
output,
|
|
2014
|
-
parsedBody,
|
|
2015
|
-
errorCode,
|
|
2016
|
-
});
|
|
2017
|
-
}
|
|
2018
|
-
};
|
|
2019
|
-
export const de_DescribeWorkspaceDirectoriesCommand = async (output, context) => {
|
|
846
|
+
export const de_DescribeConnectionAliasesCommand = async (output, context) => {
|
|
2020
847
|
if (output.statusCode >= 300) {
|
|
2021
|
-
return
|
|
848
|
+
return de_CommandError(output, context);
|
|
2022
849
|
}
|
|
2023
850
|
const data = await parseBody(output.body, context);
|
|
2024
851
|
let contents = {};
|
|
@@ -2029,28 +856,9 @@ export const de_DescribeWorkspaceDirectoriesCommand = async (output, context) =>
|
|
|
2029
856
|
};
|
|
2030
857
|
return response;
|
|
2031
858
|
};
|
|
2032
|
-
const
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context),
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "InvalidParameterValuesException":
|
|
2040
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2041
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2042
|
-
default:
|
|
2043
|
-
const parsedBody = parsedOutput.body;
|
|
2044
|
-
return throwDefaultError({
|
|
2045
|
-
output,
|
|
2046
|
-
parsedBody,
|
|
2047
|
-
errorCode,
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
};
|
|
2051
|
-
export const de_DescribeWorkspaceImagePermissionsCommand = async (output, context) => {
|
|
859
|
+
export const de_DescribeConnectionAliasPermissionsCommand = async (output, context) => {
|
|
2052
860
|
if (output.statusCode >= 300) {
|
|
2053
|
-
return
|
|
861
|
+
return de_CommandError(output, context);
|
|
2054
862
|
}
|
|
2055
863
|
const data = await parseBody(output.body, context);
|
|
2056
864
|
let contents = {};
|
|
@@ -2061,171 +869,87 @@ export const de_DescribeWorkspaceImagePermissionsCommand = async (output, contex
|
|
|
2061
869
|
};
|
|
2062
870
|
return response;
|
|
2063
871
|
};
|
|
2064
|
-
const
|
|
2065
|
-
const parsedOutput = {
|
|
2066
|
-
...output,
|
|
2067
|
-
body: await parseErrorBody(output.body, context),
|
|
2068
|
-
};
|
|
2069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2070
|
-
switch (errorCode) {
|
|
2071
|
-
case "AccessDeniedException":
|
|
2072
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2073
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "InvalidParameterValuesException":
|
|
2075
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2076
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2077
|
-
case "ResourceNotFoundException":
|
|
2078
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2079
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2080
|
-
default:
|
|
2081
|
-
const parsedBody = parsedOutput.body;
|
|
2082
|
-
return throwDefaultError({
|
|
2083
|
-
output,
|
|
2084
|
-
parsedBody,
|
|
2085
|
-
errorCode,
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
};
|
|
2089
|
-
export const de_DescribeWorkspaceImagesCommand = async (output, context) => {
|
|
872
|
+
export const de_DescribeImageAssociationsCommand = async (output, context) => {
|
|
2090
873
|
if (output.statusCode >= 300) {
|
|
2091
|
-
return
|
|
874
|
+
return de_CommandError(output, context);
|
|
2092
875
|
}
|
|
2093
876
|
const data = await parseBody(output.body, context);
|
|
2094
877
|
let contents = {};
|
|
2095
|
-
contents =
|
|
878
|
+
contents = de_DescribeImageAssociationsResult(data, context);
|
|
2096
879
|
const response = {
|
|
2097
880
|
$metadata: deserializeMetadata(output),
|
|
2098
881
|
...contents,
|
|
2099
882
|
};
|
|
2100
883
|
return response;
|
|
2101
884
|
};
|
|
2102
|
-
const
|
|
2103
|
-
const parsedOutput = {
|
|
2104
|
-
...output,
|
|
2105
|
-
body: await parseErrorBody(output.body, context),
|
|
2106
|
-
};
|
|
2107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
|
-
switch (errorCode) {
|
|
2109
|
-
case "AccessDeniedException":
|
|
2110
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2111
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2112
|
-
default:
|
|
2113
|
-
const parsedBody = parsedOutput.body;
|
|
2114
|
-
return throwDefaultError({
|
|
2115
|
-
output,
|
|
2116
|
-
parsedBody,
|
|
2117
|
-
errorCode,
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
};
|
|
2121
|
-
export const de_DescribeWorkspacesCommand = async (output, context) => {
|
|
885
|
+
export const de_DescribeIpGroupsCommand = async (output, context) => {
|
|
2122
886
|
if (output.statusCode >= 300) {
|
|
2123
|
-
return
|
|
887
|
+
return de_CommandError(output, context);
|
|
2124
888
|
}
|
|
2125
889
|
const data = await parseBody(output.body, context);
|
|
2126
890
|
let contents = {};
|
|
2127
|
-
contents =
|
|
891
|
+
contents = _json(data);
|
|
2128
892
|
const response = {
|
|
2129
893
|
$metadata: deserializeMetadata(output),
|
|
2130
894
|
...contents,
|
|
2131
895
|
};
|
|
2132
896
|
return response;
|
|
2133
897
|
};
|
|
2134
|
-
const
|
|
2135
|
-
const parsedOutput = {
|
|
2136
|
-
...output,
|
|
2137
|
-
body: await parseErrorBody(output.body, context),
|
|
2138
|
-
};
|
|
2139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
|
-
switch (errorCode) {
|
|
2141
|
-
case "InvalidParameterValuesException":
|
|
2142
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2143
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2144
|
-
case "ResourceUnavailableException":
|
|
2145
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
2146
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2147
|
-
default:
|
|
2148
|
-
const parsedBody = parsedOutput.body;
|
|
2149
|
-
return throwDefaultError({
|
|
2150
|
-
output,
|
|
2151
|
-
parsedBody,
|
|
2152
|
-
errorCode,
|
|
2153
|
-
});
|
|
2154
|
-
}
|
|
2155
|
-
};
|
|
2156
|
-
export const de_DescribeWorkspacesConnectionStatusCommand = async (output, context) => {
|
|
898
|
+
export const de_DescribeTagsCommand = async (output, context) => {
|
|
2157
899
|
if (output.statusCode >= 300) {
|
|
2158
|
-
return
|
|
900
|
+
return de_CommandError(output, context);
|
|
2159
901
|
}
|
|
2160
902
|
const data = await parseBody(output.body, context);
|
|
2161
903
|
let contents = {};
|
|
2162
|
-
contents =
|
|
904
|
+
contents = _json(data);
|
|
2163
905
|
const response = {
|
|
2164
906
|
$metadata: deserializeMetadata(output),
|
|
2165
907
|
...contents,
|
|
2166
908
|
};
|
|
2167
909
|
return response;
|
|
2168
910
|
};
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
body: await parseErrorBody(output.body, context),
|
|
2173
|
-
};
|
|
2174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
-
switch (errorCode) {
|
|
2176
|
-
case "InvalidParameterValuesException":
|
|
2177
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2178
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2179
|
-
default:
|
|
2180
|
-
const parsedBody = parsedOutput.body;
|
|
2181
|
-
return throwDefaultError({
|
|
2182
|
-
output,
|
|
2183
|
-
parsedBody,
|
|
2184
|
-
errorCode,
|
|
2185
|
-
});
|
|
911
|
+
export const de_DescribeWorkspaceAssociationsCommand = async (output, context) => {
|
|
912
|
+
if (output.statusCode >= 300) {
|
|
913
|
+
return de_CommandError(output, context);
|
|
2186
914
|
}
|
|
915
|
+
const data = await parseBody(output.body, context);
|
|
916
|
+
let contents = {};
|
|
917
|
+
contents = de_DescribeWorkspaceAssociationsResult(data, context);
|
|
918
|
+
const response = {
|
|
919
|
+
$metadata: deserializeMetadata(output),
|
|
920
|
+
...contents,
|
|
921
|
+
};
|
|
922
|
+
return response;
|
|
2187
923
|
};
|
|
2188
|
-
export const
|
|
924
|
+
export const de_DescribeWorkspaceBundlesCommand = async (output, context) => {
|
|
2189
925
|
if (output.statusCode >= 300) {
|
|
2190
|
-
return
|
|
926
|
+
return de_CommandError(output, context);
|
|
2191
927
|
}
|
|
2192
928
|
const data = await parseBody(output.body, context);
|
|
2193
929
|
let contents = {};
|
|
2194
|
-
contents =
|
|
930
|
+
contents = de_DescribeWorkspaceBundlesResult(data, context);
|
|
2195
931
|
const response = {
|
|
2196
932
|
$metadata: deserializeMetadata(output),
|
|
2197
933
|
...contents,
|
|
2198
934
|
};
|
|
2199
935
|
return response;
|
|
2200
936
|
};
|
|
2201
|
-
const
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
body: await parseErrorBody(output.body, context),
|
|
2205
|
-
};
|
|
2206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2207
|
-
switch (errorCode) {
|
|
2208
|
-
case "AccessDeniedException":
|
|
2209
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2210
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "InvalidParameterValuesException":
|
|
2212
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2213
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "ResourceNotFoundException":
|
|
2215
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2217
|
-
default:
|
|
2218
|
-
const parsedBody = parsedOutput.body;
|
|
2219
|
-
return throwDefaultError({
|
|
2220
|
-
output,
|
|
2221
|
-
parsedBody,
|
|
2222
|
-
errorCode,
|
|
2223
|
-
});
|
|
937
|
+
export const de_DescribeWorkspaceDirectoriesCommand = async (output, context) => {
|
|
938
|
+
if (output.statusCode >= 300) {
|
|
939
|
+
return de_CommandError(output, context);
|
|
2224
940
|
}
|
|
941
|
+
const data = await parseBody(output.body, context);
|
|
942
|
+
let contents = {};
|
|
943
|
+
contents = _json(data);
|
|
944
|
+
const response = {
|
|
945
|
+
$metadata: deserializeMetadata(output),
|
|
946
|
+
...contents,
|
|
947
|
+
};
|
|
948
|
+
return response;
|
|
2225
949
|
};
|
|
2226
|
-
export const
|
|
950
|
+
export const de_DescribeWorkspaceImagePermissionsCommand = async (output, context) => {
|
|
2227
951
|
if (output.statusCode >= 300) {
|
|
2228
|
-
return
|
|
952
|
+
return de_CommandError(output, context);
|
|
2229
953
|
}
|
|
2230
954
|
const data = await parseBody(output.body, context);
|
|
2231
955
|
let contents = {};
|
|
@@ -2236,125 +960,61 @@ export const de_DisassociateConnectionAliasCommand = async (output, context) =>
|
|
|
2236
960
|
};
|
|
2237
961
|
return response;
|
|
2238
962
|
};
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
body: await parseErrorBody(output.body, context),
|
|
2243
|
-
};
|
|
2244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
|
-
switch (errorCode) {
|
|
2246
|
-
case "AccessDeniedException":
|
|
2247
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2248
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "InvalidParameterValuesException":
|
|
2250
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2251
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "InvalidResourceStateException":
|
|
2253
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2254
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2255
|
-
case "OperationNotSupportedException":
|
|
2256
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2257
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "ResourceNotFoundException":
|
|
2259
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2260
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2261
|
-
default:
|
|
2262
|
-
const parsedBody = parsedOutput.body;
|
|
2263
|
-
return throwDefaultError({
|
|
2264
|
-
output,
|
|
2265
|
-
parsedBody,
|
|
2266
|
-
errorCode,
|
|
2267
|
-
});
|
|
963
|
+
export const de_DescribeWorkspaceImagesCommand = async (output, context) => {
|
|
964
|
+
if (output.statusCode >= 300) {
|
|
965
|
+
return de_CommandError(output, context);
|
|
2268
966
|
}
|
|
967
|
+
const data = await parseBody(output.body, context);
|
|
968
|
+
let contents = {};
|
|
969
|
+
contents = de_DescribeWorkspaceImagesResult(data, context);
|
|
970
|
+
const response = {
|
|
971
|
+
$metadata: deserializeMetadata(output),
|
|
972
|
+
...contents,
|
|
973
|
+
};
|
|
974
|
+
return response;
|
|
2269
975
|
};
|
|
2270
|
-
export const
|
|
976
|
+
export const de_DescribeWorkspacesCommand = async (output, context) => {
|
|
2271
977
|
if (output.statusCode >= 300) {
|
|
2272
|
-
return
|
|
978
|
+
return de_CommandError(output, context);
|
|
2273
979
|
}
|
|
2274
980
|
const data = await parseBody(output.body, context);
|
|
2275
981
|
let contents = {};
|
|
2276
|
-
contents =
|
|
982
|
+
contents = de_DescribeWorkspacesResult(data, context);
|
|
2277
983
|
const response = {
|
|
2278
984
|
$metadata: deserializeMetadata(output),
|
|
2279
985
|
...contents,
|
|
2280
986
|
};
|
|
2281
987
|
return response;
|
|
2282
988
|
};
|
|
2283
|
-
const
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
body: await parseErrorBody(output.body, context),
|
|
2287
|
-
};
|
|
2288
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2289
|
-
switch (errorCode) {
|
|
2290
|
-
case "AccessDeniedException":
|
|
2291
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2292
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2293
|
-
case "InvalidParameterValuesException":
|
|
2294
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2295
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2296
|
-
case "InvalidResourceStateException":
|
|
2297
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2298
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ResourceNotFoundException":
|
|
2300
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2301
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2302
|
-
default:
|
|
2303
|
-
const parsedBody = parsedOutput.body;
|
|
2304
|
-
return throwDefaultError({
|
|
2305
|
-
output,
|
|
2306
|
-
parsedBody,
|
|
2307
|
-
errorCode,
|
|
2308
|
-
});
|
|
989
|
+
export const de_DescribeWorkspacesConnectionStatusCommand = async (output, context) => {
|
|
990
|
+
if (output.statusCode >= 300) {
|
|
991
|
+
return de_CommandError(output, context);
|
|
2309
992
|
}
|
|
993
|
+
const data = await parseBody(output.body, context);
|
|
994
|
+
let contents = {};
|
|
995
|
+
contents = de_DescribeWorkspacesConnectionStatusResult(data, context);
|
|
996
|
+
const response = {
|
|
997
|
+
$metadata: deserializeMetadata(output),
|
|
998
|
+
...contents,
|
|
999
|
+
};
|
|
1000
|
+
return response;
|
|
2310
1001
|
};
|
|
2311
|
-
export const
|
|
1002
|
+
export const de_DescribeWorkspaceSnapshotsCommand = async (output, context) => {
|
|
2312
1003
|
if (output.statusCode >= 300) {
|
|
2313
|
-
return
|
|
1004
|
+
return de_CommandError(output, context);
|
|
2314
1005
|
}
|
|
2315
1006
|
const data = await parseBody(output.body, context);
|
|
2316
1007
|
let contents = {};
|
|
2317
|
-
contents =
|
|
1008
|
+
contents = de_DescribeWorkspaceSnapshotsResult(data, context);
|
|
2318
1009
|
const response = {
|
|
2319
1010
|
$metadata: deserializeMetadata(output),
|
|
2320
1011
|
...contents,
|
|
2321
1012
|
};
|
|
2322
1013
|
return response;
|
|
2323
1014
|
};
|
|
2324
|
-
const
|
|
2325
|
-
const parsedOutput = {
|
|
2326
|
-
...output,
|
|
2327
|
-
body: await parseErrorBody(output.body, context),
|
|
2328
|
-
};
|
|
2329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
|
-
switch (errorCode) {
|
|
2331
|
-
case "AccessDeniedException":
|
|
2332
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2333
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "InvalidParameterValuesException":
|
|
2335
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2336
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "OperationNotSupportedException":
|
|
2338
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2339
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "ResourceInUseException":
|
|
2341
|
-
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
2342
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "ResourceNotFoundException":
|
|
2344
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2346
|
-
default:
|
|
2347
|
-
const parsedBody = parsedOutput.body;
|
|
2348
|
-
return throwDefaultError({
|
|
2349
|
-
output,
|
|
2350
|
-
parsedBody,
|
|
2351
|
-
errorCode,
|
|
2352
|
-
});
|
|
2353
|
-
}
|
|
2354
|
-
};
|
|
2355
|
-
export const de_ImportClientBrandingCommand = async (output, context) => {
|
|
1015
|
+
export const de_DisassociateConnectionAliasCommand = async (output, context) => {
|
|
2356
1016
|
if (output.statusCode >= 300) {
|
|
2357
|
-
return
|
|
1017
|
+
return de_CommandError(output, context);
|
|
2358
1018
|
}
|
|
2359
1019
|
const data = await parseBody(output.body, context);
|
|
2360
1020
|
let contents = {};
|
|
@@ -2365,37 +1025,9 @@ export const de_ImportClientBrandingCommand = async (output, context) => {
|
|
|
2365
1025
|
};
|
|
2366
1026
|
return response;
|
|
2367
1027
|
};
|
|
2368
|
-
const
|
|
2369
|
-
const parsedOutput = {
|
|
2370
|
-
...output,
|
|
2371
|
-
body: await parseErrorBody(output.body, context),
|
|
2372
|
-
};
|
|
2373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
|
-
switch (errorCode) {
|
|
2375
|
-
case "AccessDeniedException":
|
|
2376
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2377
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "InvalidParameterValuesException":
|
|
2379
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2380
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "ResourceLimitExceededException":
|
|
2382
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
2383
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "ResourceNotFoundException":
|
|
2385
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2386
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2387
|
-
default:
|
|
2388
|
-
const parsedBody = parsedOutput.body;
|
|
2389
|
-
return throwDefaultError({
|
|
2390
|
-
output,
|
|
2391
|
-
parsedBody,
|
|
2392
|
-
errorCode,
|
|
2393
|
-
});
|
|
2394
|
-
}
|
|
2395
|
-
};
|
|
2396
|
-
export const de_ImportWorkspaceImageCommand = async (output, context) => {
|
|
1028
|
+
export const de_DisassociateIpGroupsCommand = async (output, context) => {
|
|
2397
1029
|
if (output.statusCode >= 300) {
|
|
2398
|
-
return
|
|
1030
|
+
return de_CommandError(output, context);
|
|
2399
1031
|
}
|
|
2400
1032
|
const data = await parseBody(output.body, context);
|
|
2401
1033
|
let contents = {};
|
|
@@ -2406,78 +1038,22 @@ export const de_ImportWorkspaceImageCommand = async (output, context) => {
|
|
|
2406
1038
|
};
|
|
2407
1039
|
return response;
|
|
2408
1040
|
};
|
|
2409
|
-
const
|
|
2410
|
-
const parsedOutput = {
|
|
2411
|
-
...output,
|
|
2412
|
-
body: await parseErrorBody(output.body, context),
|
|
2413
|
-
};
|
|
2414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
|
-
switch (errorCode) {
|
|
2416
|
-
case "AccessDeniedException":
|
|
2417
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2418
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "InvalidParameterValuesException":
|
|
2420
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2421
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "OperationNotSupportedException":
|
|
2423
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2424
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ResourceAlreadyExistsException":
|
|
2426
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
2427
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "ResourceLimitExceededException":
|
|
2429
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
2430
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "ResourceNotFoundException":
|
|
2432
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2433
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2434
|
-
default:
|
|
2435
|
-
const parsedBody = parsedOutput.body;
|
|
2436
|
-
return throwDefaultError({
|
|
2437
|
-
output,
|
|
2438
|
-
parsedBody,
|
|
2439
|
-
errorCode,
|
|
2440
|
-
});
|
|
2441
|
-
}
|
|
2442
|
-
};
|
|
2443
|
-
export const de_ListAvailableManagementCidrRangesCommand = async (output, context) => {
|
|
1041
|
+
export const de_DisassociateWorkspaceApplicationCommand = async (output, context) => {
|
|
2444
1042
|
if (output.statusCode >= 300) {
|
|
2445
|
-
return
|
|
1043
|
+
return de_CommandError(output, context);
|
|
2446
1044
|
}
|
|
2447
1045
|
const data = await parseBody(output.body, context);
|
|
2448
1046
|
let contents = {};
|
|
2449
|
-
contents =
|
|
1047
|
+
contents = de_DisassociateWorkspaceApplicationResult(data, context);
|
|
2450
1048
|
const response = {
|
|
2451
1049
|
$metadata: deserializeMetadata(output),
|
|
2452
1050
|
...contents,
|
|
2453
1051
|
};
|
|
2454
1052
|
return response;
|
|
2455
1053
|
};
|
|
2456
|
-
const
|
|
2457
|
-
const parsedOutput = {
|
|
2458
|
-
...output,
|
|
2459
|
-
body: await parseErrorBody(output.body, context),
|
|
2460
|
-
};
|
|
2461
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
|
-
switch (errorCode) {
|
|
2463
|
-
case "AccessDeniedException":
|
|
2464
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2465
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2466
|
-
case "InvalidParameterValuesException":
|
|
2467
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2468
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2469
|
-
default:
|
|
2470
|
-
const parsedBody = parsedOutput.body;
|
|
2471
|
-
return throwDefaultError({
|
|
2472
|
-
output,
|
|
2473
|
-
parsedBody,
|
|
2474
|
-
errorCode,
|
|
2475
|
-
});
|
|
2476
|
-
}
|
|
2477
|
-
};
|
|
2478
|
-
export const de_MigrateWorkspaceCommand = async (output, context) => {
|
|
1054
|
+
export const de_ImportClientBrandingCommand = async (output, context) => {
|
|
2479
1055
|
if (output.statusCode >= 300) {
|
|
2480
|
-
return
|
|
1056
|
+
return de_CommandError(output, context);
|
|
2481
1057
|
}
|
|
2482
1058
|
const data = await parseBody(output.body, context);
|
|
2483
1059
|
let contents = {};
|
|
@@ -2488,43 +1064,9 @@ export const de_MigrateWorkspaceCommand = async (output, context) => {
|
|
|
2488
1064
|
};
|
|
2489
1065
|
return response;
|
|
2490
1066
|
};
|
|
2491
|
-
const
|
|
2492
|
-
const parsedOutput = {
|
|
2493
|
-
...output,
|
|
2494
|
-
body: await parseErrorBody(output.body, context),
|
|
2495
|
-
};
|
|
2496
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2497
|
-
switch (errorCode) {
|
|
2498
|
-
case "AccessDeniedException":
|
|
2499
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2500
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "InvalidParameterValuesException":
|
|
2502
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2503
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "OperationInProgressException":
|
|
2505
|
-
case "com.amazonaws.workspaces#OperationInProgressException":
|
|
2506
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "OperationNotSupportedException":
|
|
2508
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2509
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "ResourceNotFoundException":
|
|
2511
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2512
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "ResourceUnavailableException":
|
|
2514
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
2515
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2516
|
-
default:
|
|
2517
|
-
const parsedBody = parsedOutput.body;
|
|
2518
|
-
return throwDefaultError({
|
|
2519
|
-
output,
|
|
2520
|
-
parsedBody,
|
|
2521
|
-
errorCode,
|
|
2522
|
-
});
|
|
2523
|
-
}
|
|
2524
|
-
};
|
|
2525
|
-
export const de_ModifyAccountCommand = async (output, context) => {
|
|
1067
|
+
export const de_ImportWorkspaceImageCommand = async (output, context) => {
|
|
2526
1068
|
if (output.statusCode >= 300) {
|
|
2527
|
-
return
|
|
1069
|
+
return de_CommandError(output, context);
|
|
2528
1070
|
}
|
|
2529
1071
|
const data = await parseBody(output.body, context);
|
|
2530
1072
|
let contents = {};
|
|
@@ -2535,40 +1077,9 @@ export const de_ModifyAccountCommand = async (output, context) => {
|
|
|
2535
1077
|
};
|
|
2536
1078
|
return response;
|
|
2537
1079
|
};
|
|
2538
|
-
const
|
|
2539
|
-
const parsedOutput = {
|
|
2540
|
-
...output,
|
|
2541
|
-
body: await parseErrorBody(output.body, context),
|
|
2542
|
-
};
|
|
2543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
|
-
switch (errorCode) {
|
|
2545
|
-
case "AccessDeniedException":
|
|
2546
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2547
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "InvalidParameterValuesException":
|
|
2549
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2550
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "InvalidResourceStateException":
|
|
2552
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2553
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "ResourceNotFoundException":
|
|
2555
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "ResourceUnavailableException":
|
|
2558
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
2559
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2560
|
-
default:
|
|
2561
|
-
const parsedBody = parsedOutput.body;
|
|
2562
|
-
return throwDefaultError({
|
|
2563
|
-
output,
|
|
2564
|
-
parsedBody,
|
|
2565
|
-
errorCode,
|
|
2566
|
-
});
|
|
2567
|
-
}
|
|
2568
|
-
};
|
|
2569
|
-
export const de_ModifyCertificateBasedAuthPropertiesCommand = async (output, context) => {
|
|
1080
|
+
export const de_ListAvailableManagementCidrRangesCommand = async (output, context) => {
|
|
2570
1081
|
if (output.statusCode >= 300) {
|
|
2571
|
-
return
|
|
1082
|
+
return de_CommandError(output, context);
|
|
2572
1083
|
}
|
|
2573
1084
|
const data = await parseBody(output.body, context);
|
|
2574
1085
|
let contents = {};
|
|
@@ -2579,37 +1090,9 @@ export const de_ModifyCertificateBasedAuthPropertiesCommand = async (output, con
|
|
|
2579
1090
|
};
|
|
2580
1091
|
return response;
|
|
2581
1092
|
};
|
|
2582
|
-
const
|
|
2583
|
-
const parsedOutput = {
|
|
2584
|
-
...output,
|
|
2585
|
-
body: await parseErrorBody(output.body, context),
|
|
2586
|
-
};
|
|
2587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2588
|
-
switch (errorCode) {
|
|
2589
|
-
case "AccessDeniedException":
|
|
2590
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2592
|
-
case "InvalidParameterValuesException":
|
|
2593
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2594
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "OperationNotSupportedException":
|
|
2596
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2597
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2598
|
-
case "ResourceNotFoundException":
|
|
2599
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2601
|
-
default:
|
|
2602
|
-
const parsedBody = parsedOutput.body;
|
|
2603
|
-
return throwDefaultError({
|
|
2604
|
-
output,
|
|
2605
|
-
parsedBody,
|
|
2606
|
-
errorCode,
|
|
2607
|
-
});
|
|
2608
|
-
}
|
|
2609
|
-
};
|
|
2610
|
-
export const de_ModifyClientPropertiesCommand = async (output, context) => {
|
|
1093
|
+
export const de_MigrateWorkspaceCommand = async (output, context) => {
|
|
2611
1094
|
if (output.statusCode >= 300) {
|
|
2612
|
-
return
|
|
1095
|
+
return de_CommandError(output, context);
|
|
2613
1096
|
}
|
|
2614
1097
|
const data = await parseBody(output.body, context);
|
|
2615
1098
|
let contents = {};
|
|
@@ -2620,34 +1103,22 @@ export const de_ModifyClientPropertiesCommand = async (output, context) => {
|
|
|
2620
1103
|
};
|
|
2621
1104
|
return response;
|
|
2622
1105
|
};
|
|
2623
|
-
const
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
body: await parseErrorBody(output.body, context),
|
|
2627
|
-
};
|
|
2628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
|
-
switch (errorCode) {
|
|
2630
|
-
case "AccessDeniedException":
|
|
2631
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2632
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "InvalidParameterValuesException":
|
|
2634
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2635
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "ResourceNotFoundException":
|
|
2637
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2639
|
-
default:
|
|
2640
|
-
const parsedBody = parsedOutput.body;
|
|
2641
|
-
return throwDefaultError({
|
|
2642
|
-
output,
|
|
2643
|
-
parsedBody,
|
|
2644
|
-
errorCode,
|
|
2645
|
-
});
|
|
1106
|
+
export const de_ModifyAccountCommand = async (output, context) => {
|
|
1107
|
+
if (output.statusCode >= 300) {
|
|
1108
|
+
return de_CommandError(output, context);
|
|
2646
1109
|
}
|
|
1110
|
+
const data = await parseBody(output.body, context);
|
|
1111
|
+
let contents = {};
|
|
1112
|
+
contents = _json(data);
|
|
1113
|
+
const response = {
|
|
1114
|
+
$metadata: deserializeMetadata(output),
|
|
1115
|
+
...contents,
|
|
1116
|
+
};
|
|
1117
|
+
return response;
|
|
2647
1118
|
};
|
|
2648
|
-
export const
|
|
1119
|
+
export const de_ModifyCertificateBasedAuthPropertiesCommand = async (output, context) => {
|
|
2649
1120
|
if (output.statusCode >= 300) {
|
|
2650
|
-
return
|
|
1121
|
+
return de_CommandError(output, context);
|
|
2651
1122
|
}
|
|
2652
1123
|
const data = await parseBody(output.body, context);
|
|
2653
1124
|
let contents = {};
|
|
@@ -2658,37 +1129,9 @@ export const de_ModifySamlPropertiesCommand = async (output, context) => {
|
|
|
2658
1129
|
};
|
|
2659
1130
|
return response;
|
|
2660
1131
|
};
|
|
2661
|
-
const
|
|
2662
|
-
const parsedOutput = {
|
|
2663
|
-
...output,
|
|
2664
|
-
body: await parseErrorBody(output.body, context),
|
|
2665
|
-
};
|
|
2666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
|
-
switch (errorCode) {
|
|
2668
|
-
case "AccessDeniedException":
|
|
2669
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2670
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "InvalidParameterValuesException":
|
|
2672
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2673
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "OperationNotSupportedException":
|
|
2675
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2676
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ResourceNotFoundException":
|
|
2678
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2679
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode,
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
};
|
|
2689
|
-
export const de_ModifySelfservicePermissionsCommand = async (output, context) => {
|
|
1132
|
+
export const de_ModifyClientPropertiesCommand = async (output, context) => {
|
|
2690
1133
|
if (output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
1134
|
+
return de_CommandError(output, context);
|
|
2692
1135
|
}
|
|
2693
1136
|
const data = await parseBody(output.body, context);
|
|
2694
1137
|
let contents = {};
|
|
@@ -2699,34 +1142,9 @@ export const de_ModifySelfservicePermissionsCommand = async (output, context) =>
|
|
|
2699
1142
|
};
|
|
2700
1143
|
return response;
|
|
2701
1144
|
};
|
|
2702
|
-
const
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context),
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "AccessDeniedException":
|
|
2710
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2711
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "InvalidParameterValuesException":
|
|
2713
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2714
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ResourceNotFoundException":
|
|
2716
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2718
|
-
default:
|
|
2719
|
-
const parsedBody = parsedOutput.body;
|
|
2720
|
-
return throwDefaultError({
|
|
2721
|
-
output,
|
|
2722
|
-
parsedBody,
|
|
2723
|
-
errorCode,
|
|
2724
|
-
});
|
|
2725
|
-
}
|
|
2726
|
-
};
|
|
2727
|
-
export const de_ModifyWorkspaceAccessPropertiesCommand = async (output, context) => {
|
|
1145
|
+
export const de_ModifySamlPropertiesCommand = async (output, context) => {
|
|
2728
1146
|
if (output.statusCode >= 300) {
|
|
2729
|
-
return
|
|
1147
|
+
return de_CommandError(output, context);
|
|
2730
1148
|
}
|
|
2731
1149
|
const data = await parseBody(output.body, context);
|
|
2732
1150
|
let contents = {};
|
|
@@ -2737,31 +1155,9 @@ export const de_ModifyWorkspaceAccessPropertiesCommand = async (output, context)
|
|
|
2737
1155
|
};
|
|
2738
1156
|
return response;
|
|
2739
1157
|
};
|
|
2740
|
-
const
|
|
2741
|
-
const parsedOutput = {
|
|
2742
|
-
...output,
|
|
2743
|
-
body: await parseErrorBody(output.body, context),
|
|
2744
|
-
};
|
|
2745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
|
-
switch (errorCode) {
|
|
2747
|
-
case "AccessDeniedException":
|
|
2748
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2750
|
-
case "ResourceNotFoundException":
|
|
2751
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2752
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2753
|
-
default:
|
|
2754
|
-
const parsedBody = parsedOutput.body;
|
|
2755
|
-
return throwDefaultError({
|
|
2756
|
-
output,
|
|
2757
|
-
parsedBody,
|
|
2758
|
-
errorCode,
|
|
2759
|
-
});
|
|
2760
|
-
}
|
|
2761
|
-
};
|
|
2762
|
-
export const de_ModifyWorkspaceCreationPropertiesCommand = async (output, context) => {
|
|
1158
|
+
export const de_ModifySelfservicePermissionsCommand = async (output, context) => {
|
|
2763
1159
|
if (output.statusCode >= 300) {
|
|
2764
|
-
return
|
|
1160
|
+
return de_CommandError(output, context);
|
|
2765
1161
|
}
|
|
2766
1162
|
const data = await parseBody(output.body, context);
|
|
2767
1163
|
let contents = {};
|
|
@@ -2772,37 +1168,9 @@ export const de_ModifyWorkspaceCreationPropertiesCommand = async (output, contex
|
|
|
2772
1168
|
};
|
|
2773
1169
|
return response;
|
|
2774
1170
|
};
|
|
2775
|
-
const
|
|
2776
|
-
const parsedOutput = {
|
|
2777
|
-
...output,
|
|
2778
|
-
body: await parseErrorBody(output.body, context),
|
|
2779
|
-
};
|
|
2780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2781
|
-
switch (errorCode) {
|
|
2782
|
-
case "AccessDeniedException":
|
|
2783
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2784
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2785
|
-
case "InvalidParameterValuesException":
|
|
2786
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2787
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "OperationNotSupportedException":
|
|
2789
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2790
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "ResourceNotFoundException":
|
|
2792
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2793
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2794
|
-
default:
|
|
2795
|
-
const parsedBody = parsedOutput.body;
|
|
2796
|
-
return throwDefaultError({
|
|
2797
|
-
output,
|
|
2798
|
-
parsedBody,
|
|
2799
|
-
errorCode,
|
|
2800
|
-
});
|
|
2801
|
-
}
|
|
2802
|
-
};
|
|
2803
|
-
export const de_ModifyWorkspacePropertiesCommand = async (output, context) => {
|
|
1171
|
+
export const de_ModifyWorkspaceAccessPropertiesCommand = async (output, context) => {
|
|
2804
1172
|
if (output.statusCode >= 300) {
|
|
2805
|
-
return
|
|
1173
|
+
return de_CommandError(output, context);
|
|
2806
1174
|
}
|
|
2807
1175
|
const data = await parseBody(output.body, context);
|
|
2808
1176
|
let contents = {};
|
|
@@ -2813,46 +1181,9 @@ export const de_ModifyWorkspacePropertiesCommand = async (output, context) => {
|
|
|
2813
1181
|
};
|
|
2814
1182
|
return response;
|
|
2815
1183
|
};
|
|
2816
|
-
const
|
|
2817
|
-
const parsedOutput = {
|
|
2818
|
-
...output,
|
|
2819
|
-
body: await parseErrorBody(output.body, context),
|
|
2820
|
-
};
|
|
2821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2822
|
-
switch (errorCode) {
|
|
2823
|
-
case "AccessDeniedException":
|
|
2824
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2825
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2826
|
-
case "InvalidParameterValuesException":
|
|
2827
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2828
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2829
|
-
case "InvalidResourceStateException":
|
|
2830
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2831
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2832
|
-
case "OperationInProgressException":
|
|
2833
|
-
case "com.amazonaws.workspaces#OperationInProgressException":
|
|
2834
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "ResourceNotFoundException":
|
|
2836
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "ResourceUnavailableException":
|
|
2839
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
2840
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "UnsupportedWorkspaceConfigurationException":
|
|
2842
|
-
case "com.amazonaws.workspaces#UnsupportedWorkspaceConfigurationException":
|
|
2843
|
-
throw await de_UnsupportedWorkspaceConfigurationExceptionRes(parsedOutput, context);
|
|
2844
|
-
default:
|
|
2845
|
-
const parsedBody = parsedOutput.body;
|
|
2846
|
-
return throwDefaultError({
|
|
2847
|
-
output,
|
|
2848
|
-
parsedBody,
|
|
2849
|
-
errorCode,
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
};
|
|
2853
|
-
export const de_ModifyWorkspaceStateCommand = async (output, context) => {
|
|
1184
|
+
export const de_ModifyWorkspaceCreationPropertiesCommand = async (output, context) => {
|
|
2854
1185
|
if (output.statusCode >= 300) {
|
|
2855
|
-
return
|
|
1186
|
+
return de_CommandError(output, context);
|
|
2856
1187
|
}
|
|
2857
1188
|
const data = await parseBody(output.body, context);
|
|
2858
1189
|
let contents = {};
|
|
@@ -2863,37 +1194,9 @@ export const de_ModifyWorkspaceStateCommand = async (output, context) => {
|
|
|
2863
1194
|
};
|
|
2864
1195
|
return response;
|
|
2865
1196
|
};
|
|
2866
|
-
const
|
|
2867
|
-
const parsedOutput = {
|
|
2868
|
-
...output,
|
|
2869
|
-
body: await parseErrorBody(output.body, context),
|
|
2870
|
-
};
|
|
2871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2872
|
-
switch (errorCode) {
|
|
2873
|
-
case "InvalidParameterValuesException":
|
|
2874
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2875
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2876
|
-
case "InvalidResourceStateException":
|
|
2877
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2878
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2879
|
-
case "OperationNotSupportedException":
|
|
2880
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2881
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2882
|
-
case "ResourceNotFoundException":
|
|
2883
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2885
|
-
default:
|
|
2886
|
-
const parsedBody = parsedOutput.body;
|
|
2887
|
-
return throwDefaultError({
|
|
2888
|
-
output,
|
|
2889
|
-
parsedBody,
|
|
2890
|
-
errorCode,
|
|
2891
|
-
});
|
|
2892
|
-
}
|
|
2893
|
-
};
|
|
2894
|
-
export const de_RebootWorkspacesCommand = async (output, context) => {
|
|
1197
|
+
export const de_ModifyWorkspacePropertiesCommand = async (output, context) => {
|
|
2895
1198
|
if (output.statusCode >= 300) {
|
|
2896
|
-
return
|
|
1199
|
+
return de_CommandError(output, context);
|
|
2897
1200
|
}
|
|
2898
1201
|
const data = await parseBody(output.body, context);
|
|
2899
1202
|
let contents = {};
|
|
@@ -2904,28 +1207,9 @@ export const de_RebootWorkspacesCommand = async (output, context) => {
|
|
|
2904
1207
|
};
|
|
2905
1208
|
return response;
|
|
2906
1209
|
};
|
|
2907
|
-
const
|
|
2908
|
-
const parsedOutput = {
|
|
2909
|
-
...output,
|
|
2910
|
-
body: await parseErrorBody(output.body, context),
|
|
2911
|
-
};
|
|
2912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2913
|
-
switch (errorCode) {
|
|
2914
|
-
case "OperationNotSupportedException":
|
|
2915
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2916
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2917
|
-
default:
|
|
2918
|
-
const parsedBody = parsedOutput.body;
|
|
2919
|
-
return throwDefaultError({
|
|
2920
|
-
output,
|
|
2921
|
-
parsedBody,
|
|
2922
|
-
errorCode,
|
|
2923
|
-
});
|
|
2924
|
-
}
|
|
2925
|
-
};
|
|
2926
|
-
export const de_RebuildWorkspacesCommand = async (output, context) => {
|
|
1210
|
+
export const de_ModifyWorkspaceStateCommand = async (output, context) => {
|
|
2927
1211
|
if (output.statusCode >= 300) {
|
|
2928
|
-
return
|
|
1212
|
+
return de_CommandError(output, context);
|
|
2929
1213
|
}
|
|
2930
1214
|
const data = await parseBody(output.body, context);
|
|
2931
1215
|
let contents = {};
|
|
@@ -2936,28 +1220,9 @@ export const de_RebuildWorkspacesCommand = async (output, context) => {
|
|
|
2936
1220
|
};
|
|
2937
1221
|
return response;
|
|
2938
1222
|
};
|
|
2939
|
-
const
|
|
2940
|
-
const parsedOutput = {
|
|
2941
|
-
...output,
|
|
2942
|
-
body: await parseErrorBody(output.body, context),
|
|
2943
|
-
};
|
|
2944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2945
|
-
switch (errorCode) {
|
|
2946
|
-
case "OperationNotSupportedException":
|
|
2947
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2948
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2949
|
-
default:
|
|
2950
|
-
const parsedBody = parsedOutput.body;
|
|
2951
|
-
return throwDefaultError({
|
|
2952
|
-
output,
|
|
2953
|
-
parsedBody,
|
|
2954
|
-
errorCode,
|
|
2955
|
-
});
|
|
2956
|
-
}
|
|
2957
|
-
};
|
|
2958
|
-
export const de_RegisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
1223
|
+
export const de_RebootWorkspacesCommand = async (output, context) => {
|
|
2959
1224
|
if (output.statusCode >= 300) {
|
|
2960
|
-
return
|
|
1225
|
+
return de_CommandError(output, context);
|
|
2961
1226
|
}
|
|
2962
1227
|
const data = await parseBody(output.body, context);
|
|
2963
1228
|
let contents = {};
|
|
@@ -2968,49 +1233,22 @@ export const de_RegisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
|
2968
1233
|
};
|
|
2969
1234
|
return response;
|
|
2970
1235
|
};
|
|
2971
|
-
const
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
body: await parseErrorBody(output.body, context),
|
|
2975
|
-
};
|
|
2976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2977
|
-
switch (errorCode) {
|
|
2978
|
-
case "AccessDeniedException":
|
|
2979
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2980
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "InvalidParameterValuesException":
|
|
2982
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2983
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "InvalidResourceStateException":
|
|
2985
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2986
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "OperationNotSupportedException":
|
|
2988
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2989
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "ResourceLimitExceededException":
|
|
2991
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
2992
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "ResourceNotFoundException":
|
|
2994
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2995
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "UnsupportedNetworkConfigurationException":
|
|
2997
|
-
case "com.amazonaws.workspaces#UnsupportedNetworkConfigurationException":
|
|
2998
|
-
throw await de_UnsupportedNetworkConfigurationExceptionRes(parsedOutput, context);
|
|
2999
|
-
case "WorkspacesDefaultRoleNotFoundException":
|
|
3000
|
-
case "com.amazonaws.workspaces#WorkspacesDefaultRoleNotFoundException":
|
|
3001
|
-
throw await de_WorkspacesDefaultRoleNotFoundExceptionRes(parsedOutput, context);
|
|
3002
|
-
default:
|
|
3003
|
-
const parsedBody = parsedOutput.body;
|
|
3004
|
-
return throwDefaultError({
|
|
3005
|
-
output,
|
|
3006
|
-
parsedBody,
|
|
3007
|
-
errorCode,
|
|
3008
|
-
});
|
|
1236
|
+
export const de_RebuildWorkspacesCommand = async (output, context) => {
|
|
1237
|
+
if (output.statusCode >= 300) {
|
|
1238
|
+
return de_CommandError(output, context);
|
|
3009
1239
|
}
|
|
1240
|
+
const data = await parseBody(output.body, context);
|
|
1241
|
+
let contents = {};
|
|
1242
|
+
contents = _json(data);
|
|
1243
|
+
const response = {
|
|
1244
|
+
$metadata: deserializeMetadata(output),
|
|
1245
|
+
...contents,
|
|
1246
|
+
};
|
|
1247
|
+
return response;
|
|
3010
1248
|
};
|
|
3011
|
-
export const
|
|
1249
|
+
export const de_RegisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
3012
1250
|
if (output.statusCode >= 300) {
|
|
3013
|
-
return
|
|
1251
|
+
return de_CommandError(output, context);
|
|
3014
1252
|
}
|
|
3015
1253
|
const data = await parseBody(output.body, context);
|
|
3016
1254
|
let contents = {};
|
|
@@ -3021,37 +1259,22 @@ export const de_RestoreWorkspaceCommand = async (output, context) => {
|
|
|
3021
1259
|
};
|
|
3022
1260
|
return response;
|
|
3023
1261
|
};
|
|
3024
|
-
const
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
body: await parseErrorBody(output.body, context),
|
|
3028
|
-
};
|
|
3029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3030
|
-
switch (errorCode) {
|
|
3031
|
-
case "AccessDeniedException":
|
|
3032
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3033
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "InvalidParameterValuesException":
|
|
3035
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3036
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3037
|
-
case "OperationNotSupportedException":
|
|
3038
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3039
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3040
|
-
case "ResourceNotFoundException":
|
|
3041
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3042
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3043
|
-
default:
|
|
3044
|
-
const parsedBody = parsedOutput.body;
|
|
3045
|
-
return throwDefaultError({
|
|
3046
|
-
output,
|
|
3047
|
-
parsedBody,
|
|
3048
|
-
errorCode,
|
|
3049
|
-
});
|
|
1262
|
+
export const de_RestoreWorkspaceCommand = async (output, context) => {
|
|
1263
|
+
if (output.statusCode >= 300) {
|
|
1264
|
+
return de_CommandError(output, context);
|
|
3050
1265
|
}
|
|
1266
|
+
const data = await parseBody(output.body, context);
|
|
1267
|
+
let contents = {};
|
|
1268
|
+
contents = _json(data);
|
|
1269
|
+
const response = {
|
|
1270
|
+
$metadata: deserializeMetadata(output),
|
|
1271
|
+
...contents,
|
|
1272
|
+
};
|
|
1273
|
+
return response;
|
|
3051
1274
|
};
|
|
3052
1275
|
export const de_RevokeIpRulesCommand = async (output, context) => {
|
|
3053
1276
|
if (output.statusCode >= 300) {
|
|
3054
|
-
return
|
|
1277
|
+
return de_CommandError(output, context);
|
|
3055
1278
|
}
|
|
3056
1279
|
const data = await parseBody(output.body, context);
|
|
3057
1280
|
let contents = {};
|
|
@@ -3062,37 +1285,9 @@ export const de_RevokeIpRulesCommand = async (output, context) => {
|
|
|
3062
1285
|
};
|
|
3063
1286
|
return response;
|
|
3064
1287
|
};
|
|
3065
|
-
const de_RevokeIpRulesCommandError = async (output, context) => {
|
|
3066
|
-
const parsedOutput = {
|
|
3067
|
-
...output,
|
|
3068
|
-
body: await parseErrorBody(output.body, context),
|
|
3069
|
-
};
|
|
3070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3071
|
-
switch (errorCode) {
|
|
3072
|
-
case "AccessDeniedException":
|
|
3073
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3074
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "InvalidParameterValuesException":
|
|
3076
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3077
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "InvalidResourceStateException":
|
|
3079
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3080
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "ResourceNotFoundException":
|
|
3082
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3083
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3084
|
-
default:
|
|
3085
|
-
const parsedBody = parsedOutput.body;
|
|
3086
|
-
return throwDefaultError({
|
|
3087
|
-
output,
|
|
3088
|
-
parsedBody,
|
|
3089
|
-
errorCode,
|
|
3090
|
-
});
|
|
3091
|
-
}
|
|
3092
|
-
};
|
|
3093
1288
|
export const de_StartWorkspacesCommand = async (output, context) => {
|
|
3094
1289
|
if (output.statusCode >= 300) {
|
|
3095
|
-
return
|
|
1290
|
+
return de_CommandError(output, context);
|
|
3096
1291
|
}
|
|
3097
1292
|
const data = await parseBody(output.body, context);
|
|
3098
1293
|
let contents = {};
|
|
@@ -3103,22 +1298,9 @@ export const de_StartWorkspacesCommand = async (output, context) => {
|
|
|
3103
1298
|
};
|
|
3104
1299
|
return response;
|
|
3105
1300
|
};
|
|
3106
|
-
const de_StartWorkspacesCommandError = async (output, context) => {
|
|
3107
|
-
const parsedOutput = {
|
|
3108
|
-
...output,
|
|
3109
|
-
body: await parseErrorBody(output.body, context),
|
|
3110
|
-
};
|
|
3111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3112
|
-
const parsedBody = parsedOutput.body;
|
|
3113
|
-
return throwDefaultError({
|
|
3114
|
-
output,
|
|
3115
|
-
parsedBody,
|
|
3116
|
-
errorCode,
|
|
3117
|
-
});
|
|
3118
|
-
};
|
|
3119
1301
|
export const de_StopWorkspacesCommand = async (output, context) => {
|
|
3120
1302
|
if (output.statusCode >= 300) {
|
|
3121
|
-
return
|
|
1303
|
+
return de_CommandError(output, context);
|
|
3122
1304
|
}
|
|
3123
1305
|
const data = await parseBody(output.body, context);
|
|
3124
1306
|
let contents = {};
|
|
@@ -3129,22 +1311,9 @@ export const de_StopWorkspacesCommand = async (output, context) => {
|
|
|
3129
1311
|
};
|
|
3130
1312
|
return response;
|
|
3131
1313
|
};
|
|
3132
|
-
const de_StopWorkspacesCommandError = async (output, context) => {
|
|
3133
|
-
const parsedOutput = {
|
|
3134
|
-
...output,
|
|
3135
|
-
body: await parseErrorBody(output.body, context),
|
|
3136
|
-
};
|
|
3137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
|
-
const parsedBody = parsedOutput.body;
|
|
3139
|
-
return throwDefaultError({
|
|
3140
|
-
output,
|
|
3141
|
-
parsedBody,
|
|
3142
|
-
errorCode,
|
|
3143
|
-
});
|
|
3144
|
-
};
|
|
3145
1314
|
export const de_TerminateWorkspacesCommand = async (output, context) => {
|
|
3146
1315
|
if (output.statusCode >= 300) {
|
|
3147
|
-
return
|
|
1316
|
+
return de_CommandError(output, context);
|
|
3148
1317
|
}
|
|
3149
1318
|
const data = await parseBody(output.body, context);
|
|
3150
1319
|
let contents = {};
|
|
@@ -3155,22 +1324,9 @@ export const de_TerminateWorkspacesCommand = async (output, context) => {
|
|
|
3155
1324
|
};
|
|
3156
1325
|
return response;
|
|
3157
1326
|
};
|
|
3158
|
-
const de_TerminateWorkspacesCommandError = async (output, context) => {
|
|
3159
|
-
const parsedOutput = {
|
|
3160
|
-
...output,
|
|
3161
|
-
body: await parseErrorBody(output.body, context),
|
|
3162
|
-
};
|
|
3163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
|
-
const parsedBody = parsedOutput.body;
|
|
3165
|
-
return throwDefaultError({
|
|
3166
|
-
output,
|
|
3167
|
-
parsedBody,
|
|
3168
|
-
errorCode,
|
|
3169
|
-
});
|
|
3170
|
-
};
|
|
3171
1327
|
export const de_UpdateConnectClientAddInCommand = async (output, context) => {
|
|
3172
1328
|
if (output.statusCode >= 300) {
|
|
3173
|
-
return
|
|
1329
|
+
return de_CommandError(output, context);
|
|
3174
1330
|
}
|
|
3175
1331
|
const data = await parseBody(output.body, context);
|
|
3176
1332
|
let contents = {};
|
|
@@ -3181,34 +1337,9 @@ export const de_UpdateConnectClientAddInCommand = async (output, context) => {
|
|
|
3181
1337
|
};
|
|
3182
1338
|
return response;
|
|
3183
1339
|
};
|
|
3184
|
-
const de_UpdateConnectClientAddInCommandError = async (output, context) => {
|
|
3185
|
-
const parsedOutput = {
|
|
3186
|
-
...output,
|
|
3187
|
-
body: await parseErrorBody(output.body, context),
|
|
3188
|
-
};
|
|
3189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
|
-
switch (errorCode) {
|
|
3191
|
-
case "AccessDeniedException":
|
|
3192
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3193
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "InvalidParameterValuesException":
|
|
3195
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3196
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "ResourceNotFoundException":
|
|
3198
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3200
|
-
default:
|
|
3201
|
-
const parsedBody = parsedOutput.body;
|
|
3202
|
-
return throwDefaultError({
|
|
3203
|
-
output,
|
|
3204
|
-
parsedBody,
|
|
3205
|
-
errorCode,
|
|
3206
|
-
});
|
|
3207
|
-
}
|
|
3208
|
-
};
|
|
3209
1340
|
export const de_UpdateConnectionAliasPermissionCommand = async (output, context) => {
|
|
3210
1341
|
if (output.statusCode >= 300) {
|
|
3211
|
-
return
|
|
1342
|
+
return de_CommandError(output, context);
|
|
3212
1343
|
}
|
|
3213
1344
|
const data = await parseBody(output.body, context);
|
|
3214
1345
|
let contents = {};
|
|
@@ -3219,46 +1350,9 @@ export const de_UpdateConnectionAliasPermissionCommand = async (output, context)
|
|
|
3219
1350
|
};
|
|
3220
1351
|
return response;
|
|
3221
1352
|
};
|
|
3222
|
-
const de_UpdateConnectionAliasPermissionCommandError = async (output, context) => {
|
|
3223
|
-
const parsedOutput = {
|
|
3224
|
-
...output,
|
|
3225
|
-
body: await parseErrorBody(output.body, context),
|
|
3226
|
-
};
|
|
3227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3228
|
-
switch (errorCode) {
|
|
3229
|
-
case "AccessDeniedException":
|
|
3230
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3231
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3232
|
-
case "InvalidParameterValuesException":
|
|
3233
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3234
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "InvalidResourceStateException":
|
|
3236
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3237
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "OperationNotSupportedException":
|
|
3239
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3240
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "ResourceAssociatedException":
|
|
3242
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
3243
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
3244
|
-
case "ResourceLimitExceededException":
|
|
3245
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
3246
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3247
|
-
case "ResourceNotFoundException":
|
|
3248
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3250
|
-
default:
|
|
3251
|
-
const parsedBody = parsedOutput.body;
|
|
3252
|
-
return throwDefaultError({
|
|
3253
|
-
output,
|
|
3254
|
-
parsedBody,
|
|
3255
|
-
errorCode,
|
|
3256
|
-
});
|
|
3257
|
-
}
|
|
3258
|
-
};
|
|
3259
1353
|
export const de_UpdateRulesOfIpGroupCommand = async (output, context) => {
|
|
3260
1354
|
if (output.statusCode >= 300) {
|
|
3261
|
-
return
|
|
1355
|
+
return de_CommandError(output, context);
|
|
3262
1356
|
}
|
|
3263
1357
|
const data = await parseBody(output.body, context);
|
|
3264
1358
|
let contents = {};
|
|
@@ -3269,40 +1363,9 @@ export const de_UpdateRulesOfIpGroupCommand = async (output, context) => {
|
|
|
3269
1363
|
};
|
|
3270
1364
|
return response;
|
|
3271
1365
|
};
|
|
3272
|
-
const de_UpdateRulesOfIpGroupCommandError = async (output, context) => {
|
|
3273
|
-
const parsedOutput = {
|
|
3274
|
-
...output,
|
|
3275
|
-
body: await parseErrorBody(output.body, context),
|
|
3276
|
-
};
|
|
3277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3278
|
-
switch (errorCode) {
|
|
3279
|
-
case "AccessDeniedException":
|
|
3280
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3281
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "InvalidParameterValuesException":
|
|
3283
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3284
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "InvalidResourceStateException":
|
|
3286
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3287
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "ResourceLimitExceededException":
|
|
3289
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
3290
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3291
|
-
case "ResourceNotFoundException":
|
|
3292
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3293
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3294
|
-
default:
|
|
3295
|
-
const parsedBody = parsedOutput.body;
|
|
3296
|
-
return throwDefaultError({
|
|
3297
|
-
output,
|
|
3298
|
-
parsedBody,
|
|
3299
|
-
errorCode,
|
|
3300
|
-
});
|
|
3301
|
-
}
|
|
3302
|
-
};
|
|
3303
1366
|
export const de_UpdateWorkspaceBundleCommand = async (output, context) => {
|
|
3304
1367
|
if (output.statusCode >= 300) {
|
|
3305
|
-
return
|
|
1368
|
+
return de_CommandError(output, context);
|
|
3306
1369
|
}
|
|
3307
1370
|
const data = await parseBody(output.body, context);
|
|
3308
1371
|
let contents = {};
|
|
@@ -3313,40 +1376,9 @@ export const de_UpdateWorkspaceBundleCommand = async (output, context) => {
|
|
|
3313
1376
|
};
|
|
3314
1377
|
return response;
|
|
3315
1378
|
};
|
|
3316
|
-
const de_UpdateWorkspaceBundleCommandError = async (output, context) => {
|
|
3317
|
-
const parsedOutput = {
|
|
3318
|
-
...output,
|
|
3319
|
-
body: await parseErrorBody(output.body, context),
|
|
3320
|
-
};
|
|
3321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3322
|
-
switch (errorCode) {
|
|
3323
|
-
case "AccessDeniedException":
|
|
3324
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3325
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "InvalidParameterValuesException":
|
|
3327
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3328
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3329
|
-
case "OperationNotSupportedException":
|
|
3330
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3331
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3332
|
-
case "ResourceNotFoundException":
|
|
3333
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3334
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3335
|
-
case "ResourceUnavailableException":
|
|
3336
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
3337
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3338
|
-
default:
|
|
3339
|
-
const parsedBody = parsedOutput.body;
|
|
3340
|
-
return throwDefaultError({
|
|
3341
|
-
output,
|
|
3342
|
-
parsedBody,
|
|
3343
|
-
errorCode,
|
|
3344
|
-
});
|
|
3345
|
-
}
|
|
3346
|
-
};
|
|
3347
1379
|
export const de_UpdateWorkspaceImagePermissionCommand = async (output, context) => {
|
|
3348
1380
|
if (output.statusCode >= 300) {
|
|
3349
|
-
return
|
|
1381
|
+
return de_CommandError(output, context);
|
|
3350
1382
|
}
|
|
3351
1383
|
const data = await parseBody(output.body, context);
|
|
3352
1384
|
let contents = {};
|
|
@@ -3357,7 +1389,7 @@ export const de_UpdateWorkspaceImagePermissionCommand = async (output, context)
|
|
|
3357
1389
|
};
|
|
3358
1390
|
return response;
|
|
3359
1391
|
};
|
|
3360
|
-
const
|
|
1392
|
+
const de_CommandError = async (output, context) => {
|
|
3361
1393
|
const parsedOutput = {
|
|
3362
1394
|
...output,
|
|
3363
1395
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3370,15 +1402,57 @@ const de_UpdateWorkspaceImagePermissionCommandError = async (output, context) =>
|
|
|
3370
1402
|
case "InvalidParameterValuesException":
|
|
3371
1403
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3372
1404
|
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1405
|
+
case "InvalidResourceStateException":
|
|
1406
|
+
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1407
|
+
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3373
1408
|
case "OperationNotSupportedException":
|
|
3374
1409
|
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3375
1410
|
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1411
|
+
case "ResourceAssociatedException":
|
|
1412
|
+
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
1413
|
+
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
3376
1414
|
case "ResourceNotFoundException":
|
|
3377
1415
|
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3378
1416
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1417
|
+
case "ResourceLimitExceededException":
|
|
1418
|
+
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1419
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ApplicationNotSupportedException":
|
|
1421
|
+
case "com.amazonaws.workspaces#ApplicationNotSupportedException":
|
|
1422
|
+
throw await de_ApplicationNotSupportedExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "ComputeNotCompatibleException":
|
|
1424
|
+
case "com.amazonaws.workspaces#ComputeNotCompatibleException":
|
|
1425
|
+
throw await de_ComputeNotCompatibleExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "IncompatibleApplicationsException":
|
|
1427
|
+
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
1428
|
+
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
1429
|
+
case "OperatingSystemNotCompatibleException":
|
|
1430
|
+
case "com.amazonaws.workspaces#OperatingSystemNotCompatibleException":
|
|
1431
|
+
throw await de_OperatingSystemNotCompatibleExceptionRes(parsedOutput, context);
|
|
1432
|
+
case "ResourceAlreadyExistsException":
|
|
1433
|
+
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1434
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1435
|
+
case "ResourceInUseException":
|
|
1436
|
+
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
1437
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3379
1438
|
case "ResourceUnavailableException":
|
|
3380
1439
|
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
3381
1440
|
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1441
|
+
case "ResourceCreationFailedException":
|
|
1442
|
+
case "com.amazonaws.workspaces#ResourceCreationFailedException":
|
|
1443
|
+
throw await de_ResourceCreationFailedExceptionRes(parsedOutput, context);
|
|
1444
|
+
case "OperationInProgressException":
|
|
1445
|
+
case "com.amazonaws.workspaces#OperationInProgressException":
|
|
1446
|
+
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
1447
|
+
case "UnsupportedWorkspaceConfigurationException":
|
|
1448
|
+
case "com.amazonaws.workspaces#UnsupportedWorkspaceConfigurationException":
|
|
1449
|
+
throw await de_UnsupportedWorkspaceConfigurationExceptionRes(parsedOutput, context);
|
|
1450
|
+
case "UnsupportedNetworkConfigurationException":
|
|
1451
|
+
case "com.amazonaws.workspaces#UnsupportedNetworkConfigurationException":
|
|
1452
|
+
throw await de_UnsupportedNetworkConfigurationExceptionRes(parsedOutput, context);
|
|
1453
|
+
case "WorkspacesDefaultRoleNotFoundException":
|
|
1454
|
+
case "com.amazonaws.workspaces#WorkspacesDefaultRoleNotFoundException":
|
|
1455
|
+
throw await de_WorkspacesDefaultRoleNotFoundExceptionRes(parsedOutput, context);
|
|
3382
1456
|
default:
|
|
3383
1457
|
const parsedBody = parsedOutput.body;
|
|
3384
1458
|
return throwDefaultError({
|