aws_sdk_iam/client/
delete_login_profile.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 [`DeleteLoginProfile`](crate::operation::delete_login_profile::builders::DeleteLoginProfileFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_name(impl Into<String>)`](crate::operation::delete_login_profile::builders::DeleteLoginProfileFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::delete_login_profile::builders::DeleteLoginProfileFluentBuilder::set_user_name):<br>required: **false**<br><p>The name of the user whose password you want to delete.</p> <p>This parameter is optional. If no user name is included, it defaults to the principal making the request. When you make this request with root user credentials, you must use an <a href="https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoot.html">AssumeRoot</a> session to omit the 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    /// - On success, responds with [`DeleteLoginProfileOutput`](crate::operation::delete_login_profile::DeleteLoginProfileOutput)
8    /// - On failure, responds with [`SdkError<DeleteLoginProfileError>`](crate::operation::delete_login_profile::DeleteLoginProfileError)
9    pub fn delete_login_profile(&self) -> crate::operation::delete_login_profile::builders::DeleteLoginProfileFluentBuilder {
10        crate::operation::delete_login_profile::builders::DeleteLoginProfileFluentBuilder::new(self.handle.clone())
11    }
12}