Class CfnHarness.HarnessAfterInvocationHookProperty
A hook that runs after an agent invocation.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.BedrockAgentCore
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnHarness.HarnessAfterInvocationHookProperty : CfnHarness.IHarnessAfterInvocationHookProperty
Syntax (vb)
Public Class CfnHarness.HarnessAfterInvocationHookProperty Implements CfnHarness.IHarnessAfterInvocationHookProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;
var harnessAfterInvocationHookProperty = new HarnessAfterInvocationHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
// the properties below are optional
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
};
Synopsis
Constructors
| HarnessAfterInvocationHookProperty() | A hook that runs after an agent invocation. |
Properties
| Name | The unique name of the hook. |
| Target | The destination that receives lifecycle hook events. |
Constructors
HarnessAfterInvocationHookProperty()
A hook that runs after an agent invocation.
public HarnessAfterInvocationHookProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;
var harnessAfterInvocationHookProperty = new HarnessAfterInvocationHookProperty {
Name = "name",
Target = new HarnessHookTargetProperty {
EventBridge = new HarnessHookEventBridgeTargetProperty {
Arn = "arn"
},
Lambda = new HarnessHookLambdaTargetProperty {
Arn = "arn",
// the properties below are optional
FailureMode = "failureMode",
TimeoutSeconds = 123
},
Sns = new HarnessHookSnsTargetProperty {
Arn = "arn"
}
}
};
Properties
Name
The unique name of the hook.
public string Name { get; set; }
Property Value
Remarks
Target
The destination that receives lifecycle hook events.
public object Target { get; set; }