libZSservicesZSamazonka-workmailZSamazonka-workmail
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.WorkMail.DeleteUser

Description

Deletes a user from Amazon WorkMail and all subsequent systems. Before you can delete a user, the user state must be DISABLED. Use the DescribeUser action to confirm the user state.

Deleting a user is permanent and cannot be undone. WorkMail archives user mailboxes for 30 days before they are permanently removed.

Synopsis

Creating a Request

data DeleteUser Source #

See: newDeleteUser smart constructor.

Constructors

DeleteUser' 

Fields

Instances

Instances details
Eq DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Read DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Show DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Generic DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Associated Types

type Rep DeleteUser :: Type -> Type #

NFData DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Methods

rnf :: DeleteUser -> () #

Hashable DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

ToJSON DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

AWSRequest DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Associated Types

type AWSResponse DeleteUser #

ToHeaders DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Methods

toHeaders :: DeleteUser -> [Header] #

ToPath DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

ToQuery DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

type Rep DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

type Rep DeleteUser = D1 ('MetaData "DeleteUser" "Amazonka.WorkMail.DeleteUser" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "DeleteUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteUser Source # 
Instance details

Defined in Amazonka.WorkMail.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:organizationId:DeleteUser', deleteUser_organizationId - The organization that contains the user to be deleted.

$sel:userId:DeleteUser', deleteUser_userId - The identifier of the user to be deleted.

Request Lenses

deleteUser_organizationId :: Lens' DeleteUser Text Source #

The organization that contains the user to be deleted.

deleteUser_userId :: Lens' DeleteUser Text Source #

The identifier of the user to be deleted.

Destructuring the Response

data DeleteUserResponse Source #

See: newDeleteUserResponse smart constructor.

Constructors

DeleteUserResponse' 

Fields

Instances

Instances details
Eq DeleteUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Read DeleteUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Show DeleteUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Generic DeleteUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Associated Types

type Rep DeleteUserResponse :: Type -> Type #

NFData DeleteUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

Methods

rnf :: DeleteUserResponse -> () #

type Rep DeleteUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteUser

type Rep DeleteUserResponse = D1 ('MetaData "DeleteUserResponse" "Amazonka.WorkMail.DeleteUser" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "DeleteUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteUserResponse Source #

Create a value of DeleteUserResponse 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:httpStatus:DeleteUserResponse', deleteUserResponse_httpStatus - The response's http status code.

Response Lenses