Interface OnlineEvaluationBaseProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
OnlineEvaluationConfigProps
- All Known Implementing Classes:
OnlineEvaluationBaseProps.Jsii$Proxy,OnlineEvaluationConfigProps.Jsii$Proxy
The actual OnlineEvaluationProps is defined in online-evaluation-config.ts to avoid circular dependencies.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.bedrockagentcore.*;
import software.amazon.awscdk.services.iam.*;
ExecutionStatus executionStatus;
FilterOperator filterOperator;
FilterValue filterValue;
Role role;
OnlineEvaluationBaseProps onlineEvaluationBaseProps = OnlineEvaluationBaseProps.builder()
.onlineEvaluationConfigName("onlineEvaluationConfigName")
// the properties below are optional
.description("description")
.executionRole(role)
.executionStatus(executionStatus)
.filters(List.of(FilterConfig.builder()
.key("key")
.operator(filterOperator)
.value(filterValue)
.build()))
.samplingPercentage(123)
.sessionTimeout(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forOnlineEvaluationBasePropsstatic final classAn implementation forOnlineEvaluationBaseProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe description of the online evaluation configuration.default IRoleThe IAM role that provides permissions for the evaluation to access AWS services.default ExecutionStatusThe execution status of the online evaluation configuration.default List<FilterConfig> The list of filters that determine which agent traces should be evaluated.The name of the online evaluation configuration.default NumberThe percentage of agent traces to sample for evaluation.default DurationThe duration of inactivity after which an agent session is considered complete and ready for evaluation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOnlineEvaluationConfigName
The name of the online evaluation configuration.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.
-
getDescription
The description of the online evaluation configuration.Default: - No description
-
getExecutionRole
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.
Default: - A new role will be created
-
getExecutionStatus
The execution status of the online evaluation configuration.Controls whether the evaluation actively processes agent traces.
Default: ExecutionStatus.ENABLED
-
getFilters
The list of filters that determine which agent traces should be evaluated.Default: - No filters (evaluate all sampled traces)
-
getSamplingPercentage
The percentage of agent traces to sample for evaluation.Default: 10
-
getSessionTimeout
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).
Default: Duration.minutes(15)
-
builder
- Returns:
- a
OnlineEvaluationBaseProps.BuilderofOnlineEvaluationBaseProps
-