Interface CfnHarness.HarnessHookProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnHarness.HarnessHookProperty.Jsii$Proxy
- Enclosing class:
CfnHarness
@Stability(Stable)
public static interface CfnHarness.HarnessHookProperty
extends software.amazon.jsii.JsiiSerializable
A lifecycle hook configured for one phase of the agent loop.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
HarnessHookProperty harnessHookProperty = HarnessHookProperty.builder()
.afterInvocation(HarnessAfterInvocationHookProperty.builder()
.name("name")
.target(HarnessHookTargetProperty.builder()
.eventBridge(HarnessHookEventBridgeTargetProperty.builder()
.arn("arn")
.build())
.lambda(HarnessHookLambdaTargetProperty.builder()
.arn("arn")
// the properties below are optional
.failureMode("failureMode")
.timeoutSeconds(123)
.build())
.sns(HarnessHookSnsTargetProperty.builder()
.arn("arn")
.build())
.build())
.build())
.afterToolCall(HarnessAfterToolCallHookProperty.builder()
.name("name")
.target(HarnessHookTargetProperty.builder()
.eventBridge(HarnessHookEventBridgeTargetProperty.builder()
.arn("arn")
.build())
.lambda(HarnessHookLambdaTargetProperty.builder()
.arn("arn")
// the properties below are optional
.failureMode("failureMode")
.timeoutSeconds(123)
.build())
.sns(HarnessHookSnsTargetProperty.builder()
.arn("arn")
.build())
.build())
.build())
.beforeInvocation(HarnessBeforeInvocationHookProperty.builder()
.name("name")
.target(HarnessHookTargetProperty.builder()
.eventBridge(HarnessHookEventBridgeTargetProperty.builder()
.arn("arn")
.build())
.lambda(HarnessHookLambdaTargetProperty.builder()
.arn("arn")
// the properties below are optional
.failureMode("failureMode")
.timeoutSeconds(123)
.build())
.sns(HarnessHookSnsTargetProperty.builder()
.arn("arn")
.build())
.build())
.build())
.beforeToolCall(HarnessBeforeToolCallHookProperty.builder()
.name("name")
.target(HarnessHookTargetProperty.builder()
.eventBridge(HarnessHookEventBridgeTargetProperty.builder()
.arn("arn")
.build())
.lambda(HarnessHookLambdaTargetProperty.builder()
.arn("arn")
// the properties below are optional
.failureMode("failureMode")
.timeoutSeconds(123)
.build())
.sns(HarnessHookSnsTargetProperty.builder()
.arn("arn")
.build())
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnHarness.HarnessHookPropertystatic final classAn implementation forCfnHarness.HarnessHookProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAfterInvocation
A hook that runs after an agent invocation.Returns union: either
IResolvableorCfnHarness.HarnessAfterInvocationHookProperty- See Also:
-
getAfterToolCall
A hook that runs after each tool call.Returns union: either
IResolvableorCfnHarness.HarnessAfterToolCallHookProperty- See Also:
-
getBeforeInvocation
A hook that runs before an agent invocation.Returns union: either
IResolvableorCfnHarness.HarnessBeforeInvocationHookProperty- See Also:
-
getBeforeToolCall
A hook that runs before each tool call.Returns union: either
IResolvableorCfnHarness.HarnessBeforeToolCallHookProperty- See Also:
-
builder
-