enable_sso
¶
enable_sso(
directory_id: DirectoryId,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = None,
user_name: Optional[UserName] = None,
password: Optional[ConnectPassword] = None,
) -> EnableSsoResult
Enables single sign-on for a directory. Single sign-on allows users in your directory to access certain Amazon Web Services services from a computer joined to the directory without having to enter their credentials separately.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory for which to enable single-sign on.
-
user_name(Optional[UserName], default:None) –The username of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. This account must have privileges to add a service principal name.
If the AD Connector service account does not have privileges to add a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed.
-
password(Optional[ConnectPassword], default:None) –The password of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. For more information, see the UserName parameter.
Raises:
-
AuthenticationFailedException–An authentication error occurred.
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InsufficientPermissionsException–The account does not have sufficient permission to perform the operation.
-
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To enable SSO To enable single sign-on for a specified directory.
Source code in docs_src/capo_directory_service/_services/directory_service.py
3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 | |