interface HarnessBeforeToolCallHookProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnHarness.HarnessBeforeToolCallHookProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnHarness_HarnessBeforeToolCallHookProperty |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnHarness.HarnessBeforeToolCallHookProperty |
Python | aws_cdk.aws_bedrockagentcore.CfnHarness.HarnessBeforeToolCallHookProperty |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnHarness » HarnessBeforeToolCallHookProperty |
A hook that runs before each tool call.
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 harnessBeforeToolCallHookProperty: bedrockagentcore.CfnHarness.HarnessBeforeToolCallHookProperty = {
name: 'name',
target: {
eventBridge: {
arn: 'arn',
},
lambda: {
arn: 'arn',
// the properties below are optional
failureMode: 'failureMode',
timeoutSeconds: 123,
},
sns: {
arn: 'arn',
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The unique name of the hook. |
| target | IResolvable | Harness | The destination that receives lifecycle hook events. |
name
Type:
string
The unique name of the hook.
target
Type:
IResolvable | Harness
The destination that receives lifecycle hook events.

.NET
Go
Java
Python
TypeScript