1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`EnableSso`](crate::operation::enable_sso::builders::EnableSsoFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`directory_id(impl ::std::convert::Into<String>)`](crate::operation::enable_sso::builders::EnableSsoFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::enable_sso::builders::EnableSsoFluentBuilder::set_directory_id): <p>The identifier of the directory for which to enable single-sign on.</p>
    ///   - [`user_name(impl ::std::convert::Into<String>)`](crate::operation::enable_sso::builders::EnableSsoFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::enable_sso::builders::EnableSsoFluentBuilder::set_user_name): <p>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.</p>  <p>If the AD Connector service account does not have privileges to add a service principal name, you can specify an alternate account with the <i>UserName</i> and <i>Password</i> 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.</p>
    ///   - [`password(impl ::std::convert::Into<String>)`](crate::operation::enable_sso::builders::EnableSsoFluentBuilder::password) / [`set_password(Option<String>)`](crate::operation::enable_sso::builders::EnableSsoFluentBuilder::set_password): <p>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 <i>UserName</i> parameter.</p>
    /// - On success, responds with [`EnableSsoOutput`](crate::operation::enable_sso::EnableSsoOutput)
    /// - On failure, responds with [`SdkError<EnableSsoError>`](crate::operation::enable_sso::EnableSsoError)
    pub fn enable_sso(&self) -> crate::operation::enable_sso::builders::EnableSsoFluentBuilder {
        crate::operation::enable_sso::builders::EnableSsoFluentBuilder::new(self.handle.clone())
    }
}