CfnMemoryMixinProps

class aws_cdk.mixins_preview.aws_bedrockagentcore.mixins.CfnMemoryMixinProps(*, description=None, encryption_key_arn=None, event_expiry_duration=None, memory_execution_role_arn=None, memory_strategies=None, name=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.

  • 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.

  • 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.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins

cfn_memory_mixin_props = bedrockagentcore_mixins.CfnMemoryMixinProps(
    description="description",
    encryption_key_arn="encryptionKeyArn",
    event_expiry_duration=123,
    memory_execution_role_arn="memoryExecutionRoleArn",
    memory_strategies=[bedrockagentcore_mixins.CfnMemoryPropsMixin.MemoryStrategyProperty(
        custom_memory_strategy=bedrockagentcore_mixins.CfnMemoryPropsMixin.CustomMemoryStrategyProperty(
            configuration=bedrockagentcore_mixins.CfnMemoryPropsMixin.CustomConfigurationInputProperty(
                self_managed_configuration=bedrockagentcore_mixins.CfnMemoryPropsMixin.SelfManagedConfigurationProperty(
                    historical_context_window_size=123,
                    invocation_configuration=bedrockagentcore_mixins.CfnMemoryPropsMixin.InvocationConfigurationInputProperty(
                        payload_delivery_bucket_name="payloadDeliveryBucketName",
                        topic_arn="topicArn"
                    ),
                    trigger_conditions=[bedrockagentcore_mixins.CfnMemoryPropsMixin.TriggerConditionInputProperty(
                        message_based_trigger=bedrockagentcore_mixins.CfnMemoryPropsMixin.MessageBasedTriggerInputProperty(
                            message_count=123
                        ),
                        time_based_trigger=bedrockagentcore_mixins.CfnMemoryPropsMixin.TimeBasedTriggerInputProperty(
                            idle_session_timeout=123
                        ),
                        token_based_trigger=bedrockagentcore_mixins.CfnMemoryPropsMixin.TokenBasedTriggerInputProperty(
                            token_count=123
                        )
                    )]
                ),
                semantic_override=bedrockagentcore_mixins.CfnMemoryPropsMixin.SemanticOverrideProperty(
                    consolidation=bedrockagentcore_mixins.CfnMemoryPropsMixin.SemanticOverrideConsolidationConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    ),
                    extraction=bedrockagentcore_mixins.CfnMemoryPropsMixin.SemanticOverrideExtractionConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    )
                ),
                summary_override=bedrockagentcore_mixins.CfnMemoryPropsMixin.SummaryOverrideProperty(
                    consolidation=bedrockagentcore_mixins.CfnMemoryPropsMixin.SummaryOverrideConsolidationConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    )
                ),
                user_preference_override=bedrockagentcore_mixins.CfnMemoryPropsMixin.UserPreferenceOverrideProperty(
                    consolidation=bedrockagentcore_mixins.CfnMemoryPropsMixin.UserPreferenceOverrideConsolidationConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    ),
                    extraction=bedrockagentcore_mixins.CfnMemoryPropsMixin.UserPreferenceOverrideExtractionConfigurationInputProperty(
                        append_to_prompt="appendToPrompt",
                        model_id="modelId"
                    )
                )
            ),
            created_at="createdAt",
            description="description",
            name="name",
            namespaces=["namespaces"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        ),
        semantic_memory_strategy=bedrockagentcore_mixins.CfnMemoryPropsMixin.SemanticMemoryStrategyProperty(
            created_at="createdAt",
            description="description",
            name="name",
            namespaces=["namespaces"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        ),
        summary_memory_strategy=bedrockagentcore_mixins.CfnMemoryPropsMixin.SummaryMemoryStrategyProperty(
            created_at="createdAt",
            description="description",
            name="name",
            namespaces=["namespaces"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        ),
        user_preference_memory_strategy=bedrockagentcore_mixins.CfnMemoryPropsMixin.UserPreferenceMemoryStrategyProperty(
            created_at="createdAt",
            description="description",
            name="name",
            namespaces=["namespaces"],
            status="status",
            strategy_id="strategyId",
            type="type",
            updated_at="updatedAt"
        )
    )],
    name="name",
    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

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

tags

The tags for the resources.

See:

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