View a markdown version of this page

TraceAnalysisConfig - AWS Context

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 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

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

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

For more information about using this API in one of the language-specific AWS SDKs, see the following: