AWS::BedrockAgentCore::Memory - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::BedrockAgentCore::Memory

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.

See the Properties section below for descriptions of both the required and optional properties.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::BedrockAgentCore::Memory", "Properties" : { "Description" : String, "EncryptionKeyArn" : String, "EventExpiryDuration" : Integer, "MemoryExecutionRoleArn" : String, "MemoryStrategies" : [ MemoryStrategy, ... ], "Name" : String, "Tags" : {Key: Value, ...} } }

YAML

Type: AWS::BedrockAgentCore::Memory Properties: Description: String EncryptionKeyArn: String EventExpiryDuration: Integer MemoryExecutionRoleArn: String MemoryStrategies: - MemoryStrategy Name: String Tags: Key: Value

Properties

Description

Property description not available.

Required: No

Type: String

Update requires: No interruption

EncryptionKeyArn

The memory encryption key Amazon Resource Name (ARN).

Required: No

Type: String

Pattern: ^arn:aws:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}$

Update requires: Replacement

EventExpiryDuration

The event expiry configuration.

Required: Yes

Type: Integer

Minimum: 7

Maximum: 365

Update requires: No interruption

MemoryExecutionRoleArn

The memory role ARN.

Required: No

Type: String

Pattern: ^arn:aws:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[^/].{0,1023}$

Update requires: No interruption

MemoryStrategies

The memory strategies.

Required: No

Type: Array of MemoryStrategy

Update requires: No interruption

Name

The memory name.

Required: Yes

Type: String

Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$

Update requires: Replacement

Tags

The tags for the resources.

Required: No

Type: Object of String

Pattern: ^[a-zA-Z0-9\s._:/=+@-]{1,128}$

Minimum: 0

Maximum: 256

Update requires: No interruption

Return values

Ref

Fn::GetAtt

CreatedAt

The timestamp when the memory record was created.

FailureReason

Property description not available.

MemoryArn

Property description not available.

MemoryId

The memory ID.

Status

The memory status.

UpdatedAt

Property description not available.