Interface CreateOnlineEvaluationConfigRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<CreateOnlineEvaluationConfigRequest.Builder,,CreateOnlineEvaluationConfigRequest> SdkBuilder<CreateOnlineEvaluationConfigRequest.Builder,,CreateOnlineEvaluationConfigRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateOnlineEvaluationConfigRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.dataSourceConfig(Consumer<DataSourceConfig.Builder> dataSourceConfig) The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.dataSourceConfig(DataSourceConfig dataSourceConfig) The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.description(String description) The description of the online evaluation configuration that explains its monitoring purpose and scope.enableOnCreate(Boolean enableOnCreate) Whether to enable the online evaluation configuration immediately upon creation.evaluationExecutionRoleArn(String evaluationExecutionRoleArn) The Amazon Resource Name (ARN) of the IAM role that grants permissions to read from CloudWatch logs, write evaluation results, and invoke Amazon Bedrock models for evaluation.evaluators(Collection<EvaluatorReference> evaluators) The list of evaluators to apply during online evaluation.evaluators(Consumer<EvaluatorReference.Builder>... evaluators) The list of evaluators to apply during online evaluation.evaluators(EvaluatorReference... evaluators) The list of evaluators to apply during online evaluation.onlineEvaluationConfigName(String onlineEvaluationConfigName) The name of the online evaluation configuration.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rule(Consumer<Rule.Builder> rule) The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onlineEvaluationConfigName
CreateOnlineEvaluationConfigRequest.Builder onlineEvaluationConfigName(String onlineEvaluationConfigName) The name of the online evaluation configuration. Must be unique within your account.
- Parameters:
onlineEvaluationConfigName- The name of the online evaluation configuration. Must be unique within your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the online evaluation configuration that explains its monitoring purpose and scope.
- Parameters:
description- The description of the online evaluation configuration that explains its monitoring purpose and scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.
- Parameters:
rule- The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
The evaluation rule that defines sampling configuration, filters, and session detection settings for the online evaluation.
This is a convenience method that creates an instance of theRule.Builderavoiding the need to create one manually viaRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(Rule).- Parameters:
rule- a consumer that will call methods onRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSourceConfig
The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.
- Parameters:
dataSourceConfig- The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceConfig
default CreateOnlineEvaluationConfigRequest.Builder dataSourceConfig(Consumer<DataSourceConfig.Builder> dataSourceConfig) The data source configuration that specifies CloudWatch log groups and service names to monitor for agent traces.
This is a convenience method that creates an instance of theDataSourceConfig.Builderavoiding the need to create one manually viaDataSourceConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataSourceConfig(DataSourceConfig).- Parameters:
dataSourceConfig- a consumer that will call methods onDataSourceConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluators
The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with
CreateEvaluator.- Parameters:
evaluators- The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created withCreateEvaluator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with
CreateEvaluator.- Parameters:
evaluators- The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created withCreateEvaluator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
CreateOnlineEvaluationConfigRequest.Builder evaluators(Consumer<EvaluatorReference.Builder>... evaluators) The list of evaluators to apply during online evaluation. Can include both built-in evaluators and custom evaluators created with
This is a convenience method that creates an instance of theCreateEvaluator.EvaluatorReference.Builderavoiding the need to create one manually viaEvaluatorReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluators(List<EvaluatorReference>).- Parameters:
evaluators- a consumer that will call methods onEvaluatorReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationExecutionRoleArn
CreateOnlineEvaluationConfigRequest.Builder evaluationExecutionRoleArn(String evaluationExecutionRoleArn) The Amazon Resource Name (ARN) of the IAM role that grants permissions to read from CloudWatch logs, write evaluation results, and invoke Amazon Bedrock models for evaluation.
- Parameters:
evaluationExecutionRoleArn- The Amazon Resource Name (ARN) of the IAM role that grants permissions to read from CloudWatch logs, write evaluation results, and invoke Amazon Bedrock models for evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableOnCreate
Whether to enable the online evaluation configuration immediately upon creation. If true, evaluation begins automatically.
- Parameters:
enableOnCreate- Whether to enable the online evaluation configuration immediately upon creation. If true, evaluation begins automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateOnlineEvaluationConfigRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateOnlineEvaluationConfigRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-