# IMemoryStrategy

Interface for Memory strategies.

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

- Source: [`lib/memory/memory-strategy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/memory/memory-strategy.ts#L92)

## Properties

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

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

- `strategyType`: [MemoryStrategyType](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.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.
