@aws-sdk/client-sso-admin 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +152 -2492
- package/dist-es/protocols/Aws_json1_1.js +283 -2623
- package/package.json +3 -3
|
@@ -444,7 +444,7 @@ export const se_UpdateTrustedTokenIssuerCommand = async (input, context) => {
|
|
|
444
444
|
};
|
|
445
445
|
export const de_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = async (output, context) => {
|
|
446
446
|
if (output.statusCode >= 300) {
|
|
447
|
-
return
|
|
447
|
+
return de_CommandError(output, context);
|
|
448
448
|
}
|
|
449
449
|
const data = await parseBody(output.body, context);
|
|
450
450
|
let contents = {};
|
|
@@ -455,46 +455,9 @@ export const de_AttachCustomerManagedPolicyReferenceToPermissionSetCommand = asy
|
|
|
455
455
|
};
|
|
456
456
|
return response;
|
|
457
457
|
};
|
|
458
|
-
const de_AttachCustomerManagedPolicyReferenceToPermissionSetCommandError = async (output, context) => {
|
|
459
|
-
const parsedOutput = {
|
|
460
|
-
...output,
|
|
461
|
-
body: await parseErrorBody(output.body, context),
|
|
462
|
-
};
|
|
463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
|
-
switch (errorCode) {
|
|
465
|
-
case "AccessDeniedException":
|
|
466
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
467
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ConflictException":
|
|
469
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
470
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
471
|
-
case "InternalServerException":
|
|
472
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
473
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ResourceNotFoundException":
|
|
475
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
476
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ServiceQuotaExceededException":
|
|
478
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
479
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ThrottlingException":
|
|
481
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
482
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ValidationException":
|
|
484
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
485
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
486
|
-
default:
|
|
487
|
-
const parsedBody = parsedOutput.body;
|
|
488
|
-
return throwDefaultError({
|
|
489
|
-
output,
|
|
490
|
-
parsedBody,
|
|
491
|
-
errorCode,
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
458
|
export const de_AttachManagedPolicyToPermissionSetCommand = async (output, context) => {
|
|
496
459
|
if (output.statusCode >= 300) {
|
|
497
|
-
return
|
|
460
|
+
return de_CommandError(output, context);
|
|
498
461
|
}
|
|
499
462
|
const data = await parseBody(output.body, context);
|
|
500
463
|
let contents = {};
|
|
@@ -505,46 +468,9 @@ export const de_AttachManagedPolicyToPermissionSetCommand = async (output, conte
|
|
|
505
468
|
};
|
|
506
469
|
return response;
|
|
507
470
|
};
|
|
508
|
-
const de_AttachManagedPolicyToPermissionSetCommandError = async (output, context) => {
|
|
509
|
-
const parsedOutput = {
|
|
510
|
-
...output,
|
|
511
|
-
body: await parseErrorBody(output.body, context),
|
|
512
|
-
};
|
|
513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
514
|
-
switch (errorCode) {
|
|
515
|
-
case "AccessDeniedException":
|
|
516
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
517
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ConflictException":
|
|
519
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
520
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
521
|
-
case "InternalServerException":
|
|
522
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
523
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ResourceNotFoundException":
|
|
525
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
526
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ServiceQuotaExceededException":
|
|
528
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
529
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ThrottlingException":
|
|
531
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
532
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ValidationException":
|
|
534
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
535
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
536
|
-
default:
|
|
537
|
-
const parsedBody = parsedOutput.body;
|
|
538
|
-
return throwDefaultError({
|
|
539
|
-
output,
|
|
540
|
-
parsedBody,
|
|
541
|
-
errorCode,
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
471
|
export const de_CreateAccountAssignmentCommand = async (output, context) => {
|
|
546
472
|
if (output.statusCode >= 300) {
|
|
547
|
-
return
|
|
473
|
+
return de_CommandError(output, context);
|
|
548
474
|
}
|
|
549
475
|
const data = await parseBody(output.body, context);
|
|
550
476
|
let contents = {};
|
|
@@ -555,46 +481,9 @@ export const de_CreateAccountAssignmentCommand = async (output, context) => {
|
|
|
555
481
|
};
|
|
556
482
|
return response;
|
|
557
483
|
};
|
|
558
|
-
const de_CreateAccountAssignmentCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "AccessDeniedException":
|
|
566
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
567
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ConflictException":
|
|
569
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
570
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
571
|
-
case "InternalServerException":
|
|
572
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
573
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ResourceNotFoundException":
|
|
575
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ServiceQuotaExceededException":
|
|
578
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
579
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ThrottlingException":
|
|
581
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
582
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ValidationException":
|
|
584
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
585
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
586
|
-
default:
|
|
587
|
-
const parsedBody = parsedOutput.body;
|
|
588
|
-
return throwDefaultError({
|
|
589
|
-
output,
|
|
590
|
-
parsedBody,
|
|
591
|
-
errorCode,
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
484
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
596
485
|
if (output.statusCode >= 300) {
|
|
597
|
-
return
|
|
486
|
+
return de_CommandError(output, context);
|
|
598
487
|
}
|
|
599
488
|
const data = await parseBody(output.body, context);
|
|
600
489
|
let contents = {};
|
|
@@ -605,46 +494,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
605
494
|
};
|
|
606
495
|
return response;
|
|
607
496
|
};
|
|
608
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
609
|
-
const parsedOutput = {
|
|
610
|
-
...output,
|
|
611
|
-
body: await parseErrorBody(output.body, context),
|
|
612
|
-
};
|
|
613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
-
switch (errorCode) {
|
|
615
|
-
case "AccessDeniedException":
|
|
616
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
617
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ConflictException":
|
|
619
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
620
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
621
|
-
case "InternalServerException":
|
|
622
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ResourceNotFoundException":
|
|
625
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ServiceQuotaExceededException":
|
|
628
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
629
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ThrottlingException":
|
|
631
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
632
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
633
|
-
case "ValidationException":
|
|
634
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
635
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
636
|
-
default:
|
|
637
|
-
const parsedBody = parsedOutput.body;
|
|
638
|
-
return throwDefaultError({
|
|
639
|
-
output,
|
|
640
|
-
parsedBody,
|
|
641
|
-
errorCode,
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
497
|
export const de_CreateApplicationAssignmentCommand = async (output, context) => {
|
|
646
498
|
if (output.statusCode >= 300) {
|
|
647
|
-
return
|
|
499
|
+
return de_CommandError(output, context);
|
|
648
500
|
}
|
|
649
501
|
const data = await parseBody(output.body, context);
|
|
650
502
|
let contents = {};
|
|
@@ -655,46 +507,9 @@ export const de_CreateApplicationAssignmentCommand = async (output, context) =>
|
|
|
655
507
|
};
|
|
656
508
|
return response;
|
|
657
509
|
};
|
|
658
|
-
const de_CreateApplicationAssignmentCommandError = async (output, context) => {
|
|
659
|
-
const parsedOutput = {
|
|
660
|
-
...output,
|
|
661
|
-
body: await parseErrorBody(output.body, context),
|
|
662
|
-
};
|
|
663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
-
switch (errorCode) {
|
|
665
|
-
case "AccessDeniedException":
|
|
666
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ConflictException":
|
|
669
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
670
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
671
|
-
case "InternalServerException":
|
|
672
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ResourceNotFoundException":
|
|
675
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ServiceQuotaExceededException":
|
|
678
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
679
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ThrottlingException":
|
|
681
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
682
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
683
|
-
case "ValidationException":
|
|
684
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
685
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
686
|
-
default:
|
|
687
|
-
const parsedBody = parsedOutput.body;
|
|
688
|
-
return throwDefaultError({
|
|
689
|
-
output,
|
|
690
|
-
parsedBody,
|
|
691
|
-
errorCode,
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
};
|
|
695
510
|
export const de_CreateInstanceCommand = async (output, context) => {
|
|
696
511
|
if (output.statusCode >= 300) {
|
|
697
|
-
return
|
|
512
|
+
return de_CommandError(output, context);
|
|
698
513
|
}
|
|
699
514
|
const data = await parseBody(output.body, context);
|
|
700
515
|
let contents = {};
|
|
@@ -705,43 +520,9 @@ export const de_CreateInstanceCommand = async (output, context) => {
|
|
|
705
520
|
};
|
|
706
521
|
return response;
|
|
707
522
|
};
|
|
708
|
-
const de_CreateInstanceCommandError = async (output, context) => {
|
|
709
|
-
const parsedOutput = {
|
|
710
|
-
...output,
|
|
711
|
-
body: await parseErrorBody(output.body, context),
|
|
712
|
-
};
|
|
713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
-
switch (errorCode) {
|
|
715
|
-
case "AccessDeniedException":
|
|
716
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
717
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ConflictException":
|
|
719
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InternalServerException":
|
|
722
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ServiceQuotaExceededException":
|
|
725
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
726
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ThrottlingException":
|
|
728
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
729
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ValidationException":
|
|
731
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
732
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
733
|
-
default:
|
|
734
|
-
const parsedBody = parsedOutput.body;
|
|
735
|
-
return throwDefaultError({
|
|
736
|
-
output,
|
|
737
|
-
parsedBody,
|
|
738
|
-
errorCode,
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
523
|
export const de_CreateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
743
524
|
if (output.statusCode >= 300) {
|
|
744
|
-
return
|
|
525
|
+
return de_CommandError(output, context);
|
|
745
526
|
}
|
|
746
527
|
const data = await parseBody(output.body, context);
|
|
747
528
|
let contents = {};
|
|
@@ -752,43 +533,9 @@ export const de_CreateInstanceAccessControlAttributeConfigurationCommand = async
|
|
|
752
533
|
};
|
|
753
534
|
return response;
|
|
754
535
|
};
|
|
755
|
-
const de_CreateInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
756
|
-
const parsedOutput = {
|
|
757
|
-
...output,
|
|
758
|
-
body: await parseErrorBody(output.body, context),
|
|
759
|
-
};
|
|
760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
-
switch (errorCode) {
|
|
762
|
-
case "AccessDeniedException":
|
|
763
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
764
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ConflictException":
|
|
766
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
767
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
768
|
-
case "InternalServerException":
|
|
769
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
770
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ResourceNotFoundException":
|
|
772
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
773
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ThrottlingException":
|
|
775
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
776
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ValidationException":
|
|
778
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
779
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode,
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
536
|
export const de_CreatePermissionSetCommand = async (output, context) => {
|
|
790
537
|
if (output.statusCode >= 300) {
|
|
791
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
792
539
|
}
|
|
793
540
|
const data = await parseBody(output.body, context);
|
|
794
541
|
let contents = {};
|
|
@@ -799,46 +546,9 @@ export const de_CreatePermissionSetCommand = async (output, context) => {
|
|
|
799
546
|
};
|
|
800
547
|
return response;
|
|
801
548
|
};
|
|
802
|
-
const de_CreatePermissionSetCommandError = async (output, context) => {
|
|
803
|
-
const parsedOutput = {
|
|
804
|
-
...output,
|
|
805
|
-
body: await parseErrorBody(output.body, context),
|
|
806
|
-
};
|
|
807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
-
switch (errorCode) {
|
|
809
|
-
case "AccessDeniedException":
|
|
810
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
811
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ConflictException":
|
|
813
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
814
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
815
|
-
case "InternalServerException":
|
|
816
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
817
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ResourceNotFoundException":
|
|
819
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
820
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ServiceQuotaExceededException":
|
|
822
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
823
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ThrottlingException":
|
|
825
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
826
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ValidationException":
|
|
828
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
829
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode,
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
549
|
export const de_CreateTrustedTokenIssuerCommand = async (output, context) => {
|
|
840
550
|
if (output.statusCode >= 300) {
|
|
841
|
-
return
|
|
551
|
+
return de_CommandError(output, context);
|
|
842
552
|
}
|
|
843
553
|
const data = await parseBody(output.body, context);
|
|
844
554
|
let contents = {};
|
|
@@ -849,43 +559,9 @@ export const de_CreateTrustedTokenIssuerCommand = async (output, context) => {
|
|
|
849
559
|
};
|
|
850
560
|
return response;
|
|
851
561
|
};
|
|
852
|
-
const de_CreateTrustedTokenIssuerCommandError = async (output, context) => {
|
|
853
|
-
const parsedOutput = {
|
|
854
|
-
...output,
|
|
855
|
-
body: await parseErrorBody(output.body, context),
|
|
856
|
-
};
|
|
857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
|
-
switch (errorCode) {
|
|
859
|
-
case "AccessDeniedException":
|
|
860
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
861
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ConflictException":
|
|
863
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
864
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
865
|
-
case "InternalServerException":
|
|
866
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
867
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ServiceQuotaExceededException":
|
|
869
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
870
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ThrottlingException":
|
|
872
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
873
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ValidationException":
|
|
875
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
876
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
|
-
default:
|
|
878
|
-
const parsedBody = parsedOutput.body;
|
|
879
|
-
return throwDefaultError({
|
|
880
|
-
output,
|
|
881
|
-
parsedBody,
|
|
882
|
-
errorCode,
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
};
|
|
886
562
|
export const de_DeleteAccountAssignmentCommand = async (output, context) => {
|
|
887
563
|
if (output.statusCode >= 300) {
|
|
888
|
-
return
|
|
564
|
+
return de_CommandError(output, context);
|
|
889
565
|
}
|
|
890
566
|
const data = await parseBody(output.body, context);
|
|
891
567
|
let contents = {};
|
|
@@ -896,43 +572,9 @@ export const de_DeleteAccountAssignmentCommand = async (output, context) => {
|
|
|
896
572
|
};
|
|
897
573
|
return response;
|
|
898
574
|
};
|
|
899
|
-
const de_DeleteAccountAssignmentCommandError = async (output, context) => {
|
|
900
|
-
const parsedOutput = {
|
|
901
|
-
...output,
|
|
902
|
-
body: await parseErrorBody(output.body, context),
|
|
903
|
-
};
|
|
904
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
|
-
switch (errorCode) {
|
|
906
|
-
case "AccessDeniedException":
|
|
907
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
908
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
909
|
-
case "ConflictException":
|
|
910
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
911
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InternalServerException":
|
|
913
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
914
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ResourceNotFoundException":
|
|
916
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ThrottlingException":
|
|
919
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
920
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ValidationException":
|
|
922
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
923
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
924
|
-
default:
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode,
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
575
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
934
576
|
if (output.statusCode >= 300) {
|
|
935
|
-
return
|
|
577
|
+
return de_CommandError(output, context);
|
|
936
578
|
}
|
|
937
579
|
const data = await parseBody(output.body, context);
|
|
938
580
|
let contents = {};
|
|
@@ -943,43 +585,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
943
585
|
};
|
|
944
586
|
return response;
|
|
945
587
|
};
|
|
946
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
947
|
-
const parsedOutput = {
|
|
948
|
-
...output,
|
|
949
|
-
body: await parseErrorBody(output.body, context),
|
|
950
|
-
};
|
|
951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
|
-
switch (errorCode) {
|
|
953
|
-
case "AccessDeniedException":
|
|
954
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
955
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ConflictException":
|
|
957
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
958
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
959
|
-
case "InternalServerException":
|
|
960
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
961
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ResourceNotFoundException":
|
|
963
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
964
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ThrottlingException":
|
|
966
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
967
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ValidationException":
|
|
969
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
970
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
|
-
default:
|
|
972
|
-
const parsedBody = parsedOutput.body;
|
|
973
|
-
return throwDefaultError({
|
|
974
|
-
output,
|
|
975
|
-
parsedBody,
|
|
976
|
-
errorCode,
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
588
|
export const de_DeleteApplicationAccessScopeCommand = async (output, context) => {
|
|
981
589
|
if (output.statusCode >= 300) {
|
|
982
|
-
return
|
|
590
|
+
return de_CommandError(output, context);
|
|
983
591
|
}
|
|
984
592
|
await collectBody(output.body, context);
|
|
985
593
|
const response = {
|
|
@@ -987,43 +595,9 @@ export const de_DeleteApplicationAccessScopeCommand = async (output, context) =>
|
|
|
987
595
|
};
|
|
988
596
|
return response;
|
|
989
597
|
};
|
|
990
|
-
const de_DeleteApplicationAccessScopeCommandError = async (output, context) => {
|
|
991
|
-
const parsedOutput = {
|
|
992
|
-
...output,
|
|
993
|
-
body: await parseErrorBody(output.body, context),
|
|
994
|
-
};
|
|
995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
|
-
switch (errorCode) {
|
|
997
|
-
case "AccessDeniedException":
|
|
998
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
999
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ConflictException":
|
|
1001
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1002
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "InternalServerException":
|
|
1004
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1005
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ResourceNotFoundException":
|
|
1007
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1008
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "ThrottlingException":
|
|
1010
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1011
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ValidationException":
|
|
1013
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1014
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1015
|
-
default:
|
|
1016
|
-
const parsedBody = parsedOutput.body;
|
|
1017
|
-
return throwDefaultError({
|
|
1018
|
-
output,
|
|
1019
|
-
parsedBody,
|
|
1020
|
-
errorCode,
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
};
|
|
1024
598
|
export const de_DeleteApplicationAssignmentCommand = async (output, context) => {
|
|
1025
599
|
if (output.statusCode >= 300) {
|
|
1026
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
1027
601
|
}
|
|
1028
602
|
const data = await parseBody(output.body, context);
|
|
1029
603
|
let contents = {};
|
|
@@ -1034,43 +608,19 @@ export const de_DeleteApplicationAssignmentCommand = async (output, context) =>
|
|
|
1034
608
|
};
|
|
1035
609
|
return response;
|
|
1036
610
|
};
|
|
1037
|
-
const
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
body: await parseErrorBody(output.body, context),
|
|
1041
|
-
};
|
|
1042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
-
switch (errorCode) {
|
|
1044
|
-
case "AccessDeniedException":
|
|
1045
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1046
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ConflictException":
|
|
1048
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1049
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InternalServerException":
|
|
1051
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1052
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ResourceNotFoundException":
|
|
1054
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1055
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ThrottlingException":
|
|
1057
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1058
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ValidationException":
|
|
1060
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1061
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1062
|
-
default:
|
|
1063
|
-
const parsedBody = parsedOutput.body;
|
|
1064
|
-
return throwDefaultError({
|
|
1065
|
-
output,
|
|
1066
|
-
parsedBody,
|
|
1067
|
-
errorCode,
|
|
1068
|
-
});
|
|
611
|
+
export const de_DeleteApplicationAuthenticationMethodCommand = async (output, context) => {
|
|
612
|
+
if (output.statusCode >= 300) {
|
|
613
|
+
return de_CommandError(output, context);
|
|
1069
614
|
}
|
|
615
|
+
await collectBody(output.body, context);
|
|
616
|
+
const response = {
|
|
617
|
+
$metadata: deserializeMetadata(output),
|
|
618
|
+
};
|
|
619
|
+
return response;
|
|
1070
620
|
};
|
|
1071
|
-
export const
|
|
621
|
+
export const de_DeleteApplicationGrantCommand = async (output, context) => {
|
|
1072
622
|
if (output.statusCode >= 300) {
|
|
1073
|
-
return
|
|
623
|
+
return de_CommandError(output, context);
|
|
1074
624
|
}
|
|
1075
625
|
await collectBody(output.body, context);
|
|
1076
626
|
const response = {
|
|
@@ -1078,87 +628,48 @@ export const de_DeleteApplicationAuthenticationMethodCommand = async (output, co
|
|
|
1078
628
|
};
|
|
1079
629
|
return response;
|
|
1080
630
|
};
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
631
|
+
export const de_DeleteInlinePolicyFromPermissionSetCommand = async (output, context) => {
|
|
632
|
+
if (output.statusCode >= 300) {
|
|
633
|
+
return de_CommandError(output, context);
|
|
634
|
+
}
|
|
635
|
+
const data = await parseBody(output.body, context);
|
|
636
|
+
let contents = {};
|
|
637
|
+
contents = _json(data);
|
|
638
|
+
const response = {
|
|
639
|
+
$metadata: deserializeMetadata(output),
|
|
640
|
+
...contents,
|
|
1085
641
|
};
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
case "ConflictException":
|
|
1092
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1093
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "InternalServerException":
|
|
1095
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1096
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ResourceNotFoundException":
|
|
1098
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1099
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "ThrottlingException":
|
|
1101
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1102
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ValidationException":
|
|
1104
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1105
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1106
|
-
default:
|
|
1107
|
-
const parsedBody = parsedOutput.body;
|
|
1108
|
-
return throwDefaultError({
|
|
1109
|
-
output,
|
|
1110
|
-
parsedBody,
|
|
1111
|
-
errorCode,
|
|
1112
|
-
});
|
|
642
|
+
return response;
|
|
643
|
+
};
|
|
644
|
+
export const de_DeleteInstanceCommand = async (output, context) => {
|
|
645
|
+
if (output.statusCode >= 300) {
|
|
646
|
+
return de_CommandError(output, context);
|
|
1113
647
|
}
|
|
648
|
+
const data = await parseBody(output.body, context);
|
|
649
|
+
let contents = {};
|
|
650
|
+
contents = _json(data);
|
|
651
|
+
const response = {
|
|
652
|
+
$metadata: deserializeMetadata(output),
|
|
653
|
+
...contents,
|
|
654
|
+
};
|
|
655
|
+
return response;
|
|
1114
656
|
};
|
|
1115
|
-
export const
|
|
657
|
+
export const de_DeleteInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
1116
658
|
if (output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
659
|
+
return de_CommandError(output, context);
|
|
1118
660
|
}
|
|
1119
|
-
await
|
|
661
|
+
const data = await parseBody(output.body, context);
|
|
662
|
+
let contents = {};
|
|
663
|
+
contents = _json(data);
|
|
1120
664
|
const response = {
|
|
1121
665
|
$metadata: deserializeMetadata(output),
|
|
666
|
+
...contents,
|
|
1122
667
|
};
|
|
1123
668
|
return response;
|
|
1124
669
|
};
|
|
1125
|
-
const
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context),
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "AccessDeniedException":
|
|
1133
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1134
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ConflictException":
|
|
1136
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1137
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "InternalServerException":
|
|
1139
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1140
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "ResourceNotFoundException":
|
|
1142
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1143
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ThrottlingException":
|
|
1145
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1146
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "ValidationException":
|
|
1148
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1149
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1150
|
-
default:
|
|
1151
|
-
const parsedBody = parsedOutput.body;
|
|
1152
|
-
return throwDefaultError({
|
|
1153
|
-
output,
|
|
1154
|
-
parsedBody,
|
|
1155
|
-
errorCode,
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
};
|
|
1159
|
-
export const de_DeleteInlinePolicyFromPermissionSetCommand = async (output, context) => {
|
|
670
|
+
export const de_DeletePermissionsBoundaryFromPermissionSetCommand = async (output, context) => {
|
|
1160
671
|
if (output.statusCode >= 300) {
|
|
1161
|
-
return
|
|
672
|
+
return de_CommandError(output, context);
|
|
1162
673
|
}
|
|
1163
674
|
const data = await parseBody(output.body, context);
|
|
1164
675
|
let contents = {};
|
|
@@ -1169,43 +680,9 @@ export const de_DeleteInlinePolicyFromPermissionSetCommand = async (output, cont
|
|
|
1169
680
|
};
|
|
1170
681
|
return response;
|
|
1171
682
|
};
|
|
1172
|
-
const
|
|
1173
|
-
const parsedOutput = {
|
|
1174
|
-
...output,
|
|
1175
|
-
body: await parseErrorBody(output.body, context),
|
|
1176
|
-
};
|
|
1177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
-
switch (errorCode) {
|
|
1179
|
-
case "AccessDeniedException":
|
|
1180
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1181
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ConflictException":
|
|
1183
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1184
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "InternalServerException":
|
|
1186
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1187
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ResourceNotFoundException":
|
|
1189
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1190
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ThrottlingException":
|
|
1192
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1193
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ValidationException":
|
|
1195
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1196
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1197
|
-
default:
|
|
1198
|
-
const parsedBody = parsedOutput.body;
|
|
1199
|
-
return throwDefaultError({
|
|
1200
|
-
output,
|
|
1201
|
-
parsedBody,
|
|
1202
|
-
errorCode,
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
export const de_DeleteInstanceCommand = async (output, context) => {
|
|
683
|
+
export const de_DeletePermissionSetCommand = async (output, context) => {
|
|
1207
684
|
if (output.statusCode >= 300) {
|
|
1208
|
-
return
|
|
685
|
+
return de_CommandError(output, context);
|
|
1209
686
|
}
|
|
1210
687
|
const data = await parseBody(output.body, context);
|
|
1211
688
|
let contents = {};
|
|
@@ -1216,40 +693,9 @@ export const de_DeleteInstanceCommand = async (output, context) => {
|
|
|
1216
693
|
};
|
|
1217
694
|
return response;
|
|
1218
695
|
};
|
|
1219
|
-
const
|
|
1220
|
-
const parsedOutput = {
|
|
1221
|
-
...output,
|
|
1222
|
-
body: await parseErrorBody(output.body, context),
|
|
1223
|
-
};
|
|
1224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
-
switch (errorCode) {
|
|
1226
|
-
case "AccessDeniedException":
|
|
1227
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1228
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ConflictException":
|
|
1230
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1231
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "InternalServerException":
|
|
1233
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1234
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ThrottlingException":
|
|
1236
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ValidationException":
|
|
1239
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1240
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1241
|
-
default:
|
|
1242
|
-
const parsedBody = parsedOutput.body;
|
|
1243
|
-
return throwDefaultError({
|
|
1244
|
-
output,
|
|
1245
|
-
parsedBody,
|
|
1246
|
-
errorCode,
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
|
-
export const de_DeleteInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
696
|
+
export const de_DeleteTrustedTokenIssuerCommand = async (output, context) => {
|
|
1251
697
|
if (output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
698
|
+
return de_CommandError(output, context);
|
|
1253
699
|
}
|
|
1254
700
|
const data = await parseBody(output.body, context);
|
|
1255
701
|
let contents = {};
|
|
@@ -1260,137 +706,48 @@ export const de_DeleteInstanceAccessControlAttributeConfigurationCommand = async
|
|
|
1260
706
|
};
|
|
1261
707
|
return response;
|
|
1262
708
|
};
|
|
1263
|
-
const
|
|
1264
|
-
const parsedOutput = {
|
|
1265
|
-
...output,
|
|
1266
|
-
body: await parseErrorBody(output.body, context),
|
|
1267
|
-
};
|
|
1268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
|
-
switch (errorCode) {
|
|
1270
|
-
case "AccessDeniedException":
|
|
1271
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1272
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ConflictException":
|
|
1274
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1275
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "InternalServerException":
|
|
1277
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1278
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "ResourceNotFoundException":
|
|
1280
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ThrottlingException":
|
|
1283
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1284
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ValidationException":
|
|
1286
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1287
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
|
-
default:
|
|
1289
|
-
const parsedBody = parsedOutput.body;
|
|
1290
|
-
return throwDefaultError({
|
|
1291
|
-
output,
|
|
1292
|
-
parsedBody,
|
|
1293
|
-
errorCode,
|
|
1294
|
-
});
|
|
1295
|
-
}
|
|
1296
|
-
};
|
|
1297
|
-
export const de_DeletePermissionsBoundaryFromPermissionSetCommand = async (output, context) => {
|
|
709
|
+
export const de_DescribeAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
1298
710
|
if (output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
711
|
+
return de_CommandError(output, context);
|
|
1300
712
|
}
|
|
1301
713
|
const data = await parseBody(output.body, context);
|
|
1302
714
|
let contents = {};
|
|
1303
|
-
contents =
|
|
715
|
+
contents = de_DescribeAccountAssignmentCreationStatusResponse(data, context);
|
|
1304
716
|
const response = {
|
|
1305
717
|
$metadata: deserializeMetadata(output),
|
|
1306
718
|
...contents,
|
|
1307
719
|
};
|
|
1308
720
|
return response;
|
|
1309
721
|
};
|
|
1310
|
-
const
|
|
1311
|
-
const parsedOutput = {
|
|
1312
|
-
...output,
|
|
1313
|
-
body: await parseErrorBody(output.body, context),
|
|
1314
|
-
};
|
|
1315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
-
switch (errorCode) {
|
|
1317
|
-
case "AccessDeniedException":
|
|
1318
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1319
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ConflictException":
|
|
1321
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1322
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "InternalServerException":
|
|
1324
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1325
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ResourceNotFoundException":
|
|
1327
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1328
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "ThrottlingException":
|
|
1330
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1331
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "ValidationException":
|
|
1333
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1334
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1335
|
-
default:
|
|
1336
|
-
const parsedBody = parsedOutput.body;
|
|
1337
|
-
return throwDefaultError({
|
|
1338
|
-
output,
|
|
1339
|
-
parsedBody,
|
|
1340
|
-
errorCode,
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
};
|
|
1344
|
-
export const de_DeletePermissionSetCommand = async (output, context) => {
|
|
722
|
+
export const de_DescribeAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
1345
723
|
if (output.statusCode >= 300) {
|
|
1346
|
-
return
|
|
724
|
+
return de_CommandError(output, context);
|
|
1347
725
|
}
|
|
1348
726
|
const data = await parseBody(output.body, context);
|
|
1349
727
|
let contents = {};
|
|
1350
|
-
contents =
|
|
728
|
+
contents = de_DescribeAccountAssignmentDeletionStatusResponse(data, context);
|
|
1351
729
|
const response = {
|
|
1352
730
|
$metadata: deserializeMetadata(output),
|
|
1353
731
|
...contents,
|
|
1354
732
|
};
|
|
1355
733
|
return response;
|
|
1356
734
|
};
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
body: await parseErrorBody(output.body, context),
|
|
1361
|
-
};
|
|
1362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
-
switch (errorCode) {
|
|
1364
|
-
case "AccessDeniedException":
|
|
1365
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1366
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ConflictException":
|
|
1368
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1369
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "InternalServerException":
|
|
1371
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1372
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "ResourceNotFoundException":
|
|
1374
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1375
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "ThrottlingException":
|
|
1377
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1378
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ValidationException":
|
|
1380
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1381
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1382
|
-
default:
|
|
1383
|
-
const parsedBody = parsedOutput.body;
|
|
1384
|
-
return throwDefaultError({
|
|
1385
|
-
output,
|
|
1386
|
-
parsedBody,
|
|
1387
|
-
errorCode,
|
|
1388
|
-
});
|
|
735
|
+
export const de_DescribeApplicationCommand = async (output, context) => {
|
|
736
|
+
if (output.statusCode >= 300) {
|
|
737
|
+
return de_CommandError(output, context);
|
|
1389
738
|
}
|
|
739
|
+
const data = await parseBody(output.body, context);
|
|
740
|
+
let contents = {};
|
|
741
|
+
contents = de_DescribeApplicationResponse(data, context);
|
|
742
|
+
const response = {
|
|
743
|
+
$metadata: deserializeMetadata(output),
|
|
744
|
+
...contents,
|
|
745
|
+
};
|
|
746
|
+
return response;
|
|
1390
747
|
};
|
|
1391
|
-
export const
|
|
748
|
+
export const de_DescribeApplicationAssignmentCommand = async (output, context) => {
|
|
1392
749
|
if (output.statusCode >= 300) {
|
|
1393
|
-
return
|
|
750
|
+
return de_CommandError(output, context);
|
|
1394
751
|
}
|
|
1395
752
|
const data = await parseBody(output.body, context);
|
|
1396
753
|
let contents = {};
|
|
@@ -1401,175 +758,74 @@ export const de_DeleteTrustedTokenIssuerCommand = async (output, context) => {
|
|
|
1401
758
|
};
|
|
1402
759
|
return response;
|
|
1403
760
|
};
|
|
1404
|
-
const
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context),
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "AccessDeniedException":
|
|
1412
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1413
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ConflictException":
|
|
1415
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1416
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "InternalServerException":
|
|
1418
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ResourceNotFoundException":
|
|
1421
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ThrottlingException":
|
|
1424
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1425
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ValidationException":
|
|
1427
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1428
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1429
|
-
default:
|
|
1430
|
-
const parsedBody = parsedOutput.body;
|
|
1431
|
-
return throwDefaultError({
|
|
1432
|
-
output,
|
|
1433
|
-
parsedBody,
|
|
1434
|
-
errorCode,
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
};
|
|
1438
|
-
export const de_DescribeAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
761
|
+
export const de_DescribeApplicationProviderCommand = async (output, context) => {
|
|
1439
762
|
if (output.statusCode >= 300) {
|
|
1440
|
-
return
|
|
763
|
+
return de_CommandError(output, context);
|
|
1441
764
|
}
|
|
1442
765
|
const data = await parseBody(output.body, context);
|
|
1443
766
|
let contents = {};
|
|
1444
|
-
contents =
|
|
767
|
+
contents = _json(data);
|
|
1445
768
|
const response = {
|
|
1446
769
|
$metadata: deserializeMetadata(output),
|
|
1447
770
|
...contents,
|
|
1448
771
|
};
|
|
1449
772
|
return response;
|
|
1450
773
|
};
|
|
1451
|
-
const
|
|
1452
|
-
const parsedOutput = {
|
|
1453
|
-
...output,
|
|
1454
|
-
body: await parseErrorBody(output.body, context),
|
|
1455
|
-
};
|
|
1456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
|
-
switch (errorCode) {
|
|
1458
|
-
case "AccessDeniedException":
|
|
1459
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1460
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "InternalServerException":
|
|
1462
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1463
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "ResourceNotFoundException":
|
|
1465
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1466
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ThrottlingException":
|
|
1468
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1469
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ValidationException":
|
|
1471
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1472
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1473
|
-
default:
|
|
1474
|
-
const parsedBody = parsedOutput.body;
|
|
1475
|
-
return throwDefaultError({
|
|
1476
|
-
output,
|
|
1477
|
-
parsedBody,
|
|
1478
|
-
errorCode,
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
};
|
|
1482
|
-
export const de_DescribeAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
774
|
+
export const de_DescribeInstanceCommand = async (output, context) => {
|
|
1483
775
|
if (output.statusCode >= 300) {
|
|
1484
|
-
return
|
|
776
|
+
return de_CommandError(output, context);
|
|
1485
777
|
}
|
|
1486
778
|
const data = await parseBody(output.body, context);
|
|
1487
779
|
let contents = {};
|
|
1488
|
-
contents =
|
|
780
|
+
contents = de_DescribeInstanceResponse(data, context);
|
|
1489
781
|
const response = {
|
|
1490
782
|
$metadata: deserializeMetadata(output),
|
|
1491
783
|
...contents,
|
|
1492
784
|
};
|
|
1493
785
|
return response;
|
|
1494
786
|
};
|
|
1495
|
-
const
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
body: await parseErrorBody(output.body, context),
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "AccessDeniedException":
|
|
1503
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "InternalServerException":
|
|
1506
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ResourceNotFoundException":
|
|
1509
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ThrottlingException":
|
|
1512
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1513
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "ValidationException":
|
|
1515
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1516
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1517
|
-
default:
|
|
1518
|
-
const parsedBody = parsedOutput.body;
|
|
1519
|
-
return throwDefaultError({
|
|
1520
|
-
output,
|
|
1521
|
-
parsedBody,
|
|
1522
|
-
errorCode,
|
|
1523
|
-
});
|
|
787
|
+
export const de_DescribeInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
788
|
+
if (output.statusCode >= 300) {
|
|
789
|
+
return de_CommandError(output, context);
|
|
1524
790
|
}
|
|
791
|
+
const data = await parseBody(output.body, context);
|
|
792
|
+
let contents = {};
|
|
793
|
+
contents = _json(data);
|
|
794
|
+
const response = {
|
|
795
|
+
$metadata: deserializeMetadata(output),
|
|
796
|
+
...contents,
|
|
797
|
+
};
|
|
798
|
+
return response;
|
|
1525
799
|
};
|
|
1526
|
-
export const
|
|
800
|
+
export const de_DescribePermissionSetCommand = async (output, context) => {
|
|
1527
801
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
802
|
+
return de_CommandError(output, context);
|
|
1529
803
|
}
|
|
1530
804
|
const data = await parseBody(output.body, context);
|
|
1531
805
|
let contents = {};
|
|
1532
|
-
contents =
|
|
806
|
+
contents = de_DescribePermissionSetResponse(data, context);
|
|
1533
807
|
const response = {
|
|
1534
808
|
$metadata: deserializeMetadata(output),
|
|
1535
809
|
...contents,
|
|
1536
810
|
};
|
|
1537
811
|
return response;
|
|
1538
812
|
};
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
body: await parseErrorBody(output.body, context),
|
|
1543
|
-
};
|
|
1544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
-
switch (errorCode) {
|
|
1546
|
-
case "AccessDeniedException":
|
|
1547
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1548
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "InternalServerException":
|
|
1550
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1551
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ResourceNotFoundException":
|
|
1553
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ThrottlingException":
|
|
1556
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1557
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "ValidationException":
|
|
1559
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1560
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1561
|
-
default:
|
|
1562
|
-
const parsedBody = parsedOutput.body;
|
|
1563
|
-
return throwDefaultError({
|
|
1564
|
-
output,
|
|
1565
|
-
parsedBody,
|
|
1566
|
-
errorCode,
|
|
1567
|
-
});
|
|
813
|
+
export const de_DescribePermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
814
|
+
if (output.statusCode >= 300) {
|
|
815
|
+
return de_CommandError(output, context);
|
|
1568
816
|
}
|
|
817
|
+
const data = await parseBody(output.body, context);
|
|
818
|
+
let contents = {};
|
|
819
|
+
contents = de_DescribePermissionSetProvisioningStatusResponse(data, context);
|
|
820
|
+
const response = {
|
|
821
|
+
$metadata: deserializeMetadata(output),
|
|
822
|
+
...contents,
|
|
823
|
+
};
|
|
824
|
+
return response;
|
|
1569
825
|
};
|
|
1570
|
-
export const
|
|
826
|
+
export const de_DescribeTrustedTokenIssuerCommand = async (output, context) => {
|
|
1571
827
|
if (output.statusCode >= 300) {
|
|
1572
|
-
return
|
|
828
|
+
return de_CommandError(output, context);
|
|
1573
829
|
}
|
|
1574
830
|
const data = await parseBody(output.body, context);
|
|
1575
831
|
let contents = {};
|
|
@@ -1580,40 +836,9 @@ export const de_DescribeApplicationAssignmentCommand = async (output, context) =
|
|
|
1580
836
|
};
|
|
1581
837
|
return response;
|
|
1582
838
|
};
|
|
1583
|
-
const
|
|
1584
|
-
const parsedOutput = {
|
|
1585
|
-
...output,
|
|
1586
|
-
body: await parseErrorBody(output.body, context),
|
|
1587
|
-
};
|
|
1588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
-
switch (errorCode) {
|
|
1590
|
-
case "AccessDeniedException":
|
|
1591
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1592
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "InternalServerException":
|
|
1594
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1595
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "ResourceNotFoundException":
|
|
1597
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1598
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1599
|
-
case "ThrottlingException":
|
|
1600
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1601
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1602
|
-
case "ValidationException":
|
|
1603
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1604
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1605
|
-
default:
|
|
1606
|
-
const parsedBody = parsedOutput.body;
|
|
1607
|
-
return throwDefaultError({
|
|
1608
|
-
output,
|
|
1609
|
-
parsedBody,
|
|
1610
|
-
errorCode,
|
|
1611
|
-
});
|
|
1612
|
-
}
|
|
1613
|
-
};
|
|
1614
|
-
export const de_DescribeApplicationProviderCommand = async (output, context) => {
|
|
839
|
+
export const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = async (output, context) => {
|
|
1615
840
|
if (output.statusCode >= 300) {
|
|
1616
|
-
return
|
|
841
|
+
return de_CommandError(output, context);
|
|
1617
842
|
}
|
|
1618
843
|
const data = await parseBody(output.body, context);
|
|
1619
844
|
let contents = {};
|
|
@@ -1624,81 +849,22 @@ export const de_DescribeApplicationProviderCommand = async (output, context) =>
|
|
|
1624
849
|
};
|
|
1625
850
|
return response;
|
|
1626
851
|
};
|
|
1627
|
-
const
|
|
1628
|
-
const parsedOutput = {
|
|
1629
|
-
...output,
|
|
1630
|
-
body: await parseErrorBody(output.body, context),
|
|
1631
|
-
};
|
|
1632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
-
switch (errorCode) {
|
|
1634
|
-
case "AccessDeniedException":
|
|
1635
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1636
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "InternalServerException":
|
|
1638
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1639
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ResourceNotFoundException":
|
|
1641
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1642
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ThrottlingException":
|
|
1644
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1645
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ValidationException":
|
|
1647
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1649
|
-
default:
|
|
1650
|
-
const parsedBody = parsedOutput.body;
|
|
1651
|
-
return throwDefaultError({
|
|
1652
|
-
output,
|
|
1653
|
-
parsedBody,
|
|
1654
|
-
errorCode,
|
|
1655
|
-
});
|
|
1656
|
-
}
|
|
1657
|
-
};
|
|
1658
|
-
export const de_DescribeInstanceCommand = async (output, context) => {
|
|
852
|
+
export const de_DetachManagedPolicyFromPermissionSetCommand = async (output, context) => {
|
|
1659
853
|
if (output.statusCode >= 300) {
|
|
1660
|
-
return
|
|
854
|
+
return de_CommandError(output, context);
|
|
1661
855
|
}
|
|
1662
856
|
const data = await parseBody(output.body, context);
|
|
1663
857
|
let contents = {};
|
|
1664
|
-
contents =
|
|
858
|
+
contents = _json(data);
|
|
1665
859
|
const response = {
|
|
1666
860
|
$metadata: deserializeMetadata(output),
|
|
1667
861
|
...contents,
|
|
1668
862
|
};
|
|
1669
863
|
return response;
|
|
1670
864
|
};
|
|
1671
|
-
const
|
|
1672
|
-
const parsedOutput = {
|
|
1673
|
-
...output,
|
|
1674
|
-
body: await parseErrorBody(output.body, context),
|
|
1675
|
-
};
|
|
1676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
|
-
switch (errorCode) {
|
|
1678
|
-
case "AccessDeniedException":
|
|
1679
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1680
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "InternalServerException":
|
|
1682
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1683
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ThrottlingException":
|
|
1685
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1686
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ValidationException":
|
|
1688
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1690
|
-
default:
|
|
1691
|
-
const parsedBody = parsedOutput.body;
|
|
1692
|
-
return throwDefaultError({
|
|
1693
|
-
output,
|
|
1694
|
-
parsedBody,
|
|
1695
|
-
errorCode,
|
|
1696
|
-
});
|
|
1697
|
-
}
|
|
1698
|
-
};
|
|
1699
|
-
export const de_DescribeInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
865
|
+
export const de_GetApplicationAccessScopeCommand = async (output, context) => {
|
|
1700
866
|
if (output.statusCode >= 300) {
|
|
1701
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
1702
868
|
}
|
|
1703
869
|
const data = await parseBody(output.body, context);
|
|
1704
870
|
let contents = {};
|
|
@@ -1709,128 +875,48 @@ export const de_DescribeInstanceAccessControlAttributeConfigurationCommand = asy
|
|
|
1709
875
|
};
|
|
1710
876
|
return response;
|
|
1711
877
|
};
|
|
1712
|
-
const
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
body: await parseErrorBody(output.body, context),
|
|
1716
|
-
};
|
|
1717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
-
switch (errorCode) {
|
|
1719
|
-
case "AccessDeniedException":
|
|
1720
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1721
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "InternalServerException":
|
|
1723
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1724
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "ResourceNotFoundException":
|
|
1726
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1727
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ThrottlingException":
|
|
1729
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1730
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ValidationException":
|
|
1732
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1734
|
-
default:
|
|
1735
|
-
const parsedBody = parsedOutput.body;
|
|
1736
|
-
return throwDefaultError({
|
|
1737
|
-
output,
|
|
1738
|
-
parsedBody,
|
|
1739
|
-
errorCode,
|
|
1740
|
-
});
|
|
878
|
+
export const de_GetApplicationAssignmentConfigurationCommand = async (output, context) => {
|
|
879
|
+
if (output.statusCode >= 300) {
|
|
880
|
+
return de_CommandError(output, context);
|
|
1741
881
|
}
|
|
882
|
+
const data = await parseBody(output.body, context);
|
|
883
|
+
let contents = {};
|
|
884
|
+
contents = _json(data);
|
|
885
|
+
const response = {
|
|
886
|
+
$metadata: deserializeMetadata(output),
|
|
887
|
+
...contents,
|
|
888
|
+
};
|
|
889
|
+
return response;
|
|
1742
890
|
};
|
|
1743
|
-
export const
|
|
891
|
+
export const de_GetApplicationAuthenticationMethodCommand = async (output, context) => {
|
|
1744
892
|
if (output.statusCode >= 300) {
|
|
1745
|
-
return
|
|
893
|
+
return de_CommandError(output, context);
|
|
1746
894
|
}
|
|
1747
895
|
const data = await parseBody(output.body, context);
|
|
1748
896
|
let contents = {};
|
|
1749
|
-
contents =
|
|
897
|
+
contents = de_GetApplicationAuthenticationMethodResponse(data, context);
|
|
1750
898
|
const response = {
|
|
1751
899
|
$metadata: deserializeMetadata(output),
|
|
1752
900
|
...contents,
|
|
1753
901
|
};
|
|
1754
902
|
return response;
|
|
1755
903
|
};
|
|
1756
|
-
const
|
|
1757
|
-
const parsedOutput = {
|
|
1758
|
-
...output,
|
|
1759
|
-
body: await parseErrorBody(output.body, context),
|
|
1760
|
-
};
|
|
1761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
|
-
switch (errorCode) {
|
|
1763
|
-
case "AccessDeniedException":
|
|
1764
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1765
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "InternalServerException":
|
|
1767
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1768
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1769
|
-
case "ResourceNotFoundException":
|
|
1770
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1771
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "ThrottlingException":
|
|
1773
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1774
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "ValidationException":
|
|
1776
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1777
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1778
|
-
default:
|
|
1779
|
-
const parsedBody = parsedOutput.body;
|
|
1780
|
-
return throwDefaultError({
|
|
1781
|
-
output,
|
|
1782
|
-
parsedBody,
|
|
1783
|
-
errorCode,
|
|
1784
|
-
});
|
|
1785
|
-
}
|
|
1786
|
-
};
|
|
1787
|
-
export const de_DescribePermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
904
|
+
export const de_GetApplicationGrantCommand = async (output, context) => {
|
|
1788
905
|
if (output.statusCode >= 300) {
|
|
1789
|
-
return
|
|
906
|
+
return de_CommandError(output, context);
|
|
1790
907
|
}
|
|
1791
908
|
const data = await parseBody(output.body, context);
|
|
1792
909
|
let contents = {};
|
|
1793
|
-
contents =
|
|
910
|
+
contents = _json(data);
|
|
1794
911
|
const response = {
|
|
1795
912
|
$metadata: deserializeMetadata(output),
|
|
1796
913
|
...contents,
|
|
1797
914
|
};
|
|
1798
915
|
return response;
|
|
1799
916
|
};
|
|
1800
|
-
const
|
|
1801
|
-
const parsedOutput = {
|
|
1802
|
-
...output,
|
|
1803
|
-
body: await parseErrorBody(output.body, context),
|
|
1804
|
-
};
|
|
1805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
|
-
switch (errorCode) {
|
|
1807
|
-
case "AccessDeniedException":
|
|
1808
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1809
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "InternalServerException":
|
|
1811
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1812
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "ResourceNotFoundException":
|
|
1814
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1815
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "ThrottlingException":
|
|
1817
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1818
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "ValidationException":
|
|
1820
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1821
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1822
|
-
default:
|
|
1823
|
-
const parsedBody = parsedOutput.body;
|
|
1824
|
-
return throwDefaultError({
|
|
1825
|
-
output,
|
|
1826
|
-
parsedBody,
|
|
1827
|
-
errorCode,
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
};
|
|
1831
|
-
export const de_DescribeTrustedTokenIssuerCommand = async (output, context) => {
|
|
917
|
+
export const de_GetInlinePolicyForPermissionSetCommand = async (output, context) => {
|
|
1832
918
|
if (output.statusCode >= 300) {
|
|
1833
|
-
return
|
|
919
|
+
return de_CommandError(output, context);
|
|
1834
920
|
}
|
|
1835
921
|
const data = await parseBody(output.body, context);
|
|
1836
922
|
let contents = {};
|
|
@@ -1841,40 +927,9 @@ export const de_DescribeTrustedTokenIssuerCommand = async (output, context) => {
|
|
|
1841
927
|
};
|
|
1842
928
|
return response;
|
|
1843
929
|
};
|
|
1844
|
-
const
|
|
1845
|
-
const parsedOutput = {
|
|
1846
|
-
...output,
|
|
1847
|
-
body: await parseErrorBody(output.body, context),
|
|
1848
|
-
};
|
|
1849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
|
-
switch (errorCode) {
|
|
1851
|
-
case "AccessDeniedException":
|
|
1852
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1853
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "InternalServerException":
|
|
1855
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ResourceNotFoundException":
|
|
1858
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "ThrottlingException":
|
|
1861
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1862
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ValidationException":
|
|
1864
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1865
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1866
|
-
default:
|
|
1867
|
-
const parsedBody = parsedOutput.body;
|
|
1868
|
-
return throwDefaultError({
|
|
1869
|
-
output,
|
|
1870
|
-
parsedBody,
|
|
1871
|
-
errorCode,
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
};
|
|
1875
|
-
export const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = async (output, context) => {
|
|
930
|
+
export const de_GetPermissionsBoundaryForPermissionSetCommand = async (output, context) => {
|
|
1876
931
|
if (output.statusCode >= 300) {
|
|
1877
|
-
return
|
|
932
|
+
return de_CommandError(output, context);
|
|
1878
933
|
}
|
|
1879
934
|
const data = await parseBody(output.body, context);
|
|
1880
935
|
let contents = {};
|
|
@@ -1885,90 +940,35 @@ export const de_DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = a
|
|
|
1885
940
|
};
|
|
1886
941
|
return response;
|
|
1887
942
|
};
|
|
1888
|
-
const
|
|
1889
|
-
const parsedOutput = {
|
|
1890
|
-
...output,
|
|
1891
|
-
body: await parseErrorBody(output.body, context),
|
|
1892
|
-
};
|
|
1893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
|
-
switch (errorCode) {
|
|
1895
|
-
case "AccessDeniedException":
|
|
1896
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1897
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "ConflictException":
|
|
1899
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1900
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "InternalServerException":
|
|
1902
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1903
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "ResourceNotFoundException":
|
|
1905
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ThrottlingException":
|
|
1908
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1909
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ValidationException":
|
|
1911
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1912
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1913
|
-
default:
|
|
1914
|
-
const parsedBody = parsedOutput.body;
|
|
1915
|
-
return throwDefaultError({
|
|
1916
|
-
output,
|
|
1917
|
-
parsedBody,
|
|
1918
|
-
errorCode,
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
};
|
|
1922
|
-
export const de_DetachManagedPolicyFromPermissionSetCommand = async (output, context) => {
|
|
943
|
+
export const de_ListAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
1923
944
|
if (output.statusCode >= 300) {
|
|
1924
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1925
946
|
}
|
|
1926
947
|
const data = await parseBody(output.body, context);
|
|
1927
948
|
let contents = {};
|
|
1928
|
-
contents =
|
|
949
|
+
contents = de_ListAccountAssignmentCreationStatusResponse(data, context);
|
|
1929
950
|
const response = {
|
|
1930
951
|
$metadata: deserializeMetadata(output),
|
|
1931
952
|
...contents,
|
|
1932
953
|
};
|
|
1933
954
|
return response;
|
|
1934
955
|
};
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
body: await parseErrorBody(output.body, context),
|
|
1939
|
-
};
|
|
1940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
-
switch (errorCode) {
|
|
1942
|
-
case "AccessDeniedException":
|
|
1943
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1944
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "ConflictException":
|
|
1946
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
1947
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "InternalServerException":
|
|
1949
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1950
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "ResourceNotFoundException":
|
|
1952
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1953
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "ThrottlingException":
|
|
1955
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
1956
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "ValidationException":
|
|
1958
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
1959
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode,
|
|
1966
|
-
});
|
|
956
|
+
export const de_ListAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
957
|
+
if (output.statusCode >= 300) {
|
|
958
|
+
return de_CommandError(output, context);
|
|
1967
959
|
}
|
|
960
|
+
const data = await parseBody(output.body, context);
|
|
961
|
+
let contents = {};
|
|
962
|
+
contents = de_ListAccountAssignmentDeletionStatusResponse(data, context);
|
|
963
|
+
const response = {
|
|
964
|
+
$metadata: deserializeMetadata(output),
|
|
965
|
+
...contents,
|
|
966
|
+
};
|
|
967
|
+
return response;
|
|
1968
968
|
};
|
|
1969
|
-
export const
|
|
969
|
+
export const de_ListAccountAssignmentsCommand = async (output, context) => {
|
|
1970
970
|
if (output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1972
972
|
}
|
|
1973
973
|
const data = await parseBody(output.body, context);
|
|
1974
974
|
let contents = {};
|
|
@@ -1979,40 +979,9 @@ export const de_GetApplicationAccessScopeCommand = async (output, context) => {
|
|
|
1979
979
|
};
|
|
1980
980
|
return response;
|
|
1981
981
|
};
|
|
1982
|
-
const
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context),
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "AccessDeniedException":
|
|
1990
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
1991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "InternalServerException":
|
|
1993
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
1994
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "ResourceNotFoundException":
|
|
1996
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
1997
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ThrottlingException":
|
|
1999
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2000
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ValidationException":
|
|
2002
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2003
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2004
|
-
default:
|
|
2005
|
-
const parsedBody = parsedOutput.body;
|
|
2006
|
-
return throwDefaultError({
|
|
2007
|
-
output,
|
|
2008
|
-
parsedBody,
|
|
2009
|
-
errorCode,
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
};
|
|
2013
|
-
export const de_GetApplicationAssignmentConfigurationCommand = async (output, context) => {
|
|
982
|
+
export const de_ListAccountAssignmentsForPrincipalCommand = async (output, context) => {
|
|
2014
983
|
if (output.statusCode >= 300) {
|
|
2015
|
-
return
|
|
984
|
+
return de_CommandError(output, context);
|
|
2016
985
|
}
|
|
2017
986
|
const data = await parseBody(output.body, context);
|
|
2018
987
|
let contents = {};
|
|
@@ -2023,84 +992,35 @@ export const de_GetApplicationAssignmentConfigurationCommand = async (output, co
|
|
|
2023
992
|
};
|
|
2024
993
|
return response;
|
|
2025
994
|
};
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
body: await parseErrorBody(output.body, context),
|
|
2030
|
-
};
|
|
2031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2032
|
-
switch (errorCode) {
|
|
2033
|
-
case "AccessDeniedException":
|
|
2034
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2035
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "InternalServerException":
|
|
2037
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2038
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2039
|
-
case "ResourceNotFoundException":
|
|
2040
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2041
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "ThrottlingException":
|
|
2043
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2044
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "ValidationException":
|
|
2046
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2047
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2048
|
-
default:
|
|
2049
|
-
const parsedBody = parsedOutput.body;
|
|
2050
|
-
return throwDefaultError({
|
|
2051
|
-
output,
|
|
2052
|
-
parsedBody,
|
|
2053
|
-
errorCode,
|
|
2054
|
-
});
|
|
995
|
+
export const de_ListAccountsForProvisionedPermissionSetCommand = async (output, context) => {
|
|
996
|
+
if (output.statusCode >= 300) {
|
|
997
|
+
return de_CommandError(output, context);
|
|
2055
998
|
}
|
|
999
|
+
const data = await parseBody(output.body, context);
|
|
1000
|
+
let contents = {};
|
|
1001
|
+
contents = _json(data);
|
|
1002
|
+
const response = {
|
|
1003
|
+
$metadata: deserializeMetadata(output),
|
|
1004
|
+
...contents,
|
|
1005
|
+
};
|
|
1006
|
+
return response;
|
|
2056
1007
|
};
|
|
2057
|
-
export const
|
|
1008
|
+
export const de_ListApplicationAccessScopesCommand = async (output, context) => {
|
|
2058
1009
|
if (output.statusCode >= 300) {
|
|
2059
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
2060
1011
|
}
|
|
2061
1012
|
const data = await parseBody(output.body, context);
|
|
2062
1013
|
let contents = {};
|
|
2063
|
-
contents =
|
|
1014
|
+
contents = _json(data);
|
|
2064
1015
|
const response = {
|
|
2065
1016
|
$metadata: deserializeMetadata(output),
|
|
2066
1017
|
...contents,
|
|
2067
1018
|
};
|
|
2068
1019
|
return response;
|
|
2069
1020
|
};
|
|
2070
|
-
const
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context),
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "AccessDeniedException":
|
|
2078
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2079
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InternalServerException":
|
|
2081
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2082
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ResourceNotFoundException":
|
|
2084
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2085
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "ThrottlingException":
|
|
2087
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2088
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2089
|
-
case "ValidationException":
|
|
2090
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2091
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2092
|
-
default:
|
|
2093
|
-
const parsedBody = parsedOutput.body;
|
|
2094
|
-
return throwDefaultError({
|
|
2095
|
-
output,
|
|
2096
|
-
parsedBody,
|
|
2097
|
-
errorCode,
|
|
2098
|
-
});
|
|
2099
|
-
}
|
|
2100
|
-
};
|
|
2101
|
-
export const de_GetApplicationGrantCommand = async (output, context) => {
|
|
1021
|
+
export const de_ListApplicationAssignmentsCommand = async (output, context) => {
|
|
2102
1022
|
if (output.statusCode >= 300) {
|
|
2103
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
2104
1024
|
}
|
|
2105
1025
|
const data = await parseBody(output.body, context);
|
|
2106
1026
|
let contents = {};
|
|
@@ -2111,40 +1031,9 @@ export const de_GetApplicationGrantCommand = async (output, context) => {
|
|
|
2111
1031
|
};
|
|
2112
1032
|
return response;
|
|
2113
1033
|
};
|
|
2114
|
-
const
|
|
2115
|
-
const parsedOutput = {
|
|
2116
|
-
...output,
|
|
2117
|
-
body: await parseErrorBody(output.body, context),
|
|
2118
|
-
};
|
|
2119
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
|
-
switch (errorCode) {
|
|
2121
|
-
case "AccessDeniedException":
|
|
2122
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2123
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "InternalServerException":
|
|
2125
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2126
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ResourceNotFoundException":
|
|
2128
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2129
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "ThrottlingException":
|
|
2131
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2132
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "ValidationException":
|
|
2134
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2135
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2136
|
-
default:
|
|
2137
|
-
const parsedBody = parsedOutput.body;
|
|
2138
|
-
return throwDefaultError({
|
|
2139
|
-
output,
|
|
2140
|
-
parsedBody,
|
|
2141
|
-
errorCode,
|
|
2142
|
-
});
|
|
2143
|
-
}
|
|
2144
|
-
};
|
|
2145
|
-
export const de_GetInlinePolicyForPermissionSetCommand = async (output, context) => {
|
|
1034
|
+
export const de_ListApplicationAssignmentsForPrincipalCommand = async (output, context) => {
|
|
2146
1035
|
if (output.statusCode >= 300) {
|
|
2147
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
2148
1037
|
}
|
|
2149
1038
|
const data = await parseBody(output.body, context);
|
|
2150
1039
|
let contents = {};
|
|
@@ -2155,40 +1044,22 @@ export const de_GetInlinePolicyForPermissionSetCommand = async (output, context)
|
|
|
2155
1044
|
};
|
|
2156
1045
|
return response;
|
|
2157
1046
|
};
|
|
2158
|
-
const
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
body: await parseErrorBody(output.body, context),
|
|
2162
|
-
};
|
|
2163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
-
switch (errorCode) {
|
|
2165
|
-
case "AccessDeniedException":
|
|
2166
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2167
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "InternalServerException":
|
|
2169
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2170
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "ResourceNotFoundException":
|
|
2172
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "ThrottlingException":
|
|
2175
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2176
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "ValidationException":
|
|
2178
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2179
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2180
|
-
default:
|
|
2181
|
-
const parsedBody = parsedOutput.body;
|
|
2182
|
-
return throwDefaultError({
|
|
2183
|
-
output,
|
|
2184
|
-
parsedBody,
|
|
2185
|
-
errorCode,
|
|
2186
|
-
});
|
|
1047
|
+
export const de_ListApplicationAuthenticationMethodsCommand = async (output, context) => {
|
|
1048
|
+
if (output.statusCode >= 300) {
|
|
1049
|
+
return de_CommandError(output, context);
|
|
2187
1050
|
}
|
|
1051
|
+
const data = await parseBody(output.body, context);
|
|
1052
|
+
let contents = {};
|
|
1053
|
+
contents = de_ListApplicationAuthenticationMethodsResponse(data, context);
|
|
1054
|
+
const response = {
|
|
1055
|
+
$metadata: deserializeMetadata(output),
|
|
1056
|
+
...contents,
|
|
1057
|
+
};
|
|
1058
|
+
return response;
|
|
2188
1059
|
};
|
|
2189
|
-
export const
|
|
1060
|
+
export const de_ListApplicationGrantsCommand = async (output, context) => {
|
|
2190
1061
|
if (output.statusCode >= 300) {
|
|
2191
|
-
return
|
|
1062
|
+
return de_CommandError(output, context);
|
|
2192
1063
|
}
|
|
2193
1064
|
const data = await parseBody(output.body, context);
|
|
2194
1065
|
let contents = {};
|
|
@@ -2199,128 +1070,61 @@ export const de_GetPermissionsBoundaryForPermissionSetCommand = async (output, c
|
|
|
2199
1070
|
};
|
|
2200
1071
|
return response;
|
|
2201
1072
|
};
|
|
2202
|
-
const
|
|
2203
|
-
const parsedOutput = {
|
|
2204
|
-
...output,
|
|
2205
|
-
body: await parseErrorBody(output.body, context),
|
|
2206
|
-
};
|
|
2207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
|
-
switch (errorCode) {
|
|
2209
|
-
case "AccessDeniedException":
|
|
2210
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2211
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2212
|
-
case "InternalServerException":
|
|
2213
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2215
|
-
case "ResourceNotFoundException":
|
|
2216
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "ThrottlingException":
|
|
2219
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "ValidationException":
|
|
2222
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2224
|
-
default:
|
|
2225
|
-
const parsedBody = parsedOutput.body;
|
|
2226
|
-
return throwDefaultError({
|
|
2227
|
-
output,
|
|
2228
|
-
parsedBody,
|
|
2229
|
-
errorCode,
|
|
2230
|
-
});
|
|
2231
|
-
}
|
|
2232
|
-
};
|
|
2233
|
-
export const de_ListAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
1073
|
+
export const de_ListApplicationProvidersCommand = async (output, context) => {
|
|
2234
1074
|
if (output.statusCode >= 300) {
|
|
2235
|
-
return
|
|
1075
|
+
return de_CommandError(output, context);
|
|
2236
1076
|
}
|
|
2237
1077
|
const data = await parseBody(output.body, context);
|
|
2238
1078
|
let contents = {};
|
|
2239
|
-
contents =
|
|
1079
|
+
contents = _json(data);
|
|
2240
1080
|
const response = {
|
|
2241
1081
|
$metadata: deserializeMetadata(output),
|
|
2242
1082
|
...contents,
|
|
2243
1083
|
};
|
|
2244
1084
|
return response;
|
|
2245
1085
|
};
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
body: await parseErrorBody(output.body, context),
|
|
2250
|
-
};
|
|
2251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2252
|
-
switch (errorCode) {
|
|
2253
|
-
case "AccessDeniedException":
|
|
2254
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2255
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2256
|
-
case "InternalServerException":
|
|
2257
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2258
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2259
|
-
case "ResourceNotFoundException":
|
|
2260
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2261
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2262
|
-
case "ThrottlingException":
|
|
2263
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2264
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2265
|
-
case "ValidationException":
|
|
2266
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2267
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2268
|
-
default:
|
|
2269
|
-
const parsedBody = parsedOutput.body;
|
|
2270
|
-
return throwDefaultError({
|
|
2271
|
-
output,
|
|
2272
|
-
parsedBody,
|
|
2273
|
-
errorCode,
|
|
2274
|
-
});
|
|
1086
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
1087
|
+
if (output.statusCode >= 300) {
|
|
1088
|
+
return de_CommandError(output, context);
|
|
2275
1089
|
}
|
|
1090
|
+
const data = await parseBody(output.body, context);
|
|
1091
|
+
let contents = {};
|
|
1092
|
+
contents = de_ListApplicationsResponse(data, context);
|
|
1093
|
+
const response = {
|
|
1094
|
+
$metadata: deserializeMetadata(output),
|
|
1095
|
+
...contents,
|
|
1096
|
+
};
|
|
1097
|
+
return response;
|
|
2276
1098
|
};
|
|
2277
|
-
export const
|
|
1099
|
+
export const de_ListCustomerManagedPolicyReferencesInPermissionSetCommand = async (output, context) => {
|
|
2278
1100
|
if (output.statusCode >= 300) {
|
|
2279
|
-
return
|
|
1101
|
+
return de_CommandError(output, context);
|
|
2280
1102
|
}
|
|
2281
1103
|
const data = await parseBody(output.body, context);
|
|
2282
1104
|
let contents = {};
|
|
2283
|
-
contents =
|
|
1105
|
+
contents = _json(data);
|
|
2284
1106
|
const response = {
|
|
2285
1107
|
$metadata: deserializeMetadata(output),
|
|
2286
1108
|
...contents,
|
|
2287
1109
|
};
|
|
2288
1110
|
return response;
|
|
2289
1111
|
};
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
body: await parseErrorBody(output.body, context),
|
|
2294
|
-
};
|
|
2295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
|
-
switch (errorCode) {
|
|
2297
|
-
case "AccessDeniedException":
|
|
2298
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2299
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "InternalServerException":
|
|
2301
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2302
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ResourceNotFoundException":
|
|
2304
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ThrottlingException":
|
|
2307
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2308
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ValidationException":
|
|
2310
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2311
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2312
|
-
default:
|
|
2313
|
-
const parsedBody = parsedOutput.body;
|
|
2314
|
-
return throwDefaultError({
|
|
2315
|
-
output,
|
|
2316
|
-
parsedBody,
|
|
2317
|
-
errorCode,
|
|
2318
|
-
});
|
|
1112
|
+
export const de_ListInstancesCommand = async (output, context) => {
|
|
1113
|
+
if (output.statusCode >= 300) {
|
|
1114
|
+
return de_CommandError(output, context);
|
|
2319
1115
|
}
|
|
1116
|
+
const data = await parseBody(output.body, context);
|
|
1117
|
+
let contents = {};
|
|
1118
|
+
contents = de_ListInstancesResponse(data, context);
|
|
1119
|
+
const response = {
|
|
1120
|
+
$metadata: deserializeMetadata(output),
|
|
1121
|
+
...contents,
|
|
1122
|
+
};
|
|
1123
|
+
return response;
|
|
2320
1124
|
};
|
|
2321
|
-
export const
|
|
1125
|
+
export const de_ListManagedPoliciesInPermissionSetCommand = async (output, context) => {
|
|
2322
1126
|
if (output.statusCode >= 300) {
|
|
2323
|
-
return
|
|
1127
|
+
return de_CommandError(output, context);
|
|
2324
1128
|
}
|
|
2325
1129
|
const data = await parseBody(output.body, context);
|
|
2326
1130
|
let contents = {};
|
|
@@ -2331,40 +1135,22 @@ export const de_ListAccountAssignmentsCommand = async (output, context) => {
|
|
|
2331
1135
|
};
|
|
2332
1136
|
return response;
|
|
2333
1137
|
};
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
body: await parseErrorBody(output.body, context),
|
|
2338
|
-
};
|
|
2339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
|
-
switch (errorCode) {
|
|
2341
|
-
case "AccessDeniedException":
|
|
2342
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2343
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InternalServerException":
|
|
2345
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2346
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "ResourceNotFoundException":
|
|
2348
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "ThrottlingException":
|
|
2351
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2352
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "ValidationException":
|
|
2354
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2355
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2356
|
-
default:
|
|
2357
|
-
const parsedBody = parsedOutput.body;
|
|
2358
|
-
return throwDefaultError({
|
|
2359
|
-
output,
|
|
2360
|
-
parsedBody,
|
|
2361
|
-
errorCode,
|
|
2362
|
-
});
|
|
1138
|
+
export const de_ListPermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
1139
|
+
if (output.statusCode >= 300) {
|
|
1140
|
+
return de_CommandError(output, context);
|
|
2363
1141
|
}
|
|
1142
|
+
const data = await parseBody(output.body, context);
|
|
1143
|
+
let contents = {};
|
|
1144
|
+
contents = de_ListPermissionSetProvisioningStatusResponse(data, context);
|
|
1145
|
+
const response = {
|
|
1146
|
+
$metadata: deserializeMetadata(output),
|
|
1147
|
+
...contents,
|
|
1148
|
+
};
|
|
1149
|
+
return response;
|
|
2364
1150
|
};
|
|
2365
|
-
export const
|
|
1151
|
+
export const de_ListPermissionSetsCommand = async (output, context) => {
|
|
2366
1152
|
if (output.statusCode >= 300) {
|
|
2367
|
-
return
|
|
1153
|
+
return de_CommandError(output, context);
|
|
2368
1154
|
}
|
|
2369
1155
|
const data = await parseBody(output.body, context);
|
|
2370
1156
|
let contents = {};
|
|
@@ -2375,40 +1161,9 @@ export const de_ListAccountAssignmentsForPrincipalCommand = async (output, conte
|
|
|
2375
1161
|
};
|
|
2376
1162
|
return response;
|
|
2377
1163
|
};
|
|
2378
|
-
const
|
|
2379
|
-
const parsedOutput = {
|
|
2380
|
-
...output,
|
|
2381
|
-
body: await parseErrorBody(output.body, context),
|
|
2382
|
-
};
|
|
2383
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
|
-
switch (errorCode) {
|
|
2385
|
-
case "AccessDeniedException":
|
|
2386
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2387
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "InternalServerException":
|
|
2389
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2390
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "ResourceNotFoundException":
|
|
2392
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2393
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "ThrottlingException":
|
|
2395
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2396
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "ValidationException":
|
|
2398
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2399
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2400
|
-
default:
|
|
2401
|
-
const parsedBody = parsedOutput.body;
|
|
2402
|
-
return throwDefaultError({
|
|
2403
|
-
output,
|
|
2404
|
-
parsedBody,
|
|
2405
|
-
errorCode,
|
|
2406
|
-
});
|
|
2407
|
-
}
|
|
2408
|
-
};
|
|
2409
|
-
export const de_ListAccountsForProvisionedPermissionSetCommand = async (output, context) => {
|
|
1164
|
+
export const de_ListPermissionSetsProvisionedToAccountCommand = async (output, context) => {
|
|
2410
1165
|
if (output.statusCode >= 300) {
|
|
2411
|
-
return
|
|
1166
|
+
return de_CommandError(output, context);
|
|
2412
1167
|
}
|
|
2413
1168
|
const data = await parseBody(output.body, context);
|
|
2414
1169
|
let contents = {};
|
|
@@ -2419,40 +1174,9 @@ export const de_ListAccountsForProvisionedPermissionSetCommand = async (output,
|
|
|
2419
1174
|
};
|
|
2420
1175
|
return response;
|
|
2421
1176
|
};
|
|
2422
|
-
const
|
|
2423
|
-
const parsedOutput = {
|
|
2424
|
-
...output,
|
|
2425
|
-
body: await parseErrorBody(output.body, context),
|
|
2426
|
-
};
|
|
2427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
-
switch (errorCode) {
|
|
2429
|
-
case "AccessDeniedException":
|
|
2430
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2431
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "InternalServerException":
|
|
2433
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2434
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "ResourceNotFoundException":
|
|
2436
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2437
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "ThrottlingException":
|
|
2439
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2440
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "ValidationException":
|
|
2442
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2444
|
-
default:
|
|
2445
|
-
const parsedBody = parsedOutput.body;
|
|
2446
|
-
return throwDefaultError({
|
|
2447
|
-
output,
|
|
2448
|
-
parsedBody,
|
|
2449
|
-
errorCode,
|
|
2450
|
-
});
|
|
2451
|
-
}
|
|
2452
|
-
};
|
|
2453
|
-
export const de_ListApplicationAccessScopesCommand = async (output, context) => {
|
|
1177
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2454
1178
|
if (output.statusCode >= 300) {
|
|
2455
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
2456
1180
|
}
|
|
2457
1181
|
const data = await parseBody(output.body, context);
|
|
2458
1182
|
let contents = {};
|
|
@@ -2463,40 +1187,9 @@ export const de_ListApplicationAccessScopesCommand = async (output, context) =>
|
|
|
2463
1187
|
};
|
|
2464
1188
|
return response;
|
|
2465
1189
|
};
|
|
2466
|
-
const
|
|
2467
|
-
const parsedOutput = {
|
|
2468
|
-
...output,
|
|
2469
|
-
body: await parseErrorBody(output.body, context),
|
|
2470
|
-
};
|
|
2471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
-
switch (errorCode) {
|
|
2473
|
-
case "AccessDeniedException":
|
|
2474
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2475
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "InternalServerException":
|
|
2477
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2478
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "ResourceNotFoundException":
|
|
2480
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2481
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "ThrottlingException":
|
|
2483
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2484
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "ValidationException":
|
|
2486
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2487
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2488
|
-
default:
|
|
2489
|
-
const parsedBody = parsedOutput.body;
|
|
2490
|
-
return throwDefaultError({
|
|
2491
|
-
output,
|
|
2492
|
-
parsedBody,
|
|
2493
|
-
errorCode,
|
|
2494
|
-
});
|
|
2495
|
-
}
|
|
2496
|
-
};
|
|
2497
|
-
export const de_ListApplicationAssignmentsCommand = async (output, context) => {
|
|
1190
|
+
export const de_ListTrustedTokenIssuersCommand = async (output, context) => {
|
|
2498
1191
|
if (output.statusCode >= 300) {
|
|
2499
|
-
return
|
|
1192
|
+
return de_CommandError(output, context);
|
|
2500
1193
|
}
|
|
2501
1194
|
const data = await parseBody(output.body, context);
|
|
2502
1195
|
let contents = {};
|
|
@@ -2507,128 +1200,32 @@ export const de_ListApplicationAssignmentsCommand = async (output, context) => {
|
|
|
2507
1200
|
};
|
|
2508
1201
|
return response;
|
|
2509
1202
|
};
|
|
2510
|
-
const
|
|
2511
|
-
const parsedOutput = {
|
|
2512
|
-
...output,
|
|
2513
|
-
body: await parseErrorBody(output.body, context),
|
|
2514
|
-
};
|
|
2515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
|
-
switch (errorCode) {
|
|
2517
|
-
case "AccessDeniedException":
|
|
2518
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2519
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "InternalServerException":
|
|
2521
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2522
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "ResourceNotFoundException":
|
|
2524
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2525
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "ThrottlingException":
|
|
2527
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2528
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "ValidationException":
|
|
2530
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2531
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2532
|
-
default:
|
|
2533
|
-
const parsedBody = parsedOutput.body;
|
|
2534
|
-
return throwDefaultError({
|
|
2535
|
-
output,
|
|
2536
|
-
parsedBody,
|
|
2537
|
-
errorCode,
|
|
2538
|
-
});
|
|
2539
|
-
}
|
|
2540
|
-
};
|
|
2541
|
-
export const de_ListApplicationAssignmentsForPrincipalCommand = async (output, context) => {
|
|
1203
|
+
export const de_ProvisionPermissionSetCommand = async (output, context) => {
|
|
2542
1204
|
if (output.statusCode >= 300) {
|
|
2543
|
-
return
|
|
1205
|
+
return de_CommandError(output, context);
|
|
2544
1206
|
}
|
|
2545
1207
|
const data = await parseBody(output.body, context);
|
|
2546
1208
|
let contents = {};
|
|
2547
|
-
contents =
|
|
1209
|
+
contents = de_ProvisionPermissionSetResponse(data, context);
|
|
2548
1210
|
const response = {
|
|
2549
1211
|
$metadata: deserializeMetadata(output),
|
|
2550
1212
|
...contents,
|
|
2551
1213
|
};
|
|
2552
1214
|
return response;
|
|
2553
1215
|
};
|
|
2554
|
-
const
|
|
2555
|
-
const parsedOutput = {
|
|
2556
|
-
...output,
|
|
2557
|
-
body: await parseErrorBody(output.body, context),
|
|
2558
|
-
};
|
|
2559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
|
-
switch (errorCode) {
|
|
2561
|
-
case "AccessDeniedException":
|
|
2562
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2563
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "InternalServerException":
|
|
2565
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "ResourceNotFoundException":
|
|
2568
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "ThrottlingException":
|
|
2571
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2572
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2573
|
-
case "ValidationException":
|
|
2574
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2575
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2576
|
-
default:
|
|
2577
|
-
const parsedBody = parsedOutput.body;
|
|
2578
|
-
return throwDefaultError({
|
|
2579
|
-
output,
|
|
2580
|
-
parsedBody,
|
|
2581
|
-
errorCode,
|
|
2582
|
-
});
|
|
2583
|
-
}
|
|
2584
|
-
};
|
|
2585
|
-
export const de_ListApplicationAuthenticationMethodsCommand = async (output, context) => {
|
|
1216
|
+
export const de_PutApplicationAccessScopeCommand = async (output, context) => {
|
|
2586
1217
|
if (output.statusCode >= 300) {
|
|
2587
|
-
return
|
|
1218
|
+
return de_CommandError(output, context);
|
|
2588
1219
|
}
|
|
2589
|
-
|
|
2590
|
-
let contents = {};
|
|
2591
|
-
contents = de_ListApplicationAuthenticationMethodsResponse(data, context);
|
|
1220
|
+
await collectBody(output.body, context);
|
|
2592
1221
|
const response = {
|
|
2593
1222
|
$metadata: deserializeMetadata(output),
|
|
2594
|
-
...contents,
|
|
2595
1223
|
};
|
|
2596
1224
|
return response;
|
|
2597
1225
|
};
|
|
2598
|
-
const
|
|
2599
|
-
const parsedOutput = {
|
|
2600
|
-
...output,
|
|
2601
|
-
body: await parseErrorBody(output.body, context),
|
|
2602
|
-
};
|
|
2603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2604
|
-
switch (errorCode) {
|
|
2605
|
-
case "AccessDeniedException":
|
|
2606
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2607
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "InternalServerException":
|
|
2609
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2610
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "ResourceNotFoundException":
|
|
2612
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2613
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "ThrottlingException":
|
|
2615
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2616
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "ValidationException":
|
|
2618
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2619
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2620
|
-
default:
|
|
2621
|
-
const parsedBody = parsedOutput.body;
|
|
2622
|
-
return throwDefaultError({
|
|
2623
|
-
output,
|
|
2624
|
-
parsedBody,
|
|
2625
|
-
errorCode,
|
|
2626
|
-
});
|
|
2627
|
-
}
|
|
2628
|
-
};
|
|
2629
|
-
export const de_ListApplicationGrantsCommand = async (output, context) => {
|
|
1226
|
+
export const de_PutApplicationAssignmentConfigurationCommand = async (output, context) => {
|
|
2630
1227
|
if (output.statusCode >= 300) {
|
|
2631
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
2632
1229
|
}
|
|
2633
1230
|
const data = await parseBody(output.body, context);
|
|
2634
1231
|
let contents = {};
|
|
@@ -2639,744 +1236,29 @@ export const de_ListApplicationGrantsCommand = async (output, context) => {
|
|
|
2639
1236
|
};
|
|
2640
1237
|
return response;
|
|
2641
1238
|
};
|
|
2642
|
-
const
|
|
2643
|
-
const parsedOutput = {
|
|
2644
|
-
...output,
|
|
2645
|
-
body: await parseErrorBody(output.body, context),
|
|
2646
|
-
};
|
|
2647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
|
-
switch (errorCode) {
|
|
2649
|
-
case "AccessDeniedException":
|
|
2650
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2651
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "InternalServerException":
|
|
2653
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2654
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ResourceNotFoundException":
|
|
2656
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2657
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "ThrottlingException":
|
|
2659
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2660
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "ValidationException":
|
|
2662
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2663
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2664
|
-
default:
|
|
2665
|
-
const parsedBody = parsedOutput.body;
|
|
2666
|
-
return throwDefaultError({
|
|
2667
|
-
output,
|
|
2668
|
-
parsedBody,
|
|
2669
|
-
errorCode,
|
|
2670
|
-
});
|
|
2671
|
-
}
|
|
2672
|
-
};
|
|
2673
|
-
export const de_ListApplicationProvidersCommand = async (output, context) => {
|
|
1239
|
+
export const de_PutApplicationAuthenticationMethodCommand = async (output, context) => {
|
|
2674
1240
|
if (output.statusCode >= 300) {
|
|
2675
|
-
return
|
|
2676
|
-
}
|
|
2677
|
-
const data = await parseBody(output.body, context);
|
|
2678
|
-
let contents = {};
|
|
2679
|
-
contents = _json(data);
|
|
2680
|
-
const response = {
|
|
2681
|
-
$metadata: deserializeMetadata(output),
|
|
2682
|
-
...contents,
|
|
2683
|
-
};
|
|
2684
|
-
return response;
|
|
2685
|
-
};
|
|
2686
|
-
const de_ListApplicationProvidersCommandError = async (output, context) => {
|
|
2687
|
-
const parsedOutput = {
|
|
2688
|
-
...output,
|
|
2689
|
-
body: await parseErrorBody(output.body, context),
|
|
2690
|
-
};
|
|
2691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2692
|
-
switch (errorCode) {
|
|
2693
|
-
case "AccessDeniedException":
|
|
2694
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2695
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2696
|
-
case "InternalServerException":
|
|
2697
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2698
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2699
|
-
case "ThrottlingException":
|
|
2700
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2701
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "ValidationException":
|
|
2703
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2704
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2705
|
-
default:
|
|
2706
|
-
const parsedBody = parsedOutput.body;
|
|
2707
|
-
return throwDefaultError({
|
|
2708
|
-
output,
|
|
2709
|
-
parsedBody,
|
|
2710
|
-
errorCode,
|
|
2711
|
-
});
|
|
2712
|
-
}
|
|
2713
|
-
};
|
|
2714
|
-
export const de_ListApplicationsCommand = async (output, context) => {
|
|
2715
|
-
if (output.statusCode >= 300) {
|
|
2716
|
-
return de_ListApplicationsCommandError(output, context);
|
|
2717
|
-
}
|
|
2718
|
-
const data = await parseBody(output.body, context);
|
|
2719
|
-
let contents = {};
|
|
2720
|
-
contents = de_ListApplicationsResponse(data, context);
|
|
2721
|
-
const response = {
|
|
2722
|
-
$metadata: deserializeMetadata(output),
|
|
2723
|
-
...contents,
|
|
2724
|
-
};
|
|
2725
|
-
return response;
|
|
2726
|
-
};
|
|
2727
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
2728
|
-
const parsedOutput = {
|
|
2729
|
-
...output,
|
|
2730
|
-
body: await parseErrorBody(output.body, context),
|
|
2731
|
-
};
|
|
2732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
-
switch (errorCode) {
|
|
2734
|
-
case "AccessDeniedException":
|
|
2735
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2736
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "InternalServerException":
|
|
2738
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2739
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "ThrottlingException":
|
|
2741
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2742
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2743
|
-
case "ValidationException":
|
|
2744
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2745
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2746
|
-
default:
|
|
2747
|
-
const parsedBody = parsedOutput.body;
|
|
2748
|
-
return throwDefaultError({
|
|
2749
|
-
output,
|
|
2750
|
-
parsedBody,
|
|
2751
|
-
errorCode,
|
|
2752
|
-
});
|
|
2753
|
-
}
|
|
2754
|
-
};
|
|
2755
|
-
export const de_ListCustomerManagedPolicyReferencesInPermissionSetCommand = async (output, context) => {
|
|
2756
|
-
if (output.statusCode >= 300) {
|
|
2757
|
-
return de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError(output, context);
|
|
2758
|
-
}
|
|
2759
|
-
const data = await parseBody(output.body, context);
|
|
2760
|
-
let contents = {};
|
|
2761
|
-
contents = _json(data);
|
|
2762
|
-
const response = {
|
|
2763
|
-
$metadata: deserializeMetadata(output),
|
|
2764
|
-
...contents,
|
|
2765
|
-
};
|
|
2766
|
-
return response;
|
|
2767
|
-
};
|
|
2768
|
-
const de_ListCustomerManagedPolicyReferencesInPermissionSetCommandError = async (output, context) => {
|
|
2769
|
-
const parsedOutput = {
|
|
2770
|
-
...output,
|
|
2771
|
-
body: await parseErrorBody(output.body, context),
|
|
2772
|
-
};
|
|
2773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
|
-
switch (errorCode) {
|
|
2775
|
-
case "AccessDeniedException":
|
|
2776
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "InternalServerException":
|
|
2779
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2780
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ResourceNotFoundException":
|
|
2782
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2783
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "ThrottlingException":
|
|
2785
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2786
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "ValidationException":
|
|
2788
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2790
|
-
default:
|
|
2791
|
-
const parsedBody = parsedOutput.body;
|
|
2792
|
-
return throwDefaultError({
|
|
2793
|
-
output,
|
|
2794
|
-
parsedBody,
|
|
2795
|
-
errorCode,
|
|
2796
|
-
});
|
|
2797
|
-
}
|
|
2798
|
-
};
|
|
2799
|
-
export const de_ListInstancesCommand = async (output, context) => {
|
|
2800
|
-
if (output.statusCode >= 300) {
|
|
2801
|
-
return de_ListInstancesCommandError(output, context);
|
|
2802
|
-
}
|
|
2803
|
-
const data = await parseBody(output.body, context);
|
|
2804
|
-
let contents = {};
|
|
2805
|
-
contents = de_ListInstancesResponse(data, context);
|
|
2806
|
-
const response = {
|
|
2807
|
-
$metadata: deserializeMetadata(output),
|
|
2808
|
-
...contents,
|
|
2809
|
-
};
|
|
2810
|
-
return response;
|
|
2811
|
-
};
|
|
2812
|
-
const de_ListInstancesCommandError = async (output, context) => {
|
|
2813
|
-
const parsedOutput = {
|
|
2814
|
-
...output,
|
|
2815
|
-
body: await parseErrorBody(output.body, context),
|
|
2816
|
-
};
|
|
2817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2818
|
-
switch (errorCode) {
|
|
2819
|
-
case "AccessDeniedException":
|
|
2820
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "InternalServerException":
|
|
2823
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "ThrottlingException":
|
|
2826
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2827
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ValidationException":
|
|
2829
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2830
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2831
|
-
default:
|
|
2832
|
-
const parsedBody = parsedOutput.body;
|
|
2833
|
-
return throwDefaultError({
|
|
2834
|
-
output,
|
|
2835
|
-
parsedBody,
|
|
2836
|
-
errorCode,
|
|
2837
|
-
});
|
|
2838
|
-
}
|
|
2839
|
-
};
|
|
2840
|
-
export const de_ListManagedPoliciesInPermissionSetCommand = async (output, context) => {
|
|
2841
|
-
if (output.statusCode >= 300) {
|
|
2842
|
-
return de_ListManagedPoliciesInPermissionSetCommandError(output, context);
|
|
2843
|
-
}
|
|
2844
|
-
const data = await parseBody(output.body, context);
|
|
2845
|
-
let contents = {};
|
|
2846
|
-
contents = _json(data);
|
|
2847
|
-
const response = {
|
|
2848
|
-
$metadata: deserializeMetadata(output),
|
|
2849
|
-
...contents,
|
|
2850
|
-
};
|
|
2851
|
-
return response;
|
|
2852
|
-
};
|
|
2853
|
-
const de_ListManagedPoliciesInPermissionSetCommandError = async (output, context) => {
|
|
2854
|
-
const parsedOutput = {
|
|
2855
|
-
...output,
|
|
2856
|
-
body: await parseErrorBody(output.body, context),
|
|
2857
|
-
};
|
|
2858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
|
-
switch (errorCode) {
|
|
2860
|
-
case "AccessDeniedException":
|
|
2861
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2862
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2863
|
-
case "InternalServerException":
|
|
2864
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2866
|
-
case "ResourceNotFoundException":
|
|
2867
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2869
|
-
case "ThrottlingException":
|
|
2870
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2871
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2872
|
-
case "ValidationException":
|
|
2873
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2874
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2875
|
-
default:
|
|
2876
|
-
const parsedBody = parsedOutput.body;
|
|
2877
|
-
return throwDefaultError({
|
|
2878
|
-
output,
|
|
2879
|
-
parsedBody,
|
|
2880
|
-
errorCode,
|
|
2881
|
-
});
|
|
2882
|
-
}
|
|
2883
|
-
};
|
|
2884
|
-
export const de_ListPermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
2885
|
-
if (output.statusCode >= 300) {
|
|
2886
|
-
return de_ListPermissionSetProvisioningStatusCommandError(output, context);
|
|
2887
|
-
}
|
|
2888
|
-
const data = await parseBody(output.body, context);
|
|
2889
|
-
let contents = {};
|
|
2890
|
-
contents = de_ListPermissionSetProvisioningStatusResponse(data, context);
|
|
2891
|
-
const response = {
|
|
2892
|
-
$metadata: deserializeMetadata(output),
|
|
2893
|
-
...contents,
|
|
2894
|
-
};
|
|
2895
|
-
return response;
|
|
2896
|
-
};
|
|
2897
|
-
const de_ListPermissionSetProvisioningStatusCommandError = async (output, context) => {
|
|
2898
|
-
const parsedOutput = {
|
|
2899
|
-
...output,
|
|
2900
|
-
body: await parseErrorBody(output.body, context),
|
|
2901
|
-
};
|
|
2902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
|
-
switch (errorCode) {
|
|
2904
|
-
case "AccessDeniedException":
|
|
2905
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2906
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2907
|
-
case "InternalServerException":
|
|
2908
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2909
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "ResourceNotFoundException":
|
|
2911
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2912
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2913
|
-
case "ThrottlingException":
|
|
2914
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2915
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2916
|
-
case "ValidationException":
|
|
2917
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2918
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2919
|
-
default:
|
|
2920
|
-
const parsedBody = parsedOutput.body;
|
|
2921
|
-
return throwDefaultError({
|
|
2922
|
-
output,
|
|
2923
|
-
parsedBody,
|
|
2924
|
-
errorCode,
|
|
2925
|
-
});
|
|
2926
|
-
}
|
|
2927
|
-
};
|
|
2928
|
-
export const de_ListPermissionSetsCommand = async (output, context) => {
|
|
2929
|
-
if (output.statusCode >= 300) {
|
|
2930
|
-
return de_ListPermissionSetsCommandError(output, context);
|
|
2931
|
-
}
|
|
2932
|
-
const data = await parseBody(output.body, context);
|
|
2933
|
-
let contents = {};
|
|
2934
|
-
contents = _json(data);
|
|
2935
|
-
const response = {
|
|
2936
|
-
$metadata: deserializeMetadata(output),
|
|
2937
|
-
...contents,
|
|
2938
|
-
};
|
|
2939
|
-
return response;
|
|
2940
|
-
};
|
|
2941
|
-
const de_ListPermissionSetsCommandError = async (output, context) => {
|
|
2942
|
-
const parsedOutput = {
|
|
2943
|
-
...output,
|
|
2944
|
-
body: await parseErrorBody(output.body, context),
|
|
2945
|
-
};
|
|
2946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
|
-
switch (errorCode) {
|
|
2948
|
-
case "AccessDeniedException":
|
|
2949
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2950
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2951
|
-
case "InternalServerException":
|
|
2952
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2953
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2954
|
-
case "ResourceNotFoundException":
|
|
2955
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
2956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "ThrottlingException":
|
|
2958
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
2959
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ValidationException":
|
|
2961
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
2962
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2963
|
-
default:
|
|
2964
|
-
const parsedBody = parsedOutput.body;
|
|
2965
|
-
return throwDefaultError({
|
|
2966
|
-
output,
|
|
2967
|
-
parsedBody,
|
|
2968
|
-
errorCode,
|
|
2969
|
-
});
|
|
2970
|
-
}
|
|
2971
|
-
};
|
|
2972
|
-
export const de_ListPermissionSetsProvisionedToAccountCommand = async (output, context) => {
|
|
2973
|
-
if (output.statusCode >= 300) {
|
|
2974
|
-
return de_ListPermissionSetsProvisionedToAccountCommandError(output, context);
|
|
2975
|
-
}
|
|
2976
|
-
const data = await parseBody(output.body, context);
|
|
2977
|
-
let contents = {};
|
|
2978
|
-
contents = _json(data);
|
|
2979
|
-
const response = {
|
|
2980
|
-
$metadata: deserializeMetadata(output),
|
|
2981
|
-
...contents,
|
|
2982
|
-
};
|
|
2983
|
-
return response;
|
|
2984
|
-
};
|
|
2985
|
-
const de_ListPermissionSetsProvisionedToAccountCommandError = async (output, context) => {
|
|
2986
|
-
const parsedOutput = {
|
|
2987
|
-
...output,
|
|
2988
|
-
body: await parseErrorBody(output.body, context),
|
|
2989
|
-
};
|
|
2990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
|
-
switch (errorCode) {
|
|
2992
|
-
case "AccessDeniedException":
|
|
2993
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
2994
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "InternalServerException":
|
|
2996
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
2997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ResourceNotFoundException":
|
|
2999
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "ThrottlingException":
|
|
3002
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3003
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "ValidationException":
|
|
3005
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3006
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3007
|
-
default:
|
|
3008
|
-
const parsedBody = parsedOutput.body;
|
|
3009
|
-
return throwDefaultError({
|
|
3010
|
-
output,
|
|
3011
|
-
parsedBody,
|
|
3012
|
-
errorCode,
|
|
3013
|
-
});
|
|
3014
|
-
}
|
|
3015
|
-
};
|
|
3016
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3017
|
-
if (output.statusCode >= 300) {
|
|
3018
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
3019
|
-
}
|
|
3020
|
-
const data = await parseBody(output.body, context);
|
|
3021
|
-
let contents = {};
|
|
3022
|
-
contents = _json(data);
|
|
3023
|
-
const response = {
|
|
3024
|
-
$metadata: deserializeMetadata(output),
|
|
3025
|
-
...contents,
|
|
3026
|
-
};
|
|
3027
|
-
return response;
|
|
3028
|
-
};
|
|
3029
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3030
|
-
const parsedOutput = {
|
|
3031
|
-
...output,
|
|
3032
|
-
body: await parseErrorBody(output.body, context),
|
|
3033
|
-
};
|
|
3034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
|
-
switch (errorCode) {
|
|
3036
|
-
case "AccessDeniedException":
|
|
3037
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3038
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "InternalServerException":
|
|
3040
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3041
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "ResourceNotFoundException":
|
|
3043
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3044
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "ThrottlingException":
|
|
3046
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3047
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "ValidationException":
|
|
3049
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3050
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3051
|
-
default:
|
|
3052
|
-
const parsedBody = parsedOutput.body;
|
|
3053
|
-
return throwDefaultError({
|
|
3054
|
-
output,
|
|
3055
|
-
parsedBody,
|
|
3056
|
-
errorCode,
|
|
3057
|
-
});
|
|
3058
|
-
}
|
|
3059
|
-
};
|
|
3060
|
-
export const de_ListTrustedTokenIssuersCommand = async (output, context) => {
|
|
3061
|
-
if (output.statusCode >= 300) {
|
|
3062
|
-
return de_ListTrustedTokenIssuersCommandError(output, context);
|
|
3063
|
-
}
|
|
3064
|
-
const data = await parseBody(output.body, context);
|
|
3065
|
-
let contents = {};
|
|
3066
|
-
contents = _json(data);
|
|
3067
|
-
const response = {
|
|
3068
|
-
$metadata: deserializeMetadata(output),
|
|
3069
|
-
...contents,
|
|
3070
|
-
};
|
|
3071
|
-
return response;
|
|
3072
|
-
};
|
|
3073
|
-
const de_ListTrustedTokenIssuersCommandError = async (output, context) => {
|
|
3074
|
-
const parsedOutput = {
|
|
3075
|
-
...output,
|
|
3076
|
-
body: await parseErrorBody(output.body, context),
|
|
3077
|
-
};
|
|
3078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
|
-
switch (errorCode) {
|
|
3080
|
-
case "AccessDeniedException":
|
|
3081
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3082
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "InternalServerException":
|
|
3084
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3085
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "ThrottlingException":
|
|
3087
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3088
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "ValidationException":
|
|
3090
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3091
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3092
|
-
default:
|
|
3093
|
-
const parsedBody = parsedOutput.body;
|
|
3094
|
-
return throwDefaultError({
|
|
3095
|
-
output,
|
|
3096
|
-
parsedBody,
|
|
3097
|
-
errorCode,
|
|
3098
|
-
});
|
|
3099
|
-
}
|
|
3100
|
-
};
|
|
3101
|
-
export const de_ProvisionPermissionSetCommand = async (output, context) => {
|
|
3102
|
-
if (output.statusCode >= 300) {
|
|
3103
|
-
return de_ProvisionPermissionSetCommandError(output, context);
|
|
3104
|
-
}
|
|
3105
|
-
const data = await parseBody(output.body, context);
|
|
3106
|
-
let contents = {};
|
|
3107
|
-
contents = de_ProvisionPermissionSetResponse(data, context);
|
|
3108
|
-
const response = {
|
|
3109
|
-
$metadata: deserializeMetadata(output),
|
|
3110
|
-
...contents,
|
|
3111
|
-
};
|
|
3112
|
-
return response;
|
|
3113
|
-
};
|
|
3114
|
-
const de_ProvisionPermissionSetCommandError = async (output, context) => {
|
|
3115
|
-
const parsedOutput = {
|
|
3116
|
-
...output,
|
|
3117
|
-
body: await parseErrorBody(output.body, context),
|
|
3118
|
-
};
|
|
3119
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3120
|
-
switch (errorCode) {
|
|
3121
|
-
case "AccessDeniedException":
|
|
3122
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3123
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3124
|
-
case "ConflictException":
|
|
3125
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3126
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3127
|
-
case "InternalServerException":
|
|
3128
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3129
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3130
|
-
case "ResourceNotFoundException":
|
|
3131
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3132
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3133
|
-
case "ThrottlingException":
|
|
3134
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3135
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3136
|
-
case "ValidationException":
|
|
3137
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3138
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3139
|
-
default:
|
|
3140
|
-
const parsedBody = parsedOutput.body;
|
|
3141
|
-
return throwDefaultError({
|
|
3142
|
-
output,
|
|
3143
|
-
parsedBody,
|
|
3144
|
-
errorCode,
|
|
3145
|
-
});
|
|
3146
|
-
}
|
|
3147
|
-
};
|
|
3148
|
-
export const de_PutApplicationAccessScopeCommand = async (output, context) => {
|
|
3149
|
-
if (output.statusCode >= 300) {
|
|
3150
|
-
return de_PutApplicationAccessScopeCommandError(output, context);
|
|
3151
|
-
}
|
|
3152
|
-
await collectBody(output.body, context);
|
|
3153
|
-
const response = {
|
|
3154
|
-
$metadata: deserializeMetadata(output),
|
|
3155
|
-
};
|
|
3156
|
-
return response;
|
|
3157
|
-
};
|
|
3158
|
-
const de_PutApplicationAccessScopeCommandError = async (output, context) => {
|
|
3159
|
-
const parsedOutput = {
|
|
3160
|
-
...output,
|
|
3161
|
-
body: await parseErrorBody(output.body, context),
|
|
3162
|
-
};
|
|
3163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
|
-
switch (errorCode) {
|
|
3165
|
-
case "AccessDeniedException":
|
|
3166
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3167
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3168
|
-
case "ConflictException":
|
|
3169
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3170
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "InternalServerException":
|
|
3172
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3173
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "ResourceNotFoundException":
|
|
3175
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3176
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "ThrottlingException":
|
|
3178
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3179
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "ValidationException":
|
|
3181
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3182
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3183
|
-
default:
|
|
3184
|
-
const parsedBody = parsedOutput.body;
|
|
3185
|
-
return throwDefaultError({
|
|
3186
|
-
output,
|
|
3187
|
-
parsedBody,
|
|
3188
|
-
errorCode,
|
|
3189
|
-
});
|
|
3190
|
-
}
|
|
3191
|
-
};
|
|
3192
|
-
export const de_PutApplicationAssignmentConfigurationCommand = async (output, context) => {
|
|
3193
|
-
if (output.statusCode >= 300) {
|
|
3194
|
-
return de_PutApplicationAssignmentConfigurationCommandError(output, context);
|
|
3195
|
-
}
|
|
3196
|
-
const data = await parseBody(output.body, context);
|
|
3197
|
-
let contents = {};
|
|
3198
|
-
contents = _json(data);
|
|
3199
|
-
const response = {
|
|
3200
|
-
$metadata: deserializeMetadata(output),
|
|
3201
|
-
...contents,
|
|
3202
|
-
};
|
|
3203
|
-
return response;
|
|
3204
|
-
};
|
|
3205
|
-
const de_PutApplicationAssignmentConfigurationCommandError = async (output, context) => {
|
|
3206
|
-
const parsedOutput = {
|
|
3207
|
-
...output,
|
|
3208
|
-
body: await parseErrorBody(output.body, context),
|
|
3209
|
-
};
|
|
3210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3211
|
-
switch (errorCode) {
|
|
3212
|
-
case "AccessDeniedException":
|
|
3213
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3214
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3215
|
-
case "ConflictException":
|
|
3216
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3217
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3218
|
-
case "InternalServerException":
|
|
3219
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3220
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3221
|
-
case "ResourceNotFoundException":
|
|
3222
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3223
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3224
|
-
case "ThrottlingException":
|
|
3225
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3226
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3227
|
-
case "ValidationException":
|
|
3228
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3229
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3230
|
-
default:
|
|
3231
|
-
const parsedBody = parsedOutput.body;
|
|
3232
|
-
return throwDefaultError({
|
|
3233
|
-
output,
|
|
3234
|
-
parsedBody,
|
|
3235
|
-
errorCode,
|
|
3236
|
-
});
|
|
3237
|
-
}
|
|
3238
|
-
};
|
|
3239
|
-
export const de_PutApplicationAuthenticationMethodCommand = async (output, context) => {
|
|
3240
|
-
if (output.statusCode >= 300) {
|
|
3241
|
-
return de_PutApplicationAuthenticationMethodCommandError(output, context);
|
|
3242
|
-
}
|
|
3243
|
-
await collectBody(output.body, context);
|
|
3244
|
-
const response = {
|
|
3245
|
-
$metadata: deserializeMetadata(output),
|
|
3246
|
-
};
|
|
3247
|
-
return response;
|
|
3248
|
-
};
|
|
3249
|
-
const de_PutApplicationAuthenticationMethodCommandError = async (output, context) => {
|
|
3250
|
-
const parsedOutput = {
|
|
3251
|
-
...output,
|
|
3252
|
-
body: await parseErrorBody(output.body, context),
|
|
3253
|
-
};
|
|
3254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3255
|
-
switch (errorCode) {
|
|
3256
|
-
case "AccessDeniedException":
|
|
3257
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3258
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3259
|
-
case "ConflictException":
|
|
3260
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3261
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3262
|
-
case "InternalServerException":
|
|
3263
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "ResourceNotFoundException":
|
|
3266
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "ThrottlingException":
|
|
3269
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3270
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "ValidationException":
|
|
3272
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3273
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3274
|
-
default:
|
|
3275
|
-
const parsedBody = parsedOutput.body;
|
|
3276
|
-
return throwDefaultError({
|
|
3277
|
-
output,
|
|
3278
|
-
parsedBody,
|
|
3279
|
-
errorCode,
|
|
3280
|
-
});
|
|
3281
|
-
}
|
|
3282
|
-
};
|
|
3283
|
-
export const de_PutApplicationGrantCommand = async (output, context) => {
|
|
3284
|
-
if (output.statusCode >= 300) {
|
|
3285
|
-
return de_PutApplicationGrantCommandError(output, context);
|
|
1241
|
+
return de_CommandError(output, context);
|
|
3286
1242
|
}
|
|
3287
1243
|
await collectBody(output.body, context);
|
|
3288
|
-
const response = {
|
|
3289
|
-
$metadata: deserializeMetadata(output),
|
|
3290
|
-
};
|
|
3291
|
-
return response;
|
|
3292
|
-
};
|
|
3293
|
-
const
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
body: await parseErrorBody(output.body, context),
|
|
3297
|
-
};
|
|
3298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3299
|
-
switch (errorCode) {
|
|
3300
|
-
case "AccessDeniedException":
|
|
3301
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3302
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "ConflictException":
|
|
3304
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3305
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "InternalServerException":
|
|
3307
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3308
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "ResourceNotFoundException":
|
|
3310
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ThrottlingException":
|
|
3313
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3314
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "ValidationException":
|
|
3316
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3317
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3318
|
-
default:
|
|
3319
|
-
const parsedBody = parsedOutput.body;
|
|
3320
|
-
return throwDefaultError({
|
|
3321
|
-
output,
|
|
3322
|
-
parsedBody,
|
|
3323
|
-
errorCode,
|
|
3324
|
-
});
|
|
3325
|
-
}
|
|
3326
|
-
};
|
|
3327
|
-
export const de_PutInlinePolicyToPermissionSetCommand = async (output, context) => {
|
|
3328
|
-
if (output.statusCode >= 300) {
|
|
3329
|
-
return de_PutInlinePolicyToPermissionSetCommandError(output, context);
|
|
3330
|
-
}
|
|
3331
|
-
const data = await parseBody(output.body, context);
|
|
3332
|
-
let contents = {};
|
|
3333
|
-
contents = _json(data);
|
|
3334
|
-
const response = {
|
|
3335
|
-
$metadata: deserializeMetadata(output),
|
|
3336
|
-
...contents,
|
|
3337
|
-
};
|
|
3338
|
-
return response;
|
|
3339
|
-
};
|
|
3340
|
-
const de_PutInlinePolicyToPermissionSetCommandError = async (output, context) => {
|
|
3341
|
-
const parsedOutput = {
|
|
3342
|
-
...output,
|
|
3343
|
-
body: await parseErrorBody(output.body, context),
|
|
3344
|
-
};
|
|
3345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
|
-
switch (errorCode) {
|
|
3347
|
-
case "AccessDeniedException":
|
|
3348
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3349
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3350
|
-
case "ConflictException":
|
|
3351
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3352
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3353
|
-
case "InternalServerException":
|
|
3354
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "ResourceNotFoundException":
|
|
3357
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "ServiceQuotaExceededException":
|
|
3360
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
3361
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "ThrottlingException":
|
|
3363
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3364
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "ValidationException":
|
|
3366
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3367
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3368
|
-
default:
|
|
3369
|
-
const parsedBody = parsedOutput.body;
|
|
3370
|
-
return throwDefaultError({
|
|
3371
|
-
output,
|
|
3372
|
-
parsedBody,
|
|
3373
|
-
errorCode,
|
|
3374
|
-
});
|
|
1244
|
+
const response = {
|
|
1245
|
+
$metadata: deserializeMetadata(output),
|
|
1246
|
+
};
|
|
1247
|
+
return response;
|
|
1248
|
+
};
|
|
1249
|
+
export const de_PutApplicationGrantCommand = async (output, context) => {
|
|
1250
|
+
if (output.statusCode >= 300) {
|
|
1251
|
+
return de_CommandError(output, context);
|
|
3375
1252
|
}
|
|
1253
|
+
await collectBody(output.body, context);
|
|
1254
|
+
const response = {
|
|
1255
|
+
$metadata: deserializeMetadata(output),
|
|
1256
|
+
};
|
|
1257
|
+
return response;
|
|
3376
1258
|
};
|
|
3377
|
-
export const
|
|
1259
|
+
export const de_PutInlinePolicyToPermissionSetCommand = async (output, context) => {
|
|
3378
1260
|
if (output.statusCode >= 300) {
|
|
3379
|
-
return
|
|
1261
|
+
return de_CommandError(output, context);
|
|
3380
1262
|
}
|
|
3381
1263
|
const data = await parseBody(output.body, context);
|
|
3382
1264
|
let contents = {};
|
|
@@ -3387,43 +1269,22 @@ export const de_PutPermissionsBoundaryToPermissionSetCommand = async (output, co
|
|
|
3387
1269
|
};
|
|
3388
1270
|
return response;
|
|
3389
1271
|
};
|
|
3390
|
-
const
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
body: await parseErrorBody(output.body, context),
|
|
3394
|
-
};
|
|
3395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
|
-
switch (errorCode) {
|
|
3397
|
-
case "AccessDeniedException":
|
|
3398
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "ConflictException":
|
|
3401
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3402
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "InternalServerException":
|
|
3404
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3405
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ResourceNotFoundException":
|
|
3407
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3408
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "ThrottlingException":
|
|
3410
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3411
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3412
|
-
case "ValidationException":
|
|
3413
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3414
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3415
|
-
default:
|
|
3416
|
-
const parsedBody = parsedOutput.body;
|
|
3417
|
-
return throwDefaultError({
|
|
3418
|
-
output,
|
|
3419
|
-
parsedBody,
|
|
3420
|
-
errorCode,
|
|
3421
|
-
});
|
|
1272
|
+
export const de_PutPermissionsBoundaryToPermissionSetCommand = async (output, context) => {
|
|
1273
|
+
if (output.statusCode >= 300) {
|
|
1274
|
+
return de_CommandError(output, context);
|
|
3422
1275
|
}
|
|
1276
|
+
const data = await parseBody(output.body, context);
|
|
1277
|
+
let contents = {};
|
|
1278
|
+
contents = _json(data);
|
|
1279
|
+
const response = {
|
|
1280
|
+
$metadata: deserializeMetadata(output),
|
|
1281
|
+
...contents,
|
|
1282
|
+
};
|
|
1283
|
+
return response;
|
|
3423
1284
|
};
|
|
3424
1285
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3425
1286
|
if (output.statusCode >= 300) {
|
|
3426
|
-
return
|
|
1287
|
+
return de_CommandError(output, context);
|
|
3427
1288
|
}
|
|
3428
1289
|
const data = await parseBody(output.body, context);
|
|
3429
1290
|
let contents = {};
|
|
@@ -3434,46 +1295,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3434
1295
|
};
|
|
3435
1296
|
return response;
|
|
3436
1297
|
};
|
|
3437
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3438
|
-
const parsedOutput = {
|
|
3439
|
-
...output,
|
|
3440
|
-
body: await parseErrorBody(output.body, context),
|
|
3441
|
-
};
|
|
3442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3443
|
-
switch (errorCode) {
|
|
3444
|
-
case "AccessDeniedException":
|
|
3445
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3446
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "ConflictException":
|
|
3448
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3449
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3450
|
-
case "InternalServerException":
|
|
3451
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3452
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3453
|
-
case "ResourceNotFoundException":
|
|
3454
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3456
|
-
case "ServiceQuotaExceededException":
|
|
3457
|
-
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
3458
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3459
|
-
case "ThrottlingException":
|
|
3460
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3461
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3462
|
-
case "ValidationException":
|
|
3463
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3464
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3465
|
-
default:
|
|
3466
|
-
const parsedBody = parsedOutput.body;
|
|
3467
|
-
return throwDefaultError({
|
|
3468
|
-
output,
|
|
3469
|
-
parsedBody,
|
|
3470
|
-
errorCode,
|
|
3471
|
-
});
|
|
3472
|
-
}
|
|
3473
|
-
};
|
|
3474
1298
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3475
1299
|
if (output.statusCode >= 300) {
|
|
3476
|
-
return
|
|
1300
|
+
return de_CommandError(output, context);
|
|
3477
1301
|
}
|
|
3478
1302
|
const data = await parseBody(output.body, context);
|
|
3479
1303
|
let contents = {};
|
|
@@ -3484,43 +1308,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3484
1308
|
};
|
|
3485
1309
|
return response;
|
|
3486
1310
|
};
|
|
3487
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3488
|
-
const parsedOutput = {
|
|
3489
|
-
...output,
|
|
3490
|
-
body: await parseErrorBody(output.body, context),
|
|
3491
|
-
};
|
|
3492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3493
|
-
switch (errorCode) {
|
|
3494
|
-
case "AccessDeniedException":
|
|
3495
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3496
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "ConflictException":
|
|
3498
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3499
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3500
|
-
case "InternalServerException":
|
|
3501
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3502
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ResourceNotFoundException":
|
|
3504
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3505
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "ThrottlingException":
|
|
3507
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3508
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "ValidationException":
|
|
3510
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3511
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3512
|
-
default:
|
|
3513
|
-
const parsedBody = parsedOutput.body;
|
|
3514
|
-
return throwDefaultError({
|
|
3515
|
-
output,
|
|
3516
|
-
parsedBody,
|
|
3517
|
-
errorCode,
|
|
3518
|
-
});
|
|
3519
|
-
}
|
|
3520
|
-
};
|
|
3521
1311
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
3522
1312
|
if (output.statusCode >= 300) {
|
|
3523
|
-
return
|
|
1313
|
+
return de_CommandError(output, context);
|
|
3524
1314
|
}
|
|
3525
1315
|
const data = await parseBody(output.body, context);
|
|
3526
1316
|
let contents = {};
|
|
@@ -3531,43 +1321,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
3531
1321
|
};
|
|
3532
1322
|
return response;
|
|
3533
1323
|
};
|
|
3534
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
3535
|
-
const parsedOutput = {
|
|
3536
|
-
...output,
|
|
3537
|
-
body: await parseErrorBody(output.body, context),
|
|
3538
|
-
};
|
|
3539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
|
-
switch (errorCode) {
|
|
3541
|
-
case "AccessDeniedException":
|
|
3542
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "ConflictException":
|
|
3545
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3546
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "InternalServerException":
|
|
3548
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3549
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3550
|
-
case "ResourceNotFoundException":
|
|
3551
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3553
|
-
case "ThrottlingException":
|
|
3554
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3555
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3556
|
-
case "ValidationException":
|
|
3557
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3558
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3559
|
-
default:
|
|
3560
|
-
const parsedBody = parsedOutput.body;
|
|
3561
|
-
return throwDefaultError({
|
|
3562
|
-
output,
|
|
3563
|
-
parsedBody,
|
|
3564
|
-
errorCode,
|
|
3565
|
-
});
|
|
3566
|
-
}
|
|
3567
|
-
};
|
|
3568
1324
|
export const de_UpdateInstanceCommand = async (output, context) => {
|
|
3569
1325
|
if (output.statusCode >= 300) {
|
|
3570
|
-
return
|
|
1326
|
+
return de_CommandError(output, context);
|
|
3571
1327
|
}
|
|
3572
1328
|
const data = await parseBody(output.body, context);
|
|
3573
1329
|
let contents = {};
|
|
@@ -3578,40 +1334,9 @@ export const de_UpdateInstanceCommand = async (output, context) => {
|
|
|
3578
1334
|
};
|
|
3579
1335
|
return response;
|
|
3580
1336
|
};
|
|
3581
|
-
const de_UpdateInstanceCommandError = async (output, context) => {
|
|
3582
|
-
const parsedOutput = {
|
|
3583
|
-
...output,
|
|
3584
|
-
body: await parseErrorBody(output.body, context),
|
|
3585
|
-
};
|
|
3586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3587
|
-
switch (errorCode) {
|
|
3588
|
-
case "AccessDeniedException":
|
|
3589
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3590
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3591
|
-
case "ConflictException":
|
|
3592
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3593
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3594
|
-
case "InternalServerException":
|
|
3595
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3596
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3597
|
-
case "ThrottlingException":
|
|
3598
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3599
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3600
|
-
case "ValidationException":
|
|
3601
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3602
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3603
|
-
default:
|
|
3604
|
-
const parsedBody = parsedOutput.body;
|
|
3605
|
-
return throwDefaultError({
|
|
3606
|
-
output,
|
|
3607
|
-
parsedBody,
|
|
3608
|
-
errorCode,
|
|
3609
|
-
});
|
|
3610
|
-
}
|
|
3611
|
-
};
|
|
3612
1337
|
export const de_UpdateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
3613
1338
|
if (output.statusCode >= 300) {
|
|
3614
|
-
return
|
|
1339
|
+
return de_CommandError(output, context);
|
|
3615
1340
|
}
|
|
3616
1341
|
const data = await parseBody(output.body, context);
|
|
3617
1342
|
let contents = {};
|
|
@@ -3622,43 +1347,9 @@ export const de_UpdateInstanceAccessControlAttributeConfigurationCommand = async
|
|
|
3622
1347
|
};
|
|
3623
1348
|
return response;
|
|
3624
1349
|
};
|
|
3625
|
-
const de_UpdateInstanceAccessControlAttributeConfigurationCommandError = async (output, context) => {
|
|
3626
|
-
const parsedOutput = {
|
|
3627
|
-
...output,
|
|
3628
|
-
body: await parseErrorBody(output.body, context),
|
|
3629
|
-
};
|
|
3630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
|
-
switch (errorCode) {
|
|
3632
|
-
case "AccessDeniedException":
|
|
3633
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3634
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3635
|
-
case "ConflictException":
|
|
3636
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3637
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3638
|
-
case "InternalServerException":
|
|
3639
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3640
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "ResourceNotFoundException":
|
|
3642
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "ThrottlingException":
|
|
3645
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3646
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "ValidationException":
|
|
3648
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3650
|
-
default:
|
|
3651
|
-
const parsedBody = parsedOutput.body;
|
|
3652
|
-
return throwDefaultError({
|
|
3653
|
-
output,
|
|
3654
|
-
parsedBody,
|
|
3655
|
-
errorCode,
|
|
3656
|
-
});
|
|
3657
|
-
}
|
|
3658
|
-
};
|
|
3659
1350
|
export const de_UpdatePermissionSetCommand = async (output, context) => {
|
|
3660
1351
|
if (output.statusCode >= 300) {
|
|
3661
|
-
return
|
|
1352
|
+
return de_CommandError(output, context);
|
|
3662
1353
|
}
|
|
3663
1354
|
const data = await parseBody(output.body, context);
|
|
3664
1355
|
let contents = {};
|
|
@@ -3669,43 +1360,9 @@ export const de_UpdatePermissionSetCommand = async (output, context) => {
|
|
|
3669
1360
|
};
|
|
3670
1361
|
return response;
|
|
3671
1362
|
};
|
|
3672
|
-
const de_UpdatePermissionSetCommandError = async (output, context) => {
|
|
3673
|
-
const parsedOutput = {
|
|
3674
|
-
...output,
|
|
3675
|
-
body: await parseErrorBody(output.body, context),
|
|
3676
|
-
};
|
|
3677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3678
|
-
switch (errorCode) {
|
|
3679
|
-
case "AccessDeniedException":
|
|
3680
|
-
case "com.amazonaws.ssoadmin#AccessDeniedException":
|
|
3681
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "ConflictException":
|
|
3683
|
-
case "com.amazonaws.ssoadmin#ConflictException":
|
|
3684
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3685
|
-
case "InternalServerException":
|
|
3686
|
-
case "com.amazonaws.ssoadmin#InternalServerException":
|
|
3687
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3688
|
-
case "ResourceNotFoundException":
|
|
3689
|
-
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3690
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "ThrottlingException":
|
|
3692
|
-
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3693
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3694
|
-
case "ValidationException":
|
|
3695
|
-
case "com.amazonaws.ssoadmin#ValidationException":
|
|
3696
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3697
|
-
default:
|
|
3698
|
-
const parsedBody = parsedOutput.body;
|
|
3699
|
-
return throwDefaultError({
|
|
3700
|
-
output,
|
|
3701
|
-
parsedBody,
|
|
3702
|
-
errorCode,
|
|
3703
|
-
});
|
|
3704
|
-
}
|
|
3705
|
-
};
|
|
3706
1363
|
export const de_UpdateTrustedTokenIssuerCommand = async (output, context) => {
|
|
3707
1364
|
if (output.statusCode >= 300) {
|
|
3708
|
-
return
|
|
1365
|
+
return de_CommandError(output, context);
|
|
3709
1366
|
}
|
|
3710
1367
|
const data = await parseBody(output.body, context);
|
|
3711
1368
|
let contents = {};
|
|
@@ -3716,7 +1373,7 @@ export const de_UpdateTrustedTokenIssuerCommand = async (output, context) => {
|
|
|
3716
1373
|
};
|
|
3717
1374
|
return response;
|
|
3718
1375
|
};
|
|
3719
|
-
const
|
|
1376
|
+
const de_CommandError = async (output, context) => {
|
|
3720
1377
|
const parsedOutput = {
|
|
3721
1378
|
...output,
|
|
3722
1379
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3735,6 +1392,9 @@ const de_UpdateTrustedTokenIssuerCommandError = async (output, context) => {
|
|
|
3735
1392
|
case "ResourceNotFoundException":
|
|
3736
1393
|
case "com.amazonaws.ssoadmin#ResourceNotFoundException":
|
|
3737
1394
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
+
case "ServiceQuotaExceededException":
|
|
1396
|
+
case "com.amazonaws.ssoadmin#ServiceQuotaExceededException":
|
|
1397
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3738
1398
|
case "ThrottlingException":
|
|
3739
1399
|
case "com.amazonaws.ssoadmin#ThrottlingException":
|
|
3740
1400
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|