AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DeleteLoginProfile operation. 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.
Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z
public class DeleteLoginProfileRequest : AmazonIdentityManagementServiceRequest IAmazonWebServiceRequest
The DeleteLoginProfileRequest type exposes the following members
Name | Description | |
---|---|---|
DeleteLoginProfileRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
DeleteLoginProfileRequest(string) |
Instantiates DeleteLoginProfileRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
UserName | System.String |
Gets and sets the property UserName. 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: _+=,.@- |
The following command deletes the password for the IAM user named Bob.
var client = new AmazonIdentityManagementServiceClient(); var response = client.DeleteLoginProfile(new DeleteLoginProfileRequest { UserName = "Bob" });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5