enable_sso
async
¶
enable_sso(
directory_id: DirectoryId,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = 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.
>>> await client.enable_sso(directory_id='d-92654abfed', user_name='Admin', password='Str0ngP@ssw0rd')
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 | |