Actions, resources, and condition keys for Amazon CloudTrail
Amazon CloudTrail (service prefix: cloudtrail) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon CloudTrail
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
AddTags |
Tagging, Write |
|||
|
CancelQuery |
Write |
|||
|
CreateChannel |
Tagging, Write |
|||
Write |
||||
|
CreateDashboard |
Tagging, Write |
|||
Write |
||||
Write |
||||
Write |
||||
|
CreateEventDataStore |
Tagging, Write |
|||
Write |
||||
|
CreateTrail |
Tagging, Write |
|||
Write |
||||
iam:PassedToService |
cloudtrail.amazonaws.com, cloudtrail.preprod.amazonaws.com |
Write |
||
|
DeleteChannel |
Write |
|||
|
DeleteDashboard |
Write |
|||
|
DeleteEventDataStore |
Write |
|||
|
DeleteResourcePolicy |
Write |
|||
|
DeleteTrail |
Write |
|||
|
DeregisterOrganizationDelegatedAdmin |
Write |
|||
|
DescribeQuery |
Read |
|||
|
DescribeTrails |
Read |
|||
|
DisableFederation |
Write |
|||
|
EnableFederation |
Write |
|||
iam:PassedToService |
cloudtrail.amazonaws.com, cloudtrail.preprod.amazonaws.com |
Write |
||
|
GenerateQuery |
Write |
|||
|
GetChannel |
Read |
|||
|
GetDashboard |
Read |
|||
|
GetEventConfiguration |
Read |
|||
|
GetEventDataStore |
Read |
|||
|
GetEventSelectors |
Read |
|||
|
GetImport |
Read |
|||
|
GetInsightSelectors |
Read |
|||
|
GetQueryResults |
Read |
|||
|
GetResourcePolicy |
Read |
|||
|
GetTrail |
Read |
|||
|
GetTrailStatus |
Read |
|||
|
ListChannels |
List |
|||
|
ListDashboards |
List |
|||
|
ListEventDataStores |
List |
|||
|
ListImportFailures |
Read |
|||
|
ListImports |
List |
|||
|
ListInsightsData |
List |
|||
|
ListInsightsMetricData |
List |
|||
Read |
||||
|
ListPublicKeys |
Read |
|||
|
ListQueries |
List |
|||
|
ListTags |
Read |
|||
|
ListTrails |
List |
|||
|
LookupEvents |
Read |
|||
|
PutEventConfiguration |
Write |
|||
|
PutEventSelectors |
Write |
|||
|
PutInsightSelectors |
Write |
|||
|
PutResourcePolicy |
Write |
|||
|
RegisterOrganizationDelegatedAdmin |
Write |
|||
|
RemoveTags |
Tagging, Write |
|||
|
RestoreEventDataStore |
Write |
|||
|
SearchSampleQueries |
Read |
|||
|
StartDashboardRefresh |
Write |
|||
Write |
||||
|
StartEventDataStoreIngestion |
Write |
|||
|
StartImport |
Write |
|||
iam:PassedToService |
cloudtrail.amazonaws.com, cloudtrail.preprod.amazonaws.com |
Write |
||
|
StartLogging |
Write |
|||
|
StartQuery |
Write |
|||
|
StopEventDataStoreIngestion |
Write |
|||
|
StopImport |
Write |
|||
|
StopLogging |
Write |
|||
|
UpdateChannel |
Write |
|||
|
UpdateDashboard |
Write |
|||
Write |
||||
Write |
||||
|
UpdateEventDataStore |
Write |
|||
|
UpdateTrail |
Write |
|||
iam:PassedToService |
cloudtrail.amazonaws.com, cloudtrail.preprod.amazonaws.com |
Write |
Actions defined by Amazon CloudTrail
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in Amazon. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to add one or more tags to a trail, event data store, channel or dashboard, up to a limit of 50 |
Tagging, Write |
|||
Grants permission to cancel a running query |
Write |
|||
Grants permission to create a channel |
Write |
|||
Grants permission to create a dashboard |
Write |
|||
Grants permission to create an event data store |
Write |
|||
Grants permission to create a trail that specifies the settings for delivery of log data to an Amazon S3 bucket |
Write |
|||
Grants permission to delete a channel |
Write |
|||
Grants permission to delete a dashboard |
Write |
|||
Grants permission to delete an event data store |
Write |
|||
Grants permission to delete a resource policy from the provided resource |
Write |
|||
Grants permission to delete a trail |
Write |
|||
Grants permission to deregister an Amazon Organizations member account as a delegated administrator |
Write |
|||
Grants permission to list details for the query |
Read |
|||
Grants permission to list settings for the trails associated with the current region for your account |
Read |
|||
Grants permission to disable federation of event data store data by using the Amazon Glue Data Catalog |
Write |
|||
Grants permission to enable federation of event data store data by using the Amazon Glue Data Catalog |
Write |
|||
Grants permission to generate a query for a specified event data store using the CloudTrail Lake query generator |
Write |
|||
Grants permission to return information about a specific channel |
Read |
|||
Grants permission to list settings for the dashboard |
Read |
|||
Grants permission to list event configurations that are configured for a trail or an event data store |
Read |
|||
Grants permission to list settings for the event data store |
Read |
|||
Grants permission to get data from an event data store by using the Amazon Glue Data Catalog |
Read |
|||
Grants permission to list settings for event selectors configured for a trail |
Read |
|||
Grants permission to return information about a specific import |
Read |
|||
Grants permission to list CloudTrail Insights selectors that are configured for a trail or event data store |
Read |
|||
Grants permission to fetch results of a complete query |
Read |
|||
Grants permission to get the resource policy attached to the provided resource |
Read |
|||
Grants permission to list settings for the trail |
Read |
|||
Grants permission to retrieve a JSON-formatted list of information about the specified trail |
Read |
|||
Grants permission to list the channels in the current account, and their source names |
List |
|||
Grants permission to list dashboards associated with the current region for your account |
List |
|||
Grants permission to list event data stores associated with the current region for your account |
List |
|||
Grants permission to return a list of failures for the specified import |
Read |
|||
Grants permission to return information on all imports, or a select set of imports by ImportStatus or Destination |
List |
|||
Grants permission to retrieve data captured by CloudTrail Insights |
List |
|||
Grants permission to list the public keys whose private keys were used to sign trail digest files within a specified time range |
Read |
|||
Grants permission to list queries associated with an event data store |
List |
|||
Grants permission to list the tags for trails, event data stores, channels or dashboards in the current region |
Read |
|||
Grants permission to list trails associated with the current region for your account |
List |
|||
Grants permission to look up and retrieve metric data for API activity events captured by CloudTrail that create, update, or delete resources in your account |
Read |
|||
Grants permission to create and update event configurations for a trail or an event data store |
Write |
|||
Grants permission to create and update event selectors for a trail |
Write |
|||
Grants permission to create and update CloudTrail Insights selectors for a trail or event data store |
Write |
|||
Grants permission to attach a resource policy to the provided resource |
Write |
|||
Grants permission to register an Amazon Organizations member account as a delegated administrator |
Write |
|||
Grants permission to remove tags from a trail, event data store, channel or dashboard |
Tagging, Write |
|||
Grants permission to restore an event data store |
Write |
|||
Grants permission to perform semantic search for CloudTrail Lake sample queries |
Read |
|||
Grants permission to start a refresh on the specified dashboard |
Write |
|||
Grants permission to start ingestion on an event data store |
Write |
|||
Grants permission to start an import of logged trail events from a source S3 bucket to a destination event data store |
Write |
|||
Grants permission to start the recording of Amazon API calls and log file delivery for a trail |
Write |
|||
Grants permission to start a new query on a specified event data store |
Write |
|||
Grants permission to stop ingestion on an event data store |
Write |
|||
Grants permission to stop a specified import |
Write |
|||
Grants permission to stop the recording of Amazon API calls and log file delivery for a trail |
Write |
|||
Grants permission to update a channel |
Write |
|||
Grants permission to update a dashboard |
Write |
|||
Grants permission to update an event data store |
Write |
|||
Grants permission to update the settings that specify delivery of log files |
Write |
Permission-only actions for Amazon CloudTrail
The following actions are defined by Amazon CloudTrail but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to create a service-linked channel that specifies the settings for delivery of log data to an Amazon service |
Write |
|||
Grants permission to delete a service-linked channel |
Write |
|||
Grants permission to generate a results summary for specified queries using the CloudTrail natural language generator |
Read |
|||
Grants permission to list settings for the service-linked channel |
Read |
|||
Grants permission to list service-linked channels associated with the current region for a specified account |
List |
|||
Grants permission to update the service-linked channel settings for delivery of log data to an Amazon service |
Write |
Resource types defined by Amazon CloudTrail
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId} |
||
arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName} |
||
arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId} |
||
arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName} |
Condition keys for Amazon CloudTrail
Amazon CloudTrail defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the tag key-value pairs in the request |
String |
|
Filters access by the tags attached to the resource |
String |
|
Filters access by the tag keys in a request |
ArrayOfString |