Skip to content
v2.273.0

HarnessHookLambdaTargetProperty Struct Added in v2.273.0 ​

A Lambda function invoked synchronously for a lifecycle hook.

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 harnessHookLambdaTargetProperty: bedrockagentcore.CfnHarness.HarnessHookLambdaTargetProperty = {
  arn: 'arn',

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

Properties ​

arnstringarnstrarnStringArnstringArn*stringrequired#
The ARN of the Lambda function.
failureModestringfailure_modestrfailureModeStringFailureModestringFailureMode*string#
Whether the agent loop continues or stops when the Lambda invocation fails.

Defaults to deny.

timeoutSecondsnumbertimeout_secondsint | floattimeoutSecondsNumberTimeoutSecondsdoubleTimeoutSeconds*float64#
The maximum number of seconds to wait for the Lambda response.

Defaults to 60.