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回答
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ