Struct aws_sdk_iam::client::fluent_builders::DeleteLoginProfile
source · pub struct DeleteLoginProfile { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteLoginProfile.
Deletes the password for the specified IAM user, For more information, see Managing passwords for IAM users.
You can use the CLI, the Amazon Web Services API, or the Users page in the IAM console to delete a password for any IAM user. You can use ChangePassword to update, but not delete, your own password in the My Security Credentials page in the Amazon Web Services Management Console.
Deleting a user's password does not prevent a user from accessing Amazon Web Services through the command line interface or the API. To prevent all user access, you must also either make any access keys inactive or delete them. For more information about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.
Implementations§
source§impl DeleteLoginProfile
impl DeleteLoginProfile
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteLoginProfile, AwsResponseRetryClassifier>, SdkError<DeleteLoginProfileError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteLoginProfile, AwsResponseRetryClassifier>, SdkError<DeleteLoginProfileError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteLoginProfileOutput, SdkError<DeleteLoginProfileError>>
pub async fn send(
self
) -> Result<DeleteLoginProfileOutput, SdkError<DeleteLoginProfileError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name of the user whose password you want to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name of the user whose password you want to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Trait Implementations§
source§impl Clone for DeleteLoginProfile
impl Clone for DeleteLoginProfile
source§fn clone(&self) -> DeleteLoginProfile
fn clone(&self) -> DeleteLoginProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more