interface InvocationConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.InvocationConfiguration |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#InvocationConfiguration |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.InvocationConfiguration |
Python | aws_cdk.aws_bedrock_agentcore_alpha.InvocationConfiguration |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha » InvocationConfiguration |
Invocation configuration for self managed memory strategy.
Example
const bucket = new s3.Bucket(this, 'memoryBucket', {
bucketName: 'test-memory',
removalPolicy: cdk.RemovalPolicy.DESTROY,
autoDeleteObjects: true,
});
const topic = new sns.Topic(this, 'topic');
// Create a custom semantic memory strategy
const selfManagedStrategy = agentcore.MemoryStrategy.usingSelfManaged({
name: "selfManagedStrategy",
description: "self managed memory strategy",
historicalContextWindowSize: 5,
invocationConfiguration: {
topic: topic,
s3Location: {
bucketName: bucket.bucketName,
objectKey: 'memory/',
}
},
triggerConditions: {
messageBasedTrigger: 1,
timeBasedTrigger: cdk.Duration.seconds(10),
tokenBasedTrigger: 100
}
});
// Create memory with custom strategy
const memory = new agentcore.Memory(this, "MyMemory", {
memoryName: "my-custom-memory",
description: "Memory with custom strategy",
expirationDuration: cdk.Duration.days(90),
memoryStrategies: [selfManagedStrategy],
});
Properties
| Name | Type | Description |
|---|---|---|
| s3 | Location | S3 Location Configuration. |
| topic | ITopic | SNS Topic Configuration. |
s3Location
Type:
Location
S3 Location Configuration.
topic
Type:
ITopic
SNS Topic Configuration.

.NET
Go
Java
Python
TypeScript (