amazonka-alexa-business-1.6.1: 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 # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Data SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

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 # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Show SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Generic SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Associated Types

type Rep SearchDevices :: Type -> Type #

Hashable SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

ToJSON SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

AWSPager SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

AWSRequest SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Associated Types

type Rs SearchDevices :: Type #

ToHeaders SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

ToPath SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

ToQuery SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

NFData SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Methods

rnf :: SearchDevices -> () #

type Rep SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

type Rep SearchDevices = D1 (MetaData "SearchDevices" "Network.AWS.AlexaBusiness.SearchDevices" "amazonka-alexa-business-1.6.1-FQuG4RoJ6vRJhvV2Vb1OnQ" False) (C1 (MetaCons "SearchDevices'" PrefixI True) ((S1 (MetaSel (Just "_sdFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 (MetaSel (Just "_sdSortCriteria") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Sort]))) :*: (S1 (MetaSel (Just "_sdNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sdMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))))
type Rs SearchDevices Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

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 # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Data SearchDevicesResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

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 # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Show SearchDevicesResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Generic SearchDevicesResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Associated Types

type Rep SearchDevicesResponse :: Type -> Type #

NFData SearchDevicesResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

Methods

rnf :: SearchDevicesResponse -> () #

type Rep SearchDevicesResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchDevices

type Rep SearchDevicesResponse = D1 (MetaData "SearchDevicesResponse" "Network.AWS.AlexaBusiness.SearchDevices" "amazonka-alexa-business-1.6.1-FQuG4RoJ6vRJhvV2Vb1OnQ" False) (C1 (MetaCons "SearchDevicesResponse'" PrefixI True) ((S1 (MetaSel (Just "_sdrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sdrsDevices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DeviceData]))) :*: (S1 (MetaSel (Just "_sdrsTotalCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_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.