search_available_phone_numbers
async
¶
search_available_phone_numbers(
*,
config_overrides: Optional[AsyncChimeSDKVoiceClientConfig] = None,
area_code: Optional[String] = None,
city: Optional[String] = None,
country: Optional[Alpha2CountryCode] = None,
state: Optional[String] = None,
toll_free_prefix: Optional[TollFreePrefix] = None,
phone_number_type: Optional[PhoneNumberType] = None,
max_results: Optional[PhoneNumberMaxResults] = None,
next_token: Optional[String] = None,
) -> SearchAvailablePhoneNumbersResponse
Searches the provisioned phone numbers in an organization.
Parameters:
-
area_code(Optional[String], default:None) –Confines a search to just the phone numbers associated with the specified area code.
-
city(Optional[String], default:None) –Confines a search to just the phone numbers associated with the specified city.
-
country(Optional[Alpha2CountryCode], default:None) –Confines a search to just the phone numbers associated with the specified country.
-
state(Optional[String], default:None) –Confines a search to just the phone numbers associated with the specified state.
-
toll_free_prefix(Optional[TollFreePrefix], default:None) –Confines a search to just the phone numbers associated with the specified toll-free prefix.
-
phone_number_type(Optional[PhoneNumberType], default:None) –Confines a search to just the phone numbers associated with the specified phone number type, either local or toll-free.
-
max_results(Optional[PhoneNumberMaxResults], default:None) –The maximum number of results to return.
-
next_token(Optional[String], default:None) –The token used to return the next page of results.
Raises:
-
AccessDeniedException–You don't have the permissions needed to run this action.
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The number of customer requests exceeds the request rate limit.
-
UnauthorizedClientException–The client isn't authorized to request a resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_voice/_services/async_chime_sdk_voice.py
5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 | |