Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
DeleteUser' | |
|
Instances
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:
$sel:userName: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.
Instances
Eq DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser (==) :: DeleteUserResponse -> DeleteUserResponse -> Bool # (/=) :: DeleteUserResponse -> DeleteUserResponse -> Bool # | |
Read DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser | |
Show DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser showsPrec :: Int -> DeleteUserResponse -> ShowS # show :: DeleteUserResponse -> String # showList :: [DeleteUserResponse] -> ShowS # | |
Generic DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser type Rep DeleteUserResponse :: Type -> Type # from :: DeleteUserResponse -> Rep DeleteUserResponse x # to :: Rep DeleteUserResponse x -> DeleteUserResponse # | |
NFData DeleteUserResponse Source # | |
Defined in Amazonka.IAM.DeleteUser rnf :: DeleteUserResponse -> () # | |
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.