Actions, resources, and condition keys for Amazon CloudWatch Synthetics
Amazon CloudWatch Synthetics (service prefix: synthetics) 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 Synthetics
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 |
|---|---|---|---|---|
|
AssociateResource |
Write |
|||
|
CreateCanary |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
synthetics.amazonaws.com |
Write |
||
|
CreateGroup |
Write |
|||
Tagging, Write |
||||
|
DeleteCanary |
Write |
|||
|
DeleteGroup |
Write |
|||
|
DescribeCanaries |
Read |
|||
Read |
||||
|
DescribeCanariesLastRun |
Read |
|||
|
DescribeRuntimeVersions |
Read |
|||
|
DisassociateResource |
Write |
|||
|
GetCanary |
Read |
|||
|
GetCanaryRuns |
Read |
|||
|
GetGroup |
Read |
|||
Read |
||||
|
ListAssociatedGroups |
List |
|||
|
ListGroupResources |
List |
|||
|
ListGroups |
List |
|||
|
ListTagsForResource |
Read |
|||
|
StartCanary |
Write |
|||
|
StartCanaryDryRun |
Write |
|||
iam:PassedToService |
synthetics.amazonaws.com |
Write |
||
|
StopCanary |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateCanary |
Write |
|||
iam:PassedToService |
synthetics.amazonaws.com |
Write |
Actions defined by Amazon CloudWatch Synthetics
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 AWS. 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 associate a resource with a group |
Write |
|||
Grants permission to create a canary |
Write |
|||
Grants permission to create a group |
Write |
|||
Grants permission to delete a canary. Amazon Synthetics deletes all the resources except for the Lambda function and the CloudWatch Alarms if you created one |
Write |
|||
Grants permission to delete a group |
Write |
|||
Grants permission to list information of all canaries |
Read |
|||
Grants permission to list information about the last test run associated with all canaries |
Read |
|||
Grants permission to list information about Synthetics canary runtime versions |
Read |
|||
Grants permission to disassociate a resource from a group |
Write |
|||
Grants permission to view the details of a canary |
Read |
|||
Grants permission to list information about all the test runs associated with a canary |
Read |
|||
Grants permission to view the details of a group |
Read |
|||
Grants permission to list information about the associated groups of a canary |
List |
|||
Grants permission to list information about canaries in a group |
List |
|||
Grants permission to list information of all groups |
List |
|||
Grants permission to list all tags and values associated with a resource |
Read |
|||
Grants permission to start a canary, so that Amazon CloudWatch Synthetics starts monitoring a website |
Write |
|||
Grants permission to start a canary dry run, so that Amazon CloudWatch Synthetics can execute a test execution of a canary with provided parameters |
Write |
|||
Grants permission to stop a canary |
Write |
|||
Grants permission to add one or more tags to a resource |
Tagging, Write |
|||
Grants permission to remove one or more tags from a resource |
Tagging, Write |
|||
Grants permission to update a canary |
Write |
Resource types defined by Amazon CloudWatch Synthetics
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}:synthetics:${Region}:${Account}:canary:${CanaryName} |
||
arn:${Partition}:synthetics:${Region}:${Account}:group:${GroupId} |
Condition keys for Amazon CloudWatch Synthetics
Amazon CloudWatch Synthetics defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access based on the tags that are passed in the request |
String |
|
Filters access based on the tags associated with the resource |
String |
|
Filters access based on the tag keys that are passed in the request |
ArrayOfString |
|
Filters access based on the name of the canary |
ArrayOfString |