interface OnlineEvaluationBaseProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.OnlineEvaluationBaseProps |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#OnlineEvaluationBaseProps |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.OnlineEvaluationBaseProps |
Python | aws_cdk.aws_bedrock_agentcore_alpha.OnlineEvaluationBaseProps |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป OnlineEvaluationBaseProps |
Base properties for creating an OnlineEvaluationConfig.
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 * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const executionStatus: bedrock_agentcore_alpha.ExecutionStatus;
declare const filterOperator: bedrock_agentcore_alpha.FilterOperator;
declare const filterValue: bedrock_agentcore_alpha.FilterValue;
declare const role: iam.Role;
const onlineEvaluationBaseProps: bedrock_agentcore_alpha.OnlineEvaluationBaseProps = {
onlineEvaluationConfigName: 'onlineEvaluationConfigName',
// the properties below are optional
description: 'description',
executionRole: role,
executionStatus: executionStatus,
filters: [{
key: 'key',
operator: filterOperator,
value: filterValue,
}],
samplingPercentage: 123,
sessionTimeout: cdk.Duration.minutes(30),
};
Properties
| Name | Type | Description |
|---|---|---|
| online | string | The name of the online evaluation configuration. |
| description? | string | The description of the online evaluation configuration. |
| execution | IRole | The IAM role that provides permissions for the evaluation to access AWS services. |
| execution | Execution | The execution status of the online evaluation configuration. |
| filters? | Filter[] | The list of filters that determine which agent traces should be evaluated. |
| sampling | number | The percentage of agent traces to sample for evaluation. |
| session | Duration | The duration of inactivity after which an agent session is considered complete and ready for evaluation. |
onlineEvaluationConfigName
Type:
string
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.
description?
Type:
string
(optional, default: No description)
The description of the online evaluation configuration.
executionRole?
Type:
IRole
(optional, default: A new role will be created)
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.
executionStatus?
Type:
Execution
(optional, default: ExecutionStatus.ENABLED)
The execution status of the online evaluation configuration.
Controls whether the evaluation actively processes agent traces.
filters?
Type:
Filter[]
(optional, default: No filters (evaluate all sampled traces))
The list of filters that determine which agent traces should be evaluated.
samplingPercentage?
Type:
number
(optional, default: 10)
The percentage of agent traces to sample for evaluation.
sessionTimeout?
Type:
Duration
(optional, default: Duration.minutes(15))
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).

.NET
Go
Java
Python
TypeScript (