Interface CloudWatchOutputConfig.Builder

  • Method Details

    • logGroupName

      CloudWatchOutputConfig.Builder logGroupName(String logGroupName)

      The name of the CloudWatch log group where evaluation results will be written. An existing log group is used as-is; otherwise the service creates it, which requires the evaluation execution role to grant logs:CreateLogGroup on the log group. Don't specify this value when resultDestination is SOURCE_LOG_GROUP. The name can't be under the service-reserved /aws/bedrock-agentcore/evaluations/ namespace, apart from this configuration's own service-managed default group.

      Parameters:
      logGroupName - The name of the CloudWatch log group where evaluation results will be written. An existing log group is used as-is; otherwise the service creates it, which requires the evaluation execution role to grant logs:CreateLogGroup on the log group. Don't specify this value when resultDestination is SOURCE_LOG_GROUP. The name can't be under the service-reserved /aws/bedrock-agentcore/evaluations/ namespace, apart from this configuration's own service-managed default group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsNamespace

      CloudWatchOutputConfig.Builder metricsNamespace(String metricsNamespace)

      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/.

      Parameters:
      metricsNamespace - 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/.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultDestination

      CloudWatchOutputConfig.Builder resultDestination(String resultDestination)

      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.

      Parameters:
      resultDestination - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resultDestination

      CloudWatchOutputConfig.Builder resultDestination(ResultDestination resultDestination)

      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.

      Parameters:
      resultDestination - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: