amazonka-alexa-business-1.6.0: Amazon Alexa For Business SDK.

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

Network.AWS.AlexaBusiness.ListDeviceEvents

Contents

Description

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.

Synopsis

Creating a Request

listDeviceEvents Source #

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.

Instances

Eq ListDeviceEvents Source # 
Data ListDeviceEvents Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDeviceEvents -> c ListDeviceEvents #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDeviceEvents #

toConstr :: ListDeviceEvents -> Constr #

dataTypeOf :: ListDeviceEvents -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListDeviceEvents) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDeviceEvents) #

gmapT :: (forall b. Data b => b -> b) -> ListDeviceEvents -> ListDeviceEvents #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDeviceEvents -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDeviceEvents -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDeviceEvents -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDeviceEvents -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDeviceEvents -> m ListDeviceEvents #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDeviceEvents -> m ListDeviceEvents #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDeviceEvents -> m ListDeviceEvents #

Read ListDeviceEvents Source # 
Show ListDeviceEvents Source # 
Generic ListDeviceEvents Source # 
Hashable ListDeviceEvents Source # 
ToJSON ListDeviceEvents Source # 
NFData ListDeviceEvents Source # 

Methods

rnf :: ListDeviceEvents -> () #

AWSRequest ListDeviceEvents Source # 
ToHeaders ListDeviceEvents Source # 
ToPath ListDeviceEvents Source # 
ToQuery ListDeviceEvents Source # 
type Rep ListDeviceEvents Source # 
type Rep ListDeviceEvents = D1 * (MetaData "ListDeviceEvents" "Network.AWS.AlexaBusiness.ListDeviceEvents" "amazonka-alexa-business-1.6.0-DI5T43QkJWfD1hlGpmjsnd" False) (C1 * (MetaCons "ListDeviceEvents'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ldeNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ldeEventType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DeviceEventType)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ldeMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_ldeDeviceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ListDeviceEvents Source # 

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.

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:

data ListDeviceEventsResponse Source #

See: listDeviceEventsResponse smart constructor.

Instances

Eq ListDeviceEventsResponse Source # 
Data ListDeviceEventsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDeviceEventsResponse -> c ListDeviceEventsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDeviceEventsResponse #

toConstr :: ListDeviceEventsResponse -> Constr #

dataTypeOf :: ListDeviceEventsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListDeviceEventsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDeviceEventsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListDeviceEventsResponse -> ListDeviceEventsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDeviceEventsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDeviceEventsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDeviceEventsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDeviceEventsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDeviceEventsResponse -> m ListDeviceEventsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDeviceEventsResponse -> m ListDeviceEventsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDeviceEventsResponse -> m ListDeviceEventsResponse #

Read ListDeviceEventsResponse Source # 
Show ListDeviceEventsResponse Source # 
Generic ListDeviceEventsResponse Source # 
NFData ListDeviceEventsResponse Source # 
type Rep ListDeviceEventsResponse Source # 
type Rep ListDeviceEventsResponse = D1 * (MetaData "ListDeviceEventsResponse" "Network.AWS.AlexaBusiness.ListDeviceEvents" "amazonka-alexa-business-1.6.0-DI5T43QkJWfD1hlGpmjsnd" False) (C1 * (MetaCons "ListDeviceEventsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ldersNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ldersDeviceEvents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [DeviceEvent]))) (S1 * (MetaSel (Just Symbol "_ldersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses