サポート終了通知: 2026 年 10 月 30 日をもって、AWS は Amazon Pinpoint のサポートを終了します。2026 年 10 月 30 日以降、Amazon Pinpoint コンソールまたは Amazon Pinpoint リソース (エンドポイント、セグメント、キャンペーン、ジャーニー、分析) にはアクセスできなくなります。詳細については、「Amazon Pinpoint のサポート終了」を参照してください。注意: SMS、音声、モバイルプッシュ、OTP、電話番号の検証に関連する API については、この変更による影響はなく、AWS End User Messaging でサポートされます。
トラブルシューティング
注記
Amazon Pinpoint を使用するときの問題解決に役立つトラブルシューティング情報と、考え得る解決策をよく理解します。
モニタリングとログ記録
ベストプラクティスとして、以下の方法により、Amazon Pinpoint でイベントをログに記録しておくことを検討します。
-
Amazon Pinpoint によるイベントのストリーミング の手順に従って Amazon Kinesis Data Streams を通じてイベントストリームをオンにする。
-
カスタムログ記録ソリューションを使用する。詳細については、「デジタルユーザーエンゲージメントイベントデータベース
」を参照してください。複数のサービスが関係し、追加費用が発生します。 -
Amazon Pinpoint がサポートする Amazon CloudWatch メトリクスを使用する。詳細については、「Amazon CloudWatch による Amazon Pinpoint のモニタリング」を参照してください。
-
CloudTrail にログが記録された Amazon Pinpoint API コールを使用する。詳細については、「Amazon Pinpoint デベロッパーガイド」の「Amazon Pinpoint API コールを AWS CloudTrail でログに記録する」を参照してください。
トピック
一般的なタスクの CLI の例
以下の例は、Amazon Pinpoint の一般的な CLI コマンドです。
-
エンドポイントデータの取得: get-endpoint CLI
aws pinpoint get-endpoint —application-idAppId—endpoint-idEndpointId上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
EndpointIdを、取得する既存のエンドポイントの ID に置き換えます。
-
-
ユーザーデータの取得: get-user-endpoints CLI
aws pinpoint get-user-endpoints —application-idAppId—user-idUserId上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
UserIdを、ユーザーの ID に置き換えます。
-
-
エンドポイントの更新または新規作成: update-endpoint CLI
aws pinpoint update-endpoint —application-idAppId—endpoint-idEndpointId—endpoint-request '{"ChannelType":"SMS","Address":"+12345678","Location":{"Country":"USA"},"User":{"UserId":"UserId"}}'上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
EndpointIdを、作成または更新する既存のエンドポイントの ID に置き換えます。 -
UserIdを、ユーザーの ID に置き換えます。
-
-
エンドポイントの削除: delete-endpoint CLI
aws pinpoint delete-endpoint —application-idAppId—endpoint-idEndpointId上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
EndpointIdを、削除する既存のエンドポイントの ID に置き換えます。
-
-
電話番号の検証: phone-number-validate CLI
aws pinpoint phone-number-validate —number-validate-request PhoneNumber=+12065550100上のコマンドに、以下の変更を加えます。
-
+12065550100を、検証する電話番号に置き換えます。
-
-
send-messages 例 CLI: 電話番号への SMS
aws pinpoint send-messages --application-idAppID--message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test message"}},"Addresses": {"DestinationPhoneNumber": {"ChannelType":"SMS"}}}‘上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
DestinationPhoneNumberを送信先電話番号に置き換えます。
-
-
send-messages 例 CLI: SMS への発信番号
aws pinpoint send-messages --application-idAppID--message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"hello, how are you?","OriginationNumber": "OriginPhoneNumber"}},"Addresses": {"DestinationPhoneNumber": {"ChannelType":"SMS"}}}‘上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
OriginPhoneNumberを、メッセージの送信元の電話番号に置き換えます。 -
DestinationPhoneNumberを送信先電話番号に置き換えます。
-
-
send-messages 例 CLI: エンドポイントへの SMS
aws pinpoint send-messages —application-idAppID—message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test message"}},"Endpoints": {"EndPointId": {}}}'上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
EndPointIdを、送信先の既存のエンドポイントの ID に置き換えます。
-
-
send-messages 例 CLI: userId への SMS
aws pinpoint send-users-messages —application-idAppID—send-users-message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test"}},"Users": {"UserId": {}}}'上のコマンドに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
UserIdを、ユーザーの ID に置き換えます。
-
-
Amazon Pinpoint メッセージテンプレート create-campaign CLI によるキャンペーン作成
aws pinpoint create-campaign —application-idAppId—write-campaign-request file://campaignclirequest.json file://campaignclirequest.json { "Description": "CLITestCampaign", "HoldoutPercent": 0, "MessageConfiguration": { "DefaultMessage": { "Body": "TestFromCLI" } }, "Name": "TestingCLICampaign", "Schedule": { "StartTime": "IMMEDIATE" }, "TemplateConfiguration": { "EmailTemplate": { "Name": "TemplateName", "Version": "Version" } }, "SegmentId": "SegmentID", "SegmentVersion": 1 }上のコマンドおよびファイルに、以下の変更を加えます。
-
AppIdを、エンドポイントを含む Amazon Pinpoint プロジェクトの ID に置き換えます。 -
[TemplateName]をテンプレートの名前に置き換えます。 -
バージョンを、テンプレートのバージョンに置き換えます。 -
SegmentIDを、ターゲットとするセグメントの ID に置き換えます。
-