CfnMemoryProps

class aws_cdk.aws_bedrockagentcore.CfnMemoryProps(*, event_expiry_duration, name, description=None, encryption_key_arn=None, memory_execution_role_arn=None, memory_strategies=None, tags=None)

Bases: object

Properties for defining a CfnMemory.

Parameters:
  • event_expiry_duration (Union[int, float]) – Duration in days until memory events expire.

  • name (str) – Name of the Memory resource.

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

  • encryption_key_arn (Optional[str]) – ARN format.

  • memory_execution_role_arn (Optional[str]) – ARN format.

  • memory_strategies (Union[IResolvable, Sequence[Union[IResolvable, MemoryStrategyProperty, Dict[str, Any]]], None]) – List of memory strategies attached to this memory.

  • tags (Optional[Mapping[str, str]]) – A map of tag keys and values.

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 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",
    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(
                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",
            namespaces=["namespaces"],
            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",
            namespaces=["namespaces"],
            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",
            namespaces=["namespaces"],
            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",
            namespaces=["namespaces"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        )
    )],
    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

ARN format.

See:

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

event_expiry_duration

Duration in days until memory events expire.

See:

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

memory_execution_role_arn

ARN format.

See:

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

memory_strategies

List of memory strategies attached to this memory.

See:

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

name

Name of the Memory resource.

See:

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

tags

A map of tag keys and values.

See:

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