CfnMemoryMixinProps

class aws_cdk.cfn_property_mixins.aws_bedrockagentcore.CfnMemoryMixinProps(*, description=None, encryption_key_arn=None, event_expiry_duration=None, indexed_keys=None, memory_execution_role_arn=None, memory_strategies=None, name=None, stream_delivery_resources=None, tags=None)

Bases: object

Properties for CfnMemoryPropsMixin.

Parameters:
  • description (Optional[str]) – Description of the Memory resource.

  • encryption_key_arn (Optional[str]) – The memory encryption key Amazon Resource Name (ARN).

  • event_expiry_duration (Union[int, float, None]) – The event expiry configuration.

  • indexed_keys (Union[IResolvable, Sequence[Union[IResolvable, IndexedKeyProperty, Dict[str, Any]]], None]) – List of indexed keys for the memory.

  • memory_execution_role_arn (Optional[str]) – The memory role ARN.

  • memory_strategies (Union[IResolvable, Sequence[Union[IResolvable, MemoryStrategyProperty, Dict[str, Any]]], None]) – The memory strategies.

  • name (Optional[str]) – The memory name.

  • stream_delivery_resources (Union[IResolvable, StreamDeliveryResourcesProperty, Dict[str, Any], None])

  • tags (Optional[Mapping[str, str]]) – The tags for the resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore

cfn_memory_mixin_props = bedrockagentcore.CfnMemoryMixinProps(
    description="description",
    encryption_key_arn="encryptionKeyArn",
    event_expiry_duration=123,
    indexed_keys=[bedrockagentcore.CfnMemoryPropsMixin.IndexedKeyProperty(
        key="key",
        type="type"
    )],
    memory_execution_role_arn="memoryExecutionRoleArn",
    memory_strategies=[bedrockagentcore.CfnMemoryPropsMixin.MemoryStrategyProperty(
        custom_memory_strategy=bedrockagentcore.CfnMemoryPropsMixin.CustomMemoryStrategyProperty(
            configuration=bedrockagentcore.CfnMemoryPropsMixin.CustomConfigurationInputProperty(
                episodic_override=bedrockagentcore.CfnMemoryPropsMixin.EpisodicOverrideProperty(
                    consolidation=bedrockagentcore.CfnMemoryPropsMixin.EpisodicOverrideConsolidationConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    ),
                    extraction=bedrockagentcore.CfnMemoryPropsMixin.EpisodicOverrideExtractionConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    ),
                    reflection=bedrockagentcore.CfnMemoryPropsMixin.EpisodicOverrideReflectionConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        memory_record_schema=bedrockagentcore.CfnMemoryPropsMixin.MemoryRecordSchemaProperty(
                            metadata_schema=[bedrockagentcore.CfnMemoryPropsMixin.MetadataSchemaEntryProperty(
                                extraction_config=bedrockagentcore.CfnMemoryPropsMixin.ExtractionConfigProperty(
                                    llm_extraction_config=bedrockagentcore.CfnMemoryPropsMixin.LlmExtractionConfigProperty(
                                        definition="definition",
                                        llm_extraction_instruction="llmExtractionInstruction",
                                        validation=bedrockagentcore.CfnMemoryPropsMixin.ValidationProperty(
                                            number_validation=bedrockagentcore.CfnMemoryPropsMixin.NumberValidationProperty(
                                                max_value=123,
                                                min_value=123
                                            ),
                                            string_list_validation=bedrockagentcore.CfnMemoryPropsMixin.StringListValidationProperty(
                                                allowed_values=["allowedValues"],
                                                max_items=123
                                            ),
                                            string_validation=bedrockagentcore.CfnMemoryPropsMixin.StringValidationProperty(
                                                allowed_values=["allowedValues"]
                                            )
                                        )
                                    )
                                ),
                                key="key",
                                type="type"
                            )]
                        ),
                        model_id="modelId",
                        namespaces=["namespaces"],
                        namespace_templates=["namespaceTemplates"]
                    )
                ),
                self_managed_configuration=bedrockagentcore.CfnMemoryPropsMixin.SelfManagedConfigurationProperty(
                    historical_context_window_size=123,
                    invocation_configuration=bedrockagentcore.CfnMemoryPropsMixin.InvocationConfigurationInputProperty(
                        payload_delivery_bucket_name="payloadDeliveryBucketName",
                        topic_arn="topicArn"
                    ),
                    trigger_conditions=[bedrockagentcore.CfnMemoryPropsMixin.TriggerConditionInputProperty(
                        message_based_trigger=bedrockagentcore.CfnMemoryPropsMixin.MessageBasedTriggerInputProperty(
                            message_count=123
                        ),
                        time_based_trigger=bedrockagentcore.CfnMemoryPropsMixin.TimeBasedTriggerInputProperty(
                            idle_session_timeout=123
                        ),
                        token_based_trigger=bedrockagentcore.CfnMemoryPropsMixin.TokenBasedTriggerInputProperty(
                            token_count=123
                        )
                    )]
                ),
                semantic_override=bedrockagentcore.CfnMemoryPropsMixin.SemanticOverrideProperty(
                    consolidation=bedrockagentcore.CfnMemoryPropsMixin.SemanticOverrideConsolidationConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    ),
                    extraction=bedrockagentcore.CfnMemoryPropsMixin.SemanticOverrideExtractionConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    )
                ),
                summary_override=bedrockagentcore.CfnMemoryPropsMixin.SummaryOverrideProperty(
                    consolidation=bedrockagentcore.CfnMemoryPropsMixin.SummaryOverrideConsolidationConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    )
                ),
                user_preference_override=bedrockagentcore.CfnMemoryPropsMixin.UserPreferenceOverrideProperty(
                    consolidation=bedrockagentcore.CfnMemoryPropsMixin.UserPreferenceOverrideConsolidationConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    ),
                    extraction=bedrockagentcore.CfnMemoryPropsMixin.UserPreferenceOverrideExtractionConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    )
                )
            ),
            created_at="createdAt",
            description="description",
            memory_record_schema=bedrockagentcore.CfnMemoryPropsMixin.MemoryRecordSchemaProperty(
                metadata_schema=[bedrockagentcore.CfnMemoryPropsMixin.MetadataSchemaEntryProperty(
                    extraction_config=bedrockagentcore.CfnMemoryPropsMixin.ExtractionConfigProperty(
                        llm_extraction_config=bedrockagentcore.CfnMemoryPropsMixin.LlmExtractionConfigProperty(
                            definition="definition",
                            llm_extraction_instruction="llmExtractionInstruction",
                            validation=bedrockagentcore.CfnMemoryPropsMixin.ValidationProperty(
                                number_validation=bedrockagentcore.CfnMemoryPropsMixin.NumberValidationProperty(
                                    max_value=123,
                                    min_value=123
                                ),
                                string_list_validation=bedrockagentcore.CfnMemoryPropsMixin.StringListValidationProperty(
                                    allowed_values=["allowedValues"],
                                    max_items=123
                                ),
                                string_validation=bedrockagentcore.CfnMemoryPropsMixin.StringValidationProperty(
                                    allowed_values=["allowedValues"]
                                )
                            )
                        )
                    ),
                    key="key",
                    type="type"
                )]
            ),
            name="name",
            namespaces=["namespaces"],
            namespace_templates=["namespaceTemplates"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        ),
        episodic_memory_strategy=bedrockagentcore.CfnMemoryPropsMixin.EpisodicMemoryStrategyProperty(
            created_at="createdAt",
            description="description",
            memory_record_schema=bedrockagentcore.CfnMemoryPropsMixin.MemoryRecordSchemaProperty(
                metadata_schema=[bedrockagentcore.CfnMemoryPropsMixin.MetadataSchemaEntryProperty(
                    extraction_config=bedrockagentcore.CfnMemoryPropsMixin.ExtractionConfigProperty(
                        llm_extraction_config=bedrockagentcore.CfnMemoryPropsMixin.LlmExtractionConfigProperty(
                            definition="definition",
                            llm_extraction_instruction="llmExtractionInstruction",
                            validation=bedrockagentcore.CfnMemoryPropsMixin.ValidationProperty(
                                number_validation=bedrockagentcore.CfnMemoryPropsMixin.NumberValidationProperty(
                                    max_value=123,
                                    min_value=123
                                ),
                                string_list_validation=bedrockagentcore.CfnMemoryPropsMixin.StringListValidationProperty(
                                    allowed_values=["allowedValues"],
                                    max_items=123
                                ),
                                string_validation=bedrockagentcore.CfnMemoryPropsMixin.StringValidationProperty(
                                    allowed_values=["allowedValues"]
                                )
                            )
                        )
                    ),
                    key="key",
                    type="type"
                )]
            ),
            name="name",
            namespaces=["namespaces"],
            namespace_templates=["namespaceTemplates"],
            reflection_configuration=bedrockagentcore.CfnMemoryPropsMixin.EpisodicReflectionConfigurationInputProperty(
                memory_record_schema=bedrockagentcore.CfnMemoryPropsMixin.MemoryRecordSchemaProperty(
                    metadata_schema=[bedrockagentcore.CfnMemoryPropsMixin.MetadataSchemaEntryProperty(
                        extraction_config=bedrockagentcore.CfnMemoryPropsMixin.ExtractionConfigProperty(
                            llm_extraction_config=bedrockagentcore.CfnMemoryPropsMixin.LlmExtractionConfigProperty(
                                definition="definition",
                                llm_extraction_instruction="llmExtractionInstruction",
                                validation=bedrockagentcore.CfnMemoryPropsMixin.ValidationProperty(
                                    number_validation=bedrockagentcore.CfnMemoryPropsMixin.NumberValidationProperty(
                                        max_value=123,
                                        min_value=123
                                    ),
                                    string_list_validation=bedrockagentcore.CfnMemoryPropsMixin.StringListValidationProperty(
                                        allowed_values=["allowedValues"],
                                        max_items=123
                                    ),
                                    string_validation=bedrockagentcore.CfnMemoryPropsMixin.StringValidationProperty(
                                        allowed_values=["allowedValues"]
                                    )
                                )
                            )
                        ),
                        key="key",
                        type="type"
                    )]
                ),
                namespaces=["namespaces"],
                namespace_templates=["namespaceTemplates"]
            ),
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        ),
        semantic_memory_strategy=bedrockagentcore.CfnMemoryPropsMixin.SemanticMemoryStrategyProperty(
            created_at="createdAt",
            description="description",
            memory_record_schema=bedrockagentcore.CfnMemoryPropsMixin.MemoryRecordSchemaProperty(
                metadata_schema=[bedrockagentcore.CfnMemoryPropsMixin.MetadataSchemaEntryProperty(
                    extraction_config=bedrockagentcore.CfnMemoryPropsMixin.ExtractionConfigProperty(
                        llm_extraction_config=bedrockagentcore.CfnMemoryPropsMixin.LlmExtractionConfigProperty(
                            definition="definition",
                            llm_extraction_instruction="llmExtractionInstruction",
                            validation=bedrockagentcore.CfnMemoryPropsMixin.ValidationProperty(
                                number_validation=bedrockagentcore.CfnMemoryPropsMixin.NumberValidationProperty(
                                    max_value=123,
                                    min_value=123
                                ),
                                string_list_validation=bedrockagentcore.CfnMemoryPropsMixin.StringListValidationProperty(
                                    allowed_values=["allowedValues"],
                                    max_items=123
                                ),
                                string_validation=bedrockagentcore.CfnMemoryPropsMixin.StringValidationProperty(
                                    allowed_values=["allowedValues"]
                                )
                            )
                        )
                    ),
                    key="key",
                    type="type"
                )]
            ),
            name="name",
            namespaces=["namespaces"],
            namespace_templates=["namespaceTemplates"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        ),
        summary_memory_strategy=bedrockagentcore.CfnMemoryPropsMixin.SummaryMemoryStrategyProperty(
            created_at="createdAt",
            description="description",
            memory_record_schema=bedrockagentcore.CfnMemoryPropsMixin.MemoryRecordSchemaProperty(
                metadata_schema=[bedrockagentcore.CfnMemoryPropsMixin.MetadataSchemaEntryProperty(
                    extraction_config=bedrockagentcore.CfnMemoryPropsMixin.ExtractionConfigProperty(
                        llm_extraction_config=bedrockagentcore.CfnMemoryPropsMixin.LlmExtractionConfigProperty(
                            definition="definition",
                            llm_extraction_instruction="llmExtractionInstruction",
                            validation=bedrockagentcore.CfnMemoryPropsMixin.ValidationProperty(
                                number_validation=bedrockagentcore.CfnMemoryPropsMixin.NumberValidationProperty(
                                    max_value=123,
                                    min_value=123
                                ),
                                string_list_validation=bedrockagentcore.CfnMemoryPropsMixin.StringListValidationProperty(
                                    allowed_values=["allowedValues"],
                                    max_items=123
                                ),
                                string_validation=bedrockagentcore.CfnMemoryPropsMixin.StringValidationProperty(
                                    allowed_values=["allowedValues"]
                                )
                            )
                        )
                    ),
                    key="key",
                    type="type"
                )]
            ),
            name="name",
            namespaces=["namespaces"],
            namespace_templates=["namespaceTemplates"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        ),
        user_preference_memory_strategy=bedrockagentcore.CfnMemoryPropsMixin.UserPreferenceMemoryStrategyProperty(
            created_at="createdAt",
            description="description",
            memory_record_schema=bedrockagentcore.CfnMemoryPropsMixin.MemoryRecordSchemaProperty(
                metadata_schema=[bedrockagentcore.CfnMemoryPropsMixin.MetadataSchemaEntryProperty(
                    extraction_config=bedrockagentcore.CfnMemoryPropsMixin.ExtractionConfigProperty(
                        llm_extraction_config=bedrockagentcore.CfnMemoryPropsMixin.LlmExtractionConfigProperty(
                            definition="definition",
                            llm_extraction_instruction="llmExtractionInstruction",
                            validation=bedrockagentcore.CfnMemoryPropsMixin.ValidationProperty(
                                number_validation=bedrockagentcore.CfnMemoryPropsMixin.NumberValidationProperty(
                                    max_value=123,
                                    min_value=123
                                ),
                                string_list_validation=bedrockagentcore.CfnMemoryPropsMixin.StringListValidationProperty(
                                    allowed_values=["allowedValues"],
                                    max_items=123
                                ),
                                string_validation=bedrockagentcore.CfnMemoryPropsMixin.StringValidationProperty(
                                    allowed_values=["allowedValues"]
                                )
                            )
                        )
                    ),
                    key="key",
                    type="type"
                )]
            ),
            name="name",
            namespaces=["namespaces"],
            namespace_templates=["namespaceTemplates"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        )
    )],
    name="name",
    stream_delivery_resources=bedrockagentcore.CfnMemoryPropsMixin.StreamDeliveryResourcesProperty(
        resources=[bedrockagentcore.CfnMemoryPropsMixin.StreamDeliveryResourceProperty(
            kinesis=bedrockagentcore.CfnMemoryPropsMixin.KinesisResourceProperty(
                content_configurations=[bedrockagentcore.CfnMemoryPropsMixin.ContentConfigurationProperty(
                    level="level",
                    type="type"
                )],
                data_stream_arn="dataStreamArn"
            )
        )]
    ),
    tags={
        "tags_key": "tags"
    }
)

Attributes

description

Description of the Memory resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-description

encryption_key_arn

The memory encryption key Amazon Resource Name (ARN).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-encryptionkeyarn

event_expiry_duration

The event expiry configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-eventexpiryduration

indexed_keys

List of indexed keys for the memory.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-indexedkeys

memory_execution_role_arn

The memory role ARN.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-memoryexecutionrolearn

memory_strategies

The memory strategies.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-memorystrategies

name

The memory name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-name

stream_delivery_resources

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-streamdeliveryresources

Type:

see

tags

The tags for the resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html#cfn-bedrockagentcore-memory-tags