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 |
Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device.
This operation returns paginated results.
Synopsis
- data ListDeviceEvents = ListDeviceEvents' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- deviceId :: Text
- fromTimeStamp :: POSIX
- toTimeStamp :: POSIX
- newListDeviceEvents :: Text -> UTCTime -> UTCTime -> ListDeviceEvents
- listDeviceEvents_nextToken :: Lens' ListDeviceEvents (Maybe Text)
- listDeviceEvents_maxResults :: Lens' ListDeviceEvents (Maybe Natural)
- listDeviceEvents_deviceId :: Lens' ListDeviceEvents Text
- listDeviceEvents_fromTimeStamp :: Lens' ListDeviceEvents UTCTime
- listDeviceEvents_toTimeStamp :: Lens' ListDeviceEvents UTCTime
- data ListDeviceEventsResponse = ListDeviceEventsResponse' {
- nextToken :: Maybe Text
- events :: Maybe [DeviceEvent]
- httpStatus :: Int
- newListDeviceEventsResponse :: Int -> ListDeviceEventsResponse
- listDeviceEventsResponse_nextToken :: Lens' ListDeviceEventsResponse (Maybe Text)
- listDeviceEventsResponse_events :: Lens' ListDeviceEventsResponse (Maybe [DeviceEvent])
- listDeviceEventsResponse_httpStatus :: Lens' ListDeviceEventsResponse Int
Creating a Request
data ListDeviceEvents Source #
See: newListDeviceEvents
smart constructor.
ListDeviceEvents' | |
|
Instances
:: Text | |
-> UTCTime | |
-> UTCTime | |
-> ListDeviceEvents |
Create a value of ListDeviceEvents
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:nextToken:ListDeviceEvents'
, listDeviceEvents_nextToken
- The token to retrieve the next set of results.
$sel:maxResults:ListDeviceEvents'
, listDeviceEvents_maxResults
- The maximum number of results to return per request. If not set, a
default value of 100 is used.
$sel:deviceId:ListDeviceEvents'
, listDeviceEvents_deviceId
- The unique identifier of the device.
$sel:fromTimeStamp:ListDeviceEvents'
, listDeviceEvents_fromTimeStamp
- The start date for the device event query, in ISO8061 format. For
example, 2018-03-28T15:45:12.880Z
$sel:toTimeStamp:ListDeviceEvents'
, listDeviceEvents_toTimeStamp
- The end date for the device event query, in ISO8061 format. For example,
2018-03-28T15:45:12.880Z
Request Lenses
listDeviceEvents_nextToken :: Lens' ListDeviceEvents (Maybe Text) Source #
The token to retrieve the next set of results.
listDeviceEvents_maxResults :: Lens' ListDeviceEvents (Maybe Natural) Source #
The maximum number of results to return per request. If not set, a default value of 100 is used.
listDeviceEvents_deviceId :: Lens' ListDeviceEvents Text Source #
The unique identifier of the device.
listDeviceEvents_fromTimeStamp :: Lens' ListDeviceEvents UTCTime Source #
The start date for the device event query, in ISO8061 format. For example, 2018-03-28T15:45:12.880Z
listDeviceEvents_toTimeStamp :: Lens' ListDeviceEvents UTCTime Source #
The end date for the device event query, in ISO8061 format. For example, 2018-03-28T15:45:12.880Z
Destructuring the Response
data ListDeviceEventsResponse Source #
See: newListDeviceEventsResponse
smart constructor.
ListDeviceEventsResponse' | |
|
Instances
newListDeviceEventsResponse Source #
Create a value of ListDeviceEventsResponse
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:nextToken:ListDeviceEvents'
, listDeviceEventsResponse_nextToken
- The token to retrieve the next set of results.
$sel:events:ListDeviceEventsResponse'
, listDeviceEventsResponse_events
- An array of zero or more elements describing the event(s) associated
with the device.
$sel:httpStatus:ListDeviceEventsResponse'
, listDeviceEventsResponse_httpStatus
- The response's http status code.
Response Lenses
listDeviceEventsResponse_nextToken :: Lens' ListDeviceEventsResponse (Maybe Text) Source #
The token to retrieve the next set of results.
listDeviceEventsResponse_events :: Lens' ListDeviceEventsResponse (Maybe [DeviceEvent]) Source #
An array of zero or more elements describing the event(s) associated with the device.
listDeviceEventsResponse_httpStatus :: Lens' ListDeviceEventsResponse Int Source #
The response's http status code.