Class CodeBasedOptions.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CodeBasedOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeBasedOptions>
- Enclosing interface:
CodeBasedOptions
@Stability(Stable)
public static final class CodeBasedOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CodeBasedOptions>
A builder for
CodeBasedOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.lambdaFunction(IFunction lambdaFunction) Sets the value ofCodeBasedOptions.getLambdaFunction()Sets the value ofCodeBasedOptions.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaFunction
Sets the value ofCodeBasedOptions.getLambdaFunction()- Parameters:
lambdaFunction- The Lambda function used for evaluation. This parameter is required. The function will be granted invoke permissions for thebedrock-agentcore.amazonaws.com.rproxy.govskope.caservice principal, scoped to this specific evaluator resource.- Returns:
this
-
timeout
Sets the value ofCodeBasedOptions.getTimeout()- Parameters:
timeout- The timeout for the Lambda function invocation during evaluation. When not specified, the AgentCore evaluation service uses its default timeout for Lambda-based evaluators.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CodeBasedOptions>- Returns:
- a new instance of
CodeBasedOptions - Throws:
NullPointerException- if any required attribute was not provided
-