Interface TraceAnalysisConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TraceAnalysisConfig.Builder,,TraceAnalysisConfig> SdkBuilder<TraceAnalysisConfig.Builder,,TraceAnalysisConfig> SdkPojo
- Enclosing class:
TraceAnalysisConfig
-
Method Summary
Modifier and TypeMethodDescriptionincludeContextAgentTraces(String includeContextAgentTraces) Specifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent.includeContextAgentTraces(ContextAgentTracesStatus includeContextAgentTraces) Specifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent.Specifies whether you allow AWS Context to usetraceAnalysisRoleto analyze this agent context's agent traces, and to capture its own agents' traces asincludeContextAgentTracesspecifies.status(TraceAnalysisStatus status) Specifies whether you allow AWS Context to usetraceAnalysisRoleto analyze this agent context's agent traces, and to capture its own agents' traces asincludeContextAgentTracesspecifies.traceAnalysisRole(String traceAnalysisRole) The IAM role that AWS Context assumes to access the agent context's connected source data when it analyzes agent traces.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.- Parameters:
status- Specifies whether you allow AWS Context to usetraceAnalysisRoleto 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
status- Specifies whether you allow AWS Context to usetraceAnalysisRoleto 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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, withaws: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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
includeContextAgentTraces- Specifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent. UsestraceAnalysisRoleand takes effect only whilestatusisENABLED. An agent context that has never set it readsENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includeContextAgentTraces
TraceAnalysisConfig.Builder includeContextAgentTraces(ContextAgentTracesStatus 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.- Parameters:
includeContextAgentTraces- Specifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent. UsestraceAnalysisRoleand takes effect only whilestatusisENABLED. An agent context that has never set it readsENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-