> **Experimental**
>
> `@aws-cdk/aws-bedrock-agentcore-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# SelfManagedStrategyProps

Configuration parameters for a self managed memory strategy existing built-in default prompts/models.

Extends: SelfManagedStrategyProps
Extends: MemoryStrategyCommonProps
Used as props by: SelfManagedMemoryStrategy

- Source: [`lib/memory/strategies/self-managed-strategy.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/memory/strategies/self-managed-strategy.ts#L132)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_sns as sns } from 'aws-cdk-lib';

declare const topic: sns.Topic;
const selfManagedStrategyProps: bedrock_agentcore_alpha.SelfManagedStrategyProps = {
  invocationConfiguration: {
    s3Location: {
      bucketName: 'bucketName',
      objectKey: 'objectKey',

      // the properties below are optional
      objectVersion: 'objectVersion',
    },
    topic: topic,
  },
  name: 'name',

  // the properties below are optional
  description: 'description',
  historicalContextWindowSize: 123,
  triggerConditions: {
    messageBasedTrigger: 123,
    timeBasedTrigger: cdk.Duration.minutes(30),
    tokenBasedTrigger: 123,
  },
};
```

## Properties

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

  **Default:** No description

- `historicalContextWindowSize`: number = 4 — Define the number of previous events to be included when processing memory.

  A larger history window provides more context from past conversations.

- `invocationConfiguration`: [InvocationConfiguration](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.InvocationConfiguration.html) (required) — Invocation configuration for self managed memory strategy.

- `name`: string (required) — The name for the strategy.

- `triggerConditions`: [TriggerConditions](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.TriggerConditions.html) = undefined — Trigger conditions for self managed memory strategy.
