libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business
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.AlexaBusiness.ListDeviceEvents

Description

Lists the device event history, including device connection status, for up to 30 days.

This operation returns paginated results.

Synopsis

Creating a Request

data ListDeviceEvents Source #

See: newListDeviceEvents smart constructor.

Constructors

ListDeviceEvents' 

Fields

  • nextToken :: Maybe Text

    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. When the end of results is reached, the response has a value of null.

  • eventType :: Maybe DeviceEventType

    The event type to filter device events. If EventType isn't specified, 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.

  • maxResults :: Maybe Natural

    The maximum number of results to include in the response. The default value is 50. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

  • deviceArn :: Text

    The ARN of a device.

Instances

Instances details
Eq ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Read ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Show ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Generic ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Associated Types

type Rep ListDeviceEvents :: Type -> Type #

NFData ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Methods

rnf :: ListDeviceEvents -> () #

Hashable ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

ToJSON ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

AWSPager ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

AWSRequest ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Associated Types

type AWSResponse ListDeviceEvents #

ToHeaders ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

ToPath ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

ToQuery ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

type Rep ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

type Rep ListDeviceEvents = D1 ('MetaData "ListDeviceEvents" "Amazonka.AlexaBusiness.ListDeviceEvents" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "ListDeviceEvents'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeviceEventType))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "deviceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.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 - 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. When the end of results is reached, the response has a value of null.

$sel:eventType:ListDeviceEvents', listDeviceEvents_eventType - The event type to filter device events. If EventType isn't specified, 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.

$sel:maxResults:ListDeviceEvents', listDeviceEvents_maxResults - The maximum number of results to include in the response. The default value is 50. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

$sel:deviceArn:ListDeviceEvents', listDeviceEvents_deviceArn - The ARN of a device.

Request Lenses

listDeviceEvents_nextToken :: 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. When the end of results is reached, the response has a value of null.

listDeviceEvents_eventType :: Lens' ListDeviceEvents (Maybe DeviceEventType) Source #

The event type to filter device events. If EventType isn't specified, 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_maxResults :: Lens' ListDeviceEvents (Maybe Natural) Source #

The maximum number of results to include in the response. The default value is 50. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

Destructuring the Response

data ListDeviceEventsResponse Source #

See: newListDeviceEventsResponse smart constructor.

Constructors

ListDeviceEventsResponse' 

Fields

Instances

Instances details
Eq ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Read ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Show ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Generic ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Associated Types

type Rep ListDeviceEventsResponse :: Type -> Type #

NFData ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

type Rep ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

type Rep ListDeviceEventsResponse = D1 ('MetaData "ListDeviceEventsResponse" "Amazonka.AlexaBusiness.ListDeviceEvents" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "ListDeviceEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deviceEvents") '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 returned to indicate that there is more data available.

$sel:deviceEvents:ListDeviceEventsResponse', listDeviceEventsResponse_deviceEvents - The device events requested for the device ARN.

$sel:httpStatus:ListDeviceEventsResponse', listDeviceEventsResponse_httpStatus - The response's http status code.

Response Lenses

listDeviceEventsResponse_nextToken :: Lens' ListDeviceEventsResponse (Maybe Text) Source #

The token returned to indicate that there is more data available.

listDeviceEventsResponse_deviceEvents :: Lens' ListDeviceEventsResponse (Maybe [DeviceEvent]) Source #

The device events requested for the device ARN.