libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • userName :: Text

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

Instances

Instances details
Eq DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Read DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Show DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Generic DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Associated Types

type Rep DeleteUser :: Type -> Type #

NFData DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Methods

rnf :: DeleteUser -> () #

Hashable DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

AWSRequest DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Associated Types

type AWSResponse DeleteUser #

ToHeaders DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Methods

toHeaders :: DeleteUser -> [Header] #

ToPath DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

ToQuery DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

type Rep DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

type Rep DeleteUser = D1 ('MetaData "DeleteUser" "Amazonka.IAM.DeleteUser" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DeleteUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteUser Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

newDeleteUser Source #

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.

Constructors

DeleteUserResponse' 

Instances

Instances details
Eq DeleteUserResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Read DeleteUserResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Show DeleteUserResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Generic DeleteUserResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Associated Types

type Rep DeleteUserResponse :: Type -> Type #

NFData DeleteUserResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

Methods

rnf :: DeleteUserResponse -> () #

type Rep DeleteUserResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUser

type Rep DeleteUserResponse = D1 ('MetaData "DeleteUserResponse" "Amazonka.IAM.DeleteUser" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DeleteUserResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteUserResponse :: DeleteUserResponse Source #

Create a value of DeleteUserResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.