aws_sdk_iam/client/
update_user.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 [`UpdateUser`](crate::operation::update_user::builders::UpdateUserFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_name(impl Into<String>)`](crate::operation::update_user::builders::UpdateUserFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::update_user::builders::UpdateUserFluentBuilder::set_user_name):<br>required: **true**<br><p>Name of the user to update. If you're changing the name of the user, this is the original user name.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
7    ///   - [`new_path(impl Into<String>)`](crate::operation::update_user::builders::UpdateUserFluentBuilder::new_path) / [`set_new_path(Option<String>)`](crate::operation::update_user::builders::UpdateUserFluentBuilder::set_new_path):<br>required: **false**<br><p>New path for the IAM user. Include this parameter only if you're changing the user's path.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL character (<code>\u007F</code>), including most punctuation characters, digits, and upper and lowercased letters.</p><br>
8    ///   - [`new_user_name(impl Into<String>)`](crate::operation::update_user::builders::UpdateUserFluentBuilder::new_user_name) / [`set_new_user_name(Option<String>)`](crate::operation::update_user::builders::UpdateUserFluentBuilder::set_new_user_name):<br>required: **false**<br><p>New name for the user. Include this parameter only if you're changing the user's name.</p> <p>IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".</p><br>
9    /// - On success, responds with [`UpdateUserOutput`](crate::operation::update_user::UpdateUserOutput)
10    /// - On failure, responds with [`SdkError<UpdateUserError>`](crate::operation::update_user::UpdateUserError)
11    pub fn update_user(&self) -> crate::operation::update_user::builders::UpdateUserFluentBuilder {
12        crate::operation::update_user::builders::UpdateUserFluentBuilder::new(self.handle.clone())
13    }
14}