# IMemoryStrategy

Interface for Memory strategies.

Implemented by: [ManagedMemoryStrategy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.ManagedMemoryStrategy.html), [SelfManagedMemoryStrategy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.SelfManagedMemoryStrategy.html)
Used as argument in: [Memory.addMemoryStrategy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.Memory.html#addmemorystrategy)

- Source: [`aws-bedrockagentcore/lib/memory/memory-strategy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/memory/memory-strategy.ts#L87)
- Type last changed: v2.255.0 · 19 May 2026

## Properties

- `description`: string — The description of the memory strategy.

- `strategyName`: string — The name of the memory strategy.

- `strategyType`: [MemoryStrategyType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.MemoryStrategyType.html) — The type of memory strategy.

## Methods

- `grant(grantee: IGrantable): Grant` — Grants the necessary permissions to the role.

  **Parameters**

  - `grantee` — - The grantee to grant permissions to.

  **Returns:** The Grant object for chaining

- `render(): CfnMemory.MemoryStrategyProperty` — Renders internal attributes to CloudFormation.
