# MemoryConfigurationProperty

Struct · External

Details of the memory configuration.

- Source: Generated at build time
- Type last changed: v2.181.0 · 26 Feb 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const memoryConfigurationProperty: bedrock.CfnAgent.MemoryConfigurationProperty = {
  enabledMemoryTypes: ['enabledMemoryTypes'],
  sessionSummaryConfiguration: {
    maxRecentSessions: 123,
  },
  storageDays: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

memory_configuration_property = bedrock.CfnAgent.MemoryConfigurationProperty(
    enabled_memory_types=["enabledMemoryTypes"],
    session_summary_configuration=bedrock.CfnAgent.SessionSummaryConfigurationProperty(
        max_recent_sessions=123
    ),
    storage_days=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;

MemoryConfigurationProperty memoryConfigurationProperty = MemoryConfigurationProperty.builder()
        .enabledMemoryTypes(List.of("enabledMemoryTypes"))
        .sessionSummaryConfiguration(SessionSummaryConfigurationProperty.builder()
                .maxRecentSessions(123)
                .build())
        .storageDays(123)
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;

var memoryConfigurationProperty = new MemoryConfigurationProperty {
    EnabledMemoryTypes = new [] { "enabledMemoryTypes" },
    SessionSummaryConfiguration = new SessionSummaryConfigurationProperty {
        MaxRecentSessions = 123
    },
    StorageDays = 123
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

memoryConfigurationProperty := &MemoryConfigurationProperty{
	EnabledMemoryTypes: []*string{
		jsii.String("enabledMemoryTypes"),
	},
	SessionSummaryConfiguration: &SessionSummaryConfigurationProperty{
		MaxRecentSessions: jsii.Number(123),
	},
	StorageDays: jsii.Number(123),
}
```

## Properties

- `enabledMemoryTypes`: string[] — The type of memory that is stored.

- `sessionSummaryConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAgent.SessionSummaryConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnAgent.SessionSummaryConfigurationProperty.html) — Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.

- `storageDays`: number — The number of days the agent is configured to retain the conversational context.
