interface CloudWatchLogsDataSourceConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CloudWatchLogsDataSourceConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CloudWatchLogsDataSourceConfig |
Java | software.amazon.awscdk.services.bedrockagentcore.CloudWatchLogsDataSourceConfig |
Python | aws_cdk.aws_bedrockagentcore.CloudWatchLogsDataSourceConfig |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » CloudWatchLogsDataSourceConfig |
Configuration for CloudWatch Logs data source.
Example
const evaluation = new agentcore.OnlineEvaluationConfig(this, 'MyEvaluation', {
onlineEvaluationConfigName: 'my_evaluation',
evaluators: [
agentcore.EvaluatorSelector.builtin(agentcore.BuiltinEvaluator.HELPFULNESS),
agentcore.EvaluatorSelector.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 (