Show / Hide Table of Contents

Class CfnHarnessPropsMixin.HarnessHookProperty

A lifecycle hook configured for one phase of the agent loop.

Inheritance
object
CfnHarnessPropsMixin.HarnessHookProperty
Implements
CfnHarnessPropsMixin.IHarnessHookProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.BedrockAgentCore
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnHarnessPropsMixin.HarnessHookProperty : CfnHarnessPropsMixin.IHarnessHookProperty
Syntax (vb)
Public Class CfnHarnessPropsMixin.HarnessHookProperty Implements CfnHarnessPropsMixin.IHarnessHookProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-harness-harnesshook.html

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.CfnPropertyMixins.AWS.BedrockAgentCore;

             var harnessHookProperty = new HarnessHookProperty {
                 AfterInvocation = new HarnessAfterInvocationHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 },
                 AfterToolCall = new HarnessAfterToolCallHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 },
                 BeforeInvocation = new HarnessBeforeInvocationHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 },
                 BeforeToolCall = new HarnessBeforeToolCallHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 }
             };

Synopsis

Constructors

HarnessHookProperty()

A lifecycle hook configured for one phase of the agent loop.

Properties

AfterInvocation

A hook that runs after an agent invocation.

AfterToolCall

A hook that runs after each tool call.

BeforeInvocation

A hook that runs before an agent invocation.

BeforeToolCall

A hook that runs before each tool call.

Constructors

HarnessHookProperty()

A lifecycle hook configured for one phase of the agent loop.

public HarnessHookProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-harness-harnesshook.html

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.CfnPropertyMixins.AWS.BedrockAgentCore;

             var harnessHookProperty = new HarnessHookProperty {
                 AfterInvocation = new HarnessAfterInvocationHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 },
                 AfterToolCall = new HarnessAfterToolCallHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 },
                 BeforeInvocation = new HarnessBeforeInvocationHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 },
                 BeforeToolCall = new HarnessBeforeToolCallHookProperty {
                     Name = "name",
                     Target = new HarnessHookTargetProperty {
                         EventBridge = new HarnessHookEventBridgeTargetProperty {
                             Arn = "arn"
                         },
                         Lambda = new HarnessHookLambdaTargetProperty {
                             Arn = "arn",
                             FailureMode = "failureMode",
                             TimeoutSeconds = 123
                         },
                         Sns = new HarnessHookSnsTargetProperty {
                             Arn = "arn"
                         }
                     }
                 }
             };

Properties

AfterInvocation

A hook that runs after an agent invocation.

public object? AfterInvocation { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-harness-harnesshook.html#cfn-bedrockagentcore-harness-harnesshook-afterinvocation

Type union: either IResolvable or CfnHarnessPropsMixin.IHarnessAfterInvocationHookProperty

AfterToolCall

A hook that runs after each tool call.

public object? AfterToolCall { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-harness-harnesshook.html#cfn-bedrockagentcore-harness-harnesshook-aftertoolcall

Type union: either IResolvable or CfnHarnessPropsMixin.IHarnessAfterToolCallHookProperty

BeforeInvocation

A hook that runs before an agent invocation.

public object? BeforeInvocation { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-harness-harnesshook.html#cfn-bedrockagentcore-harness-harnesshook-beforeinvocation

Type union: either IResolvable or CfnHarnessPropsMixin.IHarnessBeforeInvocationHookProperty

BeforeToolCall

A hook that runs before each tool call.

public object? BeforeToolCall { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-harness-harnesshook.html#cfn-bedrockagentcore-harness-harnesshook-beforetoolcall

Type union: either IResolvable or CfnHarnessPropsMixin.IHarnessBeforeToolCallHookProperty

Implements

CfnHarnessPropsMixin.IHarnessHookProperty
Back to top Generated by DocFX