aws_sdk_directory/client/
reset_user_password.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ResetUserPassword`](crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`directory_id(impl Into<String>)`](crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder::set_directory_id):<br>required: **true**<br><p>Identifier of the Managed Microsoft AD or Simple AD directory in which the user resides.</p><br>
7    ///   - [`user_name(impl Into<String>)`](crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder::set_user_name):<br>required: **true**<br><p>The user name of the user whose password will be reset.</p><br>
8    ///   - [`new_password(impl Into<String>)`](crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder::new_password) / [`set_new_password(Option<String>)`](crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder::set_new_password):<br>required: **true**<br><p>The new password that will be reset.</p><br>
9    /// - On success, responds with [`ResetUserPasswordOutput`](crate::operation::reset_user_password::ResetUserPasswordOutput)
10    /// - On failure, responds with [`SdkError<ResetUserPasswordError>`](crate::operation::reset_user_password::ResetUserPasswordError)
11    pub fn reset_user_password(&self) -> crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder {
12        crate::operation::reset_user_password::builders::ResetUserPasswordFluentBuilder::new(self.handle.clone())
13    }
14}