| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IAM.DeleteUser
Description
Deletes the specified IAM user. Unlike the Amazon Web Services Management Console, when you delete a user programmatically, you must delete the items attached to the user manually, or the deletion fails. For more information, see Deleting an IAM user. Before attempting to delete a user, remove the following items:
- Password (DeleteLoginProfile)
- Access keys (DeleteAccessKey)
- Signing certificate (DeleteSigningCertificate)
- SSH public key (DeleteSSHPublicKey)
- Git credentials (DeleteServiceSpecificCredential)
- Multi-factor authentication (MFA) device (DeactivateMFADevice, DeleteVirtualMFADevice)
- Inline policies (DeleteUserPolicy)
- Attached managed policies (DetachUserPolicy)
- Group memberships (RemoveUserFromGroup)
Synopsis
Creating a Request
data DeleteUser Source #
See: newDeleteUser smart constructor.
Constructors
| DeleteUser' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteUser |
Create a value of DeleteUser with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteUser, deleteUser_userName - The name of the user 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: _+=,.@-
Request Lenses
deleteUser_userName :: Lens' DeleteUser Text Source #
The name of the user 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: _+=,.@-
Destructuring the Response
data DeleteUserResponse Source #
See: newDeleteUserResponse smart constructor.
Constructors
| DeleteUserResponse' | |
Instances
| Generic DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser Associated Types type Rep DeleteUserResponse :: Type -> Type # Methods from :: DeleteUserResponse -> Rep DeleteUserResponse x # to :: Rep DeleteUserResponse x -> DeleteUserResponse # | |
| Read DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser Methods readsPrec :: Int -> ReadS DeleteUserResponse # readList :: ReadS [DeleteUserResponse] # | |
| Show DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser Methods showsPrec :: Int -> DeleteUserResponse -> ShowS # show :: DeleteUserResponse -> String # showList :: [DeleteUserResponse] -> ShowS # | |
| NFData DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser Methods rnf :: DeleteUserResponse -> () # | |
| Eq DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser Methods (==) :: DeleteUserResponse -> DeleteUserResponse -> Bool # (/=) :: DeleteUserResponse -> DeleteUserResponse -> Bool # | |
| type Rep DeleteUserResponse Source # | |
newDeleteUserResponse :: DeleteUserResponse Source #
Create a value of DeleteUserResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.