@aws-sdk/client-sso-admin 3.132.0 → 3.142.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/AttachManagedPolicyToPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/CreateAccountAssignmentCommand.js +2 -2
- package/dist-cjs/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreatePermissionSetCommand.js +2 -2
- package/dist-cjs/commands/DeleteAccountAssignmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteInlinePolicyFromPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeletePermissionSetCommand.js +2 -2
- package/dist-cjs/commands/DeletePermissionsBoundaryFromPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/DescribeAccountAssignmentCreationStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeAccountAssignmentDeletionStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribePermissionSetCommand.js +2 -2
- package/dist-cjs/commands/DescribePermissionSetProvisioningStatusCommand.js +2 -2
- package/dist-cjs/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/DetachManagedPolicyFromPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/GetInlinePolicyForPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/GetPermissionsBoundaryForPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/ListAccountAssignmentCreationStatusCommand.js +2 -2
- package/dist-cjs/commands/ListAccountAssignmentDeletionStatusCommand.js +2 -2
- package/dist-cjs/commands/ListAccountAssignmentsCommand.js +2 -2
- package/dist-cjs/commands/ListAccountsForProvisionedPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/ListInstancesCommand.js +2 -2
- package/dist-cjs/commands/ListManagedPoliciesInPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/ListPermissionSetProvisioningStatusCommand.js +2 -2
- package/dist-cjs/commands/ListPermissionSetsCommand.js +2 -2
- package/dist-cjs/commands/ListPermissionSetsProvisionedToAccountCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ProvisionPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/PutInlinePolicyToPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/PutPermissionsBoundaryToPermissionSetCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdatePermissionSetCommand.js +2 -2
- package/dist-cjs/models/models_0.js +359 -537
- package/dist-cjs/protocols/Aws_json1_1.js +185 -308
- package/dist-es/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.js +3 -3
- package/dist-es/commands/AttachManagedPolicyToPermissionSetCommand.js +3 -3
- package/dist-es/commands/CreateAccountAssignmentCommand.js +3 -3
- package/dist-es/commands/CreateInstanceAccessControlAttributeConfigurationCommand.js +3 -3
- package/dist-es/commands/CreatePermissionSetCommand.js +3 -3
- package/dist-es/commands/DeleteAccountAssignmentCommand.js +3 -3
- package/dist-es/commands/DeleteInlinePolicyFromPermissionSetCommand.js +3 -3
- package/dist-es/commands/DeleteInstanceAccessControlAttributeConfigurationCommand.js +3 -3
- package/dist-es/commands/DeletePermissionSetCommand.js +3 -3
- package/dist-es/commands/DeletePermissionsBoundaryFromPermissionSetCommand.js +3 -3
- package/dist-es/commands/DescribeAccountAssignmentCreationStatusCommand.js +3 -3
- package/dist-es/commands/DescribeAccountAssignmentDeletionStatusCommand.js +3 -3
- package/dist-es/commands/DescribeInstanceAccessControlAttributeConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribePermissionSetCommand.js +3 -3
- package/dist-es/commands/DescribePermissionSetProvisioningStatusCommand.js +3 -3
- package/dist-es/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.js +3 -3
- package/dist-es/commands/DetachManagedPolicyFromPermissionSetCommand.js +3 -3
- package/dist-es/commands/GetInlinePolicyForPermissionSetCommand.js +3 -3
- package/dist-es/commands/GetPermissionsBoundaryForPermissionSetCommand.js +3 -3
- package/dist-es/commands/ListAccountAssignmentCreationStatusCommand.js +3 -3
- package/dist-es/commands/ListAccountAssignmentDeletionStatusCommand.js +3 -3
- package/dist-es/commands/ListAccountAssignmentsCommand.js +3 -3
- package/dist-es/commands/ListAccountsForProvisionedPermissionSetCommand.js +3 -3
- package/dist-es/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.js +3 -3
- package/dist-es/commands/ListInstancesCommand.js +3 -3
- package/dist-es/commands/ListManagedPoliciesInPermissionSetCommand.js +3 -3
- package/dist-es/commands/ListPermissionSetProvisioningStatusCommand.js +3 -3
- package/dist-es/commands/ListPermissionSetsCommand.js +3 -3
- package/dist-es/commands/ListPermissionSetsProvisionedToAccountCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ProvisionPermissionSetCommand.js +3 -3
- package/dist-es/commands/PutInlinePolicyToPermissionSetCommand.js +3 -3
- package/dist-es/commands/PutPermissionsBoundaryToPermissionSetCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateInstanceAccessControlAttributeConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdatePermissionSetCommand.js +3 -3
- package/dist-es/models/models_0.js +89 -356
- package/dist-es/protocols/Aws_json1_1.js +297 -309
- package/dist-types/models/models_0.d.ts +356 -534
- package/dist-types/ts3.4/models/models_0.d.ts +178 -356
- package/package.json +6 -6
|
@@ -395,7 +395,6 @@ const deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetC
|
|
|
395
395
|
...output,
|
|
396
396
|
body: await parseBody(output.body, context),
|
|
397
397
|
};
|
|
398
|
-
let response;
|
|
399
398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
399
|
switch (errorCode) {
|
|
401
400
|
case "AccessDeniedException":
|
|
@@ -421,14 +420,12 @@ const deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetC
|
|
|
421
420
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
422
421
|
default:
|
|
423
422
|
const parsedBody = parsedOutput.body;
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
$metadata,
|
|
423
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
424
|
+
output,
|
|
425
|
+
parsedBody,
|
|
426
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
427
|
+
errorCode,
|
|
430
428
|
});
|
|
431
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
432
429
|
}
|
|
433
430
|
};
|
|
434
431
|
const deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommand = async (output, context) => {
|
|
@@ -450,7 +447,6 @@ const deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError = asy
|
|
|
450
447
|
...output,
|
|
451
448
|
body: await parseBody(output.body, context),
|
|
452
449
|
};
|
|
453
|
-
let response;
|
|
454
450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
451
|
switch (errorCode) {
|
|
456
452
|
case "AccessDeniedException":
|
|
@@ -476,14 +472,12 @@ const deserializeAws_json1_1AttachManagedPolicyToPermissionSetCommandError = asy
|
|
|
476
472
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
477
473
|
default:
|
|
478
474
|
const parsedBody = parsedOutput.body;
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
$metadata,
|
|
475
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
476
|
+
output,
|
|
477
|
+
parsedBody,
|
|
478
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
479
|
+
errorCode,
|
|
485
480
|
});
|
|
486
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
487
481
|
}
|
|
488
482
|
};
|
|
489
483
|
const deserializeAws_json1_1CreateAccountAssignmentCommand = async (output, context) => {
|
|
@@ -505,7 +499,6 @@ const deserializeAws_json1_1CreateAccountAssignmentCommandError = async (output,
|
|
|
505
499
|
...output,
|
|
506
500
|
body: await parseBody(output.body, context),
|
|
507
501
|
};
|
|
508
|
-
let response;
|
|
509
502
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
503
|
switch (errorCode) {
|
|
511
504
|
case "AccessDeniedException":
|
|
@@ -531,14 +524,12 @@ const deserializeAws_json1_1CreateAccountAssignmentCommandError = async (output,
|
|
|
531
524
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
532
525
|
default:
|
|
533
526
|
const parsedBody = parsedOutput.body;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
$metadata,
|
|
527
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
528
|
+
output,
|
|
529
|
+
parsedBody,
|
|
530
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
531
|
+
errorCode,
|
|
540
532
|
});
|
|
541
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
542
533
|
}
|
|
543
534
|
};
|
|
544
535
|
const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
@@ -560,7 +551,6 @@ const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCom
|
|
|
560
551
|
...output,
|
|
561
552
|
body: await parseBody(output.body, context),
|
|
562
553
|
};
|
|
563
|
-
let response;
|
|
564
554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
555
|
switch (errorCode) {
|
|
566
556
|
case "AccessDeniedException":
|
|
@@ -583,14 +573,12 @@ const deserializeAws_json1_1CreateInstanceAccessControlAttributeConfigurationCom
|
|
|
583
573
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
584
574
|
default:
|
|
585
575
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
$metadata,
|
|
576
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
577
|
+
output,
|
|
578
|
+
parsedBody,
|
|
579
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
580
|
+
errorCode,
|
|
592
581
|
});
|
|
593
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
594
582
|
}
|
|
595
583
|
};
|
|
596
584
|
const deserializeAws_json1_1CreatePermissionSetCommand = async (output, context) => {
|
|
@@ -612,7 +600,6 @@ const deserializeAws_json1_1CreatePermissionSetCommandError = async (output, con
|
|
|
612
600
|
...output,
|
|
613
601
|
body: await parseBody(output.body, context),
|
|
614
602
|
};
|
|
615
|
-
let response;
|
|
616
603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
604
|
switch (errorCode) {
|
|
618
605
|
case "AccessDeniedException":
|
|
@@ -638,14 +625,12 @@ const deserializeAws_json1_1CreatePermissionSetCommandError = async (output, con
|
|
|
638
625
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
639
626
|
default:
|
|
640
627
|
const parsedBody = parsedOutput.body;
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
$metadata,
|
|
628
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
629
|
+
output,
|
|
630
|
+
parsedBody,
|
|
631
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
632
|
+
errorCode,
|
|
647
633
|
});
|
|
648
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
649
634
|
}
|
|
650
635
|
};
|
|
651
636
|
const deserializeAws_json1_1DeleteAccountAssignmentCommand = async (output, context) => {
|
|
@@ -667,7 +652,6 @@ const deserializeAws_json1_1DeleteAccountAssignmentCommandError = async (output,
|
|
|
667
652
|
...output,
|
|
668
653
|
body: await parseBody(output.body, context),
|
|
669
654
|
};
|
|
670
|
-
let response;
|
|
671
655
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
656
|
switch (errorCode) {
|
|
673
657
|
case "AccessDeniedException":
|
|
@@ -690,14 +674,12 @@ const deserializeAws_json1_1DeleteAccountAssignmentCommandError = async (output,
|
|
|
690
674
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
691
675
|
default:
|
|
692
676
|
const parsedBody = parsedOutput.body;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
$metadata,
|
|
677
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
678
|
+
output,
|
|
679
|
+
parsedBody,
|
|
680
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
681
|
+
errorCode,
|
|
699
682
|
});
|
|
700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
701
683
|
}
|
|
702
684
|
};
|
|
703
685
|
const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommand = async (output, context) => {
|
|
@@ -719,7 +701,6 @@ const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError = as
|
|
|
719
701
|
...output,
|
|
720
702
|
body: await parseBody(output.body, context),
|
|
721
703
|
};
|
|
722
|
-
let response;
|
|
723
704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
705
|
switch (errorCode) {
|
|
725
706
|
case "AccessDeniedException":
|
|
@@ -742,14 +723,12 @@ const deserializeAws_json1_1DeleteInlinePolicyFromPermissionSetCommandError = as
|
|
|
742
723
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
743
724
|
default:
|
|
744
725
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
$metadata,
|
|
726
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
727
|
+
output,
|
|
728
|
+
parsedBody,
|
|
729
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
730
|
+
errorCode,
|
|
751
731
|
});
|
|
752
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
753
732
|
}
|
|
754
733
|
};
|
|
755
734
|
const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
@@ -771,7 +750,6 @@ const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCom
|
|
|
771
750
|
...output,
|
|
772
751
|
body: await parseBody(output.body, context),
|
|
773
752
|
};
|
|
774
|
-
let response;
|
|
775
753
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
754
|
switch (errorCode) {
|
|
777
755
|
case "AccessDeniedException":
|
|
@@ -794,14 +772,12 @@ const deserializeAws_json1_1DeleteInstanceAccessControlAttributeConfigurationCom
|
|
|
794
772
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
795
773
|
default:
|
|
796
774
|
const parsedBody = parsedOutput.body;
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
$metadata,
|
|
775
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
776
|
+
output,
|
|
777
|
+
parsedBody,
|
|
778
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
779
|
+
errorCode,
|
|
803
780
|
});
|
|
804
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
805
781
|
}
|
|
806
782
|
};
|
|
807
783
|
const deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommand = async (output, context) => {
|
|
@@ -823,7 +799,6 @@ const deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommandErr
|
|
|
823
799
|
...output,
|
|
824
800
|
body: await parseBody(output.body, context),
|
|
825
801
|
};
|
|
826
|
-
let response;
|
|
827
802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
803
|
switch (errorCode) {
|
|
829
804
|
case "AccessDeniedException":
|
|
@@ -843,14 +818,12 @@ const deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommandErr
|
|
|
843
818
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
844
819
|
default:
|
|
845
820
|
const parsedBody = parsedOutput.body;
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
$metadata,
|
|
821
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
822
|
+
output,
|
|
823
|
+
parsedBody,
|
|
824
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
825
|
+
errorCode,
|
|
852
826
|
});
|
|
853
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
854
827
|
}
|
|
855
828
|
};
|
|
856
829
|
const deserializeAws_json1_1DeletePermissionSetCommand = async (output, context) => {
|
|
@@ -872,7 +845,6 @@ const deserializeAws_json1_1DeletePermissionSetCommandError = async (output, con
|
|
|
872
845
|
...output,
|
|
873
846
|
body: await parseBody(output.body, context),
|
|
874
847
|
};
|
|
875
|
-
let response;
|
|
876
848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
849
|
switch (errorCode) {
|
|
878
850
|
case "AccessDeniedException":
|
|
@@ -895,14 +867,12 @@ const deserializeAws_json1_1DeletePermissionSetCommandError = async (output, con
|
|
|
895
867
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
896
868
|
default:
|
|
897
869
|
const parsedBody = parsedOutput.body;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
$metadata,
|
|
870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
874
|
+
errorCode,
|
|
904
875
|
});
|
|
905
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
906
876
|
}
|
|
907
877
|
};
|
|
908
878
|
const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
@@ -924,7 +894,6 @@ const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError
|
|
|
924
894
|
...output,
|
|
925
895
|
body: await parseBody(output.body, context),
|
|
926
896
|
};
|
|
927
|
-
let response;
|
|
928
897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
898
|
switch (errorCode) {
|
|
930
899
|
case "AccessDeniedException":
|
|
@@ -944,14 +913,12 @@ const deserializeAws_json1_1DescribeAccountAssignmentCreationStatusCommandError
|
|
|
944
913
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
945
914
|
default:
|
|
946
915
|
const parsedBody = parsedOutput.body;
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
$metadata,
|
|
916
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
917
|
+
output,
|
|
918
|
+
parsedBody,
|
|
919
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
920
|
+
errorCode,
|
|
953
921
|
});
|
|
954
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
955
922
|
}
|
|
956
923
|
};
|
|
957
924
|
const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
@@ -973,7 +940,6 @@ const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError
|
|
|
973
940
|
...output,
|
|
974
941
|
body: await parseBody(output.body, context),
|
|
975
942
|
};
|
|
976
|
-
let response;
|
|
977
943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
944
|
switch (errorCode) {
|
|
979
945
|
case "AccessDeniedException":
|
|
@@ -993,14 +959,12 @@ const deserializeAws_json1_1DescribeAccountAssignmentDeletionStatusCommandError
|
|
|
993
959
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
994
960
|
default:
|
|
995
961
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
$metadata,
|
|
962
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
963
|
+
output,
|
|
964
|
+
parsedBody,
|
|
965
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
966
|
+
errorCode,
|
|
1002
967
|
});
|
|
1003
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1004
968
|
}
|
|
1005
969
|
};
|
|
1006
970
|
const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
@@ -1022,7 +986,6 @@ const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationC
|
|
|
1022
986
|
...output,
|
|
1023
987
|
body: await parseBody(output.body, context),
|
|
1024
988
|
};
|
|
1025
|
-
let response;
|
|
1026
989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
990
|
switch (errorCode) {
|
|
1028
991
|
case "AccessDeniedException":
|
|
@@ -1042,14 +1005,12 @@ const deserializeAws_json1_1DescribeInstanceAccessControlAttributeConfigurationC
|
|
|
1042
1005
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1043
1006
|
default:
|
|
1044
1007
|
const parsedBody = parsedOutput.body;
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
$metadata,
|
|
1008
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1009
|
+
output,
|
|
1010
|
+
parsedBody,
|
|
1011
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1012
|
+
errorCode,
|
|
1051
1013
|
});
|
|
1052
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1053
1014
|
}
|
|
1054
1015
|
};
|
|
1055
1016
|
const deserializeAws_json1_1DescribePermissionSetCommand = async (output, context) => {
|
|
@@ -1071,7 +1032,6 @@ const deserializeAws_json1_1DescribePermissionSetCommandError = async (output, c
|
|
|
1071
1032
|
...output,
|
|
1072
1033
|
body: await parseBody(output.body, context),
|
|
1073
1034
|
};
|
|
1074
|
-
let response;
|
|
1075
1035
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
1036
|
switch (errorCode) {
|
|
1077
1037
|
case "AccessDeniedException":
|
|
@@ -1091,14 +1051,12 @@ const deserializeAws_json1_1DescribePermissionSetCommandError = async (output, c
|
|
|
1091
1051
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1092
1052
|
default:
|
|
1093
1053
|
const parsedBody = parsedOutput.body;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
$metadata,
|
|
1054
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1055
|
+
output,
|
|
1056
|
+
parsedBody,
|
|
1057
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1058
|
+
errorCode,
|
|
1100
1059
|
});
|
|
1101
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1102
1060
|
}
|
|
1103
1061
|
};
|
|
1104
1062
|
const deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
@@ -1120,7 +1078,6 @@ const deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError
|
|
|
1120
1078
|
...output,
|
|
1121
1079
|
body: await parseBody(output.body, context),
|
|
1122
1080
|
};
|
|
1123
|
-
let response;
|
|
1124
1081
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1082
|
switch (errorCode) {
|
|
1126
1083
|
case "AccessDeniedException":
|
|
@@ -1140,14 +1097,12 @@ const deserializeAws_json1_1DescribePermissionSetProvisioningStatusCommandError
|
|
|
1140
1097
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1141
1098
|
default:
|
|
1142
1099
|
const parsedBody = parsedOutput.body;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
$metadata,
|
|
1100
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1101
|
+
output,
|
|
1102
|
+
parsedBody,
|
|
1103
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1104
|
+
errorCode,
|
|
1149
1105
|
});
|
|
1150
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1151
1106
|
}
|
|
1152
1107
|
};
|
|
1153
1108
|
const deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = async (output, context) => {
|
|
@@ -1169,7 +1124,6 @@ const deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSe
|
|
|
1169
1124
|
...output,
|
|
1170
1125
|
body: await parseBody(output.body, context),
|
|
1171
1126
|
};
|
|
1172
|
-
let response;
|
|
1173
1127
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1128
|
switch (errorCode) {
|
|
1175
1129
|
case "AccessDeniedException":
|
|
@@ -1192,14 +1146,12 @@ const deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSe
|
|
|
1192
1146
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1193
1147
|
default:
|
|
1194
1148
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
$metadata,
|
|
1149
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1150
|
+
output,
|
|
1151
|
+
parsedBody,
|
|
1152
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1153
|
+
errorCode,
|
|
1201
1154
|
});
|
|
1202
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1203
1155
|
}
|
|
1204
1156
|
};
|
|
1205
1157
|
const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommand = async (output, context) => {
|
|
@@ -1221,7 +1173,6 @@ const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError = a
|
|
|
1221
1173
|
...output,
|
|
1222
1174
|
body: await parseBody(output.body, context),
|
|
1223
1175
|
};
|
|
1224
|
-
let response;
|
|
1225
1176
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1177
|
switch (errorCode) {
|
|
1227
1178
|
case "AccessDeniedException":
|
|
@@ -1244,14 +1195,12 @@ const deserializeAws_json1_1DetachManagedPolicyFromPermissionSetCommandError = a
|
|
|
1244
1195
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1245
1196
|
default:
|
|
1246
1197
|
const parsedBody = parsedOutput.body;
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
$metadata,
|
|
1198
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1199
|
+
output,
|
|
1200
|
+
parsedBody,
|
|
1201
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1202
|
+
errorCode,
|
|
1253
1203
|
});
|
|
1254
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1255
1204
|
}
|
|
1256
1205
|
};
|
|
1257
1206
|
const deserializeAws_json1_1GetInlinePolicyForPermissionSetCommand = async (output, context) => {
|
|
@@ -1273,7 +1222,6 @@ const deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError = async
|
|
|
1273
1222
|
...output,
|
|
1274
1223
|
body: await parseBody(output.body, context),
|
|
1275
1224
|
};
|
|
1276
|
-
let response;
|
|
1277
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
1226
|
switch (errorCode) {
|
|
1279
1227
|
case "AccessDeniedException":
|
|
@@ -1293,14 +1241,12 @@ const deserializeAws_json1_1GetInlinePolicyForPermissionSetCommandError = async
|
|
|
1293
1241
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1294
1242
|
default:
|
|
1295
1243
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
$metadata,
|
|
1244
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1245
|
+
output,
|
|
1246
|
+
parsedBody,
|
|
1247
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1248
|
+
errorCode,
|
|
1302
1249
|
});
|
|
1303
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1304
1250
|
}
|
|
1305
1251
|
};
|
|
1306
1252
|
const deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommand = async (output, context) => {
|
|
@@ -1322,7 +1268,6 @@ const deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommandError =
|
|
|
1322
1268
|
...output,
|
|
1323
1269
|
body: await parseBody(output.body, context),
|
|
1324
1270
|
};
|
|
1325
|
-
let response;
|
|
1326
1271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1272
|
switch (errorCode) {
|
|
1328
1273
|
case "AccessDeniedException":
|
|
@@ -1342,14 +1287,12 @@ const deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommandError =
|
|
|
1342
1287
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1343
1288
|
default:
|
|
1344
1289
|
const parsedBody = parsedOutput.body;
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
$metadata,
|
|
1290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1291
|
+
output,
|
|
1292
|
+
parsedBody,
|
|
1293
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1294
|
+
errorCode,
|
|
1351
1295
|
});
|
|
1352
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1353
1296
|
}
|
|
1354
1297
|
};
|
|
1355
1298
|
const deserializeAws_json1_1ListAccountAssignmentCreationStatusCommand = async (output, context) => {
|
|
@@ -1371,7 +1314,6 @@ const deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError = as
|
|
|
1371
1314
|
...output,
|
|
1372
1315
|
body: await parseBody(output.body, context),
|
|
1373
1316
|
};
|
|
1374
|
-
let response;
|
|
1375
1317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
1318
|
switch (errorCode) {
|
|
1377
1319
|
case "AccessDeniedException":
|
|
@@ -1391,14 +1333,12 @@ const deserializeAws_json1_1ListAccountAssignmentCreationStatusCommandError = as
|
|
|
1391
1333
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1392
1334
|
default:
|
|
1393
1335
|
const parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
$metadata,
|
|
1336
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1337
|
+
output,
|
|
1338
|
+
parsedBody,
|
|
1339
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1340
|
+
errorCode,
|
|
1400
1341
|
});
|
|
1401
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1402
1342
|
}
|
|
1403
1343
|
};
|
|
1404
1344
|
const deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommand = async (output, context) => {
|
|
@@ -1420,7 +1360,6 @@ const deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError = as
|
|
|
1420
1360
|
...output,
|
|
1421
1361
|
body: await parseBody(output.body, context),
|
|
1422
1362
|
};
|
|
1423
|
-
let response;
|
|
1424
1363
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
1364
|
switch (errorCode) {
|
|
1426
1365
|
case "AccessDeniedException":
|
|
@@ -1440,14 +1379,12 @@ const deserializeAws_json1_1ListAccountAssignmentDeletionStatusCommandError = as
|
|
|
1440
1379
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1441
1380
|
default:
|
|
1442
1381
|
const parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
$metadata,
|
|
1382
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1383
|
+
output,
|
|
1384
|
+
parsedBody,
|
|
1385
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1386
|
+
errorCode,
|
|
1449
1387
|
});
|
|
1450
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1451
1388
|
}
|
|
1452
1389
|
};
|
|
1453
1390
|
const deserializeAws_json1_1ListAccountAssignmentsCommand = async (output, context) => {
|
|
@@ -1469,7 +1406,6 @@ const deserializeAws_json1_1ListAccountAssignmentsCommandError = async (output,
|
|
|
1469
1406
|
...output,
|
|
1470
1407
|
body: await parseBody(output.body, context),
|
|
1471
1408
|
};
|
|
1472
|
-
let response;
|
|
1473
1409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
1410
|
switch (errorCode) {
|
|
1475
1411
|
case "AccessDeniedException":
|
|
@@ -1489,14 +1425,12 @@ const deserializeAws_json1_1ListAccountAssignmentsCommandError = async (output,
|
|
|
1489
1425
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1490
1426
|
default:
|
|
1491
1427
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
$metadata,
|
|
1428
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1429
|
+
output,
|
|
1430
|
+
parsedBody,
|
|
1431
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1432
|
+
errorCode,
|
|
1498
1433
|
});
|
|
1499
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1500
1434
|
}
|
|
1501
1435
|
};
|
|
1502
1436
|
const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommand = async (output, context) => {
|
|
@@ -1518,7 +1452,6 @@ const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError
|
|
|
1518
1452
|
...output,
|
|
1519
1453
|
body: await parseBody(output.body, context),
|
|
1520
1454
|
};
|
|
1521
|
-
let response;
|
|
1522
1455
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1456
|
switch (errorCode) {
|
|
1524
1457
|
case "AccessDeniedException":
|
|
@@ -1538,14 +1471,12 @@ const deserializeAws_json1_1ListAccountsForProvisionedPermissionSetCommandError
|
|
|
1538
1471
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1539
1472
|
default:
|
|
1540
1473
|
const parsedBody = parsedOutput.body;
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
$metadata,
|
|
1474
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1475
|
+
output,
|
|
1476
|
+
parsedBody,
|
|
1477
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1478
|
+
errorCode,
|
|
1547
1479
|
});
|
|
1548
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1549
1480
|
}
|
|
1550
1481
|
};
|
|
1551
1482
|
const deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCommand = async (output, context) => {
|
|
@@ -1567,7 +1498,6 @@ const deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCo
|
|
|
1567
1498
|
...output,
|
|
1568
1499
|
body: await parseBody(output.body, context),
|
|
1569
1500
|
};
|
|
1570
|
-
let response;
|
|
1571
1501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
1502
|
switch (errorCode) {
|
|
1573
1503
|
case "AccessDeniedException":
|
|
@@ -1587,14 +1517,12 @@ const deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCo
|
|
|
1587
1517
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1588
1518
|
default:
|
|
1589
1519
|
const parsedBody = parsedOutput.body;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
$metadata,
|
|
1520
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1521
|
+
output,
|
|
1522
|
+
parsedBody,
|
|
1523
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1524
|
+
errorCode,
|
|
1596
1525
|
});
|
|
1597
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1598
1526
|
}
|
|
1599
1527
|
};
|
|
1600
1528
|
const deserializeAws_json1_1ListInstancesCommand = async (output, context) => {
|
|
@@ -1616,7 +1544,6 @@ const deserializeAws_json1_1ListInstancesCommandError = async (output, context)
|
|
|
1616
1544
|
...output,
|
|
1617
1545
|
body: await parseBody(output.body, context),
|
|
1618
1546
|
};
|
|
1619
|
-
let response;
|
|
1620
1547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1548
|
switch (errorCode) {
|
|
1622
1549
|
case "AccessDeniedException":
|
|
@@ -1633,14 +1560,12 @@ const deserializeAws_json1_1ListInstancesCommandError = async (output, context)
|
|
|
1633
1560
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1634
1561
|
default:
|
|
1635
1562
|
const parsedBody = parsedOutput.body;
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
$metadata,
|
|
1563
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1564
|
+
output,
|
|
1565
|
+
parsedBody,
|
|
1566
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1567
|
+
errorCode,
|
|
1642
1568
|
});
|
|
1643
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1644
1569
|
}
|
|
1645
1570
|
};
|
|
1646
1571
|
const deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommand = async (output, context) => {
|
|
@@ -1662,7 +1587,6 @@ const deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError = asy
|
|
|
1662
1587
|
...output,
|
|
1663
1588
|
body: await parseBody(output.body, context),
|
|
1664
1589
|
};
|
|
1665
|
-
let response;
|
|
1666
1590
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
1591
|
switch (errorCode) {
|
|
1668
1592
|
case "AccessDeniedException":
|
|
@@ -1682,14 +1606,12 @@ const deserializeAws_json1_1ListManagedPoliciesInPermissionSetCommandError = asy
|
|
|
1682
1606
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1683
1607
|
default:
|
|
1684
1608
|
const parsedBody = parsedOutput.body;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
$metadata,
|
|
1609
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1610
|
+
output,
|
|
1611
|
+
parsedBody,
|
|
1612
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1613
|
+
errorCode,
|
|
1691
1614
|
});
|
|
1692
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1693
1615
|
}
|
|
1694
1616
|
};
|
|
1695
1617
|
const deserializeAws_json1_1ListPermissionSetProvisioningStatusCommand = async (output, context) => {
|
|
@@ -1711,7 +1633,6 @@ const deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError = as
|
|
|
1711
1633
|
...output,
|
|
1712
1634
|
body: await parseBody(output.body, context),
|
|
1713
1635
|
};
|
|
1714
|
-
let response;
|
|
1715
1636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
1637
|
switch (errorCode) {
|
|
1717
1638
|
case "AccessDeniedException":
|
|
@@ -1731,14 +1652,12 @@ const deserializeAws_json1_1ListPermissionSetProvisioningStatusCommandError = as
|
|
|
1731
1652
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1732
1653
|
default:
|
|
1733
1654
|
const parsedBody = parsedOutput.body;
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
$metadata,
|
|
1655
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1656
|
+
output,
|
|
1657
|
+
parsedBody,
|
|
1658
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1659
|
+
errorCode,
|
|
1740
1660
|
});
|
|
1741
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1742
1661
|
}
|
|
1743
1662
|
};
|
|
1744
1663
|
const deserializeAws_json1_1ListPermissionSetsCommand = async (output, context) => {
|
|
@@ -1760,7 +1679,6 @@ const deserializeAws_json1_1ListPermissionSetsCommandError = async (output, cont
|
|
|
1760
1679
|
...output,
|
|
1761
1680
|
body: await parseBody(output.body, context),
|
|
1762
1681
|
};
|
|
1763
|
-
let response;
|
|
1764
1682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1683
|
switch (errorCode) {
|
|
1766
1684
|
case "AccessDeniedException":
|
|
@@ -1780,14 +1698,12 @@ const deserializeAws_json1_1ListPermissionSetsCommandError = async (output, cont
|
|
|
1780
1698
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1781
1699
|
default:
|
|
1782
1700
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
$metadata,
|
|
1701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1702
|
+
output,
|
|
1703
|
+
parsedBody,
|
|
1704
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1705
|
+
errorCode,
|
|
1789
1706
|
});
|
|
1790
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1791
1707
|
}
|
|
1792
1708
|
};
|
|
1793
1709
|
const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommand = async (output, context) => {
|
|
@@ -1809,7 +1725,6 @@ const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError =
|
|
|
1809
1725
|
...output,
|
|
1810
1726
|
body: await parseBody(output.body, context),
|
|
1811
1727
|
};
|
|
1812
|
-
let response;
|
|
1813
1728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
1729
|
switch (errorCode) {
|
|
1815
1730
|
case "AccessDeniedException":
|
|
@@ -1829,14 +1744,12 @@ const deserializeAws_json1_1ListPermissionSetsProvisionedToAccountCommandError =
|
|
|
1829
1744
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1830
1745
|
default:
|
|
1831
1746
|
const parsedBody = parsedOutput.body;
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
$metadata,
|
|
1747
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1748
|
+
output,
|
|
1749
|
+
parsedBody,
|
|
1750
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1751
|
+
errorCode,
|
|
1838
1752
|
});
|
|
1839
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1840
1753
|
}
|
|
1841
1754
|
};
|
|
1842
1755
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1858,7 +1771,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1858
1771
|
...output,
|
|
1859
1772
|
body: await parseBody(output.body, context),
|
|
1860
1773
|
};
|
|
1861
|
-
let response;
|
|
1862
1774
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1863
1775
|
switch (errorCode) {
|
|
1864
1776
|
case "AccessDeniedException":
|
|
@@ -1878,14 +1790,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1878
1790
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1879
1791
|
default:
|
|
1880
1792
|
const parsedBody = parsedOutput.body;
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
$metadata,
|
|
1793
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1794
|
+
output,
|
|
1795
|
+
parsedBody,
|
|
1796
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1797
|
+
errorCode,
|
|
1887
1798
|
});
|
|
1888
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1889
1799
|
}
|
|
1890
1800
|
};
|
|
1891
1801
|
const deserializeAws_json1_1ProvisionPermissionSetCommand = async (output, context) => {
|
|
@@ -1907,7 +1817,6 @@ const deserializeAws_json1_1ProvisionPermissionSetCommandError = async (output,
|
|
|
1907
1817
|
...output,
|
|
1908
1818
|
body: await parseBody(output.body, context),
|
|
1909
1819
|
};
|
|
1910
|
-
let response;
|
|
1911
1820
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1821
|
switch (errorCode) {
|
|
1913
1822
|
case "AccessDeniedException":
|
|
@@ -1930,14 +1839,12 @@ const deserializeAws_json1_1ProvisionPermissionSetCommandError = async (output,
|
|
|
1930
1839
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1931
1840
|
default:
|
|
1932
1841
|
const parsedBody = parsedOutput.body;
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
$metadata,
|
|
1842
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1843
|
+
output,
|
|
1844
|
+
parsedBody,
|
|
1845
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1846
|
+
errorCode,
|
|
1939
1847
|
});
|
|
1940
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1941
1848
|
}
|
|
1942
1849
|
};
|
|
1943
1850
|
const deserializeAws_json1_1PutInlinePolicyToPermissionSetCommand = async (output, context) => {
|
|
@@ -1959,7 +1866,6 @@ const deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError = async (
|
|
|
1959
1866
|
...output,
|
|
1960
1867
|
body: await parseBody(output.body, context),
|
|
1961
1868
|
};
|
|
1962
|
-
let response;
|
|
1963
1869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
1870
|
switch (errorCode) {
|
|
1965
1871
|
case "AccessDeniedException":
|
|
@@ -1985,14 +1891,12 @@ const deserializeAws_json1_1PutInlinePolicyToPermissionSetCommandError = async (
|
|
|
1985
1891
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1986
1892
|
default:
|
|
1987
1893
|
const parsedBody = parsedOutput.body;
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
$metadata,
|
|
1894
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1895
|
+
output,
|
|
1896
|
+
parsedBody,
|
|
1897
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1898
|
+
errorCode,
|
|
1994
1899
|
});
|
|
1995
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1996
1900
|
}
|
|
1997
1901
|
};
|
|
1998
1902
|
const deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommand = async (output, context) => {
|
|
@@ -2014,7 +1918,6 @@ const deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommandError =
|
|
|
2014
1918
|
...output,
|
|
2015
1919
|
body: await parseBody(output.body, context),
|
|
2016
1920
|
};
|
|
2017
|
-
let response;
|
|
2018
1921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2019
1922
|
switch (errorCode) {
|
|
2020
1923
|
case "AccessDeniedException":
|
|
@@ -2037,14 +1940,12 @@ const deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommandError =
|
|
|
2037
1940
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2038
1941
|
default:
|
|
2039
1942
|
const parsedBody = parsedOutput.body;
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
$metadata,
|
|
1943
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1944
|
+
output,
|
|
1945
|
+
parsedBody,
|
|
1946
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1947
|
+
errorCode,
|
|
2046
1948
|
});
|
|
2047
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2048
1949
|
}
|
|
2049
1950
|
};
|
|
2050
1951
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2066,7 +1967,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2066
1967
|
...output,
|
|
2067
1968
|
body: await parseBody(output.body, context),
|
|
2068
1969
|
};
|
|
2069
|
-
let response;
|
|
2070
1970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
1971
|
switch (errorCode) {
|
|
2072
1972
|
case "AccessDeniedException":
|
|
@@ -2092,14 +1992,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2092
1992
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2093
1993
|
default:
|
|
2094
1994
|
const parsedBody = parsedOutput.body;
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
$metadata,
|
|
1995
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1996
|
+
output,
|
|
1997
|
+
parsedBody,
|
|
1998
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
1999
|
+
errorCode,
|
|
2101
2000
|
});
|
|
2102
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2103
2001
|
}
|
|
2104
2002
|
};
|
|
2105
2003
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2121,7 +2019,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2121
2019
|
...output,
|
|
2122
2020
|
body: await parseBody(output.body, context),
|
|
2123
2021
|
};
|
|
2124
|
-
let response;
|
|
2125
2022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
2023
|
switch (errorCode) {
|
|
2127
2024
|
case "AccessDeniedException":
|
|
@@ -2144,14 +2041,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2144
2041
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2145
2042
|
default:
|
|
2146
2043
|
const parsedBody = parsedOutput.body;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
$metadata,
|
|
2044
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2045
|
+
output,
|
|
2046
|
+
parsedBody,
|
|
2047
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
2048
|
+
errorCode,
|
|
2153
2049
|
});
|
|
2154
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2155
2050
|
}
|
|
2156
2051
|
};
|
|
2157
2052
|
const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCommand = async (output, context) => {
|
|
@@ -2173,7 +2068,6 @@ const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCom
|
|
|
2173
2068
|
...output,
|
|
2174
2069
|
body: await parseBody(output.body, context),
|
|
2175
2070
|
};
|
|
2176
|
-
let response;
|
|
2177
2071
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2178
2072
|
switch (errorCode) {
|
|
2179
2073
|
case "AccessDeniedException":
|
|
@@ -2196,14 +2090,12 @@ const deserializeAws_json1_1UpdateInstanceAccessControlAttributeConfigurationCom
|
|
|
2196
2090
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2197
2091
|
default:
|
|
2198
2092
|
const parsedBody = parsedOutput.body;
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
$metadata,
|
|
2093
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2094
|
+
output,
|
|
2095
|
+
parsedBody,
|
|
2096
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
2097
|
+
errorCode,
|
|
2205
2098
|
});
|
|
2206
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2207
2099
|
}
|
|
2208
2100
|
};
|
|
2209
2101
|
const deserializeAws_json1_1UpdatePermissionSetCommand = async (output, context) => {
|
|
@@ -2225,7 +2117,6 @@ const deserializeAws_json1_1UpdatePermissionSetCommandError = async (output, con
|
|
|
2225
2117
|
...output,
|
|
2226
2118
|
body: await parseBody(output.body, context),
|
|
2227
2119
|
};
|
|
2228
|
-
let response;
|
|
2229
2120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
2121
|
switch (errorCode) {
|
|
2231
2122
|
case "AccessDeniedException":
|
|
@@ -2248,14 +2139,12 @@ const deserializeAws_json1_1UpdatePermissionSetCommandError = async (output, con
|
|
|
2248
2139
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2249
2140
|
default:
|
|
2250
2141
|
const parsedBody = parsedOutput.body;
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
$metadata,
|
|
2142
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2143
|
+
output,
|
|
2144
|
+
parsedBody,
|
|
2145
|
+
exceptionCtor: SSOAdminServiceException_1.SSOAdminServiceException,
|
|
2146
|
+
errorCode,
|
|
2257
2147
|
});
|
|
2258
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2259
2148
|
}
|
|
2260
2149
|
};
|
|
2261
2150
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2331,9 +2220,6 @@ const serializeAws_json1_1AccessControlAttributeList = (input, context) => {
|
|
|
2331
2220
|
return input
|
|
2332
2221
|
.filter((e) => e != null)
|
|
2333
2222
|
.map((entry) => {
|
|
2334
|
-
if (entry === null) {
|
|
2335
|
-
return null;
|
|
2336
|
-
}
|
|
2337
2223
|
return serializeAws_json1_1AccessControlAttribute(entry, context);
|
|
2338
2224
|
});
|
|
2339
2225
|
};
|
|
@@ -2348,9 +2234,6 @@ const serializeAws_json1_1AccessControlAttributeValueSourceList = (input, contex
|
|
|
2348
2234
|
return input
|
|
2349
2235
|
.filter((e) => e != null)
|
|
2350
2236
|
.map((entry) => {
|
|
2351
|
-
if (entry === null) {
|
|
2352
|
-
return null;
|
|
2353
|
-
}
|
|
2354
2237
|
return entry;
|
|
2355
2238
|
});
|
|
2356
2239
|
};
|
|
@@ -2641,9 +2524,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
2641
2524
|
return input
|
|
2642
2525
|
.filter((e) => e != null)
|
|
2643
2526
|
.map((entry) => {
|
|
2644
|
-
if (entry === null) {
|
|
2645
|
-
return null;
|
|
2646
|
-
}
|
|
2647
2527
|
return entry;
|
|
2648
2528
|
});
|
|
2649
2529
|
};
|
|
@@ -2651,9 +2531,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2651
2531
|
return input
|
|
2652
2532
|
.filter((e) => e != null)
|
|
2653
2533
|
.map((entry) => {
|
|
2654
|
-
if (entry === null) {
|
|
2655
|
-
return null;
|
|
2656
|
-
}
|
|
2657
2534
|
return serializeAws_json1_1Tag(entry, context);
|
|
2658
2535
|
});
|
|
2659
2536
|
};
|