Interface CfnHarness.HarnessAfterInvocationHookProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnHarness.HarnessAfterInvocationHookProperty.Jsii$Proxy
- Enclosing class:
CfnHarness
@Stability(Stable)
public static interface CfnHarness.HarnessAfterInvocationHookProperty
extends software.amazon.jsii.JsiiSerializable
A hook that runs after an agent invocation.
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.*;
HarnessAfterInvocationHookProperty harnessAfterInvocationHookProperty = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnHarness.HarnessAfterInvocationHookPropertystatic final classAn implementation forCfnHarness.HarnessAfterInvocationHookProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The unique name of the hook.- See Also:
-
getTarget
The destination that receives lifecycle hook events.Returns union: either
IResolvableorCfnHarness.HarnessHookTargetProperty- See Also:
-
builder
-