interface CfnMemoryProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnMemoryProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnMemoryProps |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnMemoryProps |
Python | aws_cdk.aws_bedrockagentcore.CfnMemoryProps |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnMemoryProps |
Properties for defining a CfnMemory.
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 cfnMemoryProps: bedrockagentcore.CfnMemoryProps = {
eventExpiryDuration: 123,
name: 'name',
// the properties below are optional
description: 'description',
encryptionKeyArn: 'encryptionKeyArn',
memoryExecutionRoleArn: 'memoryExecutionRoleArn',
memoryStrategies: [{
customMemoryStrategy: {
name: 'name',
// the properties below are optional
configuration: {
selfManagedConfiguration: {
historicalContextWindowSize: 123,
invocationConfiguration: {
payloadDeliveryBucketName: 'payloadDeliveryBucketName',
topicArn: 'topicArn',
},
triggerConditions: [{
messageBasedTrigger: {
messageCount: 123,
},
timeBasedTrigger: {
idleSessionTimeout: 123,
},
tokenBasedTrigger: {
tokenCount: 123,
},
}],
},
semanticOverride: {
consolidation: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
extraction: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
},
summaryOverride: {
consolidation: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
},
userPreferenceOverride: {
consolidation: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
extraction: {
appendToPrompt: 'appendToPrompt',
modelId: 'modelId',
},
},
},
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
semanticMemoryStrategy: {
name: 'name',
// the properties below are optional
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
summaryMemoryStrategy: {
name: 'name',
// the properties below are optional
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
userPreferenceMemoryStrategy: {
name: 'name',
// the properties below are optional
createdAt: 'createdAt',
description: 'description',
namespaces: ['namespaces'],
status: 'status',
strategyId: 'strategyId',
type: 'type',
updatedAt: 'updatedAt',
},
}],
tags: {
tagsKey: 'tags',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| event | number | The event expiry configuration. |
| name | string | The memory name. |
| description? | string | Description of the Memory resource. |
| encryption | string | The memory encryption key Amazon Resource Name (ARN). |
| memory | string | The memory role ARN. |
| memory | IResolvable | (IResolvable | Memory)[] | The memory strategies. |
| tags? | { [string]: string } | The tags for the resources. |
eventExpiryDuration
Type:
number
The event expiry configuration.
name
Type:
string
The memory name.
description?
Type:
string
(optional)
Description of the Memory resource.
encryptionKeyArn?
Type:
string
(optional)
The memory encryption key Amazon Resource Name (ARN).
memoryExecutionRoleArn?
Type:
string
(optional)
The memory role ARN.
memoryStrategies?
Type:
IResolvable | (IResolvable | Memory)[]
(optional)
The memory strategies.
tags?
Type:
{ [string]: string }
(optional)
The tags for the resources.

.NET
Go
Java
Python
TypeScript