Class OnlineEvaluationConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.OnlineEvaluationConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OnlineEvaluationConfigProps>
- Enclosing interface:
OnlineEvaluationConfigProps
@Stability(Stable)
public static final class OnlineEvaluationConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<OnlineEvaluationConfigProps>
A builder for
OnlineEvaluationConfigProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSource(DataSourceConfig dataSource) Sets the value ofOnlineEvaluationConfigProps.getDataSource()description(String description) Sets the value ofOnlineEvaluationBaseProps.getDescription()evaluators(List<? extends EvaluatorSelector> evaluators) Sets the value ofOnlineEvaluationConfigProps.getEvaluators()executionRole(IRole executionRole) Sets the value ofOnlineEvaluationBaseProps.getExecutionRole()executionStatus(ExecutionStatus executionStatus) Sets the value ofOnlineEvaluationBaseProps.getExecutionStatus()filters(List<? extends FilterConfig> filters) Sets the value ofOnlineEvaluationBaseProps.getFilters()onlineEvaluationConfigName(String onlineEvaluationConfigName) Sets the value ofOnlineEvaluationBaseProps.getOnlineEvaluationConfigName()samplingPercentage(Number samplingPercentage) Sets the value ofOnlineEvaluationBaseProps.getSamplingPercentage()sessionTimeout(Duration sessionTimeout) Sets the value ofOnlineEvaluationBaseProps.getSessionTimeout()Sets the value ofOnlineEvaluationConfigProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSource
@Stability(Stable) public OnlineEvaluationConfigProps.Builder dataSource(DataSourceConfig dataSource) Sets the value ofOnlineEvaluationConfigProps.getDataSource()- Parameters:
dataSource- The data source configuration that specifies where to read agent traces from. This parameter is required.- Returns:
this
-
evaluators
@Stability(Stable) public OnlineEvaluationConfigProps.Builder evaluators(List<? extends EvaluatorSelector> evaluators) Sets the value ofOnlineEvaluationConfigProps.getEvaluators()- Parameters:
evaluators- The list of evaluators to apply during online evaluation. This parameter is required. Can include both built-in evaluators and custom evaluators.- Returns:
this
-
tags
Sets the value ofOnlineEvaluationConfigProps.getTags()- Parameters:
tags- Tags for the online evaluation configuration. A list of key:value pairs of tags to apply to this OnlineEvaluationConfig resource.- Returns:
this
-
onlineEvaluationConfigName
@Stability(Stable) public OnlineEvaluationConfigProps.Builder onlineEvaluationConfigName(String onlineEvaluationConfigName) Sets the value ofOnlineEvaluationBaseProps.getOnlineEvaluationConfigName()- Parameters:
onlineEvaluationConfigName- The name of the online evaluation configuration. This parameter is required. Must be unique within your account. Valid characters are a-z, A-Z, 0-9, _ (underscore). Must start with a letter and can be up to 48 characters long.- Returns:
this
-
description
Sets the value ofOnlineEvaluationBaseProps.getDescription()- Parameters:
description- The description of the online evaluation configuration.- Returns:
this
-
executionRole
Sets the value ofOnlineEvaluationBaseProps.getExecutionRole()- Parameters:
executionRole- The IAM role that provides permissions for the evaluation to access AWS services. If not provided, a role will be created automatically with the required permissions including cross-region Bedrock model invocation (to support cross-region inference profiles). For strict cost controls or data residency compliance, provide a custom role with region-scoped permissions.- Returns:
this
-
executionStatus
@Stability(Stable) public OnlineEvaluationConfigProps.Builder executionStatus(ExecutionStatus executionStatus) Sets the value ofOnlineEvaluationBaseProps.getExecutionStatus()- Parameters:
executionStatus- The execution status of the online evaluation configuration. Controls whether the evaluation actively processes agent traces.- Returns:
this
-
filters
@Stability(Stable) public OnlineEvaluationConfigProps.Builder filters(List<? extends FilterConfig> filters) Sets the value ofOnlineEvaluationBaseProps.getFilters()- Parameters:
filters- The list of filters that determine which agent traces should be evaluated.- Returns:
this
-
samplingPercentage
@Stability(Stable) public OnlineEvaluationConfigProps.Builder samplingPercentage(Number samplingPercentage) Sets the value ofOnlineEvaluationBaseProps.getSamplingPercentage()- Parameters:
samplingPercentage- The percentage of agent traces to sample for evaluation.- Returns:
this
-
sessionTimeout
@Stability(Stable) public OnlineEvaluationConfigProps.Builder sessionTimeout(Duration sessionTimeout) Sets the value ofOnlineEvaluationBaseProps.getSessionTimeout()- Parameters:
sessionTimeout- The duration of inactivity after which an agent session is considered complete and ready for evaluation. Must be between 1 minute and 1440 minutes (24 hours).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OnlineEvaluationConfigProps>- Returns:
- a new instance of
OnlineEvaluationConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-