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

Description

Returns the data available for the resource.

Synopsis

Creating a Request

data DescribeResource Source #

See: newDescribeResource smart constructor.

Constructors

DescribeResource' 

Fields

  • organizationId :: Text

    The identifier associated with the organization for which the resource is described.

  • resourceId :: Text

    The identifier of the resource to be described.

Instances

Instances details
Eq DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Read DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Show DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Generic DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Associated Types

type Rep DescribeResource :: Type -> Type #

NFData DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Methods

rnf :: DescribeResource -> () #

Hashable DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

ToJSON DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

AWSRequest DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Associated Types

type AWSResponse DescribeResource #

ToHeaders DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

ToPath DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

ToQuery DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

type Rep DescribeResource Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

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

Defined in Amazonka.WorkMail.DescribeResource

newDescribeResource Source #

Create a value of DescribeResource 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:DescribeResource', describeResource_organizationId - The identifier associated with the organization for which the resource is described.

$sel:resourceId:DescribeResource', describeResource_resourceId - The identifier of the resource to be described.

Request Lenses

describeResource_organizationId :: Lens' DescribeResource Text Source #

The identifier associated with the organization for which the resource is described.

describeResource_resourceId :: Lens' DescribeResource Text Source #

The identifier of the resource to be described.

Destructuring the Response

data DescribeResourceResponse Source #

See: newDescribeResourceResponse smart constructor.

Constructors

DescribeResourceResponse' 

Fields

Instances

Instances details
Eq DescribeResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Read DescribeResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Show DescribeResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Generic DescribeResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

Associated Types

type Rep DescribeResourceResponse :: Type -> Type #

NFData DescribeResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

type Rep DescribeResourceResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DescribeResource

newDescribeResourceResponse Source #

Create a value of DescribeResourceResponse 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:DescribeResourceResponse', describeResourceResponse_email - The email of the described resource.

$sel:state:DescribeResourceResponse', describeResourceResponse_state - The state of the resource: enabled (registered to Amazon WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.

$sel:resourceId:DescribeResource', describeResourceResponse_resourceId - The identifier of the described resource.

$sel:disabledDate:DescribeResourceResponse', describeResourceResponse_disabledDate - The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.

$sel:name:DescribeResourceResponse', describeResourceResponse_name - The name of the described resource.

$sel:type':DescribeResourceResponse', describeResourceResponse_type - The type of the described resource.

$sel:enabledDate:DescribeResourceResponse', describeResourceResponse_enabledDate - The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.

$sel:bookingOptions:DescribeResourceResponse', describeResourceResponse_bookingOptions - The booking options for the described resource.

$sel:httpStatus:DescribeResourceResponse', describeResourceResponse_httpStatus - The response's http status code.

Response Lenses

describeResourceResponse_state :: Lens' DescribeResourceResponse (Maybe EntityState) Source #

The state of the resource: enabled (registered to Amazon WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.

describeResourceResponse_disabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #

The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.

describeResourceResponse_enabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #

The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.