Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the data available for the resource.
Synopsis
- data DescribeResource = DescribeResource' {
- organizationId :: Text
- resourceId :: Text
- newDescribeResource :: Text -> Text -> DescribeResource
- describeResource_organizationId :: Lens' DescribeResource Text
- describeResource_resourceId :: Lens' DescribeResource Text
- data DescribeResourceResponse = DescribeResourceResponse' {}
- newDescribeResourceResponse :: Int -> DescribeResourceResponse
- describeResourceResponse_email :: Lens' DescribeResourceResponse (Maybe Text)
- describeResourceResponse_state :: Lens' DescribeResourceResponse (Maybe EntityState)
- describeResourceResponse_resourceId :: Lens' DescribeResourceResponse (Maybe Text)
- describeResourceResponse_disabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
- describeResourceResponse_name :: Lens' DescribeResourceResponse (Maybe Text)
- describeResourceResponse_type :: Lens' DescribeResourceResponse (Maybe ResourceType)
- describeResourceResponse_enabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
- describeResourceResponse_bookingOptions :: Lens' DescribeResourceResponse (Maybe BookingOptions)
- describeResourceResponse_httpStatus :: Lens' DescribeResourceResponse Int
Creating a Request
data DescribeResource Source #
See: newDescribeResource
smart constructor.
DescribeResource' | |
|
Instances
:: Text | |
-> Text | |
-> DescribeResource |
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.
DescribeResourceResponse' | |
|
Instances
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_email :: Lens' DescribeResourceResponse (Maybe Text) Source #
The email of the described resource.
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_resourceId :: Lens' DescribeResourceResponse (Maybe Text) Source #
The identifier of the described resource.
describeResourceResponse_disabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #
The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.
describeResourceResponse_name :: Lens' DescribeResourceResponse (Maybe Text) Source #
The name of the described resource.
describeResourceResponse_type :: Lens' DescribeResourceResponse (Maybe ResourceType) Source #
The type of the described resource.
describeResourceResponse_enabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #
The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.
describeResourceResponse_bookingOptions :: Lens' DescribeResourceResponse (Maybe BookingOptions) Source #
The booking options for the described resource.
describeResourceResponse_httpStatus :: Lens' DescribeResourceResponse Int Source #
The response's http status code.