I am trying to use the available phone number API in order to claim and attach a contact flow. I tried following the documentation provided by AWS for python.
when I try to use it, it gives the following error
Exception thrown: 'Connect' object has no attribute 'search_available_phone_numbers'"
client = boto3.client('connect')
response = client.search_available_phone_numbers(
TargetArn='arn:aws:connect:us-east-1:**********:instance/**********/contact-flow/....',
PhoneNumberCountryCode='US',
PhoneNumberType='TOLL_FREE'
)
NOTE: I tried using other APIs like create user, Associate lambda, and Associate LEX. All those worked except the one I .
Thanks in advance