interface HarnessHookLambdaTargetProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnHarness.HarnessHookLambdaTargetProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnHarness_HarnessHookLambdaTargetProperty |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnHarness.HarnessHookLambdaTargetProperty |
Python | aws_cdk.aws_bedrockagentcore.CfnHarness.HarnessHookLambdaTargetProperty |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnHarness » HarnessHookLambdaTargetProperty |
A Lambda function invoked synchronously for a lifecycle hook.
Example
// 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
| Name | Type | Description |
|---|---|---|
| arn | string | The ARN of the Lambda function. |
| failure | string | Whether the agent loop continues or stops when the Lambda invocation fails. |
| timeout | number | The maximum number of seconds to wait for the Lambda response. |
arn
Type:
string
The ARN of the Lambda function.
failureMode?
Type:
string
(optional)
Whether the agent loop continues or stops when the Lambda invocation fails.
Defaults to deny.
timeoutSeconds?
Type:
number
(optional)
The maximum number of seconds to wait for the Lambda response.
Defaults to 60.

.NET
Go
Java
Python
TypeScript