Skip to content

IAM  >  Operations  >  delete_login_profile

delete_login_profile

Operation

delete_login_profile async

delete_login_profile(input: DeleteLoginProfileInput, plugins: list[Plugin] | None = None) -> DeleteLoginProfileOutput

Deletes the password for the specified IAM user or root 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.

Warning

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.

Parameters:

Name Type Description Default
input DeleteLoginProfileInput

An instance of DeleteLoginProfileInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteLoginProfileOutput

An instance of DeleteLoginProfileOutput.

Input

DeleteLoginProfileInput dataclass

Bases: _SerdeShape

Dataclass for DeleteLoginProfileInput structure.

Attributes

user_name class-attribute instance-attribute
user_name: str | None = ...

The name of the user whose password you want to delete.

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 AssumeRoot session to omit the user name.

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: _+=,.@-

Output

DeleteLoginProfileOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteLoginProfileOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.