pinpoint cli pinpoint-sms-voice-v2 request-phone-number have a bug

0

Hello the documentation is inaccurate for pinpoint-sms-voice-v2 request-phone-number method. the "aws <service> isn't listed in the documentation. https://docs.aws.amazon.com/pinpoint/latest/developerguide/sms-voice-v2-phone-numbers.html

Also, after trying many things, the aws cli is unable to complete: $ aws pinpoint-sms-voice-v2 request-phone-number --iso-country-code US --message-type TRANSACTIONAL --number-capabilities SMS VOICE --number-type LONG_CODE

An error occurred (ResourceNotFoundException) when calling the RequestPhoneNumber operation: Resource Not Found - ResourceType="phone-number"

It seams like the service simple doesn't function correctl.

已提問 1 年前檢視次數 275 次
1 個回答
1

For US, number-type LONG_CODE only supports --number-capabilities VOICE. If you want a US phone number that supports both SMS and VOICE, then you can use number-type TOLL_FREE (or TEN_DLC but registration is required before requesting a TEN_DLC phone number).

Example:

aws pinpoint-sms-voice-v2 request-phone-number --iso-country-code US --message-type TRANSACTIONAL --number-capabilities VOICE --number-type LONG_CODE

aws pinpoint-sms-voice-v2 request-phone-number --iso-country-code US --message-type TRANSACTIONAL --number-capabilities SMS VOICE --number-type TOLL_FREE

profile picture
joahna
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南