HarnessAfterToolCallHookProperty Struct Added in v2.273.0
A hook that runs after each tool call.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const harnessAfterToolCallHookProperty: bedrockagentcore.CfnHarness.HarnessAfterToolCallHookProperty = {
name: 'name',
target: {
eventBridge: {
arn: 'arn',
},
lambda: {
arn: 'arn',
// the properties below are optional
failureMode: 'failureMode',
timeoutSeconds: 123,
},
sns: {
arn: 'arn',
},
},
};
Properties
The unique name of the hook.
targetIResolvable | CfnHarness.HarnessHookTargetPropertytargettyping.Union[IResolvable, HarnessHookTargetProperty]targetIResolvableTargetIResolvableTargetinterface{}required#The destination that receives lifecycle hook events.