Skip to content
v2.278.0

MemoryStrategyProperty Struct ​

The memory strategy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const memoryStrategyProperty: bedrockagentcore.CfnMemory.MemoryStrategyProperty = {
  customMemoryStrategy: {
    name: 'name',

    // the properties below are optional
    configuration: {
      episodicOverride: {
        consolidation: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',
        },
        extraction: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',
        },
        reflection: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',

          // the properties below are optional
          memoryRecordSchema: {
            metadataSchema: [{
              key: 'key',

              // the properties below are optional
              extractionConfig: {
                llmExtractionConfig: {
                  definition: 'definition',

                  // the properties below are optional
                  llmExtractionInstruction: 'llmExtractionInstruction',
                  validation: {
                    numberValidation: {
                      maxValue: 123,
                      minValue: 123,
                    },
                    stringListValidation: {
                      allowedValues: ['allowedValues'],
                      maxItems: 123,
                    },
                    stringValidation: {
                      allowedValues: ['allowedValues'],
                    },
                  },
                },
              },
              extractionType: 'extractionType',
              type: 'type',
            }],
          },
          namespaces: ['namespaces'],
          namespaceTemplates: ['namespaceTemplates'],
        },
      },
      selfManagedConfiguration: {
        historicalContextWindowSize: 123,
        invocationConfiguration: {
          payloadDeliveryBucketName: 'payloadDeliveryBucketName',
          topicArn: 'topicArn',
        },
        triggerConditions: [{
          messageBasedTrigger: {
            messageCount: 123,
          },
          timeBasedTrigger: {
            idleSessionTimeout: 123,
          },
          tokenBasedTrigger: {
            tokenCount: 123,
          },
        }],
      },
      semanticOverride: {
        consolidation: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',
        },
        extraction: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',
        },
      },
      summaryOverride: {
        consolidation: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',
        },
      },
      userPreferenceOverride: {
        consolidation: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',
        },
        extraction: {
          appendToPrompt: 'appendToPrompt',
          modelId: 'modelId',
        },
      },
    },
    createdAt: 'createdAt',
    description: 'description',
    memoryRecordSchema: {
      metadataSchema: [{
        key: 'key',

        // the properties below are optional
        extractionConfig: {
          llmExtractionConfig: {
            definition: 'definition',

            // the properties below are optional
            llmExtractionInstruction: 'llmExtractionInstruction',
            validation: {
              numberValidation: {
                maxValue: 123,
                minValue: 123,
              },
              stringListValidation: {
                allowedValues: ['allowedValues'],
                maxItems: 123,
              },
              stringValidation: {
                allowedValues: ['allowedValues'],
              },
            },
          },
        },
        extractionType: 'extractionType',
        type: 'type',
      }],
    },
    namespaces: ['namespaces'],
    namespaceTemplates: ['namespaceTemplates'],
    recordExpiryDurationDays: 123,
    recordExpirySpecification: {
      recordExpiryDurationDays: 123,
    },
    status: 'status',
    strategyId: 'strategyId',
    type: 'type',
    updatedAt: 'updatedAt',
  },
  episodicMemoryStrategy: {
    name: 'name',

    // the properties below are optional
    createdAt: 'createdAt',
    description: 'description',
    memoryRecordSchema: {
      metadataSchema: [{
        key: 'key',

        // the properties below are optional
        extractionConfig: {
          llmExtractionConfig: {
            definition: 'definition',

            // the properties below are optional
            llmExtractionInstruction: 'llmExtractionInstruction',
            validation: {
              numberValidation: {
                maxValue: 123,
                minValue: 123,
              },
              stringListValidation: {
                allowedValues: ['allowedValues'],
                maxItems: 123,
              },
              stringValidation: {
                allowedValues: ['allowedValues'],
              },
            },
          },
        },
        extractionType: 'extractionType',
        type: 'type',
      }],
    },
    namespaces: ['namespaces'],
    namespaceTemplates: ['namespaceTemplates'],
    recordExpiryDurationDays: 123,
    recordExpirySpecification: {
      recordExpiryDurationDays: 123,
    },
    reflectionConfiguration: {
      memoryRecordSchema: {
        metadataSchema: [{
          key: 'key',

          // the properties below are optional
          extractionConfig: {
            llmExtractionConfig: {
              definition: 'definition',

              // the properties below are optional
              llmExtractionInstruction: 'llmExtractionInstruction',
              validation: {
                numberValidation: {
                  maxValue: 123,
                  minValue: 123,
                },
                stringListValidation: {
                  allowedValues: ['allowedValues'],
                  maxItems: 123,
                },
                stringValidation: {
                  allowedValues: ['allowedValues'],
                },
              },
            },
          },
          extractionType: 'extractionType',
          type: 'type',
        }],
      },
      namespaces: ['namespaces'],
      namespaceTemplates: ['namespaceTemplates'],
    },
    status: 'status',
    strategyId: 'strategyId',
    type: 'type',
    updatedAt: 'updatedAt',
  },
  semanticMemoryStrategy: {
    name: 'name',

    // the properties below are optional
    createdAt: 'createdAt',
    description: 'description',
    memoryRecordSchema: {
      metadataSchema: [{
        key: 'key',

        // the properties below are optional
        extractionConfig: {
          llmExtractionConfig: {
            definition: 'definition',

            // the properties below are optional
            llmExtractionInstruction: 'llmExtractionInstruction',
            validation: {
              numberValidation: {
                maxValue: 123,
                minValue: 123,
              },
              stringListValidation: {
                allowedValues: ['allowedValues'],
                maxItems: 123,
              },
              stringValidation: {
                allowedValues: ['allowedValues'],
              },
            },
          },
        },
        extractionType: 'extractionType',
        type: 'type',
      }],
    },
    namespaces: ['namespaces'],
    namespaceTemplates: ['namespaceTemplates'],
    recordExpiryDurationDays: 123,
    recordExpirySpecification: {
      recordExpiryDurationDays: 123,
    },
    status: 'status',
    strategyId: 'strategyId',
    type: 'type',
    updatedAt: 'updatedAt',
  },
  summaryMemoryStrategy: {
    name: 'name',

    // the properties below are optional
    createdAt: 'createdAt',
    description: 'description',
    memoryRecordSchema: {
      metadataSchema: [{
        key: 'key',

        // the properties below are optional
        extractionConfig: {
          llmExtractionConfig: {
            definition: 'definition',

            // the properties below are optional
            llmExtractionInstruction: 'llmExtractionInstruction',
            validation: {
              numberValidation: {
                maxValue: 123,
                minValue: 123,
              },
              stringListValidation: {
                allowedValues: ['allowedValues'],
                maxItems: 123,
              },
              stringValidation: {
                allowedValues: ['allowedValues'],
              },
            },
          },
        },
        extractionType: 'extractionType',
        type: 'type',
      }],
    },
    namespaces: ['namespaces'],
    namespaceTemplates: ['namespaceTemplates'],
    recordExpiryDurationDays: 123,
    recordExpirySpecification: {
      recordExpiryDurationDays: 123,
    },
    status: 'status',
    strategyId: 'strategyId',
    type: 'type',
    updatedAt: 'updatedAt',
  },
  userPreferenceMemoryStrategy: {
    name: 'name',

    // the properties below are optional
    createdAt: 'createdAt',
    description: 'description',
    memoryRecordSchema: {
      metadataSchema: [{
        key: 'key',

        // the properties below are optional
        extractionConfig: {
          llmExtractionConfig: {
            definition: 'definition',

            // the properties below are optional
            llmExtractionInstruction: 'llmExtractionInstruction',
            validation: {
              numberValidation: {
                maxValue: 123,
                minValue: 123,
              },
              stringListValidation: {
                allowedValues: ['allowedValues'],
                maxItems: 123,
              },
              stringValidation: {
                allowedValues: ['allowedValues'],
              },
            },
          },
        },
        extractionType: 'extractionType',
        type: 'type',
      }],
    },
    namespaces: ['namespaces'],
    namespaceTemplates: ['namespaceTemplates'],
    recordExpiryDurationDays: 123,
    recordExpirySpecification: {
      recordExpiryDurationDays: 123,
    },
    status: 'status',
    strategyId: 'strategyId',
    type: 'type',
    updatedAt: 'updatedAt',
  },
};
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_bedrockagentcore as bedrockagentcore

memory_strategy_property = bedrockagentcore.CfnMemory.MemoryStrategyProperty(
    custom_memory_strategy=bedrockagentcore.CfnMemory.CustomMemoryStrategyProperty(
        name="name",

        # the properties below are optional
        configuration=bedrockagentcore.CfnMemory.CustomConfigurationInputProperty(
            episodic_override=bedrockagentcore.CfnMemory.EpisodicOverrideProperty(
                consolidation=bedrockagentcore.CfnMemory.EpisodicOverrideConsolidationConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId"
                ),
                extraction=bedrockagentcore.CfnMemory.EpisodicOverrideExtractionConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId"
                ),
                reflection=bedrockagentcore.CfnMemory.EpisodicOverrideReflectionConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId",

                    # the properties below are optional
                    memory_record_schema=bedrockagentcore.CfnMemory.MemoryRecordSchemaProperty(
                        metadata_schema=[bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
                            key="key",

                            # the properties below are optional
                            extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
                                llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
                                    definition="definition",

                                    # the properties below are optional
                                    llm_extraction_instruction="llmExtractionInstruction",
                                    validation=bedrockagentcore.CfnMemory.ValidationProperty(
                                        number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                                            max_value=123,
                                            min_value=123
                                        ),
                                        string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                                            allowed_values=["allowedValues"],
                                            max_items=123
                                        ),
                                        string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                                            allowed_values=["allowedValues"]
                                        )
                                    )
                                )
                            ),
                            extraction_type="extractionType",
                            type="type"
                        )]
                    ),
                    namespaces=["namespaces"],
                    namespace_templates=["namespaceTemplates"]
                )
            ),
            self_managed_configuration=bedrockagentcore.CfnMemory.SelfManagedConfigurationProperty(
                historical_context_window_size=123,
                invocation_configuration=bedrockagentcore.CfnMemory.InvocationConfigurationInputProperty(
                    payload_delivery_bucket_name="payloadDeliveryBucketName",
                    topic_arn="topicArn"
                ),
                trigger_conditions=[bedrockagentcore.CfnMemory.TriggerConditionInputProperty(
                    message_based_trigger=bedrockagentcore.CfnMemory.MessageBasedTriggerInputProperty(
                        message_count=123
                    ),
                    time_based_trigger=bedrockagentcore.CfnMemory.TimeBasedTriggerInputProperty(
                        idle_session_timeout=123
                    ),
                    token_based_trigger=bedrockagentcore.CfnMemory.TokenBasedTriggerInputProperty(
                        token_count=123
                    )
                )]
            ),
            semantic_override=bedrockagentcore.CfnMemory.SemanticOverrideProperty(
                consolidation=bedrockagentcore.CfnMemory.SemanticOverrideConsolidationConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId"
                ),
                extraction=bedrockagentcore.CfnMemory.SemanticOverrideExtractionConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId"
                )
            ),
            summary_override=bedrockagentcore.CfnMemory.SummaryOverrideProperty(
                consolidation=bedrockagentcore.CfnMemory.SummaryOverrideConsolidationConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId"
                )
            ),
            user_preference_override=bedrockagentcore.CfnMemory.UserPreferenceOverrideProperty(
                consolidation=bedrockagentcore.CfnMemory.UserPreferenceOverrideConsolidationConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId"
                ),
                extraction=bedrockagentcore.CfnMemory.UserPreferenceOverrideExtractionConfigurationInputProperty(
                    append_to_prompt="appendToPrompt",
                    model_id="modelId"
                )
            )
        ),
        created_at="createdAt",
        description="description",
        memory_record_schema=bedrockagentcore.CfnMemory.MemoryRecordSchemaProperty(
            metadata_schema=[bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
                key="key",

                # the properties below are optional
                extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
                    llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
                        definition="definition",

                        # the properties below are optional
                        llm_extraction_instruction="llmExtractionInstruction",
                        validation=bedrockagentcore.CfnMemory.ValidationProperty(
                            number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                                max_value=123,
                                min_value=123
                            ),
                            string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                                allowed_values=["allowedValues"],
                                max_items=123
                            ),
                            string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                                allowed_values=["allowedValues"]
                            )
                        )
                    )
                ),
                extraction_type="extractionType",
                type="type"
            )]
        ),
        namespaces=["namespaces"],
        namespace_templates=["namespaceTemplates"],
        record_expiry_duration_days=123,
        record_expiry_specification=bedrockagentcore.CfnMemory.RecordExpirySpecificationProperty(
            record_expiry_duration_days=123
        ),
        status="status",
        strategy_id="strategyId",
        type="type",
        updated_at="updatedAt"
    ),
    episodic_memory_strategy=bedrockagentcore.CfnMemory.EpisodicMemoryStrategyProperty(
        name="name",

        # the properties below are optional
        created_at="createdAt",
        description="description",
        memory_record_schema=bedrockagentcore.CfnMemory.MemoryRecordSchemaProperty(
            metadata_schema=[bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
                key="key",

                # the properties below are optional
                extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
                    llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
                        definition="definition",

                        # the properties below are optional
                        llm_extraction_instruction="llmExtractionInstruction",
                        validation=bedrockagentcore.CfnMemory.ValidationProperty(
                            number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                                max_value=123,
                                min_value=123
                            ),
                            string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                                allowed_values=["allowedValues"],
                                max_items=123
                            ),
                            string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                                allowed_values=["allowedValues"]
                            )
                        )
                    )
                ),
                extraction_type="extractionType",
                type="type"
            )]
        ),
        namespaces=["namespaces"],
        namespace_templates=["namespaceTemplates"],
        record_expiry_duration_days=123,
        record_expiry_specification=bedrockagentcore.CfnMemory.RecordExpirySpecificationProperty(
            record_expiry_duration_days=123
        ),
        reflection_configuration=bedrockagentcore.CfnMemory.EpisodicReflectionConfigurationInputProperty(
            memory_record_schema=bedrockagentcore.CfnMemory.MemoryRecordSchemaProperty(
                metadata_schema=[bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
                    key="key",

                    # the properties below are optional
                    extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
                        llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
                            definition="definition",

                            # the properties below are optional
                            llm_extraction_instruction="llmExtractionInstruction",
                            validation=bedrockagentcore.CfnMemory.ValidationProperty(
                                number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                                    max_value=123,
                                    min_value=123
                                ),
                                string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                                    allowed_values=["allowedValues"],
                                    max_items=123
                                ),
                                string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                                    allowed_values=["allowedValues"]
                                )
                            )
                        )
                    ),
                    extraction_type="extractionType",
                    type="type"
                )]
            ),
            namespaces=["namespaces"],
            namespace_templates=["namespaceTemplates"]
        ),
        status="status",
        strategy_id="strategyId",
        type="type",
        updated_at="updatedAt"
    ),
    semantic_memory_strategy=bedrockagentcore.CfnMemory.SemanticMemoryStrategyProperty(
        name="name",

        # the properties below are optional
        created_at="createdAt",
        description="description",
        memory_record_schema=bedrockagentcore.CfnMemory.MemoryRecordSchemaProperty(
            metadata_schema=[bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
                key="key",

                # the properties below are optional
                extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
                    llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
                        definition="definition",

                        # the properties below are optional
                        llm_extraction_instruction="llmExtractionInstruction",
                        validation=bedrockagentcore.CfnMemory.ValidationProperty(
                            number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                                max_value=123,
                                min_value=123
                            ),
                            string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                                allowed_values=["allowedValues"],
                                max_items=123
                            ),
                            string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                                allowed_values=["allowedValues"]
                            )
                        )
                    )
                ),
                extraction_type="extractionType",
                type="type"
            )]
        ),
        namespaces=["namespaces"],
        namespace_templates=["namespaceTemplates"],
        record_expiry_duration_days=123,
        record_expiry_specification=bedrockagentcore.CfnMemory.RecordExpirySpecificationProperty(
            record_expiry_duration_days=123
        ),
        status="status",
        strategy_id="strategyId",
        type="type",
        updated_at="updatedAt"
    ),
    summary_memory_strategy=bedrockagentcore.CfnMemory.SummaryMemoryStrategyProperty(
        name="name",

        # the properties below are optional
        created_at="createdAt",
        description="description",
        memory_record_schema=bedrockagentcore.CfnMemory.MemoryRecordSchemaProperty(
            metadata_schema=[bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
                key="key",

                # the properties below are optional
                extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
                    llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
                        definition="definition",

                        # the properties below are optional
                        llm_extraction_instruction="llmExtractionInstruction",
                        validation=bedrockagentcore.CfnMemory.ValidationProperty(
                            number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                                max_value=123,
                                min_value=123
                            ),
                            string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                                allowed_values=["allowedValues"],
                                max_items=123
                            ),
                            string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                                allowed_values=["allowedValues"]
                            )
                        )
                    )
                ),
                extraction_type="extractionType",
                type="type"
            )]
        ),
        namespaces=["namespaces"],
        namespace_templates=["namespaceTemplates"],
        record_expiry_duration_days=123,
        record_expiry_specification=bedrockagentcore.CfnMemory.RecordExpirySpecificationProperty(
            record_expiry_duration_days=123
        ),
        status="status",
        strategy_id="strategyId",
        type="type",
        updated_at="updatedAt"
    ),
    user_preference_memory_strategy=bedrockagentcore.CfnMemory.UserPreferenceMemoryStrategyProperty(
        name="name",

        # the properties below are optional
        created_at="createdAt",
        description="description",
        memory_record_schema=bedrockagentcore.CfnMemory.MemoryRecordSchemaProperty(
            metadata_schema=[bedrockagentcore.CfnMemory.MetadataSchemaEntryProperty(
                key="key",

                # the properties below are optional
                extraction_config=bedrockagentcore.CfnMemory.ExtractionConfigProperty(
                    llm_extraction_config=bedrockagentcore.CfnMemory.LlmExtractionConfigProperty(
                        definition="definition",

                        # the properties below are optional
                        llm_extraction_instruction="llmExtractionInstruction",
                        validation=bedrockagentcore.CfnMemory.ValidationProperty(
                            number_validation=bedrockagentcore.CfnMemory.NumberValidationProperty(
                                max_value=123,
                                min_value=123
                            ),
                            string_list_validation=bedrockagentcore.CfnMemory.StringListValidationProperty(
                                allowed_values=["allowedValues"],
                                max_items=123
                            ),
                            string_validation=bedrockagentcore.CfnMemory.StringValidationProperty(
                                allowed_values=["allowedValues"]
                            )
                        )
                    )
                ),
                extraction_type="extractionType",
                type="type"
            )]
        ),
        namespaces=["namespaces"],
        namespace_templates=["namespaceTemplates"],
        record_expiry_duration_days=123,
        record_expiry_specification=bedrockagentcore.CfnMemory.RecordExpirySpecificationProperty(
            record_expiry_duration_days=123
        ),
        status="status",
        strategy_id="strategyId",
        type="type",
        updated_at="updatedAt"
    )
)
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.bedrockagentcore.*;

MemoryStrategyProperty memoryStrategyProperty = MemoryStrategyProperty.builder()
        .customMemoryStrategy(CustomMemoryStrategyProperty.builder()
                .name("name")

                // the properties below are optional
                .configuration(CustomConfigurationInputProperty.builder()
                        .episodicOverride(EpisodicOverrideProperty.builder()
                                .consolidation(EpisodicOverrideConsolidationConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")
                                        .build())
                                .extraction(EpisodicOverrideExtractionConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")
                                        .build())
                                .reflection(EpisodicOverrideReflectionConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")

                                        // the properties below are optional
                                        .memoryRecordSchema(MemoryRecordSchemaProperty.builder()
                                                .metadataSchema(List.of(MetadataSchemaEntryProperty.builder()
                                                        .key("key")

                                                        // the properties below are optional
                                                        .extractionConfig(ExtractionConfigProperty.builder()
                                                                .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                                                                        .definition("definition")

                                                                        // the properties below are optional
                                                                        .llmExtractionInstruction("llmExtractionInstruction")
                                                                        .validation(ValidationProperty.builder()
                                                                                .numberValidation(NumberValidationProperty.builder()
                                                                                        .maxValue(123)
                                                                                        .minValue(123)
                                                                                        .build())
                                                                                .stringListValidation(StringListValidationProperty.builder()
                                                                                        .allowedValues(List.of("allowedValues"))
                                                                                        .maxItems(123)
                                                                                        .build())
                                                                                .stringValidation(StringValidationProperty.builder()
                                                                                        .allowedValues(List.of("allowedValues"))
                                                                                        .build())
                                                                                .build())
                                                                        .build())
                                                                .build())
                                                        .extractionType("extractionType")
                                                        .type("type")
                                                        .build()))
                                                .build())
                                        .namespaces(List.of("namespaces"))
                                        .namespaceTemplates(List.of("namespaceTemplates"))
                                        .build())
                                .build())
                        .selfManagedConfiguration(SelfManagedConfigurationProperty.builder()
                                .historicalContextWindowSize(123)
                                .invocationConfiguration(InvocationConfigurationInputProperty.builder()
                                        .payloadDeliveryBucketName("payloadDeliveryBucketName")
                                        .topicArn("topicArn")
                                        .build())
                                .triggerConditions(List.of(TriggerConditionInputProperty.builder()
                                        .messageBasedTrigger(MessageBasedTriggerInputProperty.builder()
                                                .messageCount(123)
                                                .build())
                                        .timeBasedTrigger(TimeBasedTriggerInputProperty.builder()
                                                .idleSessionTimeout(123)
                                                .build())
                                        .tokenBasedTrigger(TokenBasedTriggerInputProperty.builder()
                                                .tokenCount(123)
                                                .build())
                                        .build()))
                                .build())
                        .semanticOverride(SemanticOverrideProperty.builder()
                                .consolidation(SemanticOverrideConsolidationConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")
                                        .build())
                                .extraction(SemanticOverrideExtractionConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")
                                        .build())
                                .build())
                        .summaryOverride(SummaryOverrideProperty.builder()
                                .consolidation(SummaryOverrideConsolidationConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")
                                        .build())
                                .build())
                        .userPreferenceOverride(UserPreferenceOverrideProperty.builder()
                                .consolidation(UserPreferenceOverrideConsolidationConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")
                                        .build())
                                .extraction(UserPreferenceOverrideExtractionConfigurationInputProperty.builder()
                                        .appendToPrompt("appendToPrompt")
                                        .modelId("modelId")
                                        .build())
                                .build())
                        .build())
                .createdAt("createdAt")
                .description("description")
                .memoryRecordSchema(MemoryRecordSchemaProperty.builder()
                        .metadataSchema(List.of(MetadataSchemaEntryProperty.builder()
                                .key("key")

                                // the properties below are optional
                                .extractionConfig(ExtractionConfigProperty.builder()
                                        .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                                                .definition("definition")

                                                // the properties below are optional
                                                .llmExtractionInstruction("llmExtractionInstruction")
                                                .validation(ValidationProperty.builder()
                                                        .numberValidation(NumberValidationProperty.builder()
                                                                .maxValue(123)
                                                                .minValue(123)
                                                                .build())
                                                        .stringListValidation(StringListValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .maxItems(123)
                                                                .build())
                                                        .stringValidation(StringValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .build())
                                                        .build())
                                                .build())
                                        .build())
                                .extractionType("extractionType")
                                .type("type")
                                .build()))
                        .build())
                .namespaces(List.of("namespaces"))
                .namespaceTemplates(List.of("namespaceTemplates"))
                .recordExpiryDurationDays(123)
                .recordExpirySpecification(RecordExpirySpecificationProperty.builder()
                        .recordExpiryDurationDays(123)
                        .build())
                .status("status")
                .strategyId("strategyId")
                .type("type")
                .updatedAt("updatedAt")
                .build())
        .episodicMemoryStrategy(EpisodicMemoryStrategyProperty.builder()
                .name("name")

                // the properties below are optional
                .createdAt("createdAt")
                .description("description")
                .memoryRecordSchema(MemoryRecordSchemaProperty.builder()
                        .metadataSchema(List.of(MetadataSchemaEntryProperty.builder()
                                .key("key")

                                // the properties below are optional
                                .extractionConfig(ExtractionConfigProperty.builder()
                                        .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                                                .definition("definition")

                                                // the properties below are optional
                                                .llmExtractionInstruction("llmExtractionInstruction")
                                                .validation(ValidationProperty.builder()
                                                        .numberValidation(NumberValidationProperty.builder()
                                                                .maxValue(123)
                                                                .minValue(123)
                                                                .build())
                                                        .stringListValidation(StringListValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .maxItems(123)
                                                                .build())
                                                        .stringValidation(StringValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .build())
                                                        .build())
                                                .build())
                                        .build())
                                .extractionType("extractionType")
                                .type("type")
                                .build()))
                        .build())
                .namespaces(List.of("namespaces"))
                .namespaceTemplates(List.of("namespaceTemplates"))
                .recordExpiryDurationDays(123)
                .recordExpirySpecification(RecordExpirySpecificationProperty.builder()
                        .recordExpiryDurationDays(123)
                        .build())
                .reflectionConfiguration(EpisodicReflectionConfigurationInputProperty.builder()
                        .memoryRecordSchema(MemoryRecordSchemaProperty.builder()
                                .metadataSchema(List.of(MetadataSchemaEntryProperty.builder()
                                        .key("key")

                                        // the properties below are optional
                                        .extractionConfig(ExtractionConfigProperty.builder()
                                                .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                                                        .definition("definition")

                                                        // the properties below are optional
                                                        .llmExtractionInstruction("llmExtractionInstruction")
                                                        .validation(ValidationProperty.builder()
                                                                .numberValidation(NumberValidationProperty.builder()
                                                                        .maxValue(123)
                                                                        .minValue(123)
                                                                        .build())
                                                                .stringListValidation(StringListValidationProperty.builder()
                                                                        .allowedValues(List.of("allowedValues"))
                                                                        .maxItems(123)
                                                                        .build())
                                                                .stringValidation(StringValidationProperty.builder()
                                                                        .allowedValues(List.of("allowedValues"))
                                                                        .build())
                                                                .build())
                                                        .build())
                                                .build())
                                        .extractionType("extractionType")
                                        .type("type")
                                        .build()))
                                .build())
                        .namespaces(List.of("namespaces"))
                        .namespaceTemplates(List.of("namespaceTemplates"))
                        .build())
                .status("status")
                .strategyId("strategyId")
                .type("type")
                .updatedAt("updatedAt")
                .build())
        .semanticMemoryStrategy(SemanticMemoryStrategyProperty.builder()
                .name("name")

                // the properties below are optional
                .createdAt("createdAt")
                .description("description")
                .memoryRecordSchema(MemoryRecordSchemaProperty.builder()
                        .metadataSchema(List.of(MetadataSchemaEntryProperty.builder()
                                .key("key")

                                // the properties below are optional
                                .extractionConfig(ExtractionConfigProperty.builder()
                                        .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                                                .definition("definition")

                                                // the properties below are optional
                                                .llmExtractionInstruction("llmExtractionInstruction")
                                                .validation(ValidationProperty.builder()
                                                        .numberValidation(NumberValidationProperty.builder()
                                                                .maxValue(123)
                                                                .minValue(123)
                                                                .build())
                                                        .stringListValidation(StringListValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .maxItems(123)
                                                                .build())
                                                        .stringValidation(StringValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .build())
                                                        .build())
                                                .build())
                                        .build())
                                .extractionType("extractionType")
                                .type("type")
                                .build()))
                        .build())
                .namespaces(List.of("namespaces"))
                .namespaceTemplates(List.of("namespaceTemplates"))
                .recordExpiryDurationDays(123)
                .recordExpirySpecification(RecordExpirySpecificationProperty.builder()
                        .recordExpiryDurationDays(123)
                        .build())
                .status("status")
                .strategyId("strategyId")
                .type("type")
                .updatedAt("updatedAt")
                .build())
        .summaryMemoryStrategy(SummaryMemoryStrategyProperty.builder()
                .name("name")

                // the properties below are optional
                .createdAt("createdAt")
                .description("description")
                .memoryRecordSchema(MemoryRecordSchemaProperty.builder()
                        .metadataSchema(List.of(MetadataSchemaEntryProperty.builder()
                                .key("key")

                                // the properties below are optional
                                .extractionConfig(ExtractionConfigProperty.builder()
                                        .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                                                .definition("definition")

                                                // the properties below are optional
                                                .llmExtractionInstruction("llmExtractionInstruction")
                                                .validation(ValidationProperty.builder()
                                                        .numberValidation(NumberValidationProperty.builder()
                                                                .maxValue(123)
                                                                .minValue(123)
                                                                .build())
                                                        .stringListValidation(StringListValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .maxItems(123)
                                                                .build())
                                                        .stringValidation(StringValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .build())
                                                        .build())
                                                .build())
                                        .build())
                                .extractionType("extractionType")
                                .type("type")
                                .build()))
                        .build())
                .namespaces(List.of("namespaces"))
                .namespaceTemplates(List.of("namespaceTemplates"))
                .recordExpiryDurationDays(123)
                .recordExpirySpecification(RecordExpirySpecificationProperty.builder()
                        .recordExpiryDurationDays(123)
                        .build())
                .status("status")
                .strategyId("strategyId")
                .type("type")
                .updatedAt("updatedAt")
                .build())
        .userPreferenceMemoryStrategy(UserPreferenceMemoryStrategyProperty.builder()
                .name("name")

                // the properties below are optional
                .createdAt("createdAt")
                .description("description")
                .memoryRecordSchema(MemoryRecordSchemaProperty.builder()
                        .metadataSchema(List.of(MetadataSchemaEntryProperty.builder()
                                .key("key")

                                // the properties below are optional
                                .extractionConfig(ExtractionConfigProperty.builder()
                                        .llmExtractionConfig(LlmExtractionConfigProperty.builder()
                                                .definition("definition")

                                                // the properties below are optional
                                                .llmExtractionInstruction("llmExtractionInstruction")
                                                .validation(ValidationProperty.builder()
                                                        .numberValidation(NumberValidationProperty.builder()
                                                                .maxValue(123)
                                                                .minValue(123)
                                                                .build())
                                                        .stringListValidation(StringListValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .maxItems(123)
                                                                .build())
                                                        .stringValidation(StringValidationProperty.builder()
                                                                .allowedValues(List.of("allowedValues"))
                                                                .build())
                                                        .build())
                                                .build())
                                        .build())
                                .extractionType("extractionType")
                                .type("type")
                                .build()))
                        .build())
                .namespaces(List.of("namespaces"))
                .namespaceTemplates(List.of("namespaceTemplates"))
                .recordExpiryDurationDays(123)
                .recordExpirySpecification(RecordExpirySpecificationProperty.builder()
                        .recordExpiryDurationDays(123)
                        .build())
                .status("status")
                .strategyId("strategyId")
                .type("type")
                .updatedAt("updatedAt")
                .build())
        .build();
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.BedrockAgentCore;

var memoryStrategyProperty = new MemoryStrategyProperty {
    CustomMemoryStrategy = new CustomMemoryStrategyProperty {
        Name = "name",

        // the properties below are optional
        Configuration = new CustomConfigurationInputProperty {
            EpisodicOverride = new EpisodicOverrideProperty {
                Consolidation = new EpisodicOverrideConsolidationConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId"
                },
                Extraction = new EpisodicOverrideExtractionConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId"
                },
                Reflection = new EpisodicOverrideReflectionConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId",

                    // the properties below are optional
                    MemoryRecordSchema = new MemoryRecordSchemaProperty {
                        MetadataSchema = new [] { new MetadataSchemaEntryProperty {
                            Key = "key",

                            // the properties below are optional
                            ExtractionConfig = new ExtractionConfigProperty {
                                LlmExtractionConfig = new LlmExtractionConfigProperty {
                                    Definition = "definition",

                                    // the properties below are optional
                                    LlmExtractionInstruction = "llmExtractionInstruction",
                                    Validation = new ValidationProperty {
                                        NumberValidation = new NumberValidationProperty {
                                            MaxValue = 123,
                                            MinValue = 123
                                        },
                                        StringListValidation = new StringListValidationProperty {
                                            AllowedValues = new [] { "allowedValues" },
                                            MaxItems = 123
                                        },
                                        StringValidation = new StringValidationProperty {
                                            AllowedValues = new [] { "allowedValues" }
                                        }
                                    }
                                }
                            },
                            ExtractionType = "extractionType",
                            Type = "type"
                        } }
                    },
                    Namespaces = new [] { "namespaces" },
                    NamespaceTemplates = new [] { "namespaceTemplates" }
                }
            },
            SelfManagedConfiguration = new SelfManagedConfigurationProperty {
                HistoricalContextWindowSize = 123,
                InvocationConfiguration = new InvocationConfigurationInputProperty {
                    PayloadDeliveryBucketName = "payloadDeliveryBucketName",
                    TopicArn = "topicArn"
                },
                TriggerConditions = new [] { new TriggerConditionInputProperty {
                    MessageBasedTrigger = new MessageBasedTriggerInputProperty {
                        MessageCount = 123
                    },
                    TimeBasedTrigger = new TimeBasedTriggerInputProperty {
                        IdleSessionTimeout = 123
                    },
                    TokenBasedTrigger = new TokenBasedTriggerInputProperty {
                        TokenCount = 123
                    }
                } }
            },
            SemanticOverride = new SemanticOverrideProperty {
                Consolidation = new SemanticOverrideConsolidationConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId"
                },
                Extraction = new SemanticOverrideExtractionConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId"
                }
            },
            SummaryOverride = new SummaryOverrideProperty {
                Consolidation = new SummaryOverrideConsolidationConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId"
                }
            },
            UserPreferenceOverride = new UserPreferenceOverrideProperty {
                Consolidation = new UserPreferenceOverrideConsolidationConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId"
                },
                Extraction = new UserPreferenceOverrideExtractionConfigurationInputProperty {
                    AppendToPrompt = "appendToPrompt",
                    ModelId = "modelId"
                }
            }
        },
        CreatedAt = "createdAt",
        Description = "description",
        MemoryRecordSchema = new MemoryRecordSchemaProperty {
            MetadataSchema = new [] { new MetadataSchemaEntryProperty {
                Key = "key",

                // the properties below are optional
                ExtractionConfig = new ExtractionConfigProperty {
                    LlmExtractionConfig = new LlmExtractionConfigProperty {
                        Definition = "definition",

                        // the properties below are optional
                        LlmExtractionInstruction = "llmExtractionInstruction",
                        Validation = new ValidationProperty {
                            NumberValidation = new NumberValidationProperty {
                                MaxValue = 123,
                                MinValue = 123
                            },
                            StringListValidation = new StringListValidationProperty {
                                AllowedValues = new [] { "allowedValues" },
                                MaxItems = 123
                            },
                            StringValidation = new StringValidationProperty {
                                AllowedValues = new [] { "allowedValues" }
                            }
                        }
                    }
                },
                ExtractionType = "extractionType",
                Type = "type"
            } }
        },
        Namespaces = new [] { "namespaces" },
        NamespaceTemplates = new [] { "namespaceTemplates" },
        RecordExpiryDurationDays = 123,
        RecordExpirySpecification = new RecordExpirySpecificationProperty {
            RecordExpiryDurationDays = 123
        },
        Status = "status",
        StrategyId = "strategyId",
        Type = "type",
        UpdatedAt = "updatedAt"
    },
    EpisodicMemoryStrategy = new EpisodicMemoryStrategyProperty {
        Name = "name",

        // the properties below are optional
        CreatedAt = "createdAt",
        Description = "description",
        MemoryRecordSchema = new MemoryRecordSchemaProperty {
            MetadataSchema = new [] { new MetadataSchemaEntryProperty {
                Key = "key",

                // the properties below are optional
                ExtractionConfig = new ExtractionConfigProperty {
                    LlmExtractionConfig = new LlmExtractionConfigProperty {
                        Definition = "definition",

                        // the properties below are optional
                        LlmExtractionInstruction = "llmExtractionInstruction",
                        Validation = new ValidationProperty {
                            NumberValidation = new NumberValidationProperty {
                                MaxValue = 123,
                                MinValue = 123
                            },
                            StringListValidation = new StringListValidationProperty {
                                AllowedValues = new [] { "allowedValues" },
                                MaxItems = 123
                            },
                            StringValidation = new StringValidationProperty {
                                AllowedValues = new [] { "allowedValues" }
                            }
                        }
                    }
                },
                ExtractionType = "extractionType",
                Type = "type"
            } }
        },
        Namespaces = new [] { "namespaces" },
        NamespaceTemplates = new [] { "namespaceTemplates" },
        RecordExpiryDurationDays = 123,
        RecordExpirySpecification = new RecordExpirySpecificationProperty {
            RecordExpiryDurationDays = 123
        },
        ReflectionConfiguration = new EpisodicReflectionConfigurationInputProperty {
            MemoryRecordSchema = new MemoryRecordSchemaProperty {
                MetadataSchema = new [] { new MetadataSchemaEntryProperty {
                    Key = "key",

                    // the properties below are optional
                    ExtractionConfig = new ExtractionConfigProperty {
                        LlmExtractionConfig = new LlmExtractionConfigProperty {
                            Definition = "definition",

                            // the properties below are optional
                            LlmExtractionInstruction = "llmExtractionInstruction",
                            Validation = new ValidationProperty {
                                NumberValidation = new NumberValidationProperty {
                                    MaxValue = 123,
                                    MinValue = 123
                                },
                                StringListValidation = new StringListValidationProperty {
                                    AllowedValues = new [] { "allowedValues" },
                                    MaxItems = 123
                                },
                                StringValidation = new StringValidationProperty {
                                    AllowedValues = new [] { "allowedValues" }
                                }
                            }
                        }
                    },
                    ExtractionType = "extractionType",
                    Type = "type"
                } }
            },
            Namespaces = new [] { "namespaces" },
            NamespaceTemplates = new [] { "namespaceTemplates" }
        },
        Status = "status",
        StrategyId = "strategyId",
        Type = "type",
        UpdatedAt = "updatedAt"
    },
    SemanticMemoryStrategy = new SemanticMemoryStrategyProperty {
        Name = "name",

        // the properties below are optional
        CreatedAt = "createdAt",
        Description = "description",
        MemoryRecordSchema = new MemoryRecordSchemaProperty {
            MetadataSchema = new [] { new MetadataSchemaEntryProperty {
                Key = "key",

                // the properties below are optional
                ExtractionConfig = new ExtractionConfigProperty {
                    LlmExtractionConfig = new LlmExtractionConfigProperty {
                        Definition = "definition",

                        // the properties below are optional
                        LlmExtractionInstruction = "llmExtractionInstruction",
                        Validation = new ValidationProperty {
                            NumberValidation = new NumberValidationProperty {
                                MaxValue = 123,
                                MinValue = 123
                            },
                            StringListValidation = new StringListValidationProperty {
                                AllowedValues = new [] { "allowedValues" },
                                MaxItems = 123
                            },
                            StringValidation = new StringValidationProperty {
                                AllowedValues = new [] { "allowedValues" }
                            }
                        }
                    }
                },
                ExtractionType = "extractionType",
                Type = "type"
            } }
        },
        Namespaces = new [] { "namespaces" },
        NamespaceTemplates = new [] { "namespaceTemplates" },
        RecordExpiryDurationDays = 123,
        RecordExpirySpecification = new RecordExpirySpecificationProperty {
            RecordExpiryDurationDays = 123
        },
        Status = "status",
        StrategyId = "strategyId",
        Type = "type",
        UpdatedAt = "updatedAt"
    },
    SummaryMemoryStrategy = new SummaryMemoryStrategyProperty {
        Name = "name",

        // the properties below are optional
        CreatedAt = "createdAt",
        Description = "description",
        MemoryRecordSchema = new MemoryRecordSchemaProperty {
            MetadataSchema = new [] { new MetadataSchemaEntryProperty {
                Key = "key",

                // the properties below are optional
                ExtractionConfig = new ExtractionConfigProperty {
                    LlmExtractionConfig = new LlmExtractionConfigProperty {
                        Definition = "definition",

                        // the properties below are optional
                        LlmExtractionInstruction = "llmExtractionInstruction",
                        Validation = new ValidationProperty {
                            NumberValidation = new NumberValidationProperty {
                                MaxValue = 123,
                                MinValue = 123
                            },
                            StringListValidation = new StringListValidationProperty {
                                AllowedValues = new [] { "allowedValues" },
                                MaxItems = 123
                            },
                            StringValidation = new StringValidationProperty {
                                AllowedValues = new [] { "allowedValues" }
                            }
                        }
                    }
                },
                ExtractionType = "extractionType",
                Type = "type"
            } }
        },
        Namespaces = new [] { "namespaces" },
        NamespaceTemplates = new [] { "namespaceTemplates" },
        RecordExpiryDurationDays = 123,
        RecordExpirySpecification = new RecordExpirySpecificationProperty {
            RecordExpiryDurationDays = 123
        },
        Status = "status",
        StrategyId = "strategyId",
        Type = "type",
        UpdatedAt = "updatedAt"
    },
    UserPreferenceMemoryStrategy = new UserPreferenceMemoryStrategyProperty {
        Name = "name",

        // the properties below are optional
        CreatedAt = "createdAt",
        Description = "description",
        MemoryRecordSchema = new MemoryRecordSchemaProperty {
            MetadataSchema = new [] { new MetadataSchemaEntryProperty {
                Key = "key",

                // the properties below are optional
                ExtractionConfig = new ExtractionConfigProperty {
                    LlmExtractionConfig = new LlmExtractionConfigProperty {
                        Definition = "definition",

                        // the properties below are optional
                        LlmExtractionInstruction = "llmExtractionInstruction",
                        Validation = new ValidationProperty {
                            NumberValidation = new NumberValidationProperty {
                                MaxValue = 123,
                                MinValue = 123
                            },
                            StringListValidation = new StringListValidationProperty {
                                AllowedValues = new [] { "allowedValues" },
                                MaxItems = 123
                            },
                            StringValidation = new StringValidationProperty {
                                AllowedValues = new [] { "allowedValues" }
                            }
                        }
                    }
                },
                ExtractionType = "extractionType",
                Type = "type"
            } }
        },
        Namespaces = new [] { "namespaces" },
        NamespaceTemplates = new [] { "namespaceTemplates" },
        RecordExpiryDurationDays = 123,
        RecordExpirySpecification = new RecordExpirySpecificationProperty {
            RecordExpiryDurationDays = 123
        },
        Status = "status",
        StrategyId = "strategyId",
        Type = "type",
        UpdatedAt = "updatedAt"
    }
};
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"

memoryStrategyProperty := &MemoryStrategyProperty{
	CustomMemoryStrategy: &CustomMemoryStrategyProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		Configuration: &CustomConfigurationInputProperty{
			EpisodicOverride: &EpisodicOverrideProperty{
				Consolidation: &EpisodicOverrideConsolidationConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),
				},
				Extraction: &EpisodicOverrideExtractionConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),
				},
				Reflection: &EpisodicOverrideReflectionConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),

					// the properties below are optional
					MemoryRecordSchema: &MemoryRecordSchemaProperty{
						MetadataSchema: []interface{}{
							&MetadataSchemaEntryProperty{
								Key: jsii.String("key"),

								// the properties below are optional
								ExtractionConfig: &ExtractionConfigProperty{
									LlmExtractionConfig: &LlmExtractionConfigProperty{
										Definition: jsii.String("definition"),

										// the properties below are optional
										LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
										Validation: &ValidationProperty{
											NumberValidation: &NumberValidationProperty{
												MaxValue: jsii.Number(123),
												MinValue: jsii.Number(123),
											},
											StringListValidation: &StringListValidationProperty{
												AllowedValues: []*string{
													jsii.String("allowedValues"),
												},
												MaxItems: jsii.Number(123),
											},
											StringValidation: &StringValidationProperty{
												AllowedValues: []*string{
													jsii.String("allowedValues"),
												},
											},
										},
									},
								},
								ExtractionType: jsii.String("extractionType"),
								Type: jsii.String("type"),
							},
						},
					},
					Namespaces: []*string{
						jsii.String("namespaces"),
					},
					NamespaceTemplates: []*string{
						jsii.String("namespaceTemplates"),
					},
				},
			},
			SelfManagedConfiguration: &SelfManagedConfigurationProperty{
				HistoricalContextWindowSize: jsii.Number(123),
				InvocationConfiguration: &InvocationConfigurationInputProperty{
					PayloadDeliveryBucketName: jsii.String("payloadDeliveryBucketName"),
					TopicArn: jsii.String("topicArn"),
				},
				TriggerConditions: []interface{}{
					&TriggerConditionInputProperty{
						MessageBasedTrigger: &MessageBasedTriggerInputProperty{
							MessageCount: jsii.Number(123),
						},
						TimeBasedTrigger: &TimeBasedTriggerInputProperty{
							IdleSessionTimeout: jsii.Number(123),
						},
						TokenBasedTrigger: &TokenBasedTriggerInputProperty{
							TokenCount: jsii.Number(123),
						},
					},
				},
			},
			SemanticOverride: &SemanticOverrideProperty{
				Consolidation: &SemanticOverrideConsolidationConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),
				},
				Extraction: &SemanticOverrideExtractionConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),
				},
			},
			SummaryOverride: &SummaryOverrideProperty{
				Consolidation: &SummaryOverrideConsolidationConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),
				},
			},
			UserPreferenceOverride: &UserPreferenceOverrideProperty{
				Consolidation: &UserPreferenceOverrideConsolidationConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),
				},
				Extraction: &UserPreferenceOverrideExtractionConfigurationInputProperty{
					AppendToPrompt: jsii.String("appendToPrompt"),
					ModelId: jsii.String("modelId"),
				},
			},
		},
		CreatedAt: jsii.String("createdAt"),
		Description: jsii.String("description"),
		MemoryRecordSchema: &MemoryRecordSchemaProperty{
			MetadataSchema: []interface{}{
				&MetadataSchemaEntryProperty{
					Key: jsii.String("key"),

					// the properties below are optional
					ExtractionConfig: &ExtractionConfigProperty{
						LlmExtractionConfig: &LlmExtractionConfigProperty{
							Definition: jsii.String("definition"),

							// the properties below are optional
							LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
							Validation: &ValidationProperty{
								NumberValidation: &NumberValidationProperty{
									MaxValue: jsii.Number(123),
									MinValue: jsii.Number(123),
								},
								StringListValidation: &StringListValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
									MaxItems: jsii.Number(123),
								},
								StringValidation: &StringValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
								},
							},
						},
					},
					ExtractionType: jsii.String("extractionType"),
					Type: jsii.String("type"),
				},
			},
		},
		Namespaces: []*string{
			jsii.String("namespaces"),
		},
		NamespaceTemplates: []*string{
			jsii.String("namespaceTemplates"),
		},
		RecordExpiryDurationDays: jsii.Number(123),
		RecordExpirySpecification: &RecordExpirySpecificationProperty{
			RecordExpiryDurationDays: jsii.Number(123),
		},
		Status: jsii.String("status"),
		StrategyId: jsii.String("strategyId"),
		Type: jsii.String("type"),
		UpdatedAt: jsii.String("updatedAt"),
	},
	EpisodicMemoryStrategy: &EpisodicMemoryStrategyProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		CreatedAt: jsii.String("createdAt"),
		Description: jsii.String("description"),
		MemoryRecordSchema: &MemoryRecordSchemaProperty{
			MetadataSchema: []interface{}{
				&MetadataSchemaEntryProperty{
					Key: jsii.String("key"),

					// the properties below are optional
					ExtractionConfig: &ExtractionConfigProperty{
						LlmExtractionConfig: &LlmExtractionConfigProperty{
							Definition: jsii.String("definition"),

							// the properties below are optional
							LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
							Validation: &ValidationProperty{
								NumberValidation: &NumberValidationProperty{
									MaxValue: jsii.Number(123),
									MinValue: jsii.Number(123),
								},
								StringListValidation: &StringListValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
									MaxItems: jsii.Number(123),
								},
								StringValidation: &StringValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
								},
							},
						},
					},
					ExtractionType: jsii.String("extractionType"),
					Type: jsii.String("type"),
				},
			},
		},
		Namespaces: []*string{
			jsii.String("namespaces"),
		},
		NamespaceTemplates: []*string{
			jsii.String("namespaceTemplates"),
		},
		RecordExpiryDurationDays: jsii.Number(123),
		RecordExpirySpecification: &RecordExpirySpecificationProperty{
			RecordExpiryDurationDays: jsii.Number(123),
		},
		ReflectionConfiguration: &EpisodicReflectionConfigurationInputProperty{
			MemoryRecordSchema: &MemoryRecordSchemaProperty{
				MetadataSchema: []interface{}{
					&MetadataSchemaEntryProperty{
						Key: jsii.String("key"),

						// the properties below are optional
						ExtractionConfig: &ExtractionConfigProperty{
							LlmExtractionConfig: &LlmExtractionConfigProperty{
								Definition: jsii.String("definition"),

								// the properties below are optional
								LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
								Validation: &ValidationProperty{
									NumberValidation: &NumberValidationProperty{
										MaxValue: jsii.Number(123),
										MinValue: jsii.Number(123),
									},
									StringListValidation: &StringListValidationProperty{
										AllowedValues: []*string{
											jsii.String("allowedValues"),
										},
										MaxItems: jsii.Number(123),
									},
									StringValidation: &StringValidationProperty{
										AllowedValues: []*string{
											jsii.String("allowedValues"),
										},
									},
								},
							},
						},
						ExtractionType: jsii.String("extractionType"),
						Type: jsii.String("type"),
					},
				},
			},
			Namespaces: []*string{
				jsii.String("namespaces"),
			},
			NamespaceTemplates: []*string{
				jsii.String("namespaceTemplates"),
			},
		},
		Status: jsii.String("status"),
		StrategyId: jsii.String("strategyId"),
		Type: jsii.String("type"),
		UpdatedAt: jsii.String("updatedAt"),
	},
	SemanticMemoryStrategy: &SemanticMemoryStrategyProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		CreatedAt: jsii.String("createdAt"),
		Description: jsii.String("description"),
		MemoryRecordSchema: &MemoryRecordSchemaProperty{
			MetadataSchema: []interface{}{
				&MetadataSchemaEntryProperty{
					Key: jsii.String("key"),

					// the properties below are optional
					ExtractionConfig: &ExtractionConfigProperty{
						LlmExtractionConfig: &LlmExtractionConfigProperty{
							Definition: jsii.String("definition"),

							// the properties below are optional
							LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
							Validation: &ValidationProperty{
								NumberValidation: &NumberValidationProperty{
									MaxValue: jsii.Number(123),
									MinValue: jsii.Number(123),
								},
								StringListValidation: &StringListValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
									MaxItems: jsii.Number(123),
								},
								StringValidation: &StringValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
								},
							},
						},
					},
					ExtractionType: jsii.String("extractionType"),
					Type: jsii.String("type"),
				},
			},
		},
		Namespaces: []*string{
			jsii.String("namespaces"),
		},
		NamespaceTemplates: []*string{
			jsii.String("namespaceTemplates"),
		},
		RecordExpiryDurationDays: jsii.Number(123),
		RecordExpirySpecification: &RecordExpirySpecificationProperty{
			RecordExpiryDurationDays: jsii.Number(123),
		},
		Status: jsii.String("status"),
		StrategyId: jsii.String("strategyId"),
		Type: jsii.String("type"),
		UpdatedAt: jsii.String("updatedAt"),
	},
	SummaryMemoryStrategy: &SummaryMemoryStrategyProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		CreatedAt: jsii.String("createdAt"),
		Description: jsii.String("description"),
		MemoryRecordSchema: &MemoryRecordSchemaProperty{
			MetadataSchema: []interface{}{
				&MetadataSchemaEntryProperty{
					Key: jsii.String("key"),

					// the properties below are optional
					ExtractionConfig: &ExtractionConfigProperty{
						LlmExtractionConfig: &LlmExtractionConfigProperty{
							Definition: jsii.String("definition"),

							// the properties below are optional
							LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
							Validation: &ValidationProperty{
								NumberValidation: &NumberValidationProperty{
									MaxValue: jsii.Number(123),
									MinValue: jsii.Number(123),
								},
								StringListValidation: &StringListValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
									MaxItems: jsii.Number(123),
								},
								StringValidation: &StringValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
								},
							},
						},
					},
					ExtractionType: jsii.String("extractionType"),
					Type: jsii.String("type"),
				},
			},
		},
		Namespaces: []*string{
			jsii.String("namespaces"),
		},
		NamespaceTemplates: []*string{
			jsii.String("namespaceTemplates"),
		},
		RecordExpiryDurationDays: jsii.Number(123),
		RecordExpirySpecification: &RecordExpirySpecificationProperty{
			RecordExpiryDurationDays: jsii.Number(123),
		},
		Status: jsii.String("status"),
		StrategyId: jsii.String("strategyId"),
		Type: jsii.String("type"),
		UpdatedAt: jsii.String("updatedAt"),
	},
	UserPreferenceMemoryStrategy: &UserPreferenceMemoryStrategyProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		CreatedAt: jsii.String("createdAt"),
		Description: jsii.String("description"),
		MemoryRecordSchema: &MemoryRecordSchemaProperty{
			MetadataSchema: []interface{}{
				&MetadataSchemaEntryProperty{
					Key: jsii.String("key"),

					// the properties below are optional
					ExtractionConfig: &ExtractionConfigProperty{
						LlmExtractionConfig: &LlmExtractionConfigProperty{
							Definition: jsii.String("definition"),

							// the properties below are optional
							LlmExtractionInstruction: jsii.String("llmExtractionInstruction"),
							Validation: &ValidationProperty{
								NumberValidation: &NumberValidationProperty{
									MaxValue: jsii.Number(123),
									MinValue: jsii.Number(123),
								},
								StringListValidation: &StringListValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
									MaxItems: jsii.Number(123),
								},
								StringValidation: &StringValidationProperty{
									AllowedValues: []*string{
										jsii.String("allowedValues"),
									},
								},
							},
						},
					},
					ExtractionType: jsii.String("extractionType"),
					Type: jsii.String("type"),
				},
			},
		},
		Namespaces: []*string{
			jsii.String("namespaces"),
		},
		NamespaceTemplates: []*string{
			jsii.String("namespaceTemplates"),
		},
		RecordExpiryDurationDays: jsii.Number(123),
		RecordExpirySpecification: &RecordExpirySpecificationProperty{
			RecordExpiryDurationDays: jsii.Number(123),
		},
		Status: jsii.String("status"),
		StrategyId: jsii.String("strategyId"),
		Type: jsii.String("type"),
		UpdatedAt: jsii.String("updatedAt"),
	},
}

Properties ​

customMemoryStrategyoptionalIResolvable | CfnMemory.CustomMemoryStrategyPropertycustom_memory_strategyoptionaltyping.Union[IResolvable, CustomMemoryStrategyProperty]customMemoryStrategyoptionalIResolvableCustomMemoryStrategyoptionalIResolvableCustomMemoryStrategyoptionalinterface{} #
The memory strategy.
episodicMemoryStrategyoptionalIResolvable | CfnMemory.EpisodicMemoryStrategyPropertyepisodic_memory_strategyoptionaltyping.Union[IResolvable, EpisodicMemoryStrategyProperty]episodicMemoryStrategyoptionalIResolvableEpisodicMemoryStrategyoptionalIResolvableEpisodicMemoryStrategyoptionalinterface{} #
semanticMemoryStrategyoptionalIResolvable | CfnMemory.SemanticMemoryStrategyPropertysemantic_memory_strategyoptionaltyping.Union[IResolvable, SemanticMemoryStrategyProperty]semanticMemoryStrategyoptionalIResolvableSemanticMemoryStrategyoptionalIResolvableSemanticMemoryStrategyoptionalinterface{} #
The memory strategy.
summaryMemoryStrategyoptionalIResolvable | CfnMemory.SummaryMemoryStrategyPropertysummary_memory_strategyoptionaltyping.Union[IResolvable, SummaryMemoryStrategyProperty]summaryMemoryStrategyoptionalIResolvableSummaryMemoryStrategyoptionalIResolvableSummaryMemoryStrategyoptionalinterface{} #
The memory strategy summary.
userPreferenceMemoryStrategyoptionalIResolvable | CfnMemory.UserPreferenceMemoryStrategyPropertyuser_preference_memory_strategyoptionaltyping.Union[IResolvable, UserPreferenceMemoryStrategyProperty]userPreferenceMemoryStrategyoptionalIResolvableUserPreferenceMemoryStrategyoptionalIResolvableUserPreferenceMemoryStrategyoptionalinterface{} #
The memory strategy.