Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns the data available for the resource.
- describeResource :: Text -> Text -> DescribeResource
- data DescribeResource
- drOrganizationId :: Lens' DescribeResource Text
- drResourceId :: Lens' DescribeResource Text
- describeResourceResponse :: Int -> DescribeResourceResponse
- data DescribeResourceResponse
- drrsEmail :: Lens' DescribeResourceResponse (Maybe Text)
- drrsState :: Lens' DescribeResourceResponse (Maybe EntityState)
- drrsResourceId :: Lens' DescribeResourceResponse (Maybe Text)
- drrsDisabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
- drrsName :: Lens' DescribeResourceResponse (Maybe Text)
- drrsType :: Lens' DescribeResourceResponse (Maybe ResourceType)
- drrsEnabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime)
- drrsBookingOptions :: Lens' DescribeResourceResponse (Maybe BookingOptions)
- drrsResponseStatus :: Lens' DescribeResourceResponse Int
Creating a Request
Creates a value of DescribeResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drOrganizationId
- The identifier associated with the organization for which the resource is described.drResourceId
- The identifier of the resource to be described.
data DescribeResource Source #
See: describeResource
smart constructor.
Request Lenses
drOrganizationId :: Lens' DescribeResource Text Source #
The identifier associated with the organization for which the resource is described.
drResourceId :: Lens' DescribeResource Text Source #
The identifier of the resource to be described.
Destructuring the Response
describeResourceResponse Source #
Creates a value of DescribeResourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drrsEmail
- The email of the described resource.drrsState
- The state of the resource: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to Amazon WorkMail).drrsResourceId
- The identifier of the described resource.drrsDisabledDate
- The date and time when a resource was registered from Amazon WorkMail, in UNIX epoch time format.drrsName
- The name of the described resource.drrsType
- The type of the described resource.drrsEnabledDate
- The date and time when a resource was registered to Amazon WorkMail, in UNIX epoch time format.drrsBookingOptions
- The booking options for the described resource.drrsResponseStatus
- -- | The response status code.
data DescribeResourceResponse Source #
See: describeResourceResponse
smart constructor.
Response Lenses
drrsEmail :: Lens' DescribeResourceResponse (Maybe Text) Source #
The email of the described resource.
drrsState :: Lens' DescribeResourceResponse (Maybe EntityState) Source #
The state of the resource: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to Amazon WorkMail).
drrsResourceId :: Lens' DescribeResourceResponse (Maybe Text) Source #
The identifier of the described resource.
drrsDisabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #
The date and time when a resource was registered from Amazon WorkMail, in UNIX epoch time format.
drrsType :: Lens' DescribeResourceResponse (Maybe ResourceType) Source #
The type of the described resource.
drrsEnabledDate :: Lens' DescribeResourceResponse (Maybe UTCTime) Source #
The date and time when a resource was registered to Amazon WorkMail, in UNIX epoch time format.
drrsBookingOptions :: Lens' DescribeResourceResponse (Maybe BookingOptions) Source #
The booking options for the described resource.
drrsResponseStatus :: Lens' DescribeResourceResponse Int Source #
- - | The response status code.