interface RuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnOnlineEvaluationConfig.RuleProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnOnlineEvaluationConfig_RuleProperty |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnOnlineEvaluationConfig.RuleProperty |
Python | aws_cdk.aws_bedrockagentcore.CfnOnlineEvaluationConfig.RuleProperty |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnOnlineEvaluationConfig » RuleProperty |
The evaluation rule that defines sampling configuration, filtering criteria, and session detection settings.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const ruleProperty: bedrockagentcore.CfnOnlineEvaluationConfig.RuleProperty = {
samplingConfig: {
samplingPercentage: 123,
},
// the properties below are optional
filters: [{
key: 'key',
operator: 'operator',
value: {
booleanValue: false,
doubleValue: 123,
stringValue: 'stringValue',
},
}],
sessionConfig: {
sessionTimeoutMinutes: 123,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| sampling | IResolvable | Sampling | The configuration that controls what percentage of agent traces are sampled for evaluation. |
| filters? | IResolvable | (IResolvable | Filter)[] | The list of filters that determine which agent traces should be included in the evaluation. |
| session | IResolvable | Session | The configuration that defines how agent sessions are detected. |
samplingConfig
Type:
IResolvable | Sampling
The configuration that controls what percentage of agent traces are sampled for evaluation.
filters?
Type:
IResolvable | (IResolvable | Filter)[]
(optional)
The list of filters that determine which agent traces should be included in the evaluation.
sessionConfig?
Type:
IResolvable | Session
(optional)
The configuration that defines how agent sessions are detected.

.NET
Go
Java
Python
TypeScript