View a markdown version of this page

Actions, resources, and condition keys for Amazon CloudTrail - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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:

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

cloudtrail:AddTags

Tagging, Write

CancelQuery

cloudtrail:CancelQuery

Write

CreateChannel

cloudtrail:AddTags

Tagging, Write

cloudtrail:CreateChannel

Write

CreateDashboard

cloudtrail:AddTags

Tagging, Write

cloudtrail:CreateDashboard

Write

cloudtrail:StartDashboardRefresh

Write

cloudtrail:StartQuery

Write

CreateEventDataStore

cloudtrail:AddTags

Tagging, Write

cloudtrail:CreateEventDataStore

Write

CreateTrail

cloudtrail:AddTags

Tagging, Write

cloudtrail:CreateTrail

Write

iam:PassRole

iam:PassedToService

cloudtrail.amazonaws.com, cloudtrail.preprod.amazonaws.com

Write

DeleteChannel

cloudtrail:DeleteChannel

Write

DeleteDashboard

cloudtrail:DeleteDashboard

Write

DeleteEventDataStore

cloudtrail:DeleteEventDataStore

Write

DeleteResourcePolicy

cloudtrail:DeleteResourcePolicy

Write

DeleteTrail

cloudtrail:DeleteTrail

Write

DeregisterOrganizationDelegatedAdmin

cloudtrail:DeregisterOrganizationDelegatedAdmin

Write

DescribeQuery

cloudtrail:DescribeQuery

Read

DescribeTrails

cloudtrail:DescribeTrails

Read

DisableFederation

cloudtrail:DisableFederation

Write

EnableFederation

cloudtrail:EnableFederation

Write

iam:PassRole

iam:PassedToService

cloudtrail.amazonaws.com, cloudtrail.preprod.amazonaws.com

Write

GenerateQuery

cloudtrail:GenerateQuery

Write

GetChannel

cloudtrail:GetChannel

Read

GetDashboard

cloudtrail:GetDashboard

Read

GetEventConfiguration

cloudtrail:GetEventConfiguration

Read

GetEventDataStore

cloudtrail:GetEventDataStore

Read

GetEventSelectors

cloudtrail:GetEventSelectors

Read

GetImport

cloudtrail:GetImport

Read

GetInsightSelectors

cloudtrail:GetInsightSelectors

Read

GetQueryResults

cloudtrail:GetQueryResults

Read

GetResourcePolicy

cloudtrail:GetResourcePolicy

Read

GetTrail

cloudtrail:GetTrail

Read

GetTrailStatus

cloudtrail:GetTrailStatus

Read

ListChannels

cloudtrail:ListChannels

List

ListDashboards

cloudtrail:ListDashboards

List

ListEventDataStores

cloudtrail:ListEventDataStores

List

ListImportFailures

cloudtrail:ListImportFailures

Read

ListImports

cloudtrail:ListImports

List

ListInsightsData

cloudtrail:ListInsightsData

List

ListInsightsMetricData

cloudtrail:ListInsightsData

List

cloudtrail:LookupEvents

Read

ListPublicKeys

cloudtrail:ListPublicKeys

Read

ListQueries

cloudtrail:ListQueries

List

ListTags

cloudtrail:ListTags

Read

ListTrails

cloudtrail:ListTrails

List

LookupEvents

cloudtrail:LookupEvents

Read

PutEventConfiguration

cloudtrail:PutEventConfiguration

Write

PutEventSelectors

cloudtrail:PutEventSelectors

Write

PutInsightSelectors

cloudtrail:PutInsightSelectors

Write

PutResourcePolicy

cloudtrail:PutResourcePolicy

Write

RegisterOrganizationDelegatedAdmin

cloudtrail:RegisterOrganizationDelegatedAdmin

Write

RemoveTags

cloudtrail:RemoveTags

Tagging, Write

RestoreEventDataStore

cloudtrail:RestoreEventDataStore

Write

SearchSampleQueries

cloudtrail:SearchSampleQueries

Read

StartDashboardRefresh

cloudtrail:StartDashboardRefresh

Write

cloudtrail:StartQuery

Write

StartEventDataStoreIngestion

cloudtrail:StartEventDataStoreIngestion

Write

StartImport

cloudtrail:StartImport

Write

iam:PassRole

iam:PassedToService

cloudtrail.amazonaws.com, cloudtrail.preprod.amazonaws.com

Write

StartLogging

cloudtrail:StartLogging

Write

StartQuery

cloudtrail:StartQuery

Write

StopEventDataStoreIngestion

cloudtrail:StopEventDataStoreIngestion

Write

StopImport

cloudtrail:StopImport

Write

StopLogging

cloudtrail:StopLogging

Write

UpdateChannel

cloudtrail:UpdateChannel

Write

UpdateDashboard

cloudtrail:StartDashboardRefresh

Write

cloudtrail:StartQuery

Write

cloudtrail:UpdateDashboard

Write

UpdateEventDataStore

cloudtrail:UpdateEventDataStore

Write

UpdateTrail

cloudtrail:UpdateTrail

Write

iam:PassRole

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

AddTags

Grants permission to add one or more tags to a trail, event data store, channel or dashboard, up to a limit of 50

channel

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

dashboard

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

eventdatastore

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

trail

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CancelQuery

Grants permission to cancel a running query

eventdatastore*

aws:ResourceTag/${TagKey}

Write

CreateChannel

Grants permission to create a channel

channel*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

eventdatastore*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateDashboard

Grants permission to create a dashboard

dashboard*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateEventDataStore

Grants permission to create an event data store

eventdatastore*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateTrail

Grants permission to create a trail that specifies the settings for delivery of log data to an Amazon S3 bucket

trail*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

DeleteChannel

Grants permission to delete a channel

channel*

aws:ResourceTag/${TagKey}

Write

DeleteDashboard

Grants permission to delete a dashboard

dashboard*

aws:ResourceTag/${TagKey}

Write

DeleteEventDataStore

Grants permission to delete an event data store

eventdatastore*

aws:ResourceTag/${TagKey}

Write

DeleteResourcePolicy

Grants permission to delete a resource policy from the provided resource

channel

aws:ResourceTag/${TagKey}

Write

dashboard

aws:ResourceTag/${TagKey}

eventdatastore

aws:ResourceTag/${TagKey}

DeleteTrail

Grants permission to delete a trail

trail*

aws:ResourceTag/${TagKey}

Write

DeregisterOrganizationDelegatedAdmin

Grants permission to deregister an Amazon Organizations member account as a delegated administrator

Write

DescribeQuery

Grants permission to list details for the query

eventdatastore*

aws:ResourceTag/${TagKey}

Read

DescribeTrails

Grants permission to list settings for the trails associated with the current region for your account

Read

DisableFederation

Grants permission to disable federation of event data store data by using the Amazon Glue Data Catalog

eventdatastore*

aws:ResourceTag/${TagKey}

Write

EnableFederation

Grants permission to enable federation of event data store data by using the Amazon Glue Data Catalog

eventdatastore*

aws:ResourceTag/${TagKey}

Write

GenerateQuery

Grants permission to generate a query for a specified event data store using the CloudTrail Lake query generator

eventdatastore*

aws:ResourceTag/${TagKey}

Write

GetChannel

Grants permission to return information about a specific channel

channel*

aws:ResourceTag/${TagKey}

Read

GetDashboard

Grants permission to list settings for the dashboard

dashboard*

aws:ResourceTag/${TagKey}

Read

GetEventConfiguration

Grants permission to list event configurations that are configured for a trail or an event data store

eventdatastore

aws:ResourceTag/${TagKey}

Read

trail

aws:ResourceTag/${TagKey}

GetEventDataStore

Grants permission to list settings for the event data store

eventdatastore*

aws:ResourceTag/${TagKey}

Read

GetEventDataStoreData

Grants permission to get data from an event data store by using the Amazon Glue Data Catalog

eventdatastore*

aws:ResourceTag/${TagKey}

Read

GetEventSelectors

Grants permission to list settings for event selectors configured for a trail

trail*

aws:ResourceTag/${TagKey}

Read

GetImport

Grants permission to return information about a specific import

Read

GetInsightSelectors

Grants permission to list CloudTrail Insights selectors that are configured for a trail or event data store

eventdatastore

aws:ResourceTag/${TagKey}

Read

trail

aws:ResourceTag/${TagKey}

GetQueryResults

Grants permission to fetch results of a complete query

eventdatastore*

aws:ResourceTag/${TagKey}

Read

GetResourcePolicy

Grants permission to get the resource policy attached to the provided resource

channel

aws:ResourceTag/${TagKey}

Read

dashboard

aws:ResourceTag/${TagKey}

eventdatastore

aws:ResourceTag/${TagKey}

GetTrail

Grants permission to list settings for the trail

trail*

aws:ResourceTag/${TagKey}

Read

GetTrailStatus

Grants permission to retrieve a JSON-formatted list of information about the specified trail

trail*

aws:ResourceTag/${TagKey}

Read

ListChannels

Grants permission to list the channels in the current account, and their source names

List

ListDashboards

Grants permission to list dashboards associated with the current region for your account

List

ListEventDataStores

Grants permission to list event data stores associated with the current region for your account

List

ListImportFailures

Grants permission to return a list of failures for the specified import

Read

ListImports

Grants permission to return information on all imports, or a select set of imports by ImportStatus or Destination

List

ListInsightsData

Grants permission to retrieve data captured by CloudTrail Insights

trail*

aws:ResourceTag/${TagKey}

List

ListPublicKeys

Grants permission to list the public keys whose private keys were used to sign trail digest files within a specified time range

Read

ListQueries

Grants permission to list queries associated with an event data store

eventdatastore*

aws:ResourceTag/${TagKey}

List

ListTags

Grants permission to list the tags for trails, event data stores, channels or dashboards in the current region

channel

aws:ResourceTag/${TagKey}

Read

dashboard

aws:ResourceTag/${TagKey}

eventdatastore

aws:ResourceTag/${TagKey}

trail

aws:ResourceTag/${TagKey}

ListTrails

Grants permission to list trails associated with the current region for your account

List

LookupEvents

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

PutEventConfiguration

Grants permission to create and update event configurations for a trail or an event data store

eventdatastore

aws:ResourceTag/${TagKey}

Write

trail

aws:ResourceTag/${TagKey}

PutEventSelectors

Grants permission to create and update event selectors for a trail

trail*

aws:ResourceTag/${TagKey}

Write

PutInsightSelectors

Grants permission to create and update CloudTrail Insights selectors for a trail or event data store

eventdatastore

aws:ResourceTag/${TagKey}

Write

trail

aws:ResourceTag/${TagKey}

PutResourcePolicy

Grants permission to attach a resource policy to the provided resource

channel

aws:ResourceTag/${TagKey}

Write

dashboard

aws:ResourceTag/${TagKey}

eventdatastore

aws:ResourceTag/${TagKey}

RegisterOrganizationDelegatedAdmin

Grants permission to register an Amazon Organizations member account as a delegated administrator

Write

RemoveTags

Grants permission to remove tags from a trail, event data store, channel or dashboard

channel

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

dashboard

aws:ResourceTag/${TagKey}

aws:TagKeys

eventdatastore

aws:ResourceTag/${TagKey}

aws:TagKeys

trail

aws:ResourceTag/${TagKey}

aws:TagKeys

RestoreEventDataStore

Grants permission to restore an event data store

eventdatastore*

aws:ResourceTag/${TagKey}

Write

SearchSampleQueries

Grants permission to perform semantic search for CloudTrail Lake sample queries

Read

StartDashboardRefresh

Grants permission to start a refresh on the specified dashboard

dashboard*

aws:ResourceTag/${TagKey}

Write

StartEventDataStoreIngestion

Grants permission to start ingestion on an event data store

eventdatastore*

aws:ResourceTag/${TagKey}

Write

StartImport

Grants permission to start an import of logged trail events from a source S3 bucket to a destination event data store

Write

StartLogging

Grants permission to start the recording of Amazon API calls and log file delivery for a trail

trail*

aws:ResourceTag/${TagKey}

Write

StartQuery

Grants permission to start a new query on a specified event data store

eventdatastore*

aws:ResourceTag/${TagKey}

Write

StopEventDataStoreIngestion

Grants permission to stop ingestion on an event data store

eventdatastore*

aws:ResourceTag/${TagKey}

Write

StopImport

Grants permission to stop a specified import

Write

StopLogging

Grants permission to stop the recording of Amazon API calls and log file delivery for a trail

trail*

aws:ResourceTag/${TagKey}

Write

UpdateChannel

Grants permission to update a channel

channel*

aws:ResourceTag/${TagKey}

Write

UpdateDashboard

Grants permission to update a dashboard

dashboard*

aws:ResourceTag/${TagKey}

Write

UpdateEventDataStore

Grants permission to update an event data store

eventdatastore*

aws:ResourceTag/${TagKey}

Write

UpdateTrail

Grants permission to update the settings that specify delivery of log files

trail*

aws:ResourceTag/${TagKey}

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

CreateServiceLinkedChannel

Grants permission to create a service-linked channel that specifies the settings for delivery of log data to an Amazon service

channel*

aws:ResourceTag/${TagKey}

Write

DeleteServiceLinkedChannel

Grants permission to delete a service-linked channel

channel*

aws:ResourceTag/${TagKey}

Write

GenerateQueryResultsSummary

Grants permission to generate a results summary for specified queries using the CloudTrail natural language generator

eventdatastore*

aws:ResourceTag/${TagKey}

Read

GetServiceLinkedChannel

Grants permission to list settings for the service-linked channel

channel*

aws:ResourceTag/${TagKey}

Read

ListServiceLinkedChannels

Grants permission to list service-linked channels associated with the current region for a specified account

List

UpdateServiceLinkedChannel

Grants permission to update the service-linked channel settings for delivery of log data to an Amazon service

channel*

aws:ResourceTag/${TagKey}

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

channel

arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}

aws:ResourceTag/${TagKey}

dashboard

arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}

aws:ResourceTag/${TagKey}

eventdatastore

arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}

aws:ResourceTag/${TagKey}

trail

arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}

aws:ResourceTag/${TagKey}

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

aws:RequestTag/${TagKey}

Filters access by the tag key-value pairs in the request

String

aws:ResourceTag/${TagKey}

Filters access by the tags attached to the resource

String

aws:TagKeys

Filters access by the tag keys in a request

ArrayOfString