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.

gefragt vor einem Jahr284 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen