Class CfnHarness.HarnessHookLambdaTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnHarness.HarnessHookLambdaTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHarness.HarnessHookLambdaTargetProperty>
- Enclosing interface:
CfnHarness.HarnessHookLambdaTargetProperty
@Stability(Stable)
public static final class CfnHarness.HarnessHookLambdaTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHarness.HarnessHookLambdaTargetProperty>
A builder for
CfnHarness.HarnessHookLambdaTargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnHarness.HarnessHookLambdaTargetProperty.getArn()build()Builds the configured instance.failureMode(String failureMode) Sets the value ofCfnHarness.HarnessHookLambdaTargetProperty.getFailureMode()timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnHarness.HarnessHookLambdaTargetProperty.getTimeoutSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnHarness.HarnessHookLambdaTargetProperty.getArn()- Parameters:
arn- The ARN of the Lambda function. This parameter is required.- Returns:
this
-
failureMode
@Stability(Stable) public CfnHarness.HarnessHookLambdaTargetProperty.Builder failureMode(String failureMode) Sets the value ofCfnHarness.HarnessHookLambdaTargetProperty.getFailureMode()- Parameters:
failureMode- Whether the agent loop continues or stops when the Lambda invocation fails. Defaults to deny.- Returns:
this
-
timeoutSeconds
@Stability(Stable) public CfnHarness.HarnessHookLambdaTargetProperty.Builder timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnHarness.HarnessHookLambdaTargetProperty.getTimeoutSeconds()- Parameters:
timeoutSeconds- The maximum number of seconds to wait for the Lambda response. Defaults to 60.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHarness.HarnessHookLambdaTargetProperty>- Returns:
- a new instance of
CfnHarness.HarnessHookLambdaTargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-