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

Contents

Description

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

Synopsis

Creating a Request

searchAddressBooks :: SearchAddressBooks Source #

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

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

  • sabFilters - The filters to use to list a specified set of address books. The supported filter key is AddressBookName.
  • sabSortCriteria - The sort order to use in listing the specified set of address books. The supported sort key is AddressBookName.
  • sabNextToken - 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.
  • sabMaxResults - 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 SearchAddressBooks Source #

See: searchAddressBooks smart constructor.

Instances

Eq SearchAddressBooks Source # 
Data SearchAddressBooks Source # 

Methods

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

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

toConstr :: SearchAddressBooks -> Constr #

dataTypeOf :: SearchAddressBooks -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: SearchAddressBooks -> () #

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

Request Lenses

sabFilters :: Lens' SearchAddressBooks [Filter] Source #

The filters to use to list a specified set of address books. The supported filter key is AddressBookName.

sabSortCriteria :: Lens' SearchAddressBooks [Sort] Source #

The sort order to use in listing the specified set of address books. The supported sort key is AddressBookName.

sabNextToken :: Lens' SearchAddressBooks (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.

sabMaxResults :: Lens' SearchAddressBooks (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

searchAddressBooksResponse Source #

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

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

data SearchAddressBooksResponse Source #

See: searchAddressBooksResponse smart constructor.

Instances

Eq SearchAddressBooksResponse Source # 
Data SearchAddressBooksResponse Source # 

Methods

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

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

toConstr :: SearchAddressBooksResponse -> Constr #

dataTypeOf :: SearchAddressBooksResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SearchAddressBooksResponse Source # 
Show SearchAddressBooksResponse Source # 
Generic SearchAddressBooksResponse Source # 
NFData SearchAddressBooksResponse Source # 
type Rep SearchAddressBooksResponse Source # 
type Rep SearchAddressBooksResponse = D1 * (MetaData "SearchAddressBooksResponse" "Network.AWS.AlexaBusiness.SearchAddressBooks" "amazonka-alexa-business-1.6.0-DI5T43QkJWfD1hlGpmjsnd" False) (C1 * (MetaCons "SearchAddressBooksResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_sabrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_sabrsAddressBooks") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [AddressBookData])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_sabrsTotalCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "_sabrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

sabrsNextToken :: Lens' SearchAddressBooksResponse (Maybe Text) Source #

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

sabrsAddressBooks :: Lens' SearchAddressBooksResponse [AddressBookData] Source #

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

sabrsTotalCount :: Lens' SearchAddressBooksResponse (Maybe Int) Source #

The total number of address books returned.