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.DescribeUser

Description

Provides information regarding the user.

Synopsis

Creating a Request

data DescribeUser Source #

See: newDescribeUser smart constructor.

Constructors

DescribeUser' 

Fields

  • organizationId :: Text

    The identifier for the organization under which the user exists.

  • userId :: Text

    The identifier for the user to be described.

Instances

Instances details
Eq DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Read DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Show DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Generic DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Associated Types

type Rep DescribeUser :: Type -> Type #

NFData DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Methods

rnf :: DescribeUser -> () #

Hashable DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

ToJSON DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

AWSRequest DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Associated Types

type AWSResponse DescribeUser #

ToHeaders DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

ToPath DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

ToQuery DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

type Rep DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

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

Defined in Amazonka.WorkMail.DescribeUser

newDescribeUser Source #

Create a value of DescribeUser 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:DescribeUser', describeUser_organizationId - The identifier for the organization under which the user exists.

$sel:userId:DescribeUser', describeUser_userId - The identifier for the user to be described.

Request Lenses

describeUser_organizationId :: Lens' DescribeUser Text Source #

The identifier for the organization under which the user exists.

describeUser_userId :: Lens' DescribeUser Text Source #

The identifier for the user to be described.

Destructuring the Response

data DescribeUserResponse Source #

See: newDescribeUserResponse smart constructor.

Constructors

DescribeUserResponse' 

Fields

  • email :: Maybe Text

    The email of the user.

  • state :: Maybe EntityState

    The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).

  • userId :: Maybe Text

    The identifier for the described user.

  • disabledDate :: Maybe POSIX

    The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.

  • name :: Maybe Text

    The name for the user.

  • displayName :: Maybe Text

    The display name of the user.

  • userRole :: Maybe UserRole

    In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, and SYSTEM_USER.

  • enabledDate :: Maybe POSIX

    The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Read DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Show DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Generic DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Associated Types

type Rep DescribeUserResponse :: Type -> Type #

NFData DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Methods

rnf :: DescribeUserResponse -> () #

type Rep DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

newDescribeUserResponse Source #

Create a value of DescribeUserResponse 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:email:DescribeUserResponse', describeUserResponse_email - The email of the user.

$sel:state:DescribeUserResponse', describeUserResponse_state - The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).

$sel:userId:DescribeUser', describeUserResponse_userId - The identifier for the described user.

$sel:disabledDate:DescribeUserResponse', describeUserResponse_disabledDate - The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.

$sel:name:DescribeUserResponse', describeUserResponse_name - The name for the user.

$sel:displayName:DescribeUserResponse', describeUserResponse_displayName - The display name of the user.

$sel:userRole:DescribeUserResponse', describeUserResponse_userRole - In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, and SYSTEM_USER.

$sel:enabledDate:DescribeUserResponse', describeUserResponse_enabledDate - The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.

$sel:httpStatus:DescribeUserResponse', describeUserResponse_httpStatus - The response's http status code.

Response Lenses

describeUserResponse_state :: Lens' DescribeUserResponse (Maybe EntityState) Source #

The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).

describeUserResponse_userId :: Lens' DescribeUserResponse (Maybe Text) Source #

The identifier for the described user.

describeUserResponse_disabledDate :: Lens' DescribeUserResponse (Maybe UTCTime) Source #

The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.

describeUserResponse_userRole :: Lens' DescribeUserResponse (Maybe UserRole) Source #

In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, and SYSTEM_USER.

describeUserResponse_enabledDate :: Lens' DescribeUserResponse (Maybe UTCTime) Source #

The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.