Skip to content

Bedrock AgentCore Control  >  Structures  >  HarnessHookLambdaTarget

HarnessHookLambdaTarget

Structure Class

HarnessHookLambdaTarget dataclass

The configuration for an AWS Lambda hook target.

Attributes

arn instance-attribute
arn: str

The ARN of the Lambda function to invoke.

failure_mode class-attribute instance-attribute
failure_mode: str = HarnessHookFailureMode('deny')

The behavior when the Lambda function times out, returns an error, or returns an invalid response. The default is DENY.

timeout_seconds class-attribute instance-attribute
timeout_seconds: int = 60

The maximum number of seconds to wait for the Lambda function response. The default is 60 seconds.