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 |
Lists the Device Event history for up to 30 days. If EventType isn't specified in the request, this returns a list of all device events in reverse chronological order. If EventType is specified, this returns a list of device events for that EventType in reverse chronological order.
- listDeviceEvents :: Text -> ListDeviceEvents
- data ListDeviceEvents
- ldeNextToken :: Lens' ListDeviceEvents (Maybe Text)
- ldeEventType :: Lens' ListDeviceEvents (Maybe DeviceEventType)
- ldeMaxResults :: Lens' ListDeviceEvents (Maybe Natural)
- ldeDeviceARN :: Lens' ListDeviceEvents Text
- listDeviceEventsResponse :: Int -> ListDeviceEventsResponse
- data ListDeviceEventsResponse
- ldersNextToken :: Lens' ListDeviceEventsResponse (Maybe Text)
- ldersDeviceEvents :: Lens' ListDeviceEventsResponse [DeviceEvent]
- ldersResponseStatus :: Lens' ListDeviceEventsResponse Int
Creating a Request
Creates a value of ListDeviceEvents
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldeNextToken
- An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response only includes results beyond the token, up to the value specified by MaxResults.ldeEventType
- The event type to filter device events.ldeMaxResults
- The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. Required.ldeDeviceARN
- The ARN of a device.
data ListDeviceEvents Source #
See: listDeviceEvents
smart constructor.
Request Lenses
ldeNextToken :: Lens' ListDeviceEvents (Maybe Text) Source #
An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response only includes results beyond the token, up to the value specified by MaxResults.
ldeEventType :: Lens' ListDeviceEvents (Maybe DeviceEventType) Source #
The event type to filter device events.
ldeMaxResults :: Lens' ListDeviceEvents (Maybe Natural) Source #
The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. Required.
ldeDeviceARN :: Lens' ListDeviceEvents Text Source #
The ARN of a device.
Destructuring the Response
listDeviceEventsResponse Source #
Creates a value of ListDeviceEventsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldersNextToken
-ldersDeviceEvents
-ldersResponseStatus
- -- | The response status code.
data ListDeviceEventsResponse Source #
See: listDeviceEventsResponse
smart constructor.
Response Lenses
ldersResponseStatus :: Lens' ListDeviceEventsResponse Int Source #
- - | The response status code.