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.

질문됨 일 년 전254회 조회
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠