search_available_phone_numbers
¶
search_available_phone_numbers(
phone_number_country_code: PhoneNumberCountryCode,
phone_number_type: PhoneNumberType,
*,
config_overrides: Optional[ConnectClientConfig] = 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/connect.py
19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 | |