AgentcoreMemoryStrategyState constructor
- Input<
AgentcoreMemoryStrategyConfiguration?> ? configuration, - Input<
String?> ? description, - Input<
String?> ? memoryExecutionRoleArn, - Input<
String?> ? memoryId, - Input<
AgentcoreMemoryStrategyMemoryRecordSchema?> ? memoryRecordSchema, - Input<
String?> ? memoryStrategyId, - Input<
String?> ? name, - Input<
List< ? namespaceTemplates,String> ?> - Input<
List< ? namespaces,String> ?> - Input<
AgentcoreMemoryStrategyReflectionConfiguration?> ? reflectionConfiguration, - Input<
String?> ? region, - Input<
AgentcoreMemoryStrategyTimeouts?> ? timeouts, - Input<
String?> ? type,
Creates a new AgentcoreMemoryStrategyState.
configuration Custom configuration block. Required when type is CUSTOM, must be omitted for other types. See configuration Block below.
description Description of the memory strategy. Once set, a description cannot be removed via update because the service API ignores a null description and retains the previously stored value.
memoryExecutionRoleArn ARN of the IAM role that the memory service assumes to perform operations.
memoryId ID of the memory to associate with this strategy. Changing this forces a new resource.
memoryRecordSchema Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See memoryRecordSchema Block below.
memoryStrategyId Unique identifier of the Memory Strategy. This corresponds to the service strategyId identifier (AWS API / CloudFormation terminology).
name Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
namespaceTemplates Set containing exactly one namespace template where this strategy applies (for example /strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}). Namespace templates help organize and scope memory content. Exactly one of namespaceTemplates or namespaces must be configured for all strategies except CUSTOM strategies using SELF_MANAGED configuration.
namespaces Set of namespace identifiers where this strategy applies. Exactly one of namespaces or namespaceTemplates must be configured. The API treats this as a legacy parameter; prefer namespaceTemplates. Since the API mirrors the two fields, switching an existing configuration from namespaces to namespaceTemplates with the same value is an in-place no-op.
reflectionConfiguration Configuration for the reflections created with the episodic memory strategy. Valid when type is EPISODIC, must be omitted for other types. See reflectionConfiguration Block below.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
timeouts Optional.
type Type of memory strategy. Valid values: SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC, CUSTOM. Changing this forces a new resource. Note that only one strategy of each built-in type (SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC) can exist per memory.
Implementation
const AgentcoreMemoryStrategyState({
this.configuration,
this.description,
this.memoryExecutionRoleArn,
this.memoryId,
this.memoryRecordSchema,
this.memoryStrategyId,
this.name,
this.namespaceTemplates,
this.namespaces,
this.reflectionConfiguration,
this.region,
this.timeouts,
this.type,
});