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.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 # 
Data SearchContacts Source # 

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 # 
Show SearchContacts Source # 
Generic SearchContacts Source # 

Associated Types

type Rep SearchContacts :: * -> * #

Hashable SearchContacts Source # 
ToJSON SearchContacts Source # 
NFData SearchContacts Source # 

Methods

rnf :: SearchContacts -> () #

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

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 # 
Data SearchContactsResponse Source # 

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 # 
Show SearchContactsResponse Source # 
Generic SearchContactsResponse Source # 
NFData SearchContactsResponse Source # 

Methods

rnf :: SearchContactsResponse -> () #

type Rep SearchContactsResponse Source # 
type Rep SearchContactsResponse = D1 * (MetaData "SearchContactsResponse" "Network.AWS.AlexaBusiness.SearchContacts" "amazonka-alexa-business-1.6.0-DI5T43QkJWfD1hlGpmjsnd" False) (C1 * (MetaCons "SearchContactsResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_scrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_scrsContacts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ContactData])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_scrsTotalCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "_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.