选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

Logging DeviceIdentity API calls in AWS CloudTrail - AWS Console Mobile Application
此页面尚未翻译为您的语言。 请求翻译

Logging DeviceIdentity API calls in AWS CloudTrail

Mobile devices using the Console Mobile Application can be configured as delivery channels for AWS User Notifications. This is done using the ListDeviceIdentities and GetDeviceIdentity APIs. These APIs are integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or an AWS service on these APIs. CloudTrail captures API calls for ListDeviceIdentities and GetDeviceIdentity as events. The calls captured include calls from the the User Notifications console and code calls to the aforementioned API operations. If you create a trail, you can enable continuous delivery of CloudTrail events to an Amazon S3 bucket, including events for ListDeviceIdentities and GetDeviceIdentity. If you don’t configure a trail, you can still view the most recent events in the CloudTrail console in Event history. Using the information collected by CloudTrail, you can determine the request that was made to ListDeviceIdentities and GetDeviceIdentity, the IP address from which the request was made, who made the request, when it was made, and additional details. For more information, see Viewing Events with CloudTrail Event History.

To learn more about CloudTrail, including how to configure and enable it, see the AWS CloudTrail User Guide.

DeviceIdentity API information in CloudTrail

The DeviceIdentity APIs support logging of the following actions as events in CloudTrail log files:

  • ListDeviceIdentities

  • GetDeviceIdentity

Every event or log entry contains information about who generated the request. The identity information helps you determine the following:

  • Whether the request was made with root or AWS Identity and Access Management (IAM) user credentials.

  • Whether the request was made with temporary security credentials for a role or federated user.

  • Whether the request was made by another AWS service.

For more information, see the CloudTrail userIdentity element.

Understanding the Console Mobile Application log file entries

A trail is a configuration that enables delivery of events as log files to an Amazon S3 bucket that you specify. CloudTrail log files contain one or more log entries. An event represents a single request from any source and includes information about the requested action, the date and time of the action, request parameters, and so on. CloudTrail log files aren’t an ordered stack trace of the public API calls, so they don’t appear in any specific order.

The following example shows a CloudTrail log entry that demonstrates the ListDeviceIdentities action.

{ "eventVersion": "1.05", "userIdentity": { "type": "AssumedRole", "principalId": "AIDACKCEVSQ6C2EXAMPLE:jdoe", "arn": "arn:aws:sts::111122223333:assumed-role/user/jdoe", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111111112222:role/Admin", "accountId": "111111112222", "userName": "jdoe" }, "webIdFederationData": {}, "attributes": { "creationDate": "2022-10-24T04:13:00Z", "mfaAuthenticated": "false" } } }, "eventTime": "2022-10-24T04:13:35Z", "eventSource": "consoleapp.amazonaws.com", "eventName": "ListDeviceIdentities", "awsRegion": "us-east-1", "sourceIPAddress": "10.24.34.3", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36", "requestParameters": { "maxResults": "100" }, "responseElements": null, "requestID": "0def12ce-3020-4981-9346-5b5deb71eabb", "eventID": "3b5d601f-d1ef-4985-9ddd-5207065faf41", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111111112222", "eventCategory": "Management" }

下一主题:

Security

上一主题:

Monitoring
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。