search_available_phone_numbers
async
¶
search_available_phone_numbers(
phone_number_country_code: PhoneNumberCountryCode,
phone_number_type: PhoneNumberType,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
target_arn: Optional[ARN] = None,
instance_id: Optional[InstanceId] = None,
phone_number_prefix: Optional[PhoneNumberPrefix] = None,
max_results: Optional[MaxResult10] = None,
next_token: Optional[LargeNextToken] = None,
) -> SearchAvailablePhoneNumbersResponse
Searches for available phone numbers that you can claim to your Connect Customer instance or traffic distribution group. If the provided TargetArn is a traffic distribution group, you can call this API in both Amazon Web Services Regions associated with the traffic distribution group.
Parameters:
-
target_arn(Optional[ARN], default:None) –The Amazon Resource Name (ARN) for Connect Customer instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter
InstanceIdorTargetArn. -
instance_id(Optional[InstanceId], default:None) –The identifier of the Connect Customer instance that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. You must enter
InstanceIdorTargetArn. -
phone_number_country_code(PhoneNumberCountryCode) –The ISO country code.
-
phone_number_type(PhoneNumberType) –The type of phone number.
-
phone_number_prefix(Optional[PhoneNumberPrefix], default:None) –The prefix of the phone number. If provided, it must contain
+as part of the country code. -
max_results(Optional[MaxResult10], 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.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
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
20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 | |