Actions, resources, and condition keys for AWS X-Ray
AWS X-Ray (service prefix: xray) 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 AWS X-Ray
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 |
|---|---|---|---|---|
|
BatchGetTraces |
List |
|||
|
CancelTraceRetrieval |
Read |
|||
|
CreateGroup |
Write |
|||
Tagging, Write |
||||
|
CreateSamplingRule |
Write |
|||
Tagging, Write |
||||
|
DeleteGroup |
Write |
|||
|
DeleteResourcePolicy |
Write |
|||
|
DeleteSamplingRule |
Write |
|||
|
GetEncryptionConfig |
Read |
|||
|
GetGroup |
Read |
|||
|
GetGroups |
Read |
|||
|
GetIndexingRules |
Read |
|||
|
GetInsight |
Read |
|||
|
GetInsightEvents |
Read |
|||
|
GetInsightImpactGraph |
Read |
|||
|
GetInsightSummaries |
Read |
|||
|
GetRetrievedTracesGraph |
Read |
|||
|
GetSamplingRules |
Read |
|||
|
GetSamplingStatisticSummaries |
Read |
|||
|
GetSamplingTargets |
Read |
|||
|
GetServiceGraph |
Read |
|||
|
GetTimeSeriesServiceStatistics |
Read |
|||
|
GetTraceGraph |
Read |
|||
|
GetTraceSegmentDestination |
Read |
|||
|
GetTraceSummaries |
Read |
|||
|
ListResourcePolicies |
List |
|||
|
ListRetrievedTraces |
List |
|||
|
ListTagsForResource |
List |
|||
|
PutEncryptionConfig |
Permissions management, Write |
|||
|
PutResourcePolicy |
Write |
|||
|
PutTelemetryRecords |
Write |
|||
|
PutTraceSegments |
Write |
|||
|
StartTraceRetrieval |
Read |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateGroup |
Write |
|||
|
UpdateIndexingRule |
Write |
|||
|
UpdateSamplingRule |
Write |
|||
|
UpdateTraceSegmentDestination |
Write |
Actions defined by AWS X-Ray
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 retrieve a list of traces specified by ID. Each trace is a collection of segment documents that originates from a single request. Use GetTraceSummaries to get a list of trace IDs |
List |
|||
Grants permission to cancel an ongoing trace retrieval job initiated by StartTraceRetrieval using the provided RetrievalToken. A successful cancellation will return an HTTP 200 response |
Read |
|||
Grants permission to create a group resource with a name and a filter expression |
Write |
|||
Grants permission to create a rule to control sampling behavior for instrumented applications |
Write |
|||
Grants permission to delete a group resource |
Write |
|||
Grants permission to delete resource policies |
Write |
|||
Grants permission to delete a sampling rule |
Write |
|||
Grants permission to retrieve the current encryption configuration for X-Ray data |
Read |
|||
Grants permission to retrieve group resource details |
Read |
|||
Grants permission to retrieve all active group details |
Read |
|||
Grants permission to retrieve all indexing rules. Indexing rules are used to determine the server-side sampling rate for spans ingested through the CloudWatchLogs destination and indexed by X-Ray |
Read |
|||
Grants permission to retrieve the details of a specific insight |
Read |
|||
Grants permission to retrieve the events of a specific insight |
Read |
|||
Grants permission to retrieve the part of the service graph which is impacted for a specific insight |
Read |
|||
Grants permission to retrieve the summary of all insights for a group and time range with optional filters |
Read |
|||
Grants permission to retrieve a service graph for traces based on the specified RetrievalToken from the Transaction Search CloudWatch log group |
Read |
|||
Grants permission to retrieve all sampling rules |
Read |
|||
Grants permission to retrieve information about recent sampling results for all sampling rules |
Read |
|||
Grants permission to request a sampling quota for rules that the service is using to sample requests |
Read |
|||
Grants permission to retrieve a document that describes services that process incoming requests, and downstream services that they call as a result |
Read |
|||
Grants permission to retrieve an aggregation of service statistics defined by a specific time range bucketed into time intervals |
Read |
|||
Grants permission to retrieve a service graph for one or more specific trace IDs |
Read |
|||
Grants permission to retrieve the current destination of data sent to PutTraceSegments and OpenTelemetry API |
Read |
|||
Grants permission to retrieve IDs and metadata for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces |
Read |
|||
Grants permission to list resource policies |
List |
|||
Grants permission to retrieve a list of traces for a given RetrievalToken from the Transaction Search CloudWatch log group |
List |
|||
Grants permission to list tags for an X-Ray resource |
List |
|||
Grants permission to update the encryption configuration for X-Ray data |
Permissions management, Write |
|||
Grants permission to create or update resource policies |