기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
알림 시작하기
이 자습서에서는 알림 구성을 생성하고 첫 번째 OTP 메시지를 보내는 방법을 안내합니다. 약 5분 후에이 자습서를 완료할 수 있습니다.
사전 조건
AWS 계정.
AWS End User Messaging SMS 작업에 대한 IAM 권한. 자세한 내용은 AWS 최종 사용자 메시징 SMS의 ID 및 액세스 관리 단원을 참조하십시오.
다음 IAM 정책은 메시지를 보내고 템플릿을 찾아볼 수 있는 권한을 부여합니다.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sms-voice:SendNotifyTextMessage", "sms-voice:SendNotifyVoiceMessage", "sms-voice:DescribeNotifyTemplates", "sms-voice:DescribeNotifyConfigurations", "sms-voice:ListNotifyCountries", "sms-voice:PutMessageFeedback" ], "Resource": "*" } ] }
다음 정책은 전체 알림 관리 권한을 부여합니다.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sms-voice:CreateNotifyConfiguration", "sms-voice:UpdateNotifyConfiguration", "sms-voice:DeleteNotifyConfiguration", "sms-voice:DescribeNotifyConfigurations", "sms-voice:DescribeNotifyTemplates", "sms-voice:ListNotifyCountries", "sms-voice:SendNotifyTextMessage", "sms-voice:SendNotifyVoiceMessage", "sms-voice:SetNotifyMessageSpendLimitOverride", "sms-voice:DeleteNotifyMessageSpendLimitOverride", "sms-voice:PutMessageFeedback" ], "Resource": "*" } ] }
특정 알림 구성에 대한 권한을 제한하려면 리소스 수준 작업(예: , SendNotifyTextMessage, SendNotifyVoiceMessage, DescribeNotifyConfigurations, UpdateNotifyConfiguration, CreateNotifyConfiguration)에 구성 ARN을 사용합니다DeleteNotifyConfiguration. 리소스 수준 권한을 지원하지 않는 작업(예: DescribeNotifyTemplates, ListNotifyCountries, DeleteNotifyMessageSpendLimitOverride, SetNotifyMessageSpendLimitOverride및 PutMessageFeedback)에는가 필요합니다"Resource": "*".
1단계: 알림 구성 생성
구성 상태:
- PENDING
구성이 검증되고 있습니다.
- ACTIVE
메시지를 보낼 준비가 되었습니다.
- REQUIRES_VERIFICATION
브랜드 이름을 활성화하기 전에 확인해야 합니다.
- REJECTED
구성이 거부되었습니다.
RejectionReason세부 정보를 확인합니다.
2단계: 사용 가능한 템플릿 찾아보기
전송하기 전에 티어 및 채널에 사용할 수 있는 템플릿을 확인합니다.
aws pinpoint-sms-voice-v2 describe-notify-templates \ --filters '[{"Name":"channels","Values":["SMS"]},{"Name":"tier-access","Values":["BASIC"]}]'
3단계: 테스트 메시지 전송
4단계: 사용 가능한 국가 확인
ListNotifyCountries를 사용하여 티어 및 채널에 사용할 수 있는 국가를 확인합니다.
aws pinpoint-sms-voice-v2 list-notify-countries \ --channels SMS \ --tier BASIC