Skip to content
v2.278.0

CfnMemoryProps Struct ​

Properties for defining a CfnMemory.

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 cfnMemoryProps: bedrockagentcore.CfnMemoryProps = {
  eventExpiryDuration: 123,
  name: 'name',

  // the properties below are optional
  description: 'description',
  encryptionKeyArn: 'encryptionKeyArn',
  indexedKeys: [{
    key: 'key',
    type: 'type',
  }],
  memoryExecutionRoleArn: 'memoryExecutionRoleArn',
  memoryStrategies: [{
    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',
    },
  }],
  namespaceKeys: [{
    key: 'key',

    // the properties below are optional
    validation: {
      allowedValues: ['allowedValues'],
      regexPattern: 'regexPattern',
    },
  }],
  streamDeliveryResources: {
    resources: [{
      kinesis: {
        contentConfigurations: [{
          type: 'type',

          // the properties below are optional
          level: 'level',
        }],
        dataStreamArn: 'dataStreamArn',
      },
    }],
  },
  tags: {
    tagsKey: 'tags',
  },
};
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

cfn_memory_props = bedrockagentcore.CfnMemoryProps(
    event_expiry_duration=123,
    name="name",

    # the properties below are optional
    description="description",
    encryption_key_arn="encryptionKeyArn",
    indexed_keys=[bedrockagentcore.CfnMemory.IndexedKeyProperty(
        key="key",
        type="type"
    )],
    memory_execution_role_arn="memoryExecutionRoleArn",
    memory_strategies=[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"
        )
    )],
    namespace_keys=[bedrockagentcore.CfnMemory.NamespaceKeyEntryProperty(
        key="key",

        # the properties below are optional
        validation=bedrockagentcore.CfnMemory.NamespaceKeyValidationProperty(
            allowed_values=["allowedValues"],
            regex_pattern="regexPattern"
        )
    )],
    stream_delivery_resources=bedrockagentcore.CfnMemory.StreamDeliveryResourcesProperty(
        resources=[bedrockagentcore.CfnMemory.StreamDeliveryResourceProperty(
            kinesis=bedrockagentcore.CfnMemory.KinesisResourceProperty(
                content_configurations=[bedrockagentcore.CfnMemory.ContentConfigurationProperty(
                    type="type",

                    # the properties below are optional
                    level="level"
                )],
                data_stream_arn="dataStreamArn"
            )
        )]
    ),
    tags={
        "tags_key": "tags"
    }
)
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.*;

CfnMemoryProps cfnMemoryProps = CfnMemoryProps.builder()
        .eventExpiryDuration(123)
        .name("name")

        // the properties below are optional
        .description("description")
        .encryptionKeyArn("encryptionKeyArn")
        .indexedKeys(List.of(IndexedKeyProperty.builder()
                .key("key")
                .type("type")
                .build()))
        .memoryExecutionRoleArn("memoryExecutionRoleArn")
        .memoryStrategies(List.of(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()))
        .namespaceKeys(List.of(NamespaceKeyEntryProperty.builder()
                .key("key")

                // the properties below are optional
                .validation(NamespaceKeyValidationProperty.builder()
                        .allowedValues(List.of("allowedValues"))
                        .regexPattern("regexPattern")
                        .build())
                .build()))
        .streamDeliveryResources(StreamDeliveryResourcesProperty.builder()
                .resources(List.of(StreamDeliveryResourceProperty.builder()
                        .kinesis(KinesisResourceProperty.builder()
                                .contentConfigurations(List.of(ContentConfigurationProperty.builder()
                                        .type("type")

                                        // the properties below are optional
                                        .level("level")
                                        .build()))
                                .dataStreamArn("dataStreamArn")
                                .build())
                        .build()))
                .build())
        .tags(Map.of(
                "tagsKey", "tags"))
        .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 cfnMemoryProps = new CfnMemoryProps {
    EventExpiryDuration = 123,
    Name = "name",

    // the properties below are optional
    Description = "description",
    EncryptionKeyArn = "encryptionKeyArn",
    IndexedKeys = new [] { new IndexedKeyProperty {
        Key = "key",
        Type = "type"
    } },
    MemoryExecutionRoleArn = "memoryExecutionRoleArn",
    MemoryStrategies = new [] { 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"
        }
    } },
    NamespaceKeys = new [] { new NamespaceKeyEntryProperty {
        Key = "key",

        // the properties below are optional
        Validation = new NamespaceKeyValidationProperty {
            AllowedValues = new [] { "allowedValues" },
            RegexPattern = "regexPattern"
        }
    } },
    StreamDeliveryResources = new StreamDeliveryResourcesProperty {
        Resources = new [] { new StreamDeliveryResourceProperty {
            Kinesis = new KinesisResourceProperty {
                ContentConfigurations = new [] { new ContentConfigurationProperty {
                    Type = "type",

                    // the properties below are optional
                    Level = "level"
                } },
                DataStreamArn = "dataStreamArn"
            }
        } }
    },
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
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"

cfnMemoryProps := &CfnMemoryProps{
	EventExpiryDuration: jsii.Number(123),
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	EncryptionKeyArn: jsii.String("encryptionKeyArn"),
	IndexedKeys: []interface{}{
		&IndexedKeyProperty{
			Key: jsii.String("key"),
			Type: jsii.String("type"),
		},
	},
	MemoryExecutionRoleArn: jsii.String("memoryExecutionRoleArn"),
	MemoryStrategies: []interface{}{
		&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"),
			},
		},
	},
	NamespaceKeys: []interface{}{
		&NamespaceKeyEntryProperty{
			Key: jsii.String("key"),

			// the properties below are optional
			Validation: &NamespaceKeyValidationProperty{
				AllowedValues: []*string{
					jsii.String("allowedValues"),
				},
				RegexPattern: jsii.String("regexPattern"),
			},
		},
	},
	StreamDeliveryResources: &StreamDeliveryResourcesProperty{
		Resources: []interface{}{
			&StreamDeliveryResourceProperty{
				Kinesis: &KinesisResourceProperty{
					ContentConfigurations: []interface{}{
						&ContentConfigurationProperty{
							Type: jsii.String("type"),

							// the properties below are optional
							Level: jsii.String("level"),
						},
					},
					DataStreamArn: jsii.String("dataStreamArn"),
				},
			},
		},
	},
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
Description of the Memory resource.
encryptionKeyArnoptionalstringencryption_key_arnoptionalstrencryptionKeyArnoptionalStringEncryptionKeyArnoptionalstringEncryptionKeyArnoptional*string #
The memory encryption key Amazon Resource Name (ARN).
eventExpiryDurationnumberevent_expiry_durationint | floateventExpiryDurationNumberEventExpiryDurationdoubleEventExpiryDuration*float64 required #
The event expiry configuration.
indexedKeysoptionalIResolvable | IResolvable | CfnMemory.IndexedKeyProperty[]indexed_keysoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IndexedKeyProperty]]]indexedKeysoptionalIResolvableIndexedKeysoptionalIResolvableIndexedKeysoptionalinterface{} #
List of indexed keys for the memory.
memoryExecutionRoleArnoptionalstringmemory_execution_role_arnoptionalstrmemoryExecutionRoleArnoptionalStringMemoryExecutionRoleArnoptionalstringMemoryExecutionRoleArnoptional*string #
The memory role ARN.
memoryStrategiesoptionalIResolvable | IResolvable | CfnMemory.MemoryStrategyProperty[]memory_strategiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MemoryStrategyProperty]]]memoryStrategiesoptionalIResolvableMemoryStrategiesoptionalIResolvableMemoryStrategiesoptionalinterface{} #
The memory strategies.
namestringnamestrnameStringNamestringName*string required #
The memory name.
namespaceKeysoptionalIResolvable | IResolvable | CfnMemory.NamespaceKeyEntryProperty[]namespace_keysoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NamespaceKeyEntryProperty]]]namespaceKeysoptionalIResolvableNamespaceKeysoptionalIResolvableNamespaceKeysoptionalinterface{} #
List of namespace variable key definitions for a memory resource.
streamDeliveryResourcesoptionalIResolvable | CfnMemory.StreamDeliveryResourcesPropertystream_delivery_resourcesoptionaltyping.Union[IResolvable, StreamDeliveryResourcesProperty]streamDeliveryResourcesoptionalIResolvableStreamDeliveryResourcesoptionalIResolvableStreamDeliveryResourcesoptionalinterface{} #
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
The tags for the resources.