interface TriggerConditions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.TriggerConditions |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#TriggerConditions |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.TriggerConditions |
Python | aws_cdk.aws_bedrock_agentcore_alpha.TriggerConditions |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป TriggerConditions |
Trigger conditions for self managed memory strategy When first condition is met, batched payloads are sent to specified S3 bucket.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import * as cdk from 'aws-cdk-lib';
const triggerConditions: bedrock_agentcore_alpha.TriggerConditions = {
messageBasedTrigger: 123,
timeBasedTrigger: cdk.Duration.minutes(30),
tokenBasedTrigger: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| message | number | Triggers memory processing when specified number of new messages is reached. |
| time | Duration | Triggers memory processing when the session has been idle for the specified duration. |
| token | number | Triggers memory processing when the token size reaches the specified threshold. |
messageBasedTrigger?
Type:
number
(optional, default: 1)
Triggers memory processing when specified number of new messages is reached.
timeBasedTrigger?
Type:
Duration
(optional, default: 10 seconds)
Triggers memory processing when the session has been idle for the specified duration.
Value in seconds.
tokenBasedTrigger?
Type:
number
(optional, default: 100)
Triggers memory processing when the token size reaches the specified threshold.

.NET
Go
Java
Python
TypeScript (