libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data ListDeviceEvents Source #

See: newListDeviceEvents smart constructor.

Constructors

ListDeviceEvents' 

Fields

  • nextToken :: Maybe Text

    The token to retrieve the next set of results.

  • maxResults :: Maybe Natural

    The maximum number of results to return per request. If not set, a default value of 100 is used.

  • deviceId :: Text

    The unique identifier of the device.

  • fromTimeStamp :: POSIX

    The start date for the device event query, in ISO8061 format. For example, 2018-03-28T15:45:12.880Z

  • toTimeStamp :: POSIX

    The end date for the device event query, in ISO8061 format. For example, 2018-03-28T15:45:12.880Z

Instances

Instances details
Eq ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Read ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Show ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Generic ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Associated Types

type Rep ListDeviceEvents :: Type -> Type #

NFData ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Methods

rnf :: ListDeviceEvents -> () #

Hashable ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

AWSPager ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

AWSRequest ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Associated Types

type AWSResponse ListDeviceEvents #

ToHeaders ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

ToPath ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

ToQuery ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

type Rep ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

type Rep ListDeviceEvents = D1 ('MetaData "ListDeviceEvents" "Amazonka.IoT1ClickDevices.ListDeviceEvents" "libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices" 'False) (C1 ('MetaCons "ListDeviceEvents'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "fromTimeStamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "toTimeStamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)))))
type AWSResponse ListDeviceEvents Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

newListDeviceEvents Source #

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.

Constructors

ListDeviceEventsResponse' 

Fields

Instances

Instances details
Eq ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Read ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Show ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Generic ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

Associated Types

type Rep ListDeviceEventsResponse :: Type -> Type #

NFData ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

type Rep ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.ListDeviceEvents

type Rep ListDeviceEventsResponse = D1 ('MetaData "ListDeviceEventsResponse" "Amazonka.IoT1ClickDevices.ListDeviceEvents" "libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices" 'False) (C1 ('MetaCons "ListDeviceEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeviceEvent])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.