amazonka-alexa-business-2.0: Amazon Alexa For Business SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • 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.

  • 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.

  • deviceArn :: Text

    The ARN of a device.

Instances

Instances details
ToJSON ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.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

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 #

Generic ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Associated Types

type Rep ListDeviceEvents :: Type -> Type #

Read ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Show ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

NFData ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Methods

rnf :: ListDeviceEvents -> () #

Eq ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Hashable ListDeviceEvents Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

type AWSResponse 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" "amazonka-alexa-business-2.0-BWvKfxFukoyBarGovAkdOS" 'False) (C1 ('MetaCons "ListDeviceEvents'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeviceEventType)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "deviceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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: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.

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.

ListDeviceEvents, listDeviceEvents_deviceArn - The ARN of a device.

Request Lenses

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.

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.

Destructuring the Response

data ListDeviceEventsResponse Source #

See: newListDeviceEventsResponse smart constructor.

Constructors

ListDeviceEventsResponse' 

Fields

Instances

Instances details
Generic ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Associated Types

type Rep ListDeviceEventsResponse :: Type -> Type #

Read ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Show ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

NFData ListDeviceEventsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.ListDeviceEvents

Eq 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" "amazonka-alexa-business-2.0-BWvKfxFukoyBarGovAkdOS" 'False) (C1 ('MetaCons "ListDeviceEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deviceEvents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeviceEvent])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:deviceEvents:ListDeviceEventsResponse', listDeviceEventsResponse_deviceEvents - The device events requested for the device ARN.

ListDeviceEvents, listDeviceEventsResponse_nextToken - The token returned to indicate that there is more data available.

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

Response Lenses

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

The device events requested for the device ARN.

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

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