| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT1ClickDevices.ListDeviceEvents
Description
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' {}
- newListDeviceEvents :: Text -> UTCTime -> UTCTime -> ListDeviceEvents
- listDeviceEvents_maxResults :: Lens' ListDeviceEvents (Maybe Natural)
- listDeviceEvents_nextToken :: Lens' ListDeviceEvents (Maybe Text)
- listDeviceEvents_deviceId :: Lens' ListDeviceEvents Text
- listDeviceEvents_fromTimeStamp :: Lens' ListDeviceEvents UTCTime
- listDeviceEvents_toTimeStamp :: Lens' ListDeviceEvents UTCTime
- data ListDeviceEventsResponse = ListDeviceEventsResponse' {
- events :: Maybe [DeviceEvent]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListDeviceEventsResponse :: Int -> ListDeviceEventsResponse
- listDeviceEventsResponse_events :: Lens' ListDeviceEventsResponse (Maybe [DeviceEvent])
- listDeviceEventsResponse_nextToken :: Lens' ListDeviceEventsResponse (Maybe Text)
- listDeviceEventsResponse_httpStatus :: Lens' ListDeviceEventsResponse Int
Creating a Request
data ListDeviceEvents Source #
See: newListDeviceEvents smart constructor.
Constructors
| ListDeviceEvents' | |
Fields
| |
Instances
Arguments
| :: 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:maxResults:ListDeviceEvents', listDeviceEvents_maxResults - The maximum number of results to return per request. If not set, a
default value of 100 is used.
ListDeviceEvents, listDeviceEvents_nextToken - The token to retrieve the next set of results.
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_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_nextToken :: Lens' ListDeviceEvents (Maybe Text) Source #
The token to retrieve the next set of results.
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.
Constructors
| ListDeviceEventsResponse' | |
Fields
| |
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:events:ListDeviceEventsResponse', listDeviceEventsResponse_events - An array of zero or more elements describing the event(s) associated
with the device.
ListDeviceEvents, listDeviceEventsResponse_nextToken - The token to retrieve the next set of results.
$sel:httpStatus:ListDeviceEventsResponse', listDeviceEventsResponse_httpStatus - The response's http status code.
Response Lenses
listDeviceEventsResponse_events :: Lens' ListDeviceEventsResponse (Maybe [DeviceEvent]) Source #
An array of zero or more elements describing the event(s) associated with the device.
listDeviceEventsResponse_nextToken :: Lens' ListDeviceEventsResponse (Maybe Text) Source #
The token to retrieve the next set of results.
listDeviceEventsResponse_httpStatus :: Lens' ListDeviceEventsResponse Int Source #
The response's http status code.