aws_sdk_workmail/client/reset_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 [`ResetPassword`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`organization_id(impl Into<String>)`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder::set_organization_id):<br>required: **true**<br><p>The identifier of the organization that contains the user for which the password is reset.</p><br>
7 /// - [`user_id(impl Into<String>)`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder::set_user_id):<br>required: **true**<br><p>The identifier of the user for whom the password is reset.</p><br>
8 /// - [`password(impl Into<String>)`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder::password) / [`set_password(Option<String>)`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder::set_password):<br>required: **true**<br><p>The new password for the user.</p><br>
9 /// - On success, responds with [`ResetPasswordOutput`](crate::operation::reset_password::ResetPasswordOutput)
10 /// - On failure, responds with [`SdkError<ResetPasswordError>`](crate::operation::reset_password::ResetPasswordError)
11 pub fn reset_password(&self) -> crate::operation::reset_password::builders::ResetPasswordFluentBuilder {
12 crate::operation::reset_password::builders::ResetPasswordFluentBuilder::new(self.handle.clone())
13 }
14}