Skip to content
v2.274.0

HarnessBeforeInvocationHookProperty Struct ​

A hook that runs before an agent invocation.

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 harnessBeforeInvocationHookProperty: bedrockagentcore.CfnHarness.HarnessBeforeInvocationHookProperty = {
  name: 'name',
  target: {
    eventBridge: {
      arn: 'arn',
    },
    lambda: {
      arn: 'arn',

      // the properties below are optional
      failureMode: 'failureMode',
      timeoutSeconds: 123,
    },
    sns: {
      arn: 'arn',
    },
  },
};

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
The unique name of the hook.
The destination that receives lifecycle hook events.