AlexaForBusiness / Client / search_contacts
search_contacts#
- AlexaForBusiness.Client.search_contacts(**kwargs)#
Searches contacts and lists the ones that meet a set of filter and sort criteria.
Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
See also: AWS API Documentation
Request Syntax
response = client.search_contacts( Filters=[ { 'Key': 'string', 'Values': [ 'string', ] }, ], SortCriteria=[ { 'Key': 'string', 'Value': 'ASC'|'DESC' }, ], NextToken='string', MaxResults=123 )
- Parameters:
Filters (list) –
The filters to use to list a specified set of address books. The supported filter keys are DisplayName, FirstName, LastName, and AddressBookArns.
(dict) –
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria.
Key (string) – [REQUIRED]
The key of a filter.
Values (list) – [REQUIRED]
The values of a filter.
(string) –
SortCriteria (list) –
The sort order to use in listing the specified set of contacts. The supported sort keys are DisplayName, FirstName, and LastName.
(dict) –
An object representing a sort criteria.
Key (string) – [REQUIRED]
The sort key of a sort object.
Value (string) – [REQUIRED]
The sort value of a sort object.
NextToken (string) – 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 (integer) – 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.
- Return type:
dict
- Returns:
Response Syntax
{ 'Contacts': [ { 'ContactArn': 'string', 'DisplayName': 'string', 'FirstName': 'string', 'LastName': 'string', 'PhoneNumber': 'string', 'PhoneNumbers': [ { 'Number': 'string', 'Type': 'MOBILE'|'WORK'|'HOME' }, ], 'SipAddresses': [ { 'Uri': 'string', 'Type': 'WORK' }, ] }, ], 'NextToken': 'string', 'TotalCount': 123 }
Response Structure
(dict) –
Contacts (list) –
The contacts that meet the specified set of filter criteria, in sort order.
(dict) –
Information related to a contact.
ContactArn (string) –
The ARN of the contact.
DisplayName (string) –
The name of the contact to display on the console.
FirstName (string) –
The first name of the contact, used to call the contact on the device.
LastName (string) –
The last name of the contact, used to call the contact on the device.
PhoneNumber (string) –
The phone number of the contact. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
PhoneNumbers (list) –
The list of phone numbers for the contact.
(dict) –
The phone number for the contact containing the raw number and phone number type.
Number (string) –
The raw value of the phone number.
Type (string) –
The type of the phone number.
SipAddresses (list) –
The list of SIP addresses for the contact.
(dict) –
The SIP address for the contact containing the URI and SIP address type.
Uri (string) –
The URI for the SIP address.
Type (string) –
The type of the SIP address.
NextToken (string) –
The token returned to indicate that there is more data available.
TotalCount (integer) –
The total number of contacts returned.