TraceAnalysisConfig
An agent context's agentic trace analysis settings.
Contents
- includeContextAgentTraces
-
Specifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent. Uses
traceAnalysisRoleand takes effect only whilestatusisENABLED. An agent context that has never set it readsENABLED.Type: String
Valid Values:
ENABLED | DISABLEDRequired: No
- status
-
Specifies whether you allow AWS Context to use
traceAnalysisRoleto analyze this agent context's agent traces, and to capture its own agents' traces asincludeContextAgentTracesspecifies. Defaults toENABLEDwhen you settraceAnalysisConfigon CreateAgentContext. Setting it toENABLEDrequirestraceAnalysisRole. Setting it toDISABLEDremoves the role. An agent context that has never set it readsENABLEDwhen it has atraceAnalysisRole, andDISABLEDotherwise.Type: String
Valid Values:
ENABLED | DISABLEDRequired: No
- traceAnalysisRole
-
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:SourceArnset to the agent context's ARN andaws:SourceAccountset to its account. You must haveiam:PassRolepermission on the role to pass it to AWS Context. Otherwise, the request fails withAccessDeniedException. Required to setstatustoENABLED. You can't set it whilestatusisDISABLED.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
For more information about using this API in one of the language-specific AWS SDKs, see the following: