

# Actions, resources, and condition keys for AWS X-Ray
<a name="list_awsx-ray"></a>

AWS X-Ray (service prefix: `xray`) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.

References:
+ Learn how to [configure this service](https://docs.aws.amazon.com/xray/latest/devguide/).
+ View a list of the [API operations available for this service](https://docs.aws.amazon.com/xray/latest/api/).
+ Learn how to secure this service and its resources by [using IAM](https://docs.aws.amazon.com/xray/latest/devguide/security_iam_service-with-iam.html) permission policies.

**Topics**
+ [Actions defined by AWS X-Ray](#awsx-ray-actions-as-permissions)
+ [Resource types defined by AWS X-Ray](#awsx-ray-resources-for-iam-policies)
+ [Condition keys for AWS X-Ray](#awsx-ray-policy-keys)

## Actions defined by AWS X-Ray
<a name="awsx-ray-actions-as-permissions"></a>

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.

The **Access level** column of the Actions table describes how the action is classified (List, Read, Permissions management, or Tagging). This classification can help you understand the level of access that an action grants when you use it in a policy. For more information about access levels, see [Access levels in policy summaries](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_understand-policy-summary-access-level-summaries.html).

The **Resource types** column of the Actions table indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("\*") to which the policy applies in the `Resource` element of your policy statement. If the column includes a resource type, then you can specify an ARN of that type in a statement with that action. If the action has one or more required resources, the caller must have permission to use the action with those resources. Required resources are indicated in the table with an asterisk (\*). If you limit resource access with the `Resource` element in an IAM policy, you must include an ARN or pattern for each required resource type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one of the optional resource types.

The **Condition keys** column of the Actions table includes keys that you can specify in a policy statement's `Condition` element. For more information on the condition keys that are associated with resources for the service, see the **Condition keys** column of the Resource types table.

The **Dependent actions** column of the Actions table shows additional permissions that may be required to successfully call an action. These permissions may be needed in addition to the permission for the action itself. When an action specifies dependent actions, those dependencies may apply to additional resources defined for that action, not only the first resource listed in the table.

**Note**  
Resource condition keys are listed in the [Resource types](#awsx-ray-resources-for-iam-policies) table. You can find a link to the resource type that applies to an action in the **Resource types (\*required)** column of the Actions table. The resource type in the Resource types table includes the **Condition keys** column, which are the resource condition keys that apply to an action in the Actions table.

For details about the columns in the following table, see [Actions table](reference_policies_actions-resources-contextkeys.html#actions_table).


****  


- **  [https://docs.aws.amazon.com/xray/latest/devguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-console](https://docs.aws.amazon.com/xray/latest/devguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-console) [permission only]**
  - **Description:** Grants permission to retrieve metadata for a list of traces specified by ID
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_BatchGetTraces.html](https://docs.aws.amazon.com/xray/latest/api/API_BatchGetTraces.html) **
  - **Description:** 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
  - **Access level:** List
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [API_CancelTraceRetrieval.html](API_CancelTraceRetrieval.html) **
  - **Description:** 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
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_CreateGroup.html](https://docs.aws.amazon.com/xray/latest/api/API_CreateGroup.html) **
  - **Description:** Grants permission to create a group resource with a name and a filter expression
  - **Access level:** Write
  - **Resource types (\*required):**  [#awsx-ray-group](#awsx-ray-group)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_RequestTag___TagKey_](#awsx-ray-aws_RequestTag___TagKey_) <br /> [#awsx-ray-aws_TagKeys](#awsx-ray-aws_TagKeys)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_CreateSamplingRule.html](https://docs.aws.amazon.com/xray/latest/api/API_CreateSamplingRule.html) **
  - **Description:** Grants permission to create a rule to control sampling behavior for instrumented applications
  - **Access level:** Write
  - **Resource types (\*required):**  [#awsx-ray-sampling-rule](#awsx-ray-sampling-rule)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_RequestTag___TagKey_](#awsx-ray-aws_RequestTag___TagKey_) <br /> [#awsx-ray-aws_TagKeys](#awsx-ray-aws_TagKeys)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_DeleteGroup.html](https://docs.aws.amazon.com/xray/latest/api/API_DeleteGroup.html) **
  - **Description:** Grants permission to delete a group resource
  - **Access level:** Write
  - **Resource types (\*required):**  [#awsx-ray-group](#awsx-ray-group)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_ResourceTag___TagKey_](#awsx-ray-aws_ResourceTag___TagKey_)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_DeleteResourcePolicy.html](https://docs.aws.amazon.com/xray/latest/api/API_DeleteResourcePolicy.html) **
  - **Description:** Grants permission to delete resource policies
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:**  [#awsx-ray-xray_ResourcePolicyName](#awsx-ray-xray_ResourcePolicyName) 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_DeleteSamplingRule.html](https://docs.aws.amazon.com/xray/latest/api/API_DeleteSamplingRule.html) **
  - **Description:** Grants permission to delete a sampling rule
  - **Access level:** Write
  - **Resource types (\*required):**  [#awsx-ray-sampling-rule](#awsx-ray-sampling-rule)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_ResourceTag___TagKey_](#awsx-ray-aws_ResourceTag___TagKey_)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/devguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-console](https://docs.aws.amazon.com/xray/latest/devguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-console) [permission only]**
  - **Description:** Grants permission to retrieve distinct service graphs for one or more specific trace IDs
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetEncryptionConfig.html](https://docs.aws.amazon.com/xray/latest/api/API_GetEncryptionConfig.html) **
  - **Description:** Grants permission to retrieve the current encryption configuration for X-Ray data
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetGroup.html](https://docs.aws.amazon.com/xray/latest/api/API_GetGroup.html) **
  - **Description:** Grants permission to retrieve group resource details
  - **Access level:** Read
  - **Resource types (\*required):**  [#awsx-ray-group](#awsx-ray-group)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_ResourceTag___TagKey_](#awsx-ray-aws_ResourceTag___TagKey_)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetGroups.html](https://docs.aws.amazon.com/xray/latest/api/API_GetGroups.html) **
  - **Description:** Grants permission to retrieve all active group details
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetIndexingRules.html](https://docs.aws.amazon.com/xray/latest/api/API_GetIndexingRules.html) **
  - **Description:** 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
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetInsight.html](https://docs.aws.amazon.com/xray/latest/api/API_GetInsight.html) **
  - **Description:** Grants permission to retrieve the details of a specific insight
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetInsightEvents.html](https://docs.aws.amazon.com/xray/latest/api/API_GetInsightEvents.html) **
  - **Description:** Grants permission to retrieve the events of a specific insight
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetInsightImpactGraph.html](https://docs.aws.amazon.com/xray/latest/api/API_GetInsightImpactGraph.html) **
  - **Description:** Grants permission to retrieve the part of the service graph which is impacted for a specific insight
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetInsightSummaries.html](https://docs.aws.amazon.com/xray/latest/api/API_GetInsightSummaries.html) **
  - **Description:** Grants permission to retrieve the summary of all insights for a group and time range with optional filters
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [API_GetRetrievedTracesGraph.html](API_GetRetrievedTracesGraph.html) **
  - **Description:** Grants permission to retrieve a service graph for traces based on the specified RetrievalToken from the Transaction Search CloudWatch log group
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingRules.html](https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingRules.html) **
  - **Description:** Grants permission to retrieve all sampling rules
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingStatisticSummaries.html](https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingStatisticSummaries.html) **
  - **Description:** Grants permission to retrieve information about recent sampling results for all sampling rules
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html](https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html) **
  - **Description:** Grants permission to request a sampling quota for rules that the service is using to sample requests
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetServiceGraph.html](https://docs.aws.amazon.com/xray/latest/api/API_GetServiceGraph.html) **
  - **Description:** Grants permission to retrieve a document that describes services that process incoming requests, and downstream services that they call as a result
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetTimeSeriesServiceStatistics.html](https://docs.aws.amazon.com/xray/latest/api/API_GetTimeSeriesServiceStatistics.html) **
  - **Description:** Grants permission to retrieve an aggregation of service statistics defined by a specific time range bucketed into time intervals
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetTraceGraph.html](https://docs.aws.amazon.com/xray/latest/api/API_GetTraceGraph.html) **
  - **Description:** Grants permission to retrieve a service graph for one or more specific trace IDs
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetTraceSegmentDestination.html](https://docs.aws.amazon.com/xray/latest/api/API_GetTraceSegmentDestination.html) **
  - **Description:** Grants permission to retrieve the current destination of data sent to PutTraceSegments and OpenTelemetry API
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_GetTraceSummaries.html](https://docs.aws.amazon.com/xray/latest/api/API_GetTraceSummaries.html) **
  - **Description:** 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
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account-Setup.html#CloudWatch-Unified-Cross-Account-Setup-permissions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account-Setup.html#CloudWatch-Unified-Cross-Account-Setup-permissions) [permission only]**
  - **Description:** Grants permission to share X-Ray resources with a monitoring account
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_ListResourcePolicies.html](https://docs.aws.amazon.com/xray/latest/api/API_ListResourcePolicies.html) **
  - **Description:** Grants permission to list resource policies
  - **Access level:** List
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [API_ListRetrievedTraces.html](API_ListRetrievedTraces.html) **
  - **Description:** Grants permission to retrieve a list of traces for a given RetrievalToken from the Transaction Search CloudWatch log group
  - **Access level:** List
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_ListTagsForResource.html](https://docs.aws.amazon.com/xray/latest/api/API_ListTagsForResource.html) **
  - **Description:** Grants permission to list tags for an X-Ray resource
  - **Access level:** List
  - **Resource types (\*required):**  [#awsx-ray-group](#awsx-ray-group)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#awsx-ray-sampling-rule](#awsx-ray-sampling-rule)  / **Condition keys:**  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_PutEncryptionConfig.html](https://docs.aws.amazon.com/xray/latest/api/API_PutEncryptionConfig.html) **
  - **Description:** Grants permission to update the encryption configuration for X-Ray data
  - **Access level:** Permissions management
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_PutResourcePolicy.html](https://docs.aws.amazon.com/xray/latest/api/API_PutResourcePolicy.html) **
  - **Description:** Grants permission to create or update resource policies
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:**  [#awsx-ray-xray_ResourcePolicyName](#awsx-ray-xray_ResourcePolicyName) 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-OTLPEndpoint.html](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-OTLPEndpoint.html) **
  - **Description:** Grants permission to upload OpenTelemetry spans to AWS X-Ray
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:**  [#awsx-ray-logs_LogGeneratingResourceArns](#awsx-ray-logs_LogGeneratingResourceArns) 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/devguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-console](https://docs.aws.amazon.com/xray/latest/devguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-console) [permission only]**
  - **Description:** Grants permission to upload spans to AWS X-Ray to be indexed
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_PutTelemetryRecords.html](https://docs.aws.amazon.com/xray/latest/api/API_PutTelemetryRecords.html) **
  - **Description:** Grants permission to send AWS X-Ray daemon telemetry to the service
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_PutTraceSegments.html](https://docs.aws.amazon.com/xray/latest/api/API_PutTraceSegments.html) **
  - **Description:** Grants permission to upload segment documents to AWS X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:**  [#awsx-ray-logs_LogGeneratingResourceArns](#awsx-ray-logs_LogGeneratingResourceArns) 
  - **Dependent actions:** 

- **  [API_StartTraceRetrieval](API_StartTraceRetrieval) **
  - **Description:** 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
  - **Access level:** Read
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_TagResource.html](https://docs.aws.amazon.com/xray/latest/api/API_TagResource.html) **
  - **Description:** Grants permission to add tags to an X-Ray resource
  - **Access level:** Tagging
  - **Resource types (\*required):**  [#awsx-ray-group](#awsx-ray-group)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#awsx-ray-sampling-rule](#awsx-ray-sampling-rule)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_TagKeys](#awsx-ray-aws_TagKeys) <br /> [#awsx-ray-aws_RequestTag___TagKey_](#awsx-ray-aws_RequestTag___TagKey_)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_UntagResource.html](https://docs.aws.amazon.com/xray/latest/api/API_UntagResource.html) **
  - **Description:** Grants permission to remove tags from an X-Ray resource
  - **Access level:** Tagging
  - **Resource types (\*required):**  [#awsx-ray-group](#awsx-ray-group)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#awsx-ray-sampling-rule](#awsx-ray-sampling-rule)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_TagKeys](#awsx-ray-aws_TagKeys)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_UpdateGroup.html](https://docs.aws.amazon.com/xray/latest/api/API_UpdateGroup.html) **
  - **Description:** Grants permission to update a group resource
  - **Access level:** Write
  - **Resource types (\*required):**  [#awsx-ray-group](#awsx-ray-group)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_ResourceTag___TagKey_](#awsx-ray-aws_ResourceTag___TagKey_)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_UpdateIndexingRule.html](https://docs.aws.amazon.com/xray/latest/api/API_UpdateIndexingRule.html) **
  - **Description:** Grants permission to modify an indexing rule's configuration
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_UpdateSamplingRule.html](https://docs.aws.amazon.com/xray/latest/api/API_UpdateSamplingRule.html) **
  - **Description:** Grants permission to modify a sampling rule's configuration
  - **Access level:** Write
  - **Resource types (\*required):**  [#awsx-ray-sampling-rule](#awsx-ray-sampling-rule)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  / **Condition keys:**  [#awsx-ray-aws_ResourceTag___TagKey_](#awsx-ray-aws_ResourceTag___TagKey_)  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/xray/latest/api/API_UpdateTraceSegmentDestination.html](https://docs.aws.amazon.com/xray/latest/api/API_UpdateTraceSegmentDestination.html) **
  - **Description:** Grants permission to modify the destination of data sent to PutTraceSegments and OpenTelemetry API
  - **Access level:** Write
  - **Resource types (\*required):** 
  - **Condition keys:**  [#awsx-ray-xray_TraceSegmentDestination](#awsx-ray-xray_TraceSegmentDestination) 
  - **Dependent actions:** 



## Resource types defined by AWS X-Ray
<a name="awsx-ray-resources-for-iam-policies"></a>

The following resource types are defined by this service and can be used in the `Resource` element of IAM permission policy statements. Each action in the [Actions table](#awsx-ray-actions-as-permissions) identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the Resource types table. For details about the columns in the following table, see [Resource types table](reference_policies_actions-resources-contextkeys.html#resources_table).


****  

| Resource types | ARN | Condition keys | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-groups](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-groups)  |  arn:${Partition}:xray:${Region}:${Account}:group/${GroupName}/${Id}  |  [#awsx-ray-aws_ResourceTag___TagKey_](#awsx-ray-aws_ResourceTag___TagKey_)  | 
|   [https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-sampling](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-sampling)  |  arn:${Partition}:xray:${Region}:${Account}:sampling-rule/${SamplingRuleName}  |  [#awsx-ray-aws_ResourceTag___TagKey_](#awsx-ray-aws_ResourceTag___TagKey_)  | 

## Condition keys for AWS X-Ray
<a name="awsx-ray-policy-keys"></a>

AWS X-Ray defines the following condition keys that can be used in the `Condition` element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see [Condition keys table](reference_policies_actions-resources-contextkeys.html#context_keys_table).

To view the global condition keys that are available to all services, see [AWS global condition context keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html).


****  

| Condition keys | Description | Type | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag)  | Filters access by the tags that are passed in the request | String | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag)  | Filters access by the tags associated with the resource | String | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys)  | Filters access by the tag keys that are passed in the request | ArrayOfString | 
|   [https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsx-ray.html#awsx-ray-actions-as-permissions](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsx-ray.html#awsx-ray-actions-as-permissions)  | Filters access by LogGeneratingResourceArn in the request | ArrayOfARN | 
|   [https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsx-ray.html#awsx-ray-actions-as-permissions](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsx-ray.html#awsx-ray-actions-as-permissions)  | Filters access by PolicyName in the request | String | 
|   [https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsx-ray.html#awsx-ray-actions-as-permissions](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsx-ray.html#awsx-ray-actions-as-permissions)  | Filters access by TraceSegmentDestination type in the request | String | 