libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AlexaBusiness.SearchContacts

Description

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

Synopsis

Creating a Request

data SearchContacts Source #

See: newSearchContacts smart constructor.

Constructors

SearchContacts' 

Fields

  • filters :: Maybe [Filter]

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

  • sortCriteria :: Maybe [Sort]

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

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

    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.

Instances

Instances details
Eq SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Read SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Show SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Generic SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Associated Types

type Rep SearchContacts :: Type -> Type #

NFData SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Methods

rnf :: SearchContacts -> () #

Hashable SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

ToJSON SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

AWSRequest SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Associated Types

type AWSResponse SearchContacts #

ToHeaders SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

ToPath SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

ToQuery SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

type Rep SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

type Rep SearchContacts = D1 ('MetaData "SearchContacts" "Amazonka.AlexaBusiness.SearchContacts" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SearchContacts'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 ('MetaSel ('Just "sortCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Sort]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse SearchContacts Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

newSearchContacts :: SearchContacts Source #

Create a value of SearchContacts with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:filters:SearchContacts', searchContacts_filters - The filters to use to list a specified set of address books. The supported filter keys are DisplayName, FirstName, LastName, and AddressBookArns.

$sel:sortCriteria:SearchContacts', searchContacts_sortCriteria - The sort order to use in listing the specified set of contacts. The supported sort keys are DisplayName, FirstName, and LastName.

$sel:nextToken:SearchContacts', searchContacts_nextToken - 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.

$sel:maxResults:SearchContacts', searchContacts_maxResults - 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.

Request Lenses

searchContacts_filters :: Lens' SearchContacts (Maybe [Filter]) Source #

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

searchContacts_sortCriteria :: Lens' SearchContacts (Maybe [Sort]) Source #

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

searchContacts_nextToken :: 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.

searchContacts_maxResults :: 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

data SearchContactsResponse Source #

See: newSearchContactsResponse smart constructor.

Constructors

SearchContactsResponse' 

Fields

Instances

Instances details
Eq SearchContactsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Show SearchContactsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Generic SearchContactsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Associated Types

type Rep SearchContactsResponse :: Type -> Type #

NFData SearchContactsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

Methods

rnf :: SearchContactsResponse -> () #

type Rep SearchContactsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchContacts

type Rep SearchContactsResponse = D1 ('MetaData "SearchContactsResponse" "Amazonka.AlexaBusiness.SearchContacts" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SearchContactsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "contacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ContactData]))) :*: (S1 ('MetaSel ('Just "totalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSearchContactsResponse Source #

Create a value of SearchContactsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:SearchContacts', searchContactsResponse_nextToken - The token returned to indicate that there is more data available.

$sel:contacts:SearchContactsResponse', searchContactsResponse_contacts - The contacts that meet the specified set of filter criteria, in sort order.

$sel:totalCount:SearchContactsResponse', searchContactsResponse_totalCount - The total number of contacts returned.

$sel:httpStatus:SearchContactsResponse', searchContactsResponse_httpStatus - The response's http status code.

Response Lenses

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

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

searchContactsResponse_contacts :: Lens' SearchContactsResponse (Maybe [ContactData]) Source #

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