支援終止通知:2026 年 10 月 30 日, AWS 將結束對 Amazon Pinpoint 的支援。2026 年 10 月 30 日之後,您將無法再存取 Amazon Pinpoint 主控台或 Amazon Pinpoint 資源 (端點、客群、行銷活動、旅程和分析)。如需詳細資訊,請參閱 Amazon Pinpoint 終止支援。注意:與 SMS、語音、行動推播、OTP 和電話號碼驗證相關的 APIs 不受此變更影響,並受 AWS 最終使用者傳訊支援。
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
顯示 Amazon Pinpoint API 動作的 CloudTrail 日誌項目範例
追蹤是一種組態,能讓事件以日誌檔案的形式交付到您指定的 Amazon S3 儲存貯體。CloudTrail 日誌檔案包含一個或多個日誌項目。事件代表來自任何來源的單一請求。其中包含了請求的動作、動作的日期和時間、請求參數等相關資訊。CloudTrail 日誌檔並非依公有 API 呼叫的堆疊追蹤排序,因此不會以任何特定順序出現。
以下範例顯示的 CloudTrail 日誌項目,是 Amazon Pinpoint API 的 GetCampaigns
和 CreateCampaign
動作。
{
"Records": [
{
"awsRegion": "us-east-1",
"eventID": "example0-09a3-47d6-a810-c5f9fd2534fe",
"eventName": "GetCampaigns",
"eventSource": "pinpoint.amazonaws.com",
"eventTime": "2018-02-03T00:56:48Z",
"eventType": "AwsApiCall",
"eventVersion": "1.05",
"readOnly": true,
"recipientAccountId": "123456789012",
"requestID": "example1-b9bb-50fa-abdb-80f274981d60",
"requestParameters": {
"application-id": "example71dfa4c1aab66332a5839798f",
"page-size": "1000"
},
"responseElements": null,
"sourceIPAddress": "192.0.2.0",
"userAgent": "Jersey/${project.version} (HttpUrlConnection 1.8.0_144)",
"userIdentity": {
"accessKeyId": "AKIAIOSFODNN7EXAMPLE",
"accountId": "123456789012",
"arn": "arn:aws:iam::123456789012:root",
"principalId": "123456789012",
"sessionContext": {
"attributes": {
"creationDate": "2018-02-02T16:55:29Z",
"mfaAuthenticated": "false"
}
},
"type": "Root"
}
},
{
"awsRegion": "us-east-1",
"eventID": "example0-09a3-47d6-a810-c5f9fd2534fe",
"eventName": "CreateCampaign",
"eventSource": "pinpoint.amazonaws.com",
"eventTime": "2018-02-03T01:05:16Z",
"eventType": "AwsApiCall",
"eventVersion": "1.05",
"readOnly": false,
"recipientAccountId": "123456789012",
"requestID": "example1-b9bb-50fa-abdb-80f274981d60",
"requestParameters": {
"Description": "***",
"HoldoutPercent": 0,
"IsPaused": false,
"MessageConfiguration": "***",
"Name": "***",
"Schedule": {
"Frequency": "ONCE",
"IsLocalTime": true,
"StartTime": "2018-02-03T00:00:00-08:00",
"Timezone": "utc-08"
},
"SegmentId": "exampleda204adf991a80281aa0e591",
"SegmentVersion": 1,
"application-id": "example71dfa4c1aab66332a5839798f"
},
"responseElements": {
"ApplicationId": "example71dfa4c1aab66332a5839798f",
"CreationDate": "2018-02-03T01:05:16.425Z",
"Description": "***",
"HoldoutPercent": 0,
"Id": "example54a654f80948680cbba240ede",
"IsPaused": false,
"LastModifiedDate": "2018-02-03T01:05:16.425Z",
"MessageConfiguration": "***",
"Name": "***",
"Schedule": {
"Frequency": "ONCE",
"IsLocalTime": true,
"StartTime": "2018-02-03T00:00:00-08:00",
"Timezone": "utc-08"
},
"SegmentId": "example4da204adf991a80281example",
"SegmentVersion": 1,
"State": {
"CampaignStatus": "SCHEDULED"
},
"Version": 1
},
"sourceIPAddress": "192.0.2.0",
"userAgent": "aws-cli/1.14.9 Python/3.4.3 Linux/3.4.0+ botocore/1.8.34",
"userIdentity": {
"accessKeyId": "AKIAIOSFODNN7EXAMPLE",
"accountId": "123456789012",
"arn": "arn:aws:iam::123456789012:user/userName",
"principalId": "AIDAIHTHRCDA62EXAMPLE",
"type": "IAMUser",
"userName": "userName"
}
}
]
}
以下範例顯示的 CloudTrail 日誌項目,說明了 Amazon Pinpoint SMS 和語音 API 中的 CreateConfigurationSet
和 CreateConfigurationSetEventDestination
動作。
{
"Records": [
{
"eventVersion":"1.05",
"userIdentity":{
"type":"IAMUser",
"principalId":"AIDAIHTHRCDA62EXAMPLE",
"arn":"arn:aws:iam::111122223333:user/SampleUser",
"accountId":"111122223333",
"accessKeyId":"AKIAIOSFODNN7EXAMPLE",
"userName":"SampleUser"
},
"eventTime":"2018-11-06T21:45:55Z",
"eventSource":"sms-voice.amazonaws.com",
"eventName":"CreateConfigurationSet",
"awsRegion":"us-east-1",
"sourceIPAddress":"192.0.0.1",
"userAgent":"PostmanRuntime/7.3.0",
"requestParameters":{
"ConfigurationSetName":"MyConfigurationSet"
},
"responseElements":null,
"requestID":"56dcc091-e20d-11e8-87d2-9994aexample",
"eventID":"725843fc-8846-41f4-871a-7c52dexample",
"readOnly":false,
"eventType":"AwsApiCall",
"recipientAccountId":"123456789012"
},
{
"eventVersion":"1.05",
"userIdentity":{
"type":"IAMUser",
"principalId":"AIDAIHTHRCDA62EXAMPLE",
"arn":"arn:aws:iam::111122223333:user/SampleUser",
"accountId":"111122223333",
"accessKeyId":"AKIAIOSFODNN7EXAMPLE",
"userName":"SampleUser"
},
"eventTime":"2018-11-06T21:47:08Z",
"eventSource":"sms-voice.amazonaws.com",
"eventName":"CreateConfigurationSetEventDestination",
"awsRegion":"us-east-1",
"sourceIPAddress":"192.0.0.1",
"userAgent":"PostmanRuntime/7.3.0",
"requestParameters":{
"EventDestinationName":"CloudWatchEventDestination",
"ConfigurationSetName":"MyConfigurationSet",
"EventDestination":{
"Enabled":true,
"MatchingEventTypes":[
"INITIATED_CALL",
"INITIATED_CALL"
],
"CloudWatchLogsDestination":{
"IamRoleArn":"arn:aws:iam::111122223333:role/iamrole-01",
"LogGroupArn":"arn:aws:logs:us-east-1:111122223333:log-group:clientloggroup-01"
}
}
},
"responseElements":null,
"requestID":"81de1e73-e20d-11e8-b158-d5536example",
"eventID":"fcafc21f-7c93-4a3f-9e72-fca2dexample",
"readOnly":false,
"eventType":"AwsApiCall",
"recipientAccountId":"111122223333"
}
]
}