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: