Logging Amazon Recommended Actions API calls using Amazon CloudTrail
Amazon Recommended Actions is integrated with Amazon CloudTrail, a service that provides a record of actions taken by a user, role, or an Amazon Web Services service. CloudTrail captures all API calls for Amazon Recommended Actions as events. The calls captured include calls from the Amazon Web Services Management Console and code calls to the Amazon Recommended Actions API operations. Using the information collected by CloudTrail, you can determine the request that was made to Amazon Recommended Actions, the IP address from which the request was made, when it was made, and additional details.
CloudTrail is active in your Amazon Web Services account when you create the account and you automatically have access to the CloudTrail Event history. The CloudTrail Event history provides a viewable, searchable, downloadable, and immutable record of the past 90 days of recorded management events in an Amazon Web Services Region. For more information, see Working with CloudTrail Event history in the Amazon CloudTrail User Guide. There are no CloudTrail charges for viewing the Event history.
For an ongoing record of events in your Amazon Web Services account past 90 days, create a trail or a CloudTrail Lake event data store.
Amazon Recommended Actions management events in CloudTrail
Management events provide information about management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. By default, CloudTrail logs management events.
Amazon Recommended Actions logs all Amazon Recommended Actions control plane operations as management events.
Amazon Recommended Actions event examples
An event represents a single request from any source and includes information about the requested API operation, the date and time of the operation, request parameters, and so on. CloudTrail log files aren't an ordered stack trace of the public API calls, so events don't appear in any specific order.
The following example shows a CloudTrail event that demonstrates the operation.
{ "awsRegion": "us-east-2", "eventCategory": "Management", "eventID": "3510a29e-8070-4cbc-b6a0-9e11f18e26ec", "eventName": "ListRecommendedActions", "eventSource": "action-recommendations.amazonaws.com", "eventTime": "2025-09-03T03:52:02Z", "eventType": "AwsApiCall", "eventVersion": "1.09", "managementEvent": true, "readOnly": true, "recipientAccountId": "123456789098", "requestID": "ec431c91-0315-413d-bdb6-d282fd4f6d83", "requestParameters": { "context": "*", "uxChannel": "EXAMPLE" }, "responseElements": null, "sourceIPAddress": "192.0.2.0", "userAgent": "EXAMPLE", "userIdentity": { "type": "AssumedRole", "principalId": "AROARZDBH75ZCUYWFSTUS:EXAMPLE", "arn": "arn:aws:sts::123456789098:assumed-role/EXAMPLE", "accountId": "12345678909", "accessKeyId": "ASIARZDBEXAMPLE", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AROARZDBHEXAMPLE", "arn": "arn:aws:iam::12345678909:role/EXAMPLE", "accountId": "12345678909", "userName": "EXAMPLE" }, "attributes": { "creationDate": "2025-09-03T03:52:00Z", "mfaAuthenticated": "false" } }, "invokedBy": "action-recommendations.amazonaws.com" } }
For information about CloudTrail record contents, see CloudTrail record contents in the Amazon CloudTrail User Guide.