本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
將 Amazon Chime SDK 媒體管道事件傳送至 CloudTrail
AWS 會在您建立 AWS 帳戶時為您啟用 CloudTrail。當使用者在媒體管道 SDK 中呼叫支援的 API 時,CloudTrail 會記錄事件歷史記錄中該 API 的活動,以及其他 AWS 事件。您可以在 AWS 帳戶中檢視、搜尋和下載媒體管道事件。如需詳細資訊,請參閱《CloudTrail 使用者指南》中的使用 CloudTrail 檢視事件事件歷史記錄。 CloudTrail
若要持續記錄媒體管道事件,您可以建立追蹤。追蹤能讓 CloudTrail 將日誌檔案交付至 Amazon S3 儲存貯體。下列範例顯示媒體管道追蹤。資料包含呼叫 API 的使用者、用來呼叫 API 的 IAM 角色,以及時間戳記。如需使用 CloudTrail 的詳細資訊,請參閱《Amazon Chime SDK 管理員指南》中的記錄和監控。
{ "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" } }, ] }