amazonka-workmail-2.0: Amazon WorkMail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.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

AWSRequest DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Associated Types

type AWSResponse DescribeUser #

Generic DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Associated Types

type Rep DescribeUser :: Type -> Type #

Read DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Show DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

NFData DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Methods

rnf :: DescribeUser -> () #

Eq DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Hashable DescribeUser Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

type AWSResponse 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" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "DescribeUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

DescribeUser, describeUser_organizationId - The identifier for the organization under which the user exists.

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

  • disabledDate :: Maybe POSIX

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

  • displayName :: Maybe Text

    The display name of the user.

  • email :: Maybe Text

    The email of the user.

  • enabledDate :: Maybe POSIX

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

  • name :: Maybe Text

    The name for the user.

  • state :: Maybe EntityState

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

  • userId :: Maybe Text

    The identifier for the described user.

  • userRole :: Maybe UserRole

    In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Associated Types

type Rep DescribeUserResponse :: Type -> Type #

Read DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Show DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

NFData DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

Methods

rnf :: DescribeUserResponse -> () #

Eq DescribeUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeUser

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:

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

DescribeUserResponse, describeUserResponse_displayName - The display name of the user.

DescribeUserResponse, describeUserResponse_email - The email of the user.

DescribeUserResponse, describeUserResponse_enabledDate - The date and time at which the user was enabled for WorkMailusage, in UNIX epoch time format.

DescribeUserResponse, describeUserResponse_name - The name for the user.

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

DescribeUser, describeUserResponse_userId - The identifier for the described user.

DescribeUserResponse, describeUserResponse_userRole - In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into 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:httpStatus:DescribeUserResponse', describeUserResponse_httpStatus - The response's http status code.

Response Lenses

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

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

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

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

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

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

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

The identifier for the described user.

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

In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into 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.