翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
トラブルシューティング
注記
以下のトラブルシューティングトピックが移動されました。
「エンドユーザーメッセージングプッシュユーザーガイド」の「トラブルシューティング」。 AWS
Amazon Pinpoint を使用するときの問題解決に役立つトラブルシューティング情報と、考え得る解決策をよく理解します。
モニタリングとログ記録
ベストプラクティスとして、以下の方法により、Amazon Pinpoint でイベントをログに記録しておくことを検討します。
-
Amazon Kinesis Data Streams 「」の手順に従って でイベントストリームを有効にしますAmazon Pinpoint によるイベントのストリーミング。
-
カスタムログ記録ソリューションを使用する。詳細については、「デジタルユーザーエンゲージメントイベントデータベース
」を参照してください。複数のサービスが関係し、追加費用が発生します。 -
Amazon Pinpoint でサポートされている Amazon CloudWatch メトリクスの使用。詳細については、「Amazon CloudWatch による Amazon Pinpoint のモニタリング」を参照してください。
-
に記録された Amazon Pinpoint API呼び出しの使用 CloudTrail。詳細については、Amazon Pinpoint デベロッパーガイド」の「 を使用した Amazon Pinpoint API呼び出しのログ記録 AWS CloudTrail」を参照してください。 Amazon Pinpoint
トピック
CLI 一般的なタスクの例
次の例は、Amazon Pinpoint の一般的なCLIコマンドです。
-
エンドポイントデータの取得: get-endpoint CLI
aws pinpoint get-endpoint —application-id
AppId
—endpoint-idEndpointId
上のコマンドに、以下の変更を加えます。
-
置換
AppId
エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。 -
置換
EndpointId
取得する既存のエンドポイントの ID を指定します。
-
-
ユーザーデータの取得: get-user-endpoints CLI
aws pinpoint get-user-endpoints —application-id
AppId
—user-idUserId
上のコマンドに、以下の変更を加えます。
-
置換
AppId
エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。 -
置換
UserId
ユーザーの ID を入力します。
-
-
新しいエンドポイントの更新または作成: update-endpoint CLI
aws pinpoint update-endpoint —application-id
AppId
—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-id
AppId
—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-id
AppID
--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-id
AppID
--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-id
AppID
—message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test message"}},"Endpoints": {"EndPointId
": {}}}'上のコマンドに、以下の変更を加えます。
-
置換
AppId
エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。 -
置換
EndPointId
送信先の既存のエンドポイントの ID を指定します。
-
-
send-messages 例CLI: SMSを に送信する userId
aws pinpoint send-users-messages —application-id
AppID
—send-users-message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test"}},"Users": {"UserId
": {}}}'上のコマンドに、以下の変更を加えます。
-
置換
AppId
エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。 -
置換
UserId
ユーザーの ID を入力します。
-
-
Amazon Pinpoint メッセージテンプレート 作成キャンペーンによるキャンペーンの作成 CLI
aws pinpoint create-campaign —application-id
AppId
—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
をテンプレートの名前で指定します。 -
置換
Version
テンプレートの バージョン。 -
置換
SegmentID
をターゲットとするセグメントの ID で指定します。
-