

# TraceAnalysisConfig

An agent context's agentic trace analysis settings.

## Contents
<a name="API_TraceAnalysisConfig_Contents"></a>

 ** includeContextAgentTraces **   <a name="context-Type-TraceAnalysisConfig-includeContextAgentTraces"></a>
Specifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent. Uses `traceAnalysisRole` and takes effect only while `status` is `ENABLED`. An agent context that has never set it reads `ENABLED`.  
Type: String  
Valid Values: `ENABLED | DISABLED`   
Required: No

 ** status **   <a name="context-Type-TraceAnalysisConfig-status"></a>
Specifies whether you allow AWS Context to use `traceAnalysisRole` to analyze this agent context's agent traces, and to capture its own agents' traces as `includeContextAgentTraces` specifies. Defaults to `ENABLED` when you set `traceAnalysisConfig` on CreateAgentContext. Setting it to `ENABLED` requires `traceAnalysisRole`. Setting it to `DISABLED` removes the role. An agent context that has never set it reads `ENABLED` when it has a `traceAnalysisRole`, and `DISABLED` otherwise.  
Type: String  
Valid Values: `ENABLED | DISABLED`   
Required: No

 ** traceAnalysisRole **   <a name="context-Type-TraceAnalysisConfig-traceAnalysisRole"></a>
The IAM role that AWS Context assumes to access the agent context's connected source data when it analyzes agent traces. The role must be in the same account as the agent context. Its trust policy must allow the AWS Context service principal, with `aws:SourceArn` set to the agent context's ARN and `aws:SourceAccount` set to its account. You must have `iam:PassRole` permission on the role to pass it to AWS Context. Otherwise, the request fails with `AccessDeniedException`. Required to set `status` to `ENABLED`. You can't set it while `status` is `DISABLED`.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 1011.  
Pattern: `arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/(?:[a-zA-Z0-9+=,.@_-]{1,512}/)*[a-zA-Z0-9+=,.@_-]{1,64}`   
Required: No

## See Also
<a name="API_TraceAnalysisConfig_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/TraceAnalysisConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/TraceAnalysisConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/TraceAnalysisConfig) 