Actions, resources, and condition keys for Amazon X-Ray
Amazon 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 Amazon 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 Amazon 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 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 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 |
Write |
|||
Grants permission to upload OpenTelemetry spans to Amazon X-Ray |
Write |
|||
Grants permission to send Amazon X-Ray daemon telemetry to the service |
Write |
|||
Grants permission to upload segment documents to Amazon X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches |
Write |
|||
Grants permission to initiate a trace retrieval process using the specified time range and for the given trace IDs on the Transaction Search CloudWatch log group |
Read |
|||
Grants permission to add tags to an X-Ray resource |
Tagging, Write |
|||
Grants permission to remove tags from an X-Ray resource |
Tagging, Write |
|||
Grants permission to update a group resource |
Write |
|||
Grants permission to modify an indexing rule's configuration |
Write |
|||
Grants permission to modify a sampling rule's configuration |
Write |
|||
Grants permission to modify the destination of data sent to PutTraceSegments and OpenTelemetry API |
Write |
Permission-only actions for Amazon X-Ray
The following actions are defined by Amazon X-Ray 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 retrieve metadata for a list of traces specified by ID |
Read |
|||
Grants permission to retrieve distinct service graphs for one or more specific trace IDs |
Read |
|||
Grants permission to share X-Ray resources with a monitoring account |
Write |
|||
Grants permission to upload spans to Amazon X-Ray to be indexed |
Write |
Resource types defined by Amazon X-Ray
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}:xray:${Region}:${Account}:group/${GroupName}/${Id} |
||
arn:${Partition}:xray:${Region}:${Account}:sampling-rule/${SamplingRuleName} |
Condition keys for Amazon X-Ray
Amazon X-Ray 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 tags that are passed in the request |
String |
|
Filters access by the tags associated with the resource |
String |
|
Filters access by the tag keys that are passed in the request |
ArrayOfString |
|
Filters access by LogGeneratingResourceArn in the request |
ArrayOfARN |
|
Filters access by PolicyName in the request |
String |
|
Filters access by TraceSegmentDestination type in the request |
String |