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

Contents

Description

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

Synopsis

Creating a Request

searchContacts :: SearchContacts Source #

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

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

  • scFilters - The filters to use to list a specified set of address books. The supported filter keys are DisplayName, FirstName, LastName, and AddressBookArns.
  • scSortCriteria - The sort order to use in listing the specified set of contacts. The supported sort keys are DisplayName, FirstName, and LastName.
  • scNextToken - 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.
  • scMaxResults - 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 SearchContacts Source #

See: searchContacts smart constructor.

Instances
Eq SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Data SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Methods

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

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

toConstr :: SearchContacts -> Constr #

dataTypeOf :: SearchContacts -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Show SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Generic SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Associated Types

type Rep SearchContacts :: Type -> Type #

Hashable SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

ToJSON SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

AWSRequest SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Associated Types

type Rs SearchContacts :: Type #

ToHeaders SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

ToPath SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

ToQuery SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

NFData SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Methods

rnf :: SearchContacts -> () #

type Rep SearchContacts Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

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

Defined in Network.AWS.AlexaBusiness.SearchContacts

Request Lenses

scFilters :: Lens' SearchContacts [Filter] Source #

The filters to use to list a specified set of address books. The supported filter keys are DisplayName, FirstName, LastName, and AddressBookArns.

scSortCriteria :: Lens' SearchContacts [Sort] Source #

The sort order to use in listing the specified set of contacts. The supported sort keys are DisplayName, FirstName, and LastName.

scNextToken :: Lens' SearchContacts (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.

scMaxResults :: Lens' SearchContacts (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

searchContactsResponse Source #

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

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

data SearchContactsResponse Source #

See: searchContactsResponse smart constructor.

Instances
Eq SearchContactsResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Data SearchContactsResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Methods

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

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

toConstr :: SearchContactsResponse -> Constr #

dataTypeOf :: SearchContactsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SearchContactsResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Show SearchContactsResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Generic SearchContactsResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Associated Types

type Rep SearchContactsResponse :: Type -> Type #

NFData SearchContactsResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

Methods

rnf :: SearchContactsResponse -> () #

type Rep SearchContactsResponse Source # 
Instance details

Defined in Network.AWS.AlexaBusiness.SearchContacts

type Rep SearchContactsResponse = D1 (MetaData "SearchContactsResponse" "Network.AWS.AlexaBusiness.SearchContacts" "amazonka-alexa-business-1.6.1-FQuG4RoJ6vRJhvV2Vb1OnQ" False) (C1 (MetaCons "SearchContactsResponse'" PrefixI True) ((S1 (MetaSel (Just "_scrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_scrsContacts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ContactData]))) :*: (S1 (MetaSel (Just "_scrsTotalCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_scrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

scrsNextToken :: Lens' SearchContactsResponse (Maybe Text) Source #

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

scrsContacts :: Lens' SearchContactsResponse [ContactData] Source #

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

scrsTotalCount :: Lens' SearchContactsResponse (Maybe Int) Source #

The total number of contacts returned.

scrsResponseStatus :: Lens' SearchContactsResponse Int Source #

  • - | The response status code.