Skip to content

Bedrock AgentCore  >  Structures  >  CloudWatchOutputConfig

CloudWatchOutputConfig

Structure Class

CloudWatchOutputConfig dataclass

CloudWatch Logs destination for batch evaluation results.

Attributes

log_group_name class-attribute instance-attribute
log_group_name: str = ''

The name of the CloudWatch log group where evaluation results will be written. This value doesn't apply when resultDestination is SOURCE_LOG_GROUP, because results are written back to the trace source log group. The name can't be under the service-reserved /aws/bedrock-agentcore/evaluations/ namespace, apart from the service-managed default group.

log_stream_name class-attribute instance-attribute
log_stream_name: str = ''

The name of the CloudWatch log stream where evaluation results will be written.

metrics_namespace class-attribute instance-attribute
metrics_namespace: str | None = None

The CloudWatch metrics namespace where evaluation result metrics are published. If you omit this value, the service publishes metrics to Bedrock-AgentCore/Evaluations. This value can't begin with AWS/.

result_destination class-attribute instance-attribute
result_destination: str = ResultDestination('DEDICATED_LOG_GROUP')

The destination where evaluation results are written. Valid values:

  • DEDICATED_LOG_GROUP (default) -- Writes results to a dedicated result log group.

  • SOURCE_LOG_GROUP -- Writes results back to the log group that the agent traces were read from. If you use this value, don't specify logGroupName.