Interface CloudWatchLogsDataSourceConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CloudWatchLogsDataSourceConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.368Z") @Stability(Stable) public interface CloudWatchLogsDataSourceConfig extends software.amazon.jsii.JsiiSerializable
Configuration for CloudWatch Logs data source.

Example:

 OnlineEvaluationConfig evaluation = OnlineEvaluationConfig.Builder.create(this, "MyEvaluation")
         .onlineEvaluationConfigName("my_evaluation")
         .evaluators(List.of(EvaluatorSelector.builtin(BuiltinEvaluator.HELPFULNESS), EvaluatorSelector.builtin(BuiltinEvaluator.CORRECTNESS)))
         .dataSource(DataSourceConfig.fromCloudWatchLogs(CloudWatchLogsDataSourceConfig.builder()
                 .logGroupNames(List.of("/aws/bedrock-agentcore/my-agent"))
                 .serviceNames(List.of("my-agent.default"))
                 .build()))
         .build();
 
  • Method Details

    • getLogGroupNames

      @Stability(Stable) @NotNull List<String> getLogGroupNames()
      The list of CloudWatch log group names to monitor for agent traces.
    • getServiceNames

      @Stability(Stable) @NotNull List<String> getServiceNames()
      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>

    • builder

      @Stability(Stable) static CloudWatchLogsDataSourceConfig.Builder builder()
      Returns:
      a CloudWatchLogsDataSourceConfig.Builder of CloudWatchLogsDataSourceConfig