aws_sdk_workmail/client/
reset_password.rs

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 [`ResetPassword`](crate::operation::reset_password::builders::ResetPasswordFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`ResetPasswordOutput`](crate::operation::reset_password::ResetPasswordOutput)
    /// - On failure, responds with [`SdkError<ResetPasswordError>`](crate::operation::reset_password::ResetPasswordError)
    pub fn reset_password(&self) -> crate::operation::reset_password::builders::ResetPasswordFluentBuilder {
        crate::operation::reset_password::builders::ResetPasswordFluentBuilder::new(self.handle.clone())
    }
}