Actions, resources, and condition keys for Amazon CloudWatch
Amazon CloudWatch (service prefix: cloudwatch) 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 CloudWatch
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 |
|---|---|---|---|---|
|
DeleteAlarmMuteRule |
Write |
|||
|
DeleteAlarms |
Write |
|||
|
DeleteAnomalyDetector |
Write |
|||
|
DeleteDashboards |
Write |
|||
|
DeleteInsightRules |
Write |
|||
|
DeleteMetricStream |
Write |
|||
|
DescribeAlarmHistory |
Read |
|||
|
DescribeAlarms |
Read |
|||
|
DescribeAlarmsForMetric |
Read |
|||
|
DescribeAnomalyDetectors |
Read |
|||
|
DescribeInsightRules |
Read |
|||
|
DisableAlarmActions |
Write |
|||
|
DisableInsightRules |
Write |
|||
|
EnableAlarmActions |
Write |
|||
|
EnableInsightRules |
Write |
|||
|
GetAlarmMuteRule |
Read |
|||
|
GetDashboard |
Read |
|||
|
GetDataset |
Read |
|||
|
GetInsightRuleReport |
Read |
|||
|
GetMetricData |
Read |
|||
|
GetMetricStatistics |
Read |
|||
|
GetMetricStream |
Read |
|||
|
GetMetricWidgetImage |
Read |
|||
|
GetOTelEnrichment |
Read |
|||
|
ListAlarmMuteRules |
List |
|||
|
ListDashboards |
List |
|||
|
ListManagedInsightRules |
Read |
|||
|
ListMetricStreams |
List |
|||
|
ListMetrics |
List |
|||
|
ListTagsForResource |
List |
|||
|
PutAlarmMuteRule |
Write |
|||
Tagging, Write |
||||
|
PutAnomalyDetector |
Write |
|||
|
PutCompositeAlarm |
Write |
|||
Tagging, Write |
||||
|
PutDashboard |
Write |
|||
Tagging, Write |
||||
|
PutInsightRule |
Write |
|||
Tagging, Write |
||||
|
PutLogAlarm |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
cloudwatch.amazonaws.com |
Write |
||
|
PutManagedInsightRules |
Write |
|||
|
PutMetricAlarm |
Write |
|||
Tagging, Write |
||||
|
PutMetricData |
Write |
|||
|
PutMetricStream |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
streams.metrics.cloudwatch.amazonaws.com |
Write |
||
|
SetAlarmState |
Write |
|||
|
StartMetricStreams |
Write |
|||
|
StartOTelEnrichment |
Write |
|||
|
StopMetricStreams |
Write |
|||
|
StopOTelEnrichment |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
Actions defined by Amazon CloudWatch
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 batch get service level indicator report |
Read |
|||
Grants permission to batch retrieve a service level objective budget report |
Read |
|||
Grants permission to create a service level objective |
Write |
|||
Grants permission to delete an alarm mute rule |
Write |
|||
Grants permission to delete a collection of alarms |
Write |
|||
Grants permission to delete the specified anomaly detection model from your account |
Write |
|||
Grants permission to delete all CloudWatch dashboards that you specify |
Write |
|||
Grants permission to delete a collection of insight rules |
Write |
|||
Grants permission to delete the CloudWatch metric stream that you specify |
Write |
|||
Grants permission to delete a service level objective |
Write |
|||
Grants permission to retrieve the history for the specified alarm |
Read |
|||
Grants permission to describe all alarms, currently owned by the user's account |
Read |
|||
Grants permission to describe all alarms configured on the specified metric, currently owned by the user's account |
Read |
|||
Grants permission to list the anomaly detection models that you have created in your account |
Read |
|||
Grants permission to describe all insight rules, currently owned by the user's account |
Read |
|||
Grants permission to disable actions for a collection of alarms |
Write |
|||
Grants permission to disable a collection of insight rules |
Write |
|||
Grants permission to enable actions for a collection of alarms |
Write |
|||
Grants permission to enable a collection of insight rules |
Write |
|||
Grants permission to enable a CloudWatch topology discovery |
Write |
|||
Grants permission to generate a Metrics Insights or Logs Insights query string from a natural language prompt |
Read |
|||
Grants permission to generate a summary of CloudWatch LogInsights query results in natural language using generative AI |
Read |
|||
Grants permission to get an alarm mute rule |
Read |
|||
Grants permission to display the details of the CloudWatch dashboard you specify |
Read |
|||
Grants permission to get a dataset |
Read |
|||
Grants permission to return the top-N report of unique contributors over a time range for a given insight rule |
Read |
|||
Grants permission to retrieve batch amounts of CloudWatch classic metric data and perform metric math on retrieved data; and grants permission to retrieve OTLP metric data using PromQL |
Read |
|||
Grants permission to retrieve statistics for the specified metric |
Read |
|||
Grants permission to return the details of a CloudWatch metric stream |
Read |
|||
Grants permission to retrieve snapshots of metric widgets |
Read |
|||
Grants permission to retrieve information about a service |
Read |
|||
Grants permission to retrieve information about service level objective |
Read |
|||
Grants permission to retrieve a CloudWatch topology map |
Read |
|||
Grants permission to retrieve a list of alarm mute rules owned by the user's account |
List |
|||
Grants permission to return a list of all CloudWatch dashboards in your account |
List |
|||
Grants permission to list available managed Insight Rules for a given Resource ARN |
Read |
|||
Grants permission to return a list of all CloudWatch metric streams in your account |
List |
|||
Grants permission to retrieve a list of valid metrics stored for the Amazon Web Services account owner |
List |
|||
Grants permission to list service level objectives |
List |
|||
Grants permission to list services |
List |
|||
Grants permission to list tags for an Amazon CloudWatch resource |
List |
|||
|
SCENARIO: CloudWatch-Alarm |
||||
|
SCENARIO: CloudWatch-AlarmMuteRule |
||||
|
SCENARIO: CloudWatch-InsightRule |
||||
|
SCENARIO: CloudWatch-ServiceLevelObjective |
||||
|
SCENARIO: CloudWatch-Dashboard |
||||
|
SCENARIO: CloudWatch-Dataset |
||||
|
SCENARIO: CloudWatch-MetricStream |
||||
|
SCENARIO: CloudWatch-Service |
||||
Grants permission to create or update an alarm mute rule |
Write |
|||
Grants permission to create or update an anomaly detection model for a CloudWatch metric |
Write |
|||
Grants permission to create or update a composite alarm |
Write |
|||
Grants permission to create a CloudWatch dashboard, or update an existing dashboard if it already exists |
Write |
|||
Grants permission to create a new insight rule or replace an existing insight rule |
Write |
|||
Grants permission to create or update a log-based alarm and associate it with a CloudWatch Logs Insights scheduled query |
Write |
|||
Grants permission to create managed Insight Rules |
Write |
|||
Grants permission to create or update an alarm and associates it with the specified Amazon CloudWatch metric |
Write |
|||
Grants permission to publish metric data points to Amazon CloudWatch using CloudWatch and OTLP formats |
Write |
|||
Grants permission to create a CloudWatch metric stream, or update an existing metric stream if it already exists |
Write |
|||
Grants permission to temporarily set the state of an alarm for testing purposes |
Write |
|||
Grants permission to start all CloudWatch metric streams that you specify |
Write |
|||
Grants permission to stop all CloudWatch metric streams that you specify |
Write |
|||
Grants permission to add tags to an Amazon CloudWatch resource |
Tagging, Write |
|||
|
SCENARIO: CloudWatch-Alarm |
||||
|
SCENARIO: CloudWatch-AlarmMuteRule |
||||
|
SCENARIO: CloudWatch-InsightRule |
||||
|
SCENARIO: CloudWatch-ServiceLevelObjective |
||||
|
SCENARIO: CloudWatch-Dashboard |
||||
|
SCENARIO: CloudWatch-Dataset |
||||
|
SCENARIO: CloudWatch-MetricStream |
||||
|
SCENARIO: CloudWatch-Service |
||||
Grants permission to remove a tag from an Amazon CloudWatch resource |
Tagging, Write |
|||
|
SCENARIO: CloudWatch-Alarm |
||||
|
SCENARIO: CloudWatch-AlarmMuteRule |
||||
|
SCENARIO: CloudWatch-InsightRule |
||||
|
SCENARIO: CloudWatch-ServiceLevelObjective |
||||
|
SCENARIO: CloudWatch-Dashboard |
||||
|
SCENARIO: CloudWatch-Dataset |
||||
|
SCENARIO: CloudWatch-MetricStream |
||||
|
SCENARIO: CloudWatch-Service |
||||
Grants permission to update a service level objective |
Write |
Permission-only actions for Amazon CloudWatch
The following actions are defined by Amazon CloudWatch 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 make API calls to CloudWatch using bearer token authentication |
Write |
|||
Grants permission to delete a pipeline rule for CloudWatch pipelines for OTel metric processing |
Write |
|||
Grants permission to retrieve the status of OTel Enrichment of vended metrics for PromQL querying |
Read |
|||
Grants permission to retrieve service data |
Read |
|||
Grants permission to retrieve a CloudWatch topology discovery status |
Read |
|||
Grants permission to share CloudWatch resources with a monitoring account |
Write |
|||
Grants permission to retrieve all the entities that are emitting a given metric |
List |
|||
Grants permission to create or update a pipeline rule for CloudWatch pipelines for OTel metric processing |
Write |
|||
Grants permission to enable OTel Enrichment of vended metrics for PromQL querying |
Write |
|||
Grants permission to disable OTel Enrichment of vended metrics for PromQL querying |
Write |
Resource types defined by Amazon CloudWatch
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}:cloudwatch:${Region}:${Account}:alarm:${AlarmName} |
||
arn:${Partition}:cloudwatch:${Region}:${Account}:alarm-mute-rule:${AlarmMuteRuleName} |
||
arn:${Partition}:cloudwatch::${Account}:dashboard/${DashboardName} |
||
arn:${Partition}:cloudwatch:${Region}:${Account}:dataset/${DatasetId} |
||
arn:${Partition}:cloudwatch:${Region}:${Account}:insight-rule/${InsightRuleName} |
||
arn:${Partition}:cloudwatch:${Region}:${Account}:metric-stream/${MetricStreamName} |
||
arn:${Partition}:cloudwatch:${Region}:${Account}:service/${ServiceName}-${UniqueAttributesHex} |
||
arn:${Partition}:cloudwatch:${Region}:${Account}:slo/${SloName} |
Condition keys for Amazon CloudWatch
Amazon CloudWatch 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 presence of tags in the request |
String |
|
Filters access by tags associated with the resource |
String |
|
Filters access by the presence of tags in the request |
ArrayOfString |
|
Filters access by defined alarm actions |
ArrayOfString |
|
Filters access by the presence of optional namespace values |
String |
|
Filters access by the Log Groups specified in an Insight Rule |
ArrayOfString |
|
Filters access by the Resource ARNs specified in a managed Insight Rule |
ArrayOfARN |