

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# CloudTrail への Amazon Chime SDK メディアパイプラインイベントの送信
<a name="pipeline-cloudtrail"></a>

AWS は、 AWS アカウントの作成時に CloudTrail を有効にします。ユーザーがメディアパイプライン SDK でサポートされている API を呼び出すと、CloudTrail はその API のアクティビティを**イベント履歴**と他の AWS イベントに記録します。AWS アカウント内のメディアパイプラインイベントを表示、検索、ダウンロードできます。詳細については、「CloudTrail ユーザーガイド」の「[CloudTrail イベント履歴でのイベントの表示](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html)」を参照してください。

メディアパイプラインイベントを継続的に記録するために、証跡を作成できます。証跡により、CloudTrail はログファイルをお客様の Amazon S3 バケットに配信できます。以下の例は、メディアパイプライン証跡を示しています。データには、API を呼び出したユーザー、API の呼び出しに使用された IAM ロール、タイムスタンプが含まれます。CloudTrail の使用に関する詳細については、「Amazon Chime SDK Administrator Guide」の「[Logging and monitoring](https://docs.aws.amazon.com/chime-sdk/latest/ag/monitoring-overview.html)」を参照してください。

```
{
   "Records": [    
   {
      "eventVersion": "1.08",
      "userIdentity": {
          "type": "AssumedRole",
          "principalId": "{{ABCDEFGHIJKLMNOPQRSTUV}}:{{user-name}}",
          "arn": "arn:aws:sts::{{123456789101}}:assumed-role/{{role-name}}/{{user-name}}",
          "accountId": "{{109876543210}}",
          "accessKeyId": "{{ABCDEFGHIJKLMNOPQRSTUV}}",
          "sessionContext": {
              "sessionIssuer": {
                  "type": "Role",
                  "principalId": "{{ABCDEFGHIJKLMNOPQRSTUV}}",
                  "arn": "arn:aws:iam::{{109876543210}}:role/{{role-name}}",
                  "accountId": "{{012345678910}}",
                  "userName": "{{user-name}}"
                  },
          "webIdFederationData": {},
          "attributes": {
              "mfaAuthenticated": "false",
              "creationDate": "{{2022-03-08T19:34:55Z}}"
              }
          }
      },
      "eventTime": "{{2022-03-08T20:28:41Z}}",
     "eventSource": "chime-sdk-media-pipelines.amazonaws.com",
     "eventName": "CreateMediaCapturePipeline",
     "awsRegion": "{{us-east-1}}",
     "sourceIPAddress": "{{127.0.0.1}}",
     "userAgent": "[]/[]",
     "requestParameters": {
         "sourceType": "ChimeSdkMeeting",
         "sourceArn": "{{Hidden_For_Security_Reasons}}",
         "sinkType": "S3Bucket",
         "sinkArn": "{{Hidden_For_Security_Reasons}}",
         "chimeSdkMeetingConfiguration": {
             "artifactsConfiguration": {
                 "audio": {
                    "muxType": "AudioOnly"
                 },
            "video": {
                "state": "Enabled",
                "muxType": "VideoOnly"
                },
            "content": {
                "state": "Enabled",
                "muxType": "ContentOnly"
                }
            }
        }
      },
     "responseElements": {
        "mediaCapturePipeline": {
        "mediaPipelineId": "{{pipeline-uuid}}",
        "sourceType": "ChimeSdkMeeting",
        "sourceArn": "{{Hidden_For_Security_Reasons}}",
        "status": "Initializing",
        "sinkType": "S3Bucket",
        "sinkArn": "{{Hidden_For_Security_Reasons}}",
        "createdTimestamp": "{{2022-03-08T20:28:41.336Z}}",
        "updatedTimestamp": "{{2022-03-08T20:28:41.463Z}}",
        "chimeSdkMeetingConfiguration": {
            "artifactsConfiguration": {
                "audio": {
                    "muxType": "AudioOnly"
                },
            "video": {
                "state": "Enabled",
                 "muxType": "VideoOnly"
                 },
             "content": {
                 "state": "Enabled",
                 "muxType": "ContentOnly"
                 }
              }
            }
          }
      },
      "requestID": "{{request-id}}",
      "eventID": "{{event-id}}",
     "readOnly": false,
      "eventType": "AwsApiCall",
      "managementEvent": true,
      "eventCategory": "Management",
      "recipientAccountId": "{{112233445566}}",
      "tlsDetails": {
          "tlsVersion": "TLSv1.2",
          "clientProvidedHostHeader": "{{example.com}}"
       }
    },  
  ]
}
```