AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::BedrockAgentCore::Memory

CfnMemory

Memory allows AI agents to maintain both immediate and long-term knowledge, enabling context-aware and personalized interactions. For more information about using Memory in Amazon Bedrock AgentCore, see [Host agent or tools with Amazon Bedrock AgentCore Memory](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/memory-getting-started.html) . See the *Properties* section below for descriptions of both the required and optional properties.

Import

import { CfnMemory } from 'aws-cdk-lib/aws-bedrockagentcore';

Or use the module namespace:

import * as bedrockagentcore from 'aws-cdk-lib/aws-bedrockagentcore';
// bedrockagentcore.CfnMemory

Properties

Configuration passed to the constructor as CfnMemoryProps.

eventExpiryDurationRequired
number

The event expiry configuration.

nameRequired
string

The memory name.

descriptionOptional
string

Description of the Memory resource.

encryptionKeyArnOptional
string

The memory encryption key Amazon Resource Name (ARN).

memoryExecutionRoleArnOptional
string

The memory role ARN.

memoryStrategiesOptional
IResolvable | IResolvable | MemoryStrategyProperty[]

The memory strategies.

streamDeliveryResourcesOptional
IResolvable | StreamDeliveryResourcesProperty
tagsOptional
{ [key: string]: string }

The tags for the resources.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter