interface CloudWatchLogsDataSourceConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.CloudWatchLogsDataSourceConfig |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#CloudWatchLogsDataSourceConfig |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.CloudWatchLogsDataSourceConfig |
Python | aws_cdk.aws_bedrock_agentcore_alpha.CloudWatchLogsDataSourceConfig |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป CloudWatchLogsDataSourceConfig |
Configuration for CloudWatch Logs data source.
Example
const evaluation = new agentcore.OnlineEvaluationConfig(this, 'MyEvaluation', {
onlineEvaluationConfigName: 'my_evaluation',
evaluators: [
agentcore.EvaluatorReference.builtin(agentcore.BuiltinEvaluator.HELPFULNESS),
agentcore.EvaluatorReference.builtin(agentcore.BuiltinEvaluator.CORRECTNESS),
],
dataSource: agentcore.DataSourceConfig.fromCloudWatchLogs({
logGroupNames: ['/aws/bedrock-agentcore/my-agent'],
serviceNames: ['my-agent.default'],
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| log | string[] | The list of CloudWatch log group names to monitor for agent traces. |
| service | string[] | The list of service names to filter traces within the specified log groups. Used to identify relevant agent sessions. |
logGroupNames
Type:
string[]
The list of CloudWatch log group names to monitor for agent traces.
serviceNames
Type:
string[]
The list of service names to filter traces within the specified log groups. Used to identify relevant agent sessions.
For agents hosted on AgentCore Runtime, service name follows the format:
<agent-runtime-name>.<agent-runtime-endpoint-name>

.NET
Go
Java
Python
TypeScript (