CloudWatchLogsDataSourceConfig

class aws_cdk.aws_bedrock_agentcore_alpha.CloudWatchLogsDataSourceConfig(*, log_group_names, service_names)

Bases: object

(experimental) Configuration for CloudWatch Logs data source.

Parameters:
  • log_group_names (Sequence[str]) – (experimental) The list of CloudWatch log group names to monitor for agent traces.

  • service_names (Sequence[str]) – (experimental) 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>

Stability:

experimental

ExampleMetadata:

fixture=default infused

Example:

evaluation = agentcore.OnlineEvaluationConfig(self, "MyEvaluation",
    online_evaluation_config_name="my_evaluation",
    evaluators=[
        agentcore.EvaluatorReference.builtin(agentcore.BuiltinEvaluator.HELPFULNESS),
        agentcore.EvaluatorReference.builtin(agentcore.BuiltinEvaluator.CORRECTNESS)
    ],
    data_source=agentcore.DataSourceConfig.from_cloud_watch_logs(
        log_group_names=["/aws/bedrock-agentcore/my-agent"],
        service_names=["my-agent.default"]
    )
)

Attributes

log_group_names

(experimental) The list of CloudWatch log group names to monitor for agent traces.

Stability:

experimental

Maximum:

5

Minimum:

1

service_names

(experimental) 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>

Stability:

experimental

Maximum:

1

Minimum:

1