search_contacts
async
¶
search_contacts(
instance_id: InstanceId,
time_range: SearchContactsTimeRange,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
search_criteria: Optional[SearchCriteria] = None,
max_results: Optional[MaxResult100] = None,
next_token: Optional[LargeNextToken] = None,
sort: Optional[Sort] = None,
) -> SearchContactsResponse
Searches contacts in an Connect Customer instance.
Parameters:
-
instance_id(InstanceId) –The identifier of Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
time_range(SearchContactsTimeRange) –Time range that you want to search results.
-
search_criteria(Optional[SearchCriteria], default:None) –The search criteria to be used to return contacts.
-
max_results(Optional[MaxResult100], default:None) –The maximum number of results to return per page.
-
next_token(Optional[LargeNextToken], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
sort(Optional[Sort], default:None) –Specifies a field to sort by and a sort order.
Raises:
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 | |