Interface CfnHarnessPropsMixin.HarnessHookProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnHarnessPropsMixin.HarnessHookProperty.Jsii$Proxy
- Enclosing class:
CfnHarnessPropsMixin
@Stability(Stable)
public static interface CfnHarnessPropsMixin.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.cfnpropertymixins.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")
.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")
.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")
.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")
.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 forCfnHarnessPropsMixin.HarnessHookPropertystatic final classAn implementation forCfnHarnessPropsMixin.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
IResolvableorCfnHarnessPropsMixin.HarnessAfterInvocationHookProperty- See Also:
-
getAfterToolCall
A hook that runs after each tool call.Returns union: either
IResolvableorCfnHarnessPropsMixin.HarnessAfterToolCallHookProperty- See Also:
-
getBeforeInvocation
A hook that runs before an agent invocation.Returns union: either
IResolvableorCfnHarnessPropsMixin.HarnessBeforeInvocationHookProperty- See Also:
-
getBeforeToolCall
A hook that runs before each tool call.Returns union: either
IResolvableorCfnHarnessPropsMixin.HarnessBeforeToolCallHookProperty- See Also:
-
builder
-