Class TraceAnalysisConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TraceAnalysisConfig.Builder,TraceAnalysisConfig>
An agent context's agentic trace analysis settings.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TraceAnalysisConfig.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ContextAgentTracesStatusSpecifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent.final StringSpecifies whether trace analysis includes traces from the agents built into AWS Context, such as the retrieval agent.static Class<? extends TraceAnalysisConfig.Builder> final TraceAnalysisStatusstatus()Specifies whether you allow AWS Context to usetraceAnalysisRoleto analyze this agent context's agent traces, and to capture its own agents' traces asincludeContextAgentTracesspecifies.final StringSpecifies whether you allow AWS Context to usetraceAnalysisRoleto analyze this agent context's agent traces, and to capture its own agents' traces asincludeContextAgentTracesspecifies.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe 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.ToCopyableBuilder
copy
-
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.If the service returns an enum value that is not available in the current SDK version,
statuswill returnTraceAnalysisStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - See Also:
-
statusAsString
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.If the service returns an enum value that is not available in the current SDK version,
statuswill returnTraceAnalysisStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - 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.- Returns:
- 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.
-
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.If the service returns an enum value that is not available in the current SDK version,
includeContextAgentTraceswill returnContextAgentTracesStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromincludeContextAgentTracesAsString().- Returns:
- 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. - See Also:
-
includeContextAgentTracesAsString
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.If the service returns an enum value that is not available in the current SDK version,
includeContextAgentTraceswill returnContextAgentTracesStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromincludeContextAgentTracesAsString().- Returns:
- 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. - See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TraceAnalysisConfig.Builder,TraceAnalysisConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-