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

Contents

Description

Searches devices and lists the ones that meet a set of filter criteria.

This operation returns paginated results.

Synopsis

Creating a Request

searchDevices :: SearchDevices Source #

Creates a value of SearchDevices with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • sdFilters - The filters to use to list a specified set of devices. Supported filter keys are DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType, DeviceSerialNumber, UnassociatedOnly, and ConnectionStatus (ONLINE and OFFLINE).
  • sdSortCriteria - The sort order to use in listing the specified set of devices. Supported sort keys are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber, and ConnectionStatus.
  • sdNextToken - 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 includes only results beyond the token, up to the value specified by MaxResults .
  • sdMaxResults - 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.

data SearchDevices Source #

See: searchDevices smart constructor.

Instances

Eq SearchDevices Source # 
Data SearchDevices Source # 

Methods

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

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

toConstr :: SearchDevices -> Constr #

dataTypeOf :: SearchDevices -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SearchDevices Source # 
Show SearchDevices Source # 
Generic SearchDevices Source # 

Associated Types

type Rep SearchDevices :: * -> * #

Hashable SearchDevices Source # 
ToJSON SearchDevices Source # 
NFData SearchDevices Source # 

Methods

rnf :: SearchDevices -> () #

AWSPager SearchDevices Source # 
AWSRequest SearchDevices Source # 
ToHeaders SearchDevices Source # 
ToPath SearchDevices Source # 
ToQuery SearchDevices Source # 
type Rep SearchDevices Source # 
type Rep SearchDevices = D1 * (MetaData "SearchDevices" "Network.AWS.AlexaBusiness.SearchDevices" "amazonka-alexa-business-1.6.0-DI5T43QkJWfD1hlGpmjsnd" False) (C1 * (MetaCons "SearchDevices'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_sdFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Filter]))) (S1 * (MetaSel (Just Symbol "_sdSortCriteria") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Sort])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_sdNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_sdMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))))))
type Rs SearchDevices Source # 

Request Lenses

sdFilters :: Lens' SearchDevices [Filter] Source #

The filters to use to list a specified set of devices. Supported filter keys are DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType, DeviceSerialNumber, UnassociatedOnly, and ConnectionStatus (ONLINE and OFFLINE).

sdSortCriteria :: Lens' SearchDevices [Sort] Source #

The sort order to use in listing the specified set of devices. Supported sort keys are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber, and ConnectionStatus.

sdNextToken :: Lens' SearchDevices (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 includes only results beyond the token, up to the value specified by MaxResults .

sdMaxResults :: Lens' SearchDevices (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.

Destructuring the Response

searchDevicesResponse Source #

Creates a value of SearchDevicesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data SearchDevicesResponse Source #

See: searchDevicesResponse smart constructor.

Instances

Eq SearchDevicesResponse Source # 
Data SearchDevicesResponse Source # 

Methods

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

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

toConstr :: SearchDevicesResponse -> Constr #

dataTypeOf :: SearchDevicesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SearchDevicesResponse Source # 
Show SearchDevicesResponse Source # 
Generic SearchDevicesResponse Source # 
NFData SearchDevicesResponse Source # 

Methods

rnf :: SearchDevicesResponse -> () #

type Rep SearchDevicesResponse Source # 
type Rep SearchDevicesResponse = D1 * (MetaData "SearchDevicesResponse" "Network.AWS.AlexaBusiness.SearchDevices" "amazonka-alexa-business-1.6.0-DI5T43QkJWfD1hlGpmjsnd" False) (C1 * (MetaCons "SearchDevicesResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_sdrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_sdrsDevices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [DeviceData])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_sdrsTotalCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "_sdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

sdrsNextToken :: Lens' SearchDevicesResponse (Maybe Text) Source #

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

sdrsDevices :: Lens' SearchDevicesResponse [DeviceData] Source #

The devices that meet the specified set of filter criteria, in sort order.

sdrsTotalCount :: Lens' SearchDevicesResponse (Maybe Int) Source #

The total number of devices returned.

sdrsResponseStatus :: Lens' SearchDevicesResponse Int Source #

  • - | The response status code.