published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Manages an AWS Bedrock AgentCore Memory Strategy. Memory strategies define how the agent processes and organizes information within a memory, such as semantic understanding, summarization, or custom processing logic.
Important Limitations:
- Each memory can have a maximum of 6 strategies total
- Only one strategy of each built-in type (
SEMANTIC,SUMMARIZATION,USER_PREFERENCE,EPISODIC) can exist per memory - Multiple
CUSTOMstrategies are allowed (subject to the total limit of 6)
Example Usage
Semantic Strategy
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const semantic = new aws.bedrock.AgentcoreMemoryStrategy("semantic", {
name: "semantic-strategy",
memoryId: example.id,
type: "SEMANTIC",
description: "Semantic understanding strategy",
namespaceTemplates: ["default"],
});
import pulumi
import pulumi_aws as aws
semantic = aws.bedrock.AgentcoreMemoryStrategy("semantic",
name="semantic-strategy",
memory_id=example["id"],
type="SEMANTIC",
description="Semantic understanding strategy",
namespace_templates=["default"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "semantic", &bedrock.AgentcoreMemoryStrategyArgs{
Name: pulumi.String("semantic-strategy"),
MemoryId: pulumi.Any(example.Id),
Type: pulumi.String("SEMANTIC"),
Description: pulumi.String("Semantic understanding strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("default"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var semantic = new Aws.Bedrock.AgentcoreMemoryStrategy("semantic", new()
{
Name = "semantic-strategy",
MemoryId = example.Id,
Type = "SEMANTIC",
Description = "Semantic understanding strategy",
NamespaceTemplates = new[]
{
"default",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var semantic = new AgentcoreMemoryStrategy("semantic", AgentcoreMemoryStrategyArgs.builder()
.name("semantic-strategy")
.memoryId(example.id())
.type("SEMANTIC")
.description("Semantic understanding strategy")
.namespaceTemplates("default")
.build());
}
}
resources:
semantic:
type: aws:bedrock:AgentcoreMemoryStrategy
properties:
name: semantic-strategy
memoryId: ${example.id}
type: SEMANTIC
description: Semantic understanding strategy
namespaceTemplates:
- default
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "semantic" {
name = "semantic-strategy"
memory_id = example.id
type = "SEMANTIC"
description = "Semantic understanding strategy"
namespace_templates = ["default"]
}
Summarization Strategy
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const summary = new aws.bedrock.AgentcoreMemoryStrategy("summary", {
name: "summary-strategy",
memoryId: example.id,
type: "SUMMARIZATION",
description: "Text summarization strategy",
namespaceTemplates: ["{sessionId}"],
});
import pulumi
import pulumi_aws as aws
summary = aws.bedrock.AgentcoreMemoryStrategy("summary",
name="summary-strategy",
memory_id=example["id"],
type="SUMMARIZATION",
description="Text summarization strategy",
namespace_templates=["{sessionId}"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "summary", &bedrock.AgentcoreMemoryStrategyArgs{
Name: pulumi.String("summary-strategy"),
MemoryId: pulumi.Any(example.Id),
Type: pulumi.String("SUMMARIZATION"),
Description: pulumi.String("Text summarization strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("{sessionId}"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var summary = new Aws.Bedrock.AgentcoreMemoryStrategy("summary", new()
{
Name = "summary-strategy",
MemoryId = example.Id,
Type = "SUMMARIZATION",
Description = "Text summarization strategy",
NamespaceTemplates = new[]
{
"{sessionId}",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var summary = new AgentcoreMemoryStrategy("summary", AgentcoreMemoryStrategyArgs.builder()
.name("summary-strategy")
.memoryId(example.id())
.type("SUMMARIZATION")
.description("Text summarization strategy")
.namespaceTemplates("{sessionId}")
.build());
}
}
resources:
summary:
type: aws:bedrock:AgentcoreMemoryStrategy
properties:
name: summary-strategy
memoryId: ${example.id}
type: SUMMARIZATION
description: Text summarization strategy
namespaceTemplates:
- '{sessionId}'
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "summary" {
name = "summary-strategy"
memory_id = example.id
type = "SUMMARIZATION"
description = "Text summarization strategy"
namespace_templates = ["{sessionId}"]
}
User Preference Strategy
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const userPref = new aws.bedrock.AgentcoreMemoryStrategy("user_pref", {
name: "user-preference-strategy",
memoryId: example.id,
type: "USER_PREFERENCE",
description: "User preference tracking strategy",
namespaceTemplates: ["preferences"],
});
import pulumi
import pulumi_aws as aws
user_pref = aws.bedrock.AgentcoreMemoryStrategy("user_pref",
name="user-preference-strategy",
memory_id=example["id"],
type="USER_PREFERENCE",
description="User preference tracking strategy",
namespace_templates=["preferences"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "user_pref", &bedrock.AgentcoreMemoryStrategyArgs{
Name: pulumi.String("user-preference-strategy"),
MemoryId: pulumi.Any(example.Id),
Type: pulumi.String("USER_PREFERENCE"),
Description: pulumi.String("User preference tracking strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("preferences"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var userPref = new Aws.Bedrock.AgentcoreMemoryStrategy("user_pref", new()
{
Name = "user-preference-strategy",
MemoryId = example.Id,
Type = "USER_PREFERENCE",
Description = "User preference tracking strategy",
NamespaceTemplates = new[]
{
"preferences",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var userPref = new AgentcoreMemoryStrategy("userPref", AgentcoreMemoryStrategyArgs.builder()
.name("user-preference-strategy")
.memoryId(example.id())
.type("USER_PREFERENCE")
.description("User preference tracking strategy")
.namespaceTemplates("preferences")
.build());
}
}
resources:
userPref:
type: aws:bedrock:AgentcoreMemoryStrategy
name: user_pref
properties:
name: user-preference-strategy
memoryId: ${example.id}
type: USER_PREFERENCE
description: User preference tracking strategy
namespaceTemplates:
- preferences
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "user_pref" {
name = "user-preference-strategy"
memory_id = example.id
type = "USER_PREFERENCE"
description = "User preference tracking strategy"
namespace_templates = ["preferences"]
}
Episodic Strategy
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const episodic = new aws.bedrock.AgentcoreMemoryStrategy("episodic", {
name: "episodic-strategy",
memoryId: example.id,
type: "EPISODIC",
description: "Episodic memory strategy",
namespaceTemplates: ["/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"],
});
import pulumi
import pulumi_aws as aws
episodic = aws.bedrock.AgentcoreMemoryStrategy("episodic",
name="episodic-strategy",
memory_id=example["id"],
type="EPISODIC",
description="Episodic memory strategy",
namespace_templates=["/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "episodic", &bedrock.AgentcoreMemoryStrategyArgs{
Name: pulumi.String("episodic-strategy"),
MemoryId: pulumi.Any(example.Id),
Type: pulumi.String("EPISODIC"),
Description: pulumi.String("Episodic memory strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var episodic = new Aws.Bedrock.AgentcoreMemoryStrategy("episodic", new()
{
Name = "episodic-strategy",
MemoryId = example.Id,
Type = "EPISODIC",
Description = "Episodic memory strategy",
NamespaceTemplates = new[]
{
"/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var episodic = new AgentcoreMemoryStrategy("episodic", AgentcoreMemoryStrategyArgs.builder()
.name("episodic-strategy")
.memoryId(example.id())
.type("EPISODIC")
.description("Episodic memory strategy")
.namespaceTemplates("/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}")
.build());
}
}
resources:
episodic:
type: aws:bedrock:AgentcoreMemoryStrategy
properties:
name: episodic-strategy
memoryId: ${example.id}
type: EPISODIC
description: Episodic memory strategy
namespaceTemplates:
- /strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "episodic" {
name = "episodic-strategy"
memory_id = example.id
type = "EPISODIC"
description = "Episodic memory strategy"
namespace_templates = ["/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"]
}
Custom Strategy with Semantic Override
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const customSemantic = new aws.bedrock.AgentcoreMemoryStrategy("custom_semantic", {
configuration: {
consolidation: {
appendToPrompt: "Focus on extracting key semantic relationships and concepts",
modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
},
extraction: {
appendToPrompt: "Extract and categorize semantic information",
modelId: "anthropic.claude-3-haiku-20240307-v1:0",
},
type: "SEMANTIC_OVERRIDE",
},
name: "custom-semantic-strategy",
memoryId: example.id,
memoryExecutionRoleArn: example.memoryExecutionRoleArn,
type: "CUSTOM",
description: "Custom semantic processing strategy",
namespaceTemplates: ["{sessionId}"],
});
import pulumi
import pulumi_aws as aws
custom_semantic = aws.bedrock.AgentcoreMemoryStrategy("custom_semantic",
configuration={
"consolidation": {
"append_to_prompt": "Focus on extracting key semantic relationships and concepts",
"model_id": "anthropic.claude-3-sonnet-20240229-v1:0",
},
"extraction": {
"append_to_prompt": "Extract and categorize semantic information",
"model_id": "anthropic.claude-3-haiku-20240307-v1:0",
},
"type": "SEMANTIC_OVERRIDE",
},
name="custom-semantic-strategy",
memory_id=example["id"],
memory_execution_role_arn=example["memoryExecutionRoleArn"],
type="CUSTOM",
description="Custom semantic processing strategy",
namespace_templates=["{sessionId}"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "custom_semantic", &bedrock.AgentcoreMemoryStrategyArgs{
Configuration: &bedrock.AgentcoreMemoryStrategyConfigurationArgs{
Consolidation: &bedrock.AgentcoreMemoryStrategyConfigurationConsolidationArgs{
AppendToPrompt: pulumi.String("Focus on extracting key semantic relationships and concepts"),
ModelId: pulumi.String("anthropic.claude-3-sonnet-20240229-v1:0"),
},
Extraction: &bedrock.AgentcoreMemoryStrategyConfigurationExtractionArgs{
AppendToPrompt: pulumi.String("Extract and categorize semantic information"),
ModelId: pulumi.String("anthropic.claude-3-haiku-20240307-v1:0"),
},
Type: pulumi.String("SEMANTIC_OVERRIDE"),
},
Name: pulumi.String("custom-semantic-strategy"),
MemoryId: pulumi.Any(example.Id),
MemoryExecutionRoleArn: pulumi.Any(example.MemoryExecutionRoleArn),
Type: pulumi.String("CUSTOM"),
Description: pulumi.String("Custom semantic processing strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("{sessionId}"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var customSemantic = new Aws.Bedrock.AgentcoreMemoryStrategy("custom_semantic", new()
{
Configuration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationArgs
{
Consolidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs
{
AppendToPrompt = "Focus on extracting key semantic relationships and concepts",
ModelId = "anthropic.claude-3-sonnet-20240229-v1:0",
},
Extraction = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationExtractionArgs
{
AppendToPrompt = "Extract and categorize semantic information",
ModelId = "anthropic.claude-3-haiku-20240307-v1:0",
},
Type = "SEMANTIC_OVERRIDE",
},
Name = "custom-semantic-strategy",
MemoryId = example.Id,
MemoryExecutionRoleArn = example.MemoryExecutionRoleArn,
Type = "CUSTOM",
Description = "Custom semantic processing strategy",
NamespaceTemplates = new[]
{
"{sessionId}",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationExtractionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var customSemantic = new AgentcoreMemoryStrategy("customSemantic", AgentcoreMemoryStrategyArgs.builder()
.configuration(AgentcoreMemoryStrategyConfigurationArgs.builder()
.consolidation(AgentcoreMemoryStrategyConfigurationConsolidationArgs.builder()
.appendToPrompt("Focus on extracting key semantic relationships and concepts")
.modelId("anthropic.claude-3-sonnet-20240229-v1:0")
.build())
.extraction(AgentcoreMemoryStrategyConfigurationExtractionArgs.builder()
.appendToPrompt("Extract and categorize semantic information")
.modelId("anthropic.claude-3-haiku-20240307-v1:0")
.build())
.type("SEMANTIC_OVERRIDE")
.build())
.name("custom-semantic-strategy")
.memoryId(example.id())
.memoryExecutionRoleArn(example.memoryExecutionRoleArn())
.type("CUSTOM")
.description("Custom semantic processing strategy")
.namespaceTemplates("{sessionId}")
.build());
}
}
resources:
customSemantic:
type: aws:bedrock:AgentcoreMemoryStrategy
name: custom_semantic
properties:
configuration:
consolidation:
appendToPrompt: Focus on extracting key semantic relationships and concepts
modelId: anthropic.claude-3-sonnet-20240229-v1:0
extraction:
appendToPrompt: Extract and categorize semantic information
modelId: anthropic.claude-3-haiku-20240307-v1:0
type: SEMANTIC_OVERRIDE
name: custom-semantic-strategy
memoryId: ${example.id}
memoryExecutionRoleArn: ${example.memoryExecutionRoleArn}
type: CUSTOM
description: Custom semantic processing strategy
namespaceTemplates:
- '{sessionId}'
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "custom_semantic" {
configuration = {
consolidation = {
append_to_prompt = "Focus on extracting key semantic relationships and concepts"
model_id = "anthropic.claude-3-sonnet-20240229-v1:0"
}
extraction = {
append_to_prompt = "Extract and categorize semantic information"
model_id = "anthropic.claude-3-haiku-20240307-v1:0"
}
type = "SEMANTIC_OVERRIDE"
}
name = "custom-semantic-strategy"
memory_id = example.id
memory_execution_role_arn = example.memoryExecutionRoleArn
type = "CUSTOM"
description = "Custom semantic processing strategy"
namespace_templates = ["{sessionId}"]
}
Custom Strategy with Summary Override
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const customSummary = new aws.bedrock.AgentcoreMemoryStrategy("custom_summary", {
configuration: {
consolidation: {
appendToPrompt: "Create concise summaries while preserving key details",
modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
},
type: "SUMMARY_OVERRIDE",
},
name: "custom-summary-strategy",
memoryId: example.id,
type: "CUSTOM",
description: "Custom summarization strategy",
namespaceTemplates: ["summaries"],
});
import pulumi
import pulumi_aws as aws
custom_summary = aws.bedrock.AgentcoreMemoryStrategy("custom_summary",
configuration={
"consolidation": {
"append_to_prompt": "Create concise summaries while preserving key details",
"model_id": "anthropic.claude-3-sonnet-20240229-v1:0",
},
"type": "SUMMARY_OVERRIDE",
},
name="custom-summary-strategy",
memory_id=example["id"],
type="CUSTOM",
description="Custom summarization strategy",
namespace_templates=["summaries"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "custom_summary", &bedrock.AgentcoreMemoryStrategyArgs{
Configuration: &bedrock.AgentcoreMemoryStrategyConfigurationArgs{
Consolidation: &bedrock.AgentcoreMemoryStrategyConfigurationConsolidationArgs{
AppendToPrompt: pulumi.String("Create concise summaries while preserving key details"),
ModelId: pulumi.String("anthropic.claude-3-sonnet-20240229-v1:0"),
},
Type: pulumi.String("SUMMARY_OVERRIDE"),
},
Name: pulumi.String("custom-summary-strategy"),
MemoryId: pulumi.Any(example.Id),
Type: pulumi.String("CUSTOM"),
Description: pulumi.String("Custom summarization strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("summaries"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var customSummary = new Aws.Bedrock.AgentcoreMemoryStrategy("custom_summary", new()
{
Configuration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationArgs
{
Consolidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs
{
AppendToPrompt = "Create concise summaries while preserving key details",
ModelId = "anthropic.claude-3-sonnet-20240229-v1:0",
},
Type = "SUMMARY_OVERRIDE",
},
Name = "custom-summary-strategy",
MemoryId = example.Id,
Type = "CUSTOM",
Description = "Custom summarization strategy",
NamespaceTemplates = new[]
{
"summaries",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var customSummary = new AgentcoreMemoryStrategy("customSummary", AgentcoreMemoryStrategyArgs.builder()
.configuration(AgentcoreMemoryStrategyConfigurationArgs.builder()
.consolidation(AgentcoreMemoryStrategyConfigurationConsolidationArgs.builder()
.appendToPrompt("Create concise summaries while preserving key details")
.modelId("anthropic.claude-3-sonnet-20240229-v1:0")
.build())
.type("SUMMARY_OVERRIDE")
.build())
.name("custom-summary-strategy")
.memoryId(example.id())
.type("CUSTOM")
.description("Custom summarization strategy")
.namespaceTemplates("summaries")
.build());
}
}
resources:
customSummary:
type: aws:bedrock:AgentcoreMemoryStrategy
name: custom_summary
properties:
configuration:
consolidation:
appendToPrompt: Create concise summaries while preserving key details
modelId: anthropic.claude-3-sonnet-20240229-v1:0
type: SUMMARY_OVERRIDE
name: custom-summary-strategy
memoryId: ${example.id}
type: CUSTOM
description: Custom summarization strategy
namespaceTemplates:
- summaries
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "custom_summary" {
configuration = {
consolidation = {
append_to_prompt = "Create concise summaries while preserving key details"
model_id = "anthropic.claude-3-sonnet-20240229-v1:0"
}
type = "SUMMARY_OVERRIDE"
}
name = "custom-summary-strategy"
memory_id = example.id
type = "CUSTOM"
description = "Custom summarization strategy"
namespace_templates = ["summaries"]
}
Custom Strategy with User Preference Override
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const customUserPref = new aws.bedrock.AgentcoreMemoryStrategy("custom_user_pref", {
configuration: {
consolidation: {
appendToPrompt: "Consolidate user preferences and behavioral patterns",
modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
},
extraction: {
appendToPrompt: "Extract user preferences and interaction patterns",
modelId: "anthropic.claude-3-haiku-20240307-v1:0",
},
type: "USER_PREFERENCE_OVERRIDE",
},
name: "custom-user-preference-strategy",
memoryId: example.id,
type: "CUSTOM",
description: "Custom user preference tracking strategy",
namespaceTemplates: ["user_prefs"],
});
import pulumi
import pulumi_aws as aws
custom_user_pref = aws.bedrock.AgentcoreMemoryStrategy("custom_user_pref",
configuration={
"consolidation": {
"append_to_prompt": "Consolidate user preferences and behavioral patterns",
"model_id": "anthropic.claude-3-sonnet-20240229-v1:0",
},
"extraction": {
"append_to_prompt": "Extract user preferences and interaction patterns",
"model_id": "anthropic.claude-3-haiku-20240307-v1:0",
},
"type": "USER_PREFERENCE_OVERRIDE",
},
name="custom-user-preference-strategy",
memory_id=example["id"],
type="CUSTOM",
description="Custom user preference tracking strategy",
namespace_templates=["user_prefs"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "custom_user_pref", &bedrock.AgentcoreMemoryStrategyArgs{
Configuration: &bedrock.AgentcoreMemoryStrategyConfigurationArgs{
Consolidation: &bedrock.AgentcoreMemoryStrategyConfigurationConsolidationArgs{
AppendToPrompt: pulumi.String("Consolidate user preferences and behavioral patterns"),
ModelId: pulumi.String("anthropic.claude-3-sonnet-20240229-v1:0"),
},
Extraction: &bedrock.AgentcoreMemoryStrategyConfigurationExtractionArgs{
AppendToPrompt: pulumi.String("Extract user preferences and interaction patterns"),
ModelId: pulumi.String("anthropic.claude-3-haiku-20240307-v1:0"),
},
Type: pulumi.String("USER_PREFERENCE_OVERRIDE"),
},
Name: pulumi.String("custom-user-preference-strategy"),
MemoryId: pulumi.Any(example.Id),
Type: pulumi.String("CUSTOM"),
Description: pulumi.String("Custom user preference tracking strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("user_prefs"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var customUserPref = new Aws.Bedrock.AgentcoreMemoryStrategy("custom_user_pref", new()
{
Configuration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationArgs
{
Consolidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs
{
AppendToPrompt = "Consolidate user preferences and behavioral patterns",
ModelId = "anthropic.claude-3-sonnet-20240229-v1:0",
},
Extraction = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationExtractionArgs
{
AppendToPrompt = "Extract user preferences and interaction patterns",
ModelId = "anthropic.claude-3-haiku-20240307-v1:0",
},
Type = "USER_PREFERENCE_OVERRIDE",
},
Name = "custom-user-preference-strategy",
MemoryId = example.Id,
Type = "CUSTOM",
Description = "Custom user preference tracking strategy",
NamespaceTemplates = new[]
{
"user_prefs",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationExtractionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var customUserPref = new AgentcoreMemoryStrategy("customUserPref", AgentcoreMemoryStrategyArgs.builder()
.configuration(AgentcoreMemoryStrategyConfigurationArgs.builder()
.consolidation(AgentcoreMemoryStrategyConfigurationConsolidationArgs.builder()
.appendToPrompt("Consolidate user preferences and behavioral patterns")
.modelId("anthropic.claude-3-sonnet-20240229-v1:0")
.build())
.extraction(AgentcoreMemoryStrategyConfigurationExtractionArgs.builder()
.appendToPrompt("Extract user preferences and interaction patterns")
.modelId("anthropic.claude-3-haiku-20240307-v1:0")
.build())
.type("USER_PREFERENCE_OVERRIDE")
.build())
.name("custom-user-preference-strategy")
.memoryId(example.id())
.type("CUSTOM")
.description("Custom user preference tracking strategy")
.namespaceTemplates("user_prefs")
.build());
}
}
resources:
customUserPref:
type: aws:bedrock:AgentcoreMemoryStrategy
name: custom_user_pref
properties:
configuration:
consolidation:
appendToPrompt: Consolidate user preferences and behavioral patterns
modelId: anthropic.claude-3-sonnet-20240229-v1:0
extraction:
appendToPrompt: Extract user preferences and interaction patterns
modelId: anthropic.claude-3-haiku-20240307-v1:0
type: USER_PREFERENCE_OVERRIDE
name: custom-user-preference-strategy
memoryId: ${example.id}
type: CUSTOM
description: Custom user preference tracking strategy
namespaceTemplates:
- user_prefs
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "custom_user_pref" {
configuration = {
consolidation = {
append_to_prompt = "Consolidate user preferences and behavioral patterns"
model_id = "anthropic.claude-3-sonnet-20240229-v1:0"
}
extraction = {
append_to_prompt = "Extract user preferences and interaction patterns"
model_id = "anthropic.claude-3-haiku-20240307-v1:0"
}
type = "USER_PREFERENCE_OVERRIDE"
}
name = "custom-user-preference-strategy"
memory_id = example.id
type = "CUSTOM"
description = "Custom user preference tracking strategy"
namespace_templates = ["user_prefs"]
}
Custom Strategy with Episodic Override
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const customEpisodic = new aws.bedrock.AgentcoreMemoryStrategy("custom_episodic", {
configuration: {
consolidation: {
appendToPrompt: "Consolidate episodic memories into coherent narratives",
modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
},
extraction: {
appendToPrompt: "Extract key events and episodes from interactions",
modelId: "anthropic.claude-3-haiku-20240307-v1:0",
},
type: "EPISODIC_OVERRIDE",
},
name: "custom-episodic-strategy",
memoryId: example.id,
memoryExecutionRoleArn: example.memoryExecutionRoleArn,
type: "CUSTOM",
description: "Custom episodic processing strategy",
namespaceTemplates: ["/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"],
});
import pulumi
import pulumi_aws as aws
custom_episodic = aws.bedrock.AgentcoreMemoryStrategy("custom_episodic",
configuration={
"consolidation": {
"append_to_prompt": "Consolidate episodic memories into coherent narratives",
"model_id": "anthropic.claude-3-sonnet-20240229-v1:0",
},
"extraction": {
"append_to_prompt": "Extract key events and episodes from interactions",
"model_id": "anthropic.claude-3-haiku-20240307-v1:0",
},
"type": "EPISODIC_OVERRIDE",
},
name="custom-episodic-strategy",
memory_id=example["id"],
memory_execution_role_arn=example["memoryExecutionRoleArn"],
type="CUSTOM",
description="Custom episodic processing strategy",
namespace_templates=["/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "custom_episodic", &bedrock.AgentcoreMemoryStrategyArgs{
Configuration: &bedrock.AgentcoreMemoryStrategyConfigurationArgs{
Consolidation: &bedrock.AgentcoreMemoryStrategyConfigurationConsolidationArgs{
AppendToPrompt: pulumi.String("Consolidate episodic memories into coherent narratives"),
ModelId: pulumi.String("anthropic.claude-3-sonnet-20240229-v1:0"),
},
Extraction: &bedrock.AgentcoreMemoryStrategyConfigurationExtractionArgs{
AppendToPrompt: pulumi.String("Extract key events and episodes from interactions"),
ModelId: pulumi.String("anthropic.claude-3-haiku-20240307-v1:0"),
},
Type: pulumi.String("EPISODIC_OVERRIDE"),
},
Name: pulumi.String("custom-episodic-strategy"),
MemoryId: pulumi.Any(example.Id),
MemoryExecutionRoleArn: pulumi.Any(example.MemoryExecutionRoleArn),
Type: pulumi.String("CUSTOM"),
Description: pulumi.String("Custom episodic processing strategy"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var customEpisodic = new Aws.Bedrock.AgentcoreMemoryStrategy("custom_episodic", new()
{
Configuration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationArgs
{
Consolidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs
{
AppendToPrompt = "Consolidate episodic memories into coherent narratives",
ModelId = "anthropic.claude-3-sonnet-20240229-v1:0",
},
Extraction = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationExtractionArgs
{
AppendToPrompt = "Extract key events and episodes from interactions",
ModelId = "anthropic.claude-3-haiku-20240307-v1:0",
},
Type = "EPISODIC_OVERRIDE",
},
Name = "custom-episodic-strategy",
MemoryId = example.Id,
MemoryExecutionRoleArn = example.MemoryExecutionRoleArn,
Type = "CUSTOM",
Description = "Custom episodic processing strategy",
NamespaceTemplates = new[]
{
"/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationExtractionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var customEpisodic = new AgentcoreMemoryStrategy("customEpisodic", AgentcoreMemoryStrategyArgs.builder()
.configuration(AgentcoreMemoryStrategyConfigurationArgs.builder()
.consolidation(AgentcoreMemoryStrategyConfigurationConsolidationArgs.builder()
.appendToPrompt("Consolidate episodic memories into coherent narratives")
.modelId("anthropic.claude-3-sonnet-20240229-v1:0")
.build())
.extraction(AgentcoreMemoryStrategyConfigurationExtractionArgs.builder()
.appendToPrompt("Extract key events and episodes from interactions")
.modelId("anthropic.claude-3-haiku-20240307-v1:0")
.build())
.type("EPISODIC_OVERRIDE")
.build())
.name("custom-episodic-strategy")
.memoryId(example.id())
.memoryExecutionRoleArn(example.memoryExecutionRoleArn())
.type("CUSTOM")
.description("Custom episodic processing strategy")
.namespaceTemplates("/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}")
.build());
}
}
resources:
customEpisodic:
type: aws:bedrock:AgentcoreMemoryStrategy
name: custom_episodic
properties:
configuration:
consolidation:
appendToPrompt: Consolidate episodic memories into coherent narratives
modelId: anthropic.claude-3-sonnet-20240229-v1:0
extraction:
appendToPrompt: Extract key events and episodes from interactions
modelId: anthropic.claude-3-haiku-20240307-v1:0
type: EPISODIC_OVERRIDE
name: custom-episodic-strategy
memoryId: ${example.id}
memoryExecutionRoleArn: ${example.memoryExecutionRoleArn}
type: CUSTOM
description: Custom episodic processing strategy
namespaceTemplates:
- /strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "custom_episodic" {
configuration = {
consolidation = {
append_to_prompt = "Consolidate episodic memories into coherent narratives"
model_id = "anthropic.claude-3-sonnet-20240229-v1:0"
}
extraction = {
append_to_prompt = "Extract key events and episodes from interactions"
model_id = "anthropic.claude-3-haiku-20240307-v1:0"
}
type = "EPISODIC_OVERRIDE"
}
name = "custom-episodic-strategy"
memory_id = example.id
memory_execution_role_arn = example.memoryExecutionRoleArn
type = "CUSTOM"
description = "Custom episodic processing strategy"
namespace_templates = ["/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"]
}
Custom Strategy with Self-Managed Configuration
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const selfManaged = new aws.bedrock.AgentcoreMemoryStrategy("self_managed", {
configuration: {
selfManaged: [{
invocationConfiguration: [{
topicArn: example.arn,
payloadDeliveryBucketName: exampleAwsS3Bucket.bucket,
}],
triggerConditions: [{
messageBasedTrigger: [{
messageCount: 12,
}],
}],
historicalContextWindowSize: 10,
}],
type: "SELF_MANAGED",
},
name: "self-managed-strategy",
memoryId: exampleAwsBedrockagentcoreMemory.id,
memoryExecutionRoleArn: exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn,
type: "CUSTOM",
description: "Self-managed processing strategy",
});
import pulumi
import pulumi_aws as aws
self_managed = aws.bedrock.AgentcoreMemoryStrategy("self_managed",
configuration={
"self_managed": [{
"invocationConfiguration": [{
"topicArn": example["arn"],
"payloadDeliveryBucketName": example_aws_s3_bucket["bucket"],
}],
"triggerConditions": [{
"messageBasedTrigger": [{
"messageCount": 12,
}],
}],
"historicalContextWindowSize": 10,
}],
"type": "SELF_MANAGED",
},
name="self-managed-strategy",
memory_id=example_aws_bedrockagentcore_memory["id"],
memory_execution_role_arn=example_aws_bedrockagentcore_memory["memoryExecutionRoleArn"],
type="CUSTOM",
description="Self-managed processing strategy")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "self_managed", &bedrock.AgentcoreMemoryStrategyArgs{
Configuration: &bedrock.AgentcoreMemoryStrategyConfigurationArgs{
SelfManaged: []map[string]interface{}{
map[string]interface{}{
"invocationConfiguration": []map[string]interface{}{
map[string]interface{}{
"topicArn": example.Arn,
"payloadDeliveryBucketName": exampleAwsS3Bucket.Bucket,
},
},
"triggerConditions": []map[string][]map[string]int{
{
"messageBasedTrigger": []map[string]int{
{
"messageCount": 12,
},
},
},
},
"historicalContextWindowSize": 10,
},
},
Type: pulumi.String("SELF_MANAGED"),
},
Name: pulumi.String("self-managed-strategy"),
MemoryId: pulumi.Any(exampleAwsBedrockagentcoreMemory.Id),
MemoryExecutionRoleArn: pulumi.Any(exampleAwsBedrockagentcoreMemory.MemoryExecutionRoleArn),
Type: pulumi.String("CUSTOM"),
Description: pulumi.String("Self-managed processing strategy"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var selfManaged = new Aws.Bedrock.AgentcoreMemoryStrategy("self_managed", new()
{
Configuration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationArgs
{
SelfManaged = new[]
{
{
{ "invocationConfiguration", new[]
{
{
{ "topicArn", example.Arn },
{ "payloadDeliveryBucketName", exampleAwsS3Bucket.Bucket },
},
} },
{ "triggerConditions", new[]
{
{
{ "messageBasedTrigger", new[]
{
{
{ "messageCount", 12 },
},
} },
},
} },
{ "historicalContextWindowSize", 10 },
},
},
Type = "SELF_MANAGED",
},
Name = "self-managed-strategy",
MemoryId = exampleAwsBedrockagentcoreMemory.Id,
MemoryExecutionRoleArn = exampleAwsBedrockagentcoreMemory.MemoryExecutionRoleArn,
Type = "CUSTOM",
Description = "Self-managed processing strategy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var selfManaged = new AgentcoreMemoryStrategy("selfManaged", AgentcoreMemoryStrategyArgs.builder()
.configuration(AgentcoreMemoryStrategyConfigurationArgs.builder()
.selfManaged(Arrays.asList(Map.ofEntries(
Map.entry("invocationConfiguration", Arrays.asList(Map.ofEntries(
Map.entry("topicArn", example.arn()),
Map.entry("payloadDeliveryBucketName", exampleAwsS3Bucket.bucket())
))),
Map.entry("triggerConditions", Arrays.asList(Map.of("messageBasedTrigger", Arrays.asList(Map.of("messageCount", 12))))),
Map.entry("historicalContextWindowSize", 10)
)))
.type("SELF_MANAGED")
.build())
.name("self-managed-strategy")
.memoryId(exampleAwsBedrockagentcoreMemory.id())
.memoryExecutionRoleArn(exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn())
.type("CUSTOM")
.description("Self-managed processing strategy")
.build());
}
}
resources:
selfManaged:
type: aws:bedrock:AgentcoreMemoryStrategy
name: self_managed
properties:
configuration:
selfManaged:
- invocationConfiguration:
- topicArn: ${example.arn}
payloadDeliveryBucketName: ${exampleAwsS3Bucket.bucket}
triggerConditions:
- messageBasedTrigger:
- messageCount: 12
historicalContextWindowSize: 10
type: SELF_MANAGED
name: self-managed-strategy
memoryId: ${exampleAwsBedrockagentcoreMemory.id}
memoryExecutionRoleArn: ${exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn}
type: CUSTOM
description: Self-managed processing strategy
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "self_managed" {
configuration = {
self_managed = [{
"invocationConfiguration" = [{
"topicArn" = example.arn
"payloadDeliveryBucketName" = exampleAwsS3Bucket.bucket
}]
"triggerConditions" = [{
"messageBasedTrigger" = [{
"messageCount" = 12
}]
}]
"historicalContextWindowSize" = 10
}]
type = "SELF_MANAGED"
}
name = "self-managed-strategy"
memory_id = exampleAwsBedrockagentcoreMemory.id
memory_execution_role_arn = exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn
type = "CUSTOM"
description = "Self-managed processing strategy"
}
Custom Strategy with Self-Managed Configuration
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const selfManaged = new aws.bedrock.AgentcoreMemoryStrategy("self_managed", {
configuration: {
selfManagedConfiguration: {
invocationConfiguration: {
topicArn: example.arn,
payloadDeliveryBucketName: exampleAwsS3Bucket.bucket,
},
triggerCondition: [{
messageBasedTrigger: [{
messageCount: 12,
}],
}],
historicalContextWindowSize: 10,
},
type: "SELF_MANAGED",
},
name: "self-managed-strategy",
memoryId: exampleAwsBedrockagentcoreMemory.id,
memoryExecutionRoleArn: exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn,
type: "CUSTOM",
description: "Self-managed processing strategy",
});
import pulumi
import pulumi_aws as aws
self_managed = aws.bedrock.AgentcoreMemoryStrategy("self_managed",
configuration={
"self_managed_configuration": {
"invocation_configuration": {
"topic_arn": example["arn"],
"payload_delivery_bucket_name": example_aws_s3_bucket["bucket"],
},
"trigger_condition": [{
"messageBasedTrigger": [{
"messageCount": 12,
}],
}],
"historical_context_window_size": 10,
},
"type": "SELF_MANAGED",
},
name="self-managed-strategy",
memory_id=example_aws_bedrockagentcore_memory["id"],
memory_execution_role_arn=example_aws_bedrockagentcore_memory["memoryExecutionRoleArn"],
type="CUSTOM",
description="Self-managed processing strategy")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "self_managed", &bedrock.AgentcoreMemoryStrategyArgs{
Configuration: &bedrock.AgentcoreMemoryStrategyConfigurationArgs{
SelfManagedConfiguration: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs{
InvocationConfiguration: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs{
TopicArn: pulumi.Any(example.Arn),
PayloadDeliveryBucketName: pulumi.Any(exampleAwsS3Bucket.Bucket),
},
TriggerCondition: []map[string][]map[string]int{
{
"messageBasedTrigger": []map[string]int{
{
"messageCount": 12,
},
},
},
},
HistoricalContextWindowSize: pulumi.Int(10),
},
Type: pulumi.String("SELF_MANAGED"),
},
Name: pulumi.String("self-managed-strategy"),
MemoryId: pulumi.Any(exampleAwsBedrockagentcoreMemory.Id),
MemoryExecutionRoleArn: pulumi.Any(exampleAwsBedrockagentcoreMemory.MemoryExecutionRoleArn),
Type: pulumi.String("CUSTOM"),
Description: pulumi.String("Self-managed processing strategy"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var selfManaged = new Aws.Bedrock.AgentcoreMemoryStrategy("self_managed", new()
{
Configuration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationArgs
{
SelfManagedConfiguration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs
{
InvocationConfiguration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs
{
TopicArn = example.Arn,
PayloadDeliveryBucketName = exampleAwsS3Bucket.Bucket,
},
TriggerCondition = new[]
{
{
{ "messageBasedTrigger", new[]
{
{
{ "messageCount", 12 },
},
} },
},
},
HistoricalContextWindowSize = 10,
},
Type = "SELF_MANAGED",
},
Name = "self-managed-strategy",
MemoryId = exampleAwsBedrockagentcoreMemory.Id,
MemoryExecutionRoleArn = exampleAwsBedrockagentcoreMemory.MemoryExecutionRoleArn,
Type = "CUSTOM",
Description = "Self-managed processing strategy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategy;
import com.pulumi.aws.bedrock.AgentcoreMemoryStrategyArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var selfManaged = new AgentcoreMemoryStrategy("selfManaged", AgentcoreMemoryStrategyArgs.builder()
.configuration(AgentcoreMemoryStrategyConfigurationArgs.builder()
.selfManagedConfiguration(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs.builder()
.invocationConfiguration(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs.builder()
.topicArn(example.arn())
.payloadDeliveryBucketName(exampleAwsS3Bucket.bucket())
.build())
.triggerCondition(Arrays.asList(Map.of("messageBasedTrigger", Arrays.asList(Map.of("messageCount", 12)))))
.historicalContextWindowSize(10)
.build())
.type("SELF_MANAGED")
.build())
.name("self-managed-strategy")
.memoryId(exampleAwsBedrockagentcoreMemory.id())
.memoryExecutionRoleArn(exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn())
.type("CUSTOM")
.description("Self-managed processing strategy")
.build());
}
}
resources:
selfManaged:
type: aws:bedrock:AgentcoreMemoryStrategy
name: self_managed
properties:
configuration:
selfManagedConfiguration:
invocationConfiguration:
topicArn: ${example.arn}
payloadDeliveryBucketName: ${exampleAwsS3Bucket.bucket}
triggerCondition:
- messageBasedTrigger:
- messageCount: 12
historicalContextWindowSize: 10
type: SELF_MANAGED
name: self-managed-strategy
memoryId: ${exampleAwsBedrockagentcoreMemory.id}
memoryExecutionRoleArn: ${exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn}
type: CUSTOM
description: Self-managed processing strategy
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_bedrock_agentcorememorystrategy" "self_managed" {
configuration = {
self_managed_configuration = {
invocation_configuration = {
topic_arn = example.arn
payload_delivery_bucket_name = exampleAwsS3Bucket.bucket
}
trigger_condition = [{
"messageBasedTrigger" = [{
"messageCount" = 12
}]
}]
historical_context_window_size = 10
}
type = "SELF_MANAGED"
}
name = "self-managed-strategy"
memory_id = exampleAwsBedrockagentcoreMemory.id
memory_execution_role_arn = exampleAwsBedrockagentcoreMemory.memoryExecutionRoleArn
type = "CUSTOM"
description = "Self-managed processing strategy"
}
Create AgentcoreMemoryStrategy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgentcoreMemoryStrategy(name: string, args: AgentcoreMemoryStrategyArgs, opts?: CustomResourceOptions);@overload
def AgentcoreMemoryStrategy(resource_name: str,
args: AgentcoreMemoryStrategyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AgentcoreMemoryStrategy(resource_name: str,
opts: Optional[ResourceOptions] = None,
memory_id: Optional[str] = None,
type: Optional[str] = None,
configuration: Optional[AgentcoreMemoryStrategyConfigurationArgs] = None,
description: Optional[str] = None,
memory_execution_role_arn: Optional[str] = None,
memory_record_schema: Optional[AgentcoreMemoryStrategyMemoryRecordSchemaArgs] = None,
name: Optional[str] = None,
namespace_templates: Optional[Sequence[str]] = None,
namespaces: Optional[Sequence[str]] = None,
reflection_configuration: Optional[AgentcoreMemoryStrategyReflectionConfigurationArgs] = None,
region: Optional[str] = None,
timeouts: Optional[AgentcoreMemoryStrategyTimeoutsArgs] = None)func NewAgentcoreMemoryStrategy(ctx *Context, name string, args AgentcoreMemoryStrategyArgs, opts ...ResourceOption) (*AgentcoreMemoryStrategy, error)public AgentcoreMemoryStrategy(string name, AgentcoreMemoryStrategyArgs args, CustomResourceOptions? opts = null)
public AgentcoreMemoryStrategy(String name, AgentcoreMemoryStrategyArgs args)
public AgentcoreMemoryStrategy(String name, AgentcoreMemoryStrategyArgs args, CustomResourceOptions options)
type: aws:bedrock:AgentcoreMemoryStrategy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_bedrock_agentcore_memory_strategy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AgentcoreMemoryStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AgentcoreMemoryStrategyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AgentcoreMemoryStrategyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentcoreMemoryStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentcoreMemoryStrategyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var agentcoreMemoryStrategyResource = new Aws.Bedrock.AgentcoreMemoryStrategy("agentcoreMemoryStrategyResource", new()
{
MemoryId = "string",
Type = "string",
Configuration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationArgs
{
Type = "string",
Consolidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationConsolidationArgs
{
AppendToPrompt = "string",
ModelId = "string",
},
Extraction = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationExtractionArgs
{
AppendToPrompt = "string",
ModelId = "string",
},
Reflection = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationReflectionArgs
{
AppendToPrompt = "string",
ModelId = "string",
NamespaceTemplates = new[]
{
"string",
},
},
SelfManagedConfiguration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs
{
InvocationConfiguration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs
{
PayloadDeliveryBucketName = "string",
TopicArn = "string",
},
HistoricalContextWindowSize = 0,
TriggerConditions = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsArgs
{
MessageBasedTrigger = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsMessageBasedTriggerArgs
{
MessageCount = 0,
},
TimeBasedTrigger = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTimeBasedTriggerArgs
{
IdleSessionTimeout = 0,
},
TokenBasedTrigger = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTokenBasedTriggerArgs
{
TokenCount = 0,
},
},
TriggerConditionsActuals = new[]
{
new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualArgs
{
MessageBasedTriggers = new[]
{
new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualMessageBasedTriggerArgs
{
MessageCount = 0,
},
},
TimeBasedTriggers = new[]
{
new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTimeBasedTriggerArgs
{
IdleSessionTimeout = 0,
},
},
TokenBasedTriggers = new[]
{
new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTokenBasedTriggerArgs
{
TokenCount = 0,
},
},
},
},
},
},
Description = "string",
MemoryRecordSchema = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaArgs
{
MetadataSchemas = new[]
{
new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaArgs
{
Key = "string",
ExtractionConfig = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigArgs
{
LlmExtractionConfig = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigArgs
{
Definition = "string",
LlmExtractionInstruction = "string",
Validation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationArgs
{
NumberValidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationNumberValidationArgs
{
MaxValue = 0.0,
MinValue = 0.0,
},
StringListValidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringListValidationArgs
{
AllowedValues = new[]
{
"string",
},
MaxItems = 0,
},
StringValidation = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringValidationArgs
{
AllowedValues = new[]
{
"string",
},
},
},
},
},
ExtractionType = "string",
Type = "string",
},
},
},
Name = "string",
NamespaceTemplates = new[]
{
"string",
},
ReflectionConfiguration = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyReflectionConfigurationArgs
{
NamespaceTemplates = new[]
{
"string",
},
},
Region = "string",
Timeouts = new Aws.Bedrock.Inputs.AgentcoreMemoryStrategyTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := bedrock.NewAgentcoreMemoryStrategy(ctx, "agentcoreMemoryStrategyResource", &bedrock.AgentcoreMemoryStrategyArgs{
MemoryId: pulumi.String("string"),
Type: pulumi.String("string"),
Configuration: &bedrock.AgentcoreMemoryStrategyConfigurationArgs{
Type: pulumi.String("string"),
Consolidation: &bedrock.AgentcoreMemoryStrategyConfigurationConsolidationArgs{
AppendToPrompt: pulumi.String("string"),
ModelId: pulumi.String("string"),
},
Extraction: &bedrock.AgentcoreMemoryStrategyConfigurationExtractionArgs{
AppendToPrompt: pulumi.String("string"),
ModelId: pulumi.String("string"),
},
Reflection: &bedrock.AgentcoreMemoryStrategyConfigurationReflectionArgs{
AppendToPrompt: pulumi.String("string"),
ModelId: pulumi.String("string"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("string"),
},
},
SelfManagedConfiguration: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs{
InvocationConfiguration: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs{
PayloadDeliveryBucketName: pulumi.String("string"),
TopicArn: pulumi.String("string"),
},
HistoricalContextWindowSize: pulumi.Int(0),
TriggerConditions: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsArgs{
MessageBasedTrigger: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsMessageBasedTriggerArgs{
MessageCount: pulumi.Int(0),
},
TimeBasedTrigger: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTimeBasedTriggerArgs{
IdleSessionTimeout: pulumi.Int(0),
},
TokenBasedTrigger: &bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTokenBasedTriggerArgs{
TokenCount: pulumi.Int(0),
},
},
TriggerConditionsActuals: bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualArray{
&bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualArgs{
MessageBasedTriggers: bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualMessageBasedTriggerArray{
&bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualMessageBasedTriggerArgs{
MessageCount: pulumi.Int(0),
},
},
TimeBasedTriggers: bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTimeBasedTriggerArray{
&bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTimeBasedTriggerArgs{
IdleSessionTimeout: pulumi.Int(0),
},
},
TokenBasedTriggers: bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTokenBasedTriggerArray{
&bedrock.AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTokenBasedTriggerArgs{
TokenCount: pulumi.Int(0),
},
},
},
},
},
},
Description: pulumi.String("string"),
MemoryRecordSchema: &bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaArgs{
MetadataSchemas: bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaArray{
&bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaArgs{
Key: pulumi.String("string"),
ExtractionConfig: &bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigArgs{
LlmExtractionConfig: &bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigArgs{
Definition: pulumi.String("string"),
LlmExtractionInstruction: pulumi.String("string"),
Validation: &bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationArgs{
NumberValidation: &bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationNumberValidationArgs{
MaxValue: pulumi.Float64(0),
MinValue: pulumi.Float64(0),
},
StringListValidation: &bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringListValidationArgs{
AllowedValues: pulumi.StringArray{
pulumi.String("string"),
},
MaxItems: pulumi.Int(0),
},
StringValidation: &bedrock.AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringValidationArgs{
AllowedValues: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
ExtractionType: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
NamespaceTemplates: pulumi.StringArray{
pulumi.String("string"),
},
ReflectionConfiguration: &bedrock.AgentcoreMemoryStrategyReflectionConfigurationArgs{
NamespaceTemplates: pulumi.StringArray{
pulumi.String("string"),
},
},
Region: pulumi.String("string"),
Timeouts: &bedrock.AgentcoreMemoryStrategyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "aws_bedrock_agentcore_memory_strategy" "agentcoreMemoryStrategyResource" {
lifecycle {
create_before_destroy = true
}
memory_id = "string"
type = "string"
configuration = {
type = "string"
consolidation = {
append_to_prompt = "string"
model_id = "string"
}
extraction = {
append_to_prompt = "string"
model_id = "string"
}
reflection = {
append_to_prompt = "string"
model_id = "string"
namespace_templates = ["string"]
}
self_managed_configuration = {
invocation_configuration = {
payload_delivery_bucket_name = "string"
topic_arn = "string"
}
historical_context_window_size = 0
trigger_conditions = {
message_based_trigger = {
message_count = 0
}
time_based_trigger = {
idle_session_timeout = 0
}
token_based_trigger = {
token_count = 0
}
}
trigger_conditions_actuals = [{
message_based_triggers = [{
message_count = 0
}]
time_based_triggers = [{
idle_session_timeout = 0
}]
token_based_triggers = [{
token_count = 0
}]
}]
}
}
description = "string"
memory_record_schema = {
metadata_schemas = [{
key = "string"
extraction_config = {
llm_extraction_config = {
definition = "string"
llm_extraction_instruction = "string"
validation = {
number_validation = {
max_value = 0
min_value = 0
}
string_list_validation = {
allowed_values = ["string"]
max_items = 0
}
string_validation = {
allowed_values = ["string"]
}
}
}
}
extraction_type = "string"
type = "string"
}]
}
name = "string"
namespace_templates = ["string"]
reflection_configuration = {
namespace_templates = ["string"]
}
region = "string"
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
var agentcoreMemoryStrategyResource = new AgentcoreMemoryStrategy("agentcoreMemoryStrategyResource", AgentcoreMemoryStrategyArgs.builder()
.memoryId("string")
.type("string")
.configuration(AgentcoreMemoryStrategyConfigurationArgs.builder()
.type("string")
.consolidation(AgentcoreMemoryStrategyConfigurationConsolidationArgs.builder()
.appendToPrompt("string")
.modelId("string")
.build())
.extraction(AgentcoreMemoryStrategyConfigurationExtractionArgs.builder()
.appendToPrompt("string")
.modelId("string")
.build())
.reflection(AgentcoreMemoryStrategyConfigurationReflectionArgs.builder()
.appendToPrompt("string")
.modelId("string")
.namespaceTemplates("string")
.build())
.selfManagedConfiguration(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs.builder()
.invocationConfiguration(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs.builder()
.payloadDeliveryBucketName("string")
.topicArn("string")
.build())
.historicalContextWindowSize(0)
.triggerConditions(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsArgs.builder()
.messageBasedTrigger(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsMessageBasedTriggerArgs.builder()
.messageCount(0)
.build())
.timeBasedTrigger(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTimeBasedTriggerArgs.builder()
.idleSessionTimeout(0)
.build())
.tokenBasedTrigger(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTokenBasedTriggerArgs.builder()
.tokenCount(0)
.build())
.build())
.triggerConditionsActuals(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualArgs.builder()
.messageBasedTriggers(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualMessageBasedTriggerArgs.builder()
.messageCount(0)
.build())
.timeBasedTriggers(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTimeBasedTriggerArgs.builder()
.idleSessionTimeout(0)
.build())
.tokenBasedTriggers(AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTokenBasedTriggerArgs.builder()
.tokenCount(0)
.build())
.build())
.build())
.build())
.description("string")
.memoryRecordSchema(AgentcoreMemoryStrategyMemoryRecordSchemaArgs.builder()
.metadataSchemas(AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaArgs.builder()
.key("string")
.extractionConfig(AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigArgs.builder()
.llmExtractionConfig(AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigArgs.builder()
.definition("string")
.llmExtractionInstruction("string")
.validation(AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationArgs.builder()
.numberValidation(AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationNumberValidationArgs.builder()
.maxValue(0.0)
.minValue(0.0)
.build())
.stringListValidation(AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringListValidationArgs.builder()
.allowedValues("string")
.maxItems(0)
.build())
.stringValidation(AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringValidationArgs.builder()
.allowedValues("string")
.build())
.build())
.build())
.build())
.extractionType("string")
.type("string")
.build())
.build())
.name("string")
.namespaceTemplates("string")
.reflectionConfiguration(AgentcoreMemoryStrategyReflectionConfigurationArgs.builder()
.namespaceTemplates("string")
.build())
.region("string")
.timeouts(AgentcoreMemoryStrategyTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
agentcore_memory_strategy_resource = aws.bedrock.AgentcoreMemoryStrategy("agentcoreMemoryStrategyResource",
memory_id="string",
type="string",
configuration={
"type": "string",
"consolidation": {
"append_to_prompt": "string",
"model_id": "string",
},
"extraction": {
"append_to_prompt": "string",
"model_id": "string",
},
"reflection": {
"append_to_prompt": "string",
"model_id": "string",
"namespace_templates": ["string"],
},
"self_managed_configuration": {
"invocation_configuration": {
"payload_delivery_bucket_name": "string",
"topic_arn": "string",
},
"historical_context_window_size": 0,
"trigger_conditions": {
"message_based_trigger": {
"message_count": 0,
},
"time_based_trigger": {
"idle_session_timeout": 0,
},
"token_based_trigger": {
"token_count": 0,
},
},
"trigger_conditions_actuals": [{
"message_based_triggers": [{
"message_count": 0,
}],
"time_based_triggers": [{
"idle_session_timeout": 0,
}],
"token_based_triggers": [{
"token_count": 0,
}],
}],
},
},
description="string",
memory_record_schema={
"metadata_schemas": [{
"key": "string",
"extraction_config": {
"llm_extraction_config": {
"definition": "string",
"llm_extraction_instruction": "string",
"validation": {
"number_validation": {
"max_value": float(0),
"min_value": float(0),
},
"string_list_validation": {
"allowed_values": ["string"],
"max_items": 0,
},
"string_validation": {
"allowed_values": ["string"],
},
},
},
},
"extraction_type": "string",
"type": "string",
}],
},
name="string",
namespace_templates=["string"],
reflection_configuration={
"namespace_templates": ["string"],
},
region="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const agentcoreMemoryStrategyResource = new aws.bedrock.AgentcoreMemoryStrategy("agentcoreMemoryStrategyResource", {
memoryId: "string",
type: "string",
configuration: {
type: "string",
consolidation: {
appendToPrompt: "string",
modelId: "string",
},
extraction: {
appendToPrompt: "string",
modelId: "string",
},
reflection: {
appendToPrompt: "string",
modelId: "string",
namespaceTemplates: ["string"],
},
selfManagedConfiguration: {
invocationConfiguration: {
payloadDeliveryBucketName: "string",
topicArn: "string",
},
historicalContextWindowSize: 0,
triggerConditions: {
messageBasedTrigger: {
messageCount: 0,
},
timeBasedTrigger: {
idleSessionTimeout: 0,
},
tokenBasedTrigger: {
tokenCount: 0,
},
},
triggerConditionsActuals: [{
messageBasedTriggers: [{
messageCount: 0,
}],
timeBasedTriggers: [{
idleSessionTimeout: 0,
}],
tokenBasedTriggers: [{
tokenCount: 0,
}],
}],
},
},
description: "string",
memoryRecordSchema: {
metadataSchemas: [{
key: "string",
extractionConfig: {
llmExtractionConfig: {
definition: "string",
llmExtractionInstruction: "string",
validation: {
numberValidation: {
maxValue: 0,
minValue: 0,
},
stringListValidation: {
allowedValues: ["string"],
maxItems: 0,
},
stringValidation: {
allowedValues: ["string"],
},
},
},
},
extractionType: "string",
type: "string",
}],
},
name: "string",
namespaceTemplates: ["string"],
reflectionConfiguration: {
namespaceTemplates: ["string"],
},
region: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: aws:bedrock:AgentcoreMemoryStrategy
properties:
configuration:
consolidation:
appendToPrompt: string
modelId: string
extraction:
appendToPrompt: string
modelId: string
reflection:
appendToPrompt: string
modelId: string
namespaceTemplates:
- string
selfManagedConfiguration:
historicalContextWindowSize: 0
invocationConfiguration:
payloadDeliveryBucketName: string
topicArn: string
triggerConditions:
messageBasedTrigger:
messageCount: 0
timeBasedTrigger:
idleSessionTimeout: 0
tokenBasedTrigger:
tokenCount: 0
triggerConditionsActuals:
- messageBasedTriggers:
- messageCount: 0
timeBasedTriggers:
- idleSessionTimeout: 0
tokenBasedTriggers:
- tokenCount: 0
type: string
description: string
memoryId: string
memoryRecordSchema:
metadataSchemas:
- extractionConfig:
llmExtractionConfig:
definition: string
llmExtractionInstruction: string
validation:
numberValidation:
maxValue: 0
minValue: 0
stringListValidation:
allowedValues:
- string
maxItems: 0
stringValidation:
allowedValues:
- string
extractionType: string
key: string
type: string
name: string
namespaceTemplates:
- string
reflectionConfiguration:
namespaceTemplates:
- string
region: string
timeouts:
create: string
delete: string
update: string
type: string
AgentcoreMemoryStrategy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AgentcoreMemoryStrategy resource accepts the following input properties:
- Memory
Id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- Type string
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.The following arguments are optional:
- Configuration
Agentcore
Memory Strategy Configuration - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - Description string
- 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.
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- Memory
Record AgentcoreSchema Memory Strategy Memory Record Schema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - Name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- Namespace
Templates List<string> - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - Namespaces List<string>
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - Reflection
Configuration AgentcoreMemory Strategy Reflection Configuration - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Agentcore
Memory Strategy Timeouts
- Memory
Id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- Type string
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.The following arguments are optional:
- Configuration
Agentcore
Memory Strategy Configuration Args - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - Description string
- 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.
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- Memory
Record AgentcoreSchema Memory Strategy Memory Record Schema Args - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - Name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- Namespace
Templates []string - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - Namespaces []string
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - Reflection
Configuration AgentcoreMemory Strategy Reflection Configuration Args - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Agentcore
Memory Strategy Timeouts Args
- memory_
id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- type string
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.The following arguments are optional:
- configuration object
- Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description string
- 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.
- memory_
execution_ stringrole_ arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory_
record_ objectschema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace_
templates list(string) - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces list(string)
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection_
configuration object - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts object
- memory
Id String - ID of the memory to associate with this strategy. Changing this forces a new resource.
- type String
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.The following arguments are optional:
- configuration
Agentcore
Memory Strategy Configuration - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description String
- 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.
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory
Record AgentcoreSchema Memory Strategy Memory Record Schema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - name String
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace
Templates List<String> - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces List<String>
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection
Configuration AgentcoreMemory Strategy Reflection Configuration - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Agentcore
Memory Strategy Timeouts
- memory
Id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- type string
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.The following arguments are optional:
- configuration
Agentcore
Memory Strategy Configuration - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description string
- 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.
- memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory
Record AgentcoreSchema Memory Strategy Memory Record Schema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace
Templates string[] - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces string[]
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection
Configuration AgentcoreMemory Strategy Reflection Configuration - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Agentcore
Memory Strategy Timeouts
- memory_
id str - ID of the memory to associate with this strategy. Changing this forces a new resource.
- type str
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.The following arguments are optional:
- configuration
Agentcore
Memory Strategy Configuration Args - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description str
- 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.
- memory_
execution_ strrole_ arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory_
record_ Agentcoreschema Memory Strategy Memory Record Schema Args - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - name str
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace_
templates Sequence[str] - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces Sequence[str]
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection_
configuration AgentcoreMemory Strategy Reflection Configuration Args - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Agentcore
Memory Strategy Timeouts Args
- memory
Id String - ID of the memory to associate with this strategy. Changing this forces a new resource.
- type String
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.The following arguments are optional:
- configuration Property Map
- Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description String
- 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.
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory
Record Property MapSchema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - name String
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace
Templates List<String> - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces List<String>
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection
Configuration Property Map - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentcoreMemoryStrategy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Strategy stringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology).
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory
Strategy stringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology).
- id string
- The provider-assigned unique ID for this managed resource.
- memory_
strategy_ stringid - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology).
- id String
- The provider-assigned unique ID for this managed resource.
- memory
Strategy StringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology).
- id string
- The provider-assigned unique ID for this managed resource.
- memory
Strategy stringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology).
- id str
- The provider-assigned unique ID for this managed resource.
- memory_
strategy_ strid - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology).
- id String
- The provider-assigned unique ID for this managed resource.
- memory
Strategy StringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology).
Look up Existing AgentcoreMemoryStrategy Resource
Get an existing AgentcoreMemoryStrategy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AgentcoreMemoryStrategyState, opts?: CustomResourceOptions): AgentcoreMemoryStrategy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
configuration: Optional[AgentcoreMemoryStrategyConfigurationArgs] = None,
description: Optional[str] = None,
memory_execution_role_arn: Optional[str] = None,
memory_id: Optional[str] = None,
memory_record_schema: Optional[AgentcoreMemoryStrategyMemoryRecordSchemaArgs] = None,
memory_strategy_id: Optional[str] = None,
name: Optional[str] = None,
namespace_templates: Optional[Sequence[str]] = None,
namespaces: Optional[Sequence[str]] = None,
reflection_configuration: Optional[AgentcoreMemoryStrategyReflectionConfigurationArgs] = None,
region: Optional[str] = None,
timeouts: Optional[AgentcoreMemoryStrategyTimeoutsArgs] = None,
type: Optional[str] = None) -> AgentcoreMemoryStrategyfunc GetAgentcoreMemoryStrategy(ctx *Context, name string, id IDInput, state *AgentcoreMemoryStrategyState, opts ...ResourceOption) (*AgentcoreMemoryStrategy, error)public static AgentcoreMemoryStrategy Get(string name, Input<string> id, AgentcoreMemoryStrategyState? state, CustomResourceOptions? opts = null)public static AgentcoreMemoryStrategy get(String name, Output<String> id, AgentcoreMemoryStrategyState state, CustomResourceOptions options)resources: _: type: aws:bedrock:AgentcoreMemoryStrategy get: id: ${id}import {
to = aws_bedrock_agentcore_memory_strategy.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Configuration
Agentcore
Memory Strategy Configuration - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - Description string
- 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.
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- Memory
Id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- Memory
Record AgentcoreSchema Memory Strategy Memory Record Schema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - Memory
Strategy stringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology). - Name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- Namespace
Templates List<string> - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - Namespaces List<string>
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - Reflection
Configuration AgentcoreMemory Strategy Reflection Configuration - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Agentcore
Memory Strategy Timeouts - Type string
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.The following arguments are optional:
- Configuration
Agentcore
Memory Strategy Configuration Args - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - Description string
- 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.
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- Memory
Id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- Memory
Record AgentcoreSchema Memory Strategy Memory Record Schema Args - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - Memory
Strategy stringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology). - Name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- Namespace
Templates []string - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - Namespaces []string
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - Reflection
Configuration AgentcoreMemory Strategy Reflection Configuration Args - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Timeouts
Agentcore
Memory Strategy Timeouts Args - Type string
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.The following arguments are optional:
- configuration object
- Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description string
- 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.
- memory_
execution_ stringrole_ arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory_
id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- memory_
record_ objectschema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - memory_
strategy_ stringid - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology). - name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace_
templates list(string) - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces list(string)
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection_
configuration object - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts object
- type string
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.The following arguments are optional:
- configuration
Agentcore
Memory Strategy Configuration - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description String
- 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.
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory
Id String - ID of the memory to associate with this strategy. Changing this forces a new resource.
- memory
Record AgentcoreSchema Memory Strategy Memory Record Schema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - memory
Strategy StringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology). - name String
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace
Templates List<String> - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces List<String>
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection
Configuration AgentcoreMemory Strategy Reflection Configuration - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Agentcore
Memory Strategy Timeouts - type String
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.The following arguments are optional:
- configuration
Agentcore
Memory Strategy Configuration - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description string
- 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.
- memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory
Id string - ID of the memory to associate with this strategy. Changing this forces a new resource.
- memory
Record AgentcoreSchema Memory Strategy Memory Record Schema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - memory
Strategy stringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology). - name string
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace
Templates string[] - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces string[]
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection
Configuration AgentcoreMemory Strategy Reflection Configuration - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Agentcore
Memory Strategy Timeouts - type string
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.The following arguments are optional:
- configuration
Agentcore
Memory Strategy Configuration Args - Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description str
- 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.
- memory_
execution_ strrole_ arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory_
id str - ID of the memory to associate with this strategy. Changing this forces a new resource.
- memory_
record_ Agentcoreschema Memory Strategy Memory Record Schema Args - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - memory_
strategy_ strid - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology). - name str
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace_
templates Sequence[str] - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces Sequence[str]
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection_
configuration AgentcoreMemory Strategy Reflection Configuration Args - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts
Agentcore
Memory Strategy Timeouts Args - type str
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.The following arguments are optional:
- configuration Property Map
- Custom configuration block. Required when
typeisCUSTOM, must be omitted for other types. SeeconfigurationBlock below. - description String
- 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.
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations.
- memory
Id String - ID of the memory to associate with this strategy. Changing this forces a new resource.
- memory
Record Property MapSchema - Schema for metadata fields on records generated by this strategy. Valid for all strategy types. See
memoryRecordSchemaBlock below. - memory
Strategy StringId - Unique identifier of the Memory Strategy. This corresponds to the service
strategyIdidentifier (AWS API / CloudFormation terminology). - name String
- Name of the memory strategy. Changing this forces a new resource, because the service API does not support renaming a strategy.
- namespace
Templates List<String> - 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 ofnamespaceTemplatesornamespacesmust be configured for all strategies exceptCUSTOMstrategies usingSELF_MANAGEDconfiguration. - namespaces List<String>
- Set of namespace identifiers where this strategy applies. Exactly one of
namespacesornamespaceTemplatesmust be configured. The API treats this as a legacy parameter; prefernamespaceTemplates. Since the API mirrors the two fields, switching an existing configuration fromnamespacestonamespaceTemplateswith the same value is an in-place no-op. - reflection
Configuration Property Map - Configuration for the reflections created with the episodic memory strategy. Valid when
typeisEPISODIC, must be omitted for other types. SeereflectionConfigurationBlock below. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- timeouts Property Map
- type String
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.The following arguments are optional:
Supporting Types
AgentcoreMemoryStrategyConfiguration, AgentcoreMemoryStrategyConfigurationArgs
- Type string
- Type of custom override. Valid values:
SEMANTIC_OVERRIDE,SUMMARY_OVERRIDE,USER_PREFERENCE_OVERRIDE,EPISODIC_OVERRIDE,SELF_MANAGED. Changing this forces a new resource. - Consolidation
Agentcore
Memory Strategy Configuration Consolidation - Consolidation configuration for the memory strategy. See
consolidationBlock below. Cannot be used withtypeset toSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - Extraction
Agentcore
Memory Strategy Configuration Extraction - Extraction configuration for the memory strategy. See
extractionBlock below. Cannot be used withtypeset toSUMMARY_OVERRIDEorSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - Reflection
Agentcore
Memory Strategy Configuration Reflection - Reflection configuration for the memory strategy. See
reflectionBlock below. Can only be used, and is required, withtypeset toEPISODIC_OVERRIDE. Once added, this block cannot be removed without recreating the resource. - Self
Managed AgentcoreConfiguration Memory Strategy Configuration Self Managed Configuration - Self-managed processing configuration. Required when
typeisSELF_MANAGEDand only valid for that type. SeeselfManagedConfigurationBlock below.
- Type string
- Type of custom override. Valid values:
SEMANTIC_OVERRIDE,SUMMARY_OVERRIDE,USER_PREFERENCE_OVERRIDE,EPISODIC_OVERRIDE,SELF_MANAGED. Changing this forces a new resource. - Consolidation
Agentcore
Memory Strategy Configuration Consolidation - Consolidation configuration for the memory strategy. See
consolidationBlock below. Cannot be used withtypeset toSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - Extraction
Agentcore
Memory Strategy Configuration Extraction - Extraction configuration for the memory strategy. See
extractionBlock below. Cannot be used withtypeset toSUMMARY_OVERRIDEorSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - Reflection
Agentcore
Memory Strategy Configuration Reflection - Reflection configuration for the memory strategy. See
reflectionBlock below. Can only be used, and is required, withtypeset toEPISODIC_OVERRIDE. Once added, this block cannot be removed without recreating the resource. - Self
Managed AgentcoreConfiguration Memory Strategy Configuration Self Managed Configuration - Self-managed processing configuration. Required when
typeisSELF_MANAGEDand only valid for that type. SeeselfManagedConfigurationBlock below.
- type string
- Type of custom override. Valid values:
SEMANTIC_OVERRIDE,SUMMARY_OVERRIDE,USER_PREFERENCE_OVERRIDE,EPISODIC_OVERRIDE,SELF_MANAGED. Changing this forces a new resource. - consolidation object
- Consolidation configuration for the memory strategy. See
consolidationBlock below. Cannot be used withtypeset toSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - extraction object
- Extraction configuration for the memory strategy. See
extractionBlock below. Cannot be used withtypeset toSUMMARY_OVERRIDEorSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - reflection object
- Reflection configuration for the memory strategy. See
reflectionBlock below. Can only be used, and is required, withtypeset toEPISODIC_OVERRIDE. Once added, this block cannot be removed without recreating the resource. - self_
managed_ objectconfiguration - Self-managed processing configuration. Required when
typeisSELF_MANAGEDand only valid for that type. SeeselfManagedConfigurationBlock below.
- type String
- Type of custom override. Valid values:
SEMANTIC_OVERRIDE,SUMMARY_OVERRIDE,USER_PREFERENCE_OVERRIDE,EPISODIC_OVERRIDE,SELF_MANAGED. Changing this forces a new resource. - consolidation
Agentcore
Memory Strategy Configuration Consolidation - Consolidation configuration for the memory strategy. See
consolidationBlock below. Cannot be used withtypeset toSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - extraction
Agentcore
Memory Strategy Configuration Extraction - Extraction configuration for the memory strategy. See
extractionBlock below. Cannot be used withtypeset toSUMMARY_OVERRIDEorSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - reflection
Agentcore
Memory Strategy Configuration Reflection - Reflection configuration for the memory strategy. See
reflectionBlock below. Can only be used, and is required, withtypeset toEPISODIC_OVERRIDE. Once added, this block cannot be removed without recreating the resource. - self
Managed AgentcoreConfiguration Memory Strategy Configuration Self Managed Configuration - Self-managed processing configuration. Required when
typeisSELF_MANAGEDand only valid for that type. SeeselfManagedConfigurationBlock below.
- type string
- Type of custom override. Valid values:
SEMANTIC_OVERRIDE,SUMMARY_OVERRIDE,USER_PREFERENCE_OVERRIDE,EPISODIC_OVERRIDE,SELF_MANAGED. Changing this forces a new resource. - consolidation
Agentcore
Memory Strategy Configuration Consolidation - Consolidation configuration for the memory strategy. See
consolidationBlock below. Cannot be used withtypeset toSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - extraction
Agentcore
Memory Strategy Configuration Extraction - Extraction configuration for the memory strategy. See
extractionBlock below. Cannot be used withtypeset toSUMMARY_OVERRIDEorSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - reflection
Agentcore
Memory Strategy Configuration Reflection - Reflection configuration for the memory strategy. See
reflectionBlock below. Can only be used, and is required, withtypeset toEPISODIC_OVERRIDE. Once added, this block cannot be removed without recreating the resource. - self
Managed AgentcoreConfiguration Memory Strategy Configuration Self Managed Configuration - Self-managed processing configuration. Required when
typeisSELF_MANAGEDand only valid for that type. SeeselfManagedConfigurationBlock below.
- type str
- Type of custom override. Valid values:
SEMANTIC_OVERRIDE,SUMMARY_OVERRIDE,USER_PREFERENCE_OVERRIDE,EPISODIC_OVERRIDE,SELF_MANAGED. Changing this forces a new resource. - consolidation
Agentcore
Memory Strategy Configuration Consolidation - Consolidation configuration for the memory strategy. See
consolidationBlock below. Cannot be used withtypeset toSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - extraction
Agentcore
Memory Strategy Configuration Extraction - Extraction configuration for the memory strategy. See
extractionBlock below. Cannot be used withtypeset toSUMMARY_OVERRIDEorSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - reflection
Agentcore
Memory Strategy Configuration Reflection - Reflection configuration for the memory strategy. See
reflectionBlock below. Can only be used, and is required, withtypeset toEPISODIC_OVERRIDE. Once added, this block cannot be removed without recreating the resource. - self_
managed_ Agentcoreconfiguration Memory Strategy Configuration Self Managed Configuration - Self-managed processing configuration. Required when
typeisSELF_MANAGEDand only valid for that type. SeeselfManagedConfigurationBlock below.
- type String
- Type of custom override. Valid values:
SEMANTIC_OVERRIDE,SUMMARY_OVERRIDE,USER_PREFERENCE_OVERRIDE,EPISODIC_OVERRIDE,SELF_MANAGED. Changing this forces a new resource. - consolidation Property Map
- Consolidation configuration for the memory strategy. See
consolidationBlock below. Cannot be used withtypeset toSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - extraction Property Map
- Extraction configuration for the memory strategy. See
extractionBlock below. Cannot be used withtypeset toSUMMARY_OVERRIDEorSELF_MANAGED. Once added, this block cannot be removed without recreating the resource. - reflection Property Map
- Reflection configuration for the memory strategy. See
reflectionBlock below. Can only be used, and is required, withtypeset toEPISODIC_OVERRIDE. Once added, this block cannot be removed without recreating the resource. - self
Managed Property MapConfiguration - Self-managed processing configuration. Required when
typeisSELF_MANAGEDand only valid for that type. SeeselfManagedConfigurationBlock below.
AgentcoreMemoryStrategyConfigurationConsolidation, AgentcoreMemoryStrategyConfigurationConsolidationArgs
- Append
To stringPrompt - Additional text to append to the model prompt for consolidation processing.
- Model
Id string - ID of the foundation model to use for consolidation processing.
- Append
To stringPrompt - Additional text to append to the model prompt for consolidation processing.
- Model
Id string - ID of the foundation model to use for consolidation processing.
- append_
to_ stringprompt - Additional text to append to the model prompt for consolidation processing.
- model_
id string - ID of the foundation model to use for consolidation processing.
- append
To StringPrompt - Additional text to append to the model prompt for consolidation processing.
- model
Id String - ID of the foundation model to use for consolidation processing.
- append
To stringPrompt - Additional text to append to the model prompt for consolidation processing.
- model
Id string - ID of the foundation model to use for consolidation processing.
- append_
to_ strprompt - Additional text to append to the model prompt for consolidation processing.
- model_
id str - ID of the foundation model to use for consolidation processing.
- append
To StringPrompt - Additional text to append to the model prompt for consolidation processing.
- model
Id String - ID of the foundation model to use for consolidation processing.
AgentcoreMemoryStrategyConfigurationExtraction, AgentcoreMemoryStrategyConfigurationExtractionArgs
- Append
To stringPrompt - Additional text to append to the model prompt for extraction processing.
- Model
Id string - ID of the foundation model to use for extraction processing.
- Append
To stringPrompt - Additional text to append to the model prompt for extraction processing.
- Model
Id string - ID of the foundation model to use for extraction processing.
- append_
to_ stringprompt - Additional text to append to the model prompt for extraction processing.
- model_
id string - ID of the foundation model to use for extraction processing.
- append
To StringPrompt - Additional text to append to the model prompt for extraction processing.
- model
Id String - ID of the foundation model to use for extraction processing.
- append
To stringPrompt - Additional text to append to the model prompt for extraction processing.
- model
Id string - ID of the foundation model to use for extraction processing.
- append_
to_ strprompt - Additional text to append to the model prompt for extraction processing.
- model_
id str - ID of the foundation model to use for extraction processing.
- append
To StringPrompt - Additional text to append to the model prompt for extraction processing.
- model
Id String - ID of the foundation model to use for extraction processing.
AgentcoreMemoryStrategyConfigurationReflection, AgentcoreMemoryStrategyConfigurationReflectionArgs
- Append
To stringPrompt - Additional text to append to the model prompt for reflection processing.
- Model
Id string - ID of the foundation model to use for reflection processing.
- Namespace
Templates List<string> - Namespace templates for episodic reflection. Can be less nested than the episodic namespaces.
- Append
To stringPrompt - Additional text to append to the model prompt for reflection processing.
- Model
Id string - ID of the foundation model to use for reflection processing.
- Namespace
Templates []string - Namespace templates for episodic reflection. Can be less nested than the episodic namespaces.
- append_
to_ stringprompt - Additional text to append to the model prompt for reflection processing.
- model_
id string - ID of the foundation model to use for reflection processing.
- namespace_
templates list(string) - Namespace templates for episodic reflection. Can be less nested than the episodic namespaces.
- append
To StringPrompt - Additional text to append to the model prompt for reflection processing.
- model
Id String - ID of the foundation model to use for reflection processing.
- namespace
Templates List<String> - Namespace templates for episodic reflection. Can be less nested than the episodic namespaces.
- append
To stringPrompt - Additional text to append to the model prompt for reflection processing.
- model
Id string - ID of the foundation model to use for reflection processing.
- namespace
Templates string[] - Namespace templates for episodic reflection. Can be less nested than the episodic namespaces.
- append_
to_ strprompt - Additional text to append to the model prompt for reflection processing.
- model_
id str - ID of the foundation model to use for reflection processing.
- namespace_
templates Sequence[str] - Namespace templates for episodic reflection. Can be less nested than the episodic namespaces.
- append
To StringPrompt - Additional text to append to the model prompt for reflection processing.
- model
Id String - ID of the foundation model to use for reflection processing.
- namespace
Templates List<String> - Namespace templates for episodic reflection. Can be less nested than the episodic namespaces.
AgentcoreMemoryStrategyConfigurationSelfManagedConfiguration, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationArgs
- Invocation
Configuration AgentcoreMemory Strategy Configuration Self Managed Configuration Invocation Configuration - Configuration used to invoke the self-managed memory processing pipeline. See
invocationConfigurationBlock below. - Historical
Context intWindow Size - Number of historical messages to include in processing context. Valid range:
0to50. Defaults to4. - Trigger
Conditions AgentcoreMemory Strategy Configuration Self Managed Configuration Trigger Conditions - Conditions that trigger memory processing. See
triggerConditionsBlock below. When omitted, the service supplies the documented defaults for all three trigger types. - Trigger
Conditions List<AgentcoreActuals Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual> - Actual deployed trigger conditions.
- Invocation
Configuration AgentcoreMemory Strategy Configuration Self Managed Configuration Invocation Configuration - Configuration used to invoke the self-managed memory processing pipeline. See
invocationConfigurationBlock below. - Historical
Context intWindow Size - Number of historical messages to include in processing context. Valid range:
0to50. Defaults to4. - Trigger
Conditions AgentcoreMemory Strategy Configuration Self Managed Configuration Trigger Conditions - Conditions that trigger memory processing. See
triggerConditionsBlock below. When omitted, the service supplies the documented defaults for all three trigger types. - Trigger
Conditions []AgentcoreActuals Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual - Actual deployed trigger conditions.
- invocation_
configuration object - Configuration used to invoke the self-managed memory processing pipeline. See
invocationConfigurationBlock below. - historical_
context_ numberwindow_ size - Number of historical messages to include in processing context. Valid range:
0to50. Defaults to4. - trigger_
conditions object - Conditions that trigger memory processing. See
triggerConditionsBlock below. When omitted, the service supplies the documented defaults for all three trigger types. - trigger_
conditions_ list(object)actuals - Actual deployed trigger conditions.
- invocation
Configuration AgentcoreMemory Strategy Configuration Self Managed Configuration Invocation Configuration - Configuration used to invoke the self-managed memory processing pipeline. See
invocationConfigurationBlock below. - historical
Context IntegerWindow Size - Number of historical messages to include in processing context. Valid range:
0to50. Defaults to4. - trigger
Conditions AgentcoreMemory Strategy Configuration Self Managed Configuration Trigger Conditions - Conditions that trigger memory processing. See
triggerConditionsBlock below. When omitted, the service supplies the documented defaults for all three trigger types. - trigger
Conditions List<AgentcoreActuals Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual> - Actual deployed trigger conditions.
- invocation
Configuration AgentcoreMemory Strategy Configuration Self Managed Configuration Invocation Configuration - Configuration used to invoke the self-managed memory processing pipeline. See
invocationConfigurationBlock below. - historical
Context numberWindow Size - Number of historical messages to include in processing context. Valid range:
0to50. Defaults to4. - trigger
Conditions AgentcoreMemory Strategy Configuration Self Managed Configuration Trigger Conditions - Conditions that trigger memory processing. See
triggerConditionsBlock below. When omitted, the service supplies the documented defaults for all three trigger types. - trigger
Conditions AgentcoreActuals Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual[] - Actual deployed trigger conditions.
- invocation_
configuration AgentcoreMemory Strategy Configuration Self Managed Configuration Invocation Configuration - Configuration used to invoke the self-managed memory processing pipeline. See
invocationConfigurationBlock below. - historical_
context_ intwindow_ size - Number of historical messages to include in processing context. Valid range:
0to50. Defaults to4. - trigger_
conditions AgentcoreMemory Strategy Configuration Self Managed Configuration Trigger Conditions - Conditions that trigger memory processing. See
triggerConditionsBlock below. When omitted, the service supplies the documented defaults for all three trigger types. - trigger_
conditions_ Sequence[Agentcoreactuals Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual] - Actual deployed trigger conditions.
- invocation
Configuration Property Map - Configuration used to invoke the self-managed memory processing pipeline. See
invocationConfigurationBlock below. - historical
Context NumberWindow Size - Number of historical messages to include in processing context. Valid range:
0to50. Defaults to4. - trigger
Conditions Property Map - Conditions that trigger memory processing. See
triggerConditionsBlock below. When omitted, the service supplies the documented defaults for all three trigger types. - trigger
Conditions List<Property Map>Actuals - Actual deployed trigger conditions.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfiguration, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationInvocationConfigurationArgs
- Payload
Delivery stringBucket Name - S3 bucket name for event payload delivery.
- Topic
Arn string - ARN of the SNS topic for job notifications.
- Payload
Delivery stringBucket Name - S3 bucket name for event payload delivery.
- Topic
Arn string - ARN of the SNS topic for job notifications.
- payload_
delivery_ stringbucket_ name - S3 bucket name for event payload delivery.
- topic_
arn string - ARN of the SNS topic for job notifications.
- payload
Delivery StringBucket Name - S3 bucket name for event payload delivery.
- topic
Arn String - ARN of the SNS topic for job notifications.
- payload
Delivery stringBucket Name - S3 bucket name for event payload delivery.
- topic
Arn string - ARN of the SNS topic for job notifications.
- payload_
delivery_ strbucket_ name - S3 bucket name for event payload delivery.
- topic_
arn str - ARN of the SNS topic for job notifications.
- payload
Delivery StringBucket Name - S3 bucket name for event payload delivery.
- topic
Arn String - ARN of the SNS topic for job notifications.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditions, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsArgs
- Message
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Message Based Trigger - Message-based condition. See
messageBasedTriggerBlock below. - Time
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Time Based Trigger - Idle-time condition. See
timeBasedTriggerBlock below. - Token
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Token Based Trigger - Token-based condition. See
tokenBasedTriggerBlock below.
- Message
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Message Based Trigger - Message-based condition. See
messageBasedTriggerBlock below. - Time
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Time Based Trigger - Idle-time condition. See
timeBasedTriggerBlock below. - Token
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Token Based Trigger - Token-based condition. See
tokenBasedTriggerBlock below.
- message_
based_ objecttrigger - Message-based condition. See
messageBasedTriggerBlock below. - time_
based_ objecttrigger - Idle-time condition. See
timeBasedTriggerBlock below. - token_
based_ objecttrigger - Token-based condition. See
tokenBasedTriggerBlock below.
- message
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Message Based Trigger - Message-based condition. See
messageBasedTriggerBlock below. - time
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Time Based Trigger - Idle-time condition. See
timeBasedTriggerBlock below. - token
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Token Based Trigger - Token-based condition. See
tokenBasedTriggerBlock below.
- message
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Message Based Trigger - Message-based condition. See
messageBasedTriggerBlock below. - time
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Time Based Trigger - Idle-time condition. See
timeBasedTriggerBlock below. - token
Based AgentcoreTrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Token Based Trigger - Token-based condition. See
tokenBasedTriggerBlock below.
- message_
based_ Agentcoretrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Message Based Trigger - Message-based condition. See
messageBasedTriggerBlock below. - time_
based_ Agentcoretrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Time Based Trigger - Idle-time condition. See
timeBasedTriggerBlock below. - token_
based_ Agentcoretrigger Memory Strategy Configuration Self Managed Configuration Trigger Conditions Token Based Trigger - Token-based condition. See
tokenBasedTriggerBlock below.
- message
Based Property MapTrigger - Message-based condition. See
messageBasedTriggerBlock below. - time
Based Property MapTrigger - Idle-time condition. See
timeBasedTriggerBlock below. - token
Based Property MapTrigger - Token-based condition. See
tokenBasedTriggerBlock below.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActual, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualArgs
- Message
Based List<AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Message Based Trigger> - Message-based condition.
- Time
Based List<AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Time Based Trigger> - Idle-time condition.
- Token
Based List<AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Token Based Trigger> - Token-based condition.
- Message
Based []AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Message Based Trigger - Message-based condition.
- Time
Based []AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Time Based Trigger - Idle-time condition.
- Token
Based []AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Token Based Trigger - Token-based condition.
- message_
based_ list(object)triggers - Message-based condition.
- time_
based_ list(object)triggers - Idle-time condition.
- token_
based_ list(object)triggers - Token-based condition.
- message
Based List<AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Message Based Trigger> - Message-based condition.
- time
Based List<AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Time Based Trigger> - Idle-time condition.
- token
Based List<AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Token Based Trigger> - Token-based condition.
- message
Based AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Message Based Trigger[] - Message-based condition.
- time
Based AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Time Based Trigger[] - Idle-time condition.
- token
Based AgentcoreTriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Token Based Trigger[] - Token-based condition.
- message_
based_ Sequence[Agentcoretriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Message Based Trigger] - Message-based condition.
- time_
based_ Sequence[Agentcoretriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Time Based Trigger] - Idle-time condition.
- token_
based_ Sequence[Agentcoretriggers Memory Strategy Configuration Self Managed Configuration Trigger Conditions Actual Token Based Trigger] - Token-based condition.
- message
Based List<Property Map>Triggers - Message-based condition.
- time
Based List<Property Map>Triggers - Idle-time condition.
- token
Based List<Property Map>Triggers - Token-based condition.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualMessageBasedTrigger, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualMessageBasedTriggerArgs
- Message
Count int - Number of messages that trigger memory processing. Accepts values from
1to50.
- Message
Count int - Number of messages that trigger memory processing. Accepts values from
1to50.
- message_
count number - Number of messages that trigger memory processing. Accepts values from
1to50.
- message
Count Integer - Number of messages that trigger memory processing. Accepts values from
1to50.
- message
Count number - Number of messages that trigger memory processing. Accepts values from
1to50.
- message_
count int - Number of messages that trigger memory processing. Accepts values from
1to50.
- message
Count Number - Number of messages that trigger memory processing. Accepts values from
1to50.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTimeBasedTrigger, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTimeBasedTriggerArgs
- Idle
Session intTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- Idle
Session intTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle_
session_ numbertimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle
Session IntegerTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle
Session numberTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle_
session_ inttimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle
Session NumberTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTokenBasedTrigger, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsActualTokenBasedTriggerArgs
- Token
Count int - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- Token
Count int - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token_
count number - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token
Count Integer - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token
Count number - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token_
count int - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token
Count Number - Number of tokens that trigger memory processing. Accepts values from
100to500000.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsMessageBasedTrigger, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsMessageBasedTriggerArgs
- Message
Count int - Number of messages that trigger memory processing. Accepts values from
1to50.
- Message
Count int - Number of messages that trigger memory processing. Accepts values from
1to50.
- message_
count number - Number of messages that trigger memory processing. Accepts values from
1to50.
- message
Count Integer - Number of messages that trigger memory processing. Accepts values from
1to50.
- message
Count number - Number of messages that trigger memory processing. Accepts values from
1to50.
- message_
count int - Number of messages that trigger memory processing. Accepts values from
1to50.
- message
Count Number - Number of messages that trigger memory processing. Accepts values from
1to50.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTimeBasedTrigger, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTimeBasedTriggerArgs
- Idle
Session intTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- Idle
Session intTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle_
session_ numbertimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle
Session IntegerTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle
Session numberTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle_
session_ inttimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
- idle
Session NumberTimeout - Idle session timeout (seconds) that triggers memory processing. Accepts values from
10to3000.
AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTokenBasedTrigger, AgentcoreMemoryStrategyConfigurationSelfManagedConfigurationTriggerConditionsTokenBasedTriggerArgs
- Token
Count int - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- Token
Count int - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token_
count number - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token
Count Integer - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token
Count number - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token_
count int - Number of tokens that trigger memory processing. Accepts values from
100to500000.
- token
Count Number - Number of tokens that trigger memory processing. Accepts values from
100to500000.
AgentcoreMemoryStrategyMemoryRecordSchema, AgentcoreMemoryStrategyMemoryRecordSchemaArgs
- Metadata
Schemas List<AgentcoreMemory Strategy Memory Record Schema Metadata Schema> - List of metadata field definitions for records generated by this strategy. See
metadataSchemaBlock below.
- Metadata
Schemas []AgentcoreMemory Strategy Memory Record Schema Metadata Schema - List of metadata field definitions for records generated by this strategy. See
metadataSchemaBlock below.
- metadata_
schemas list(object) - List of metadata field definitions for records generated by this strategy. See
metadataSchemaBlock below.
- metadata
Schemas List<AgentcoreMemory Strategy Memory Record Schema Metadata Schema> - List of metadata field definitions for records generated by this strategy. See
metadataSchemaBlock below.
- metadata
Schemas AgentcoreMemory Strategy Memory Record Schema Metadata Schema[] - List of metadata field definitions for records generated by this strategy. See
metadataSchemaBlock below.
- metadata_
schemas Sequence[AgentcoreMemory Strategy Memory Record Schema Metadata Schema] - List of metadata field definitions for records generated by this strategy. See
metadataSchemaBlock below.
- metadata
Schemas List<Property Map> - List of metadata field definitions for records generated by this strategy. See
metadataSchemaBlock below.
AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchema, AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaArgs
- Key string
- Metadata field name. Must match an indexed key to be queryable via metadata filters.
- Extraction
Config AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config - Configuration for extracting this metadata value from conversational content. Applicable only when
extractionTypeisLLM_INFERRED. SeeextractionConfigBlock below. - Extraction
Type string - Whether the metadata value is extracted by the LLM or passed through deterministically from the event. Valid values:
LLM_INFERRED,STRICTLY_CONSISTENT. - Type string
- Metadata value type. Valid values:
STRING,STRINGLIST,NUMBER.
- Key string
- Metadata field name. Must match an indexed key to be queryable via metadata filters.
- Extraction
Config AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config - Configuration for extracting this metadata value from conversational content. Applicable only when
extractionTypeisLLM_INFERRED. SeeextractionConfigBlock below. - Extraction
Type string - Whether the metadata value is extracted by the LLM or passed through deterministically from the event. Valid values:
LLM_INFERRED,STRICTLY_CONSISTENT. - Type string
- Metadata value type. Valid values:
STRING,STRINGLIST,NUMBER.
- key string
- Metadata field name. Must match an indexed key to be queryable via metadata filters.
- extraction_
config object - Configuration for extracting this metadata value from conversational content. Applicable only when
extractionTypeisLLM_INFERRED. SeeextractionConfigBlock below. - extraction_
type string - Whether the metadata value is extracted by the LLM or passed through deterministically from the event. Valid values:
LLM_INFERRED,STRICTLY_CONSISTENT. - type string
- Metadata value type. Valid values:
STRING,STRINGLIST,NUMBER.
- key String
- Metadata field name. Must match an indexed key to be queryable via metadata filters.
- extraction
Config AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config - Configuration for extracting this metadata value from conversational content. Applicable only when
extractionTypeisLLM_INFERRED. SeeextractionConfigBlock below. - extraction
Type String - Whether the metadata value is extracted by the LLM or passed through deterministically from the event. Valid values:
LLM_INFERRED,STRICTLY_CONSISTENT. - type String
- Metadata value type. Valid values:
STRING,STRINGLIST,NUMBER.
- key string
- Metadata field name. Must match an indexed key to be queryable via metadata filters.
- extraction
Config AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config - Configuration for extracting this metadata value from conversational content. Applicable only when
extractionTypeisLLM_INFERRED. SeeextractionConfigBlock below. - extraction
Type string - Whether the metadata value is extracted by the LLM or passed through deterministically from the event. Valid values:
LLM_INFERRED,STRICTLY_CONSISTENT. - type string
- Metadata value type. Valid values:
STRING,STRINGLIST,NUMBER.
- key str
- Metadata field name. Must match an indexed key to be queryable via metadata filters.
- extraction_
config AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config - Configuration for extracting this metadata value from conversational content. Applicable only when
extractionTypeisLLM_INFERRED. SeeextractionConfigBlock below. - extraction_
type str - Whether the metadata value is extracted by the LLM or passed through deterministically from the event. Valid values:
LLM_INFERRED,STRICTLY_CONSISTENT. - type str
- Metadata value type. Valid values:
STRING,STRINGLIST,NUMBER.
- key String
- Metadata field name. Must match an indexed key to be queryable via metadata filters.
- extraction
Config Property Map - Configuration for extracting this metadata value from conversational content. Applicable only when
extractionTypeisLLM_INFERRED. SeeextractionConfigBlock below. - extraction
Type String - Whether the metadata value is extracted by the LLM or passed through deterministically from the event. Valid values:
LLM_INFERRED,STRICTLY_CONSISTENT. - type String
- Metadata value type. Valid values:
STRING,STRINGLIST,NUMBER.
AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfig, AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigArgs
- Llm
Extraction AgentcoreConfig Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config - Model-based extraction configuration. See
llmExtractionConfigBlock below.
- Llm
Extraction AgentcoreConfig Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config - Model-based extraction configuration. See
llmExtractionConfigBlock below.
- llm_
extraction_ objectconfig - Model-based extraction configuration. See
llmExtractionConfigBlock below.
- llm
Extraction AgentcoreConfig Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config - Model-based extraction configuration. See
llmExtractionConfigBlock below.
- llm
Extraction AgentcoreConfig Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config - Model-based extraction configuration. See
llmExtractionConfigBlock below.
- llm_
extraction_ Agentcoreconfig Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config - Model-based extraction configuration. See
llmExtractionConfigBlock below.
- llm
Extraction Property MapConfig - Model-based extraction configuration. See
llmExtractionConfigBlock below.
AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfig, AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigArgs
- Definition string
- Description of what this metadata field represents.
- Llm
Extraction stringInstruction - Instructions for extraction. Supports built-in operators like
LATEST_VALUEor custom natural-language instructions. - Validation
Agentcore
Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation - Validation rules to constrain extracted values. See
validationBlock below.
- Definition string
- Description of what this metadata field represents.
- Llm
Extraction stringInstruction - Instructions for extraction. Supports built-in operators like
LATEST_VALUEor custom natural-language instructions. - Validation
Agentcore
Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation - Validation rules to constrain extracted values. See
validationBlock below.
- definition string
- Description of what this metadata field represents.
- llm_
extraction_ stringinstruction - Instructions for extraction. Supports built-in operators like
LATEST_VALUEor custom natural-language instructions. - validation object
- Validation rules to constrain extracted values. See
validationBlock below.
- definition String
- Description of what this metadata field represents.
- llm
Extraction StringInstruction - Instructions for extraction. Supports built-in operators like
LATEST_VALUEor custom natural-language instructions. - validation
Agentcore
Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation - Validation rules to constrain extracted values. See
validationBlock below.
- definition string
- Description of what this metadata field represents.
- llm
Extraction stringInstruction - Instructions for extraction. Supports built-in operators like
LATEST_VALUEor custom natural-language instructions. - validation
Agentcore
Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation - Validation rules to constrain extracted values. See
validationBlock below.
- definition str
- Description of what this metadata field represents.
- llm_
extraction_ strinstruction - Instructions for extraction. Supports built-in operators like
LATEST_VALUEor custom natural-language instructions. - validation
Agentcore
Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation - Validation rules to constrain extracted values. See
validationBlock below.
- definition String
- Description of what this metadata field represents.
- llm
Extraction StringInstruction - Instructions for extraction. Supports built-in operators like
LATEST_VALUEor custom natural-language instructions. - validation Property Map
- Validation rules to constrain extracted values. See
validationBlock below.
AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidation, AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationArgs
- Number
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation Number Validation - Validation for
NUMBERfields. SeenumberValidationBlock below. - String
List AgentcoreValidation Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String List Validation - Validation for
STRINGLISTfields. SeestringListValidationBlock below. - String
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String Validation - Validation for
STRINGfields. SeestringValidationBlock below.
- Number
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation Number Validation - Validation for
NUMBERfields. SeenumberValidationBlock below. - String
List AgentcoreValidation Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String List Validation - Validation for
STRINGLISTfields. SeestringListValidationBlock below. - String
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String Validation - Validation for
STRINGfields. SeestringValidationBlock below.
- number_
validation object - Validation for
NUMBERfields. SeenumberValidationBlock below. - string_
list_ objectvalidation - Validation for
STRINGLISTfields. SeestringListValidationBlock below. - string_
validation object - Validation for
STRINGfields. SeestringValidationBlock below.
- number
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation Number Validation - Validation for
NUMBERfields. SeenumberValidationBlock below. - string
List AgentcoreValidation Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String List Validation - Validation for
STRINGLISTfields. SeestringListValidationBlock below. - string
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String Validation - Validation for
STRINGfields. SeestringValidationBlock below.
- number
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation Number Validation - Validation for
NUMBERfields. SeenumberValidationBlock below. - string
List AgentcoreValidation Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String List Validation - Validation for
STRINGLISTfields. SeestringListValidationBlock below. - string
Validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String Validation - Validation for
STRINGfields. SeestringValidationBlock below.
- number_
validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation Number Validation - Validation for
NUMBERfields. SeenumberValidationBlock below. - string_
list_ Agentcorevalidation Memory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String List Validation - Validation for
STRINGLISTfields. SeestringListValidationBlock below. - string_
validation AgentcoreMemory Strategy Memory Record Schema Metadata Schema Extraction Config Llm Extraction Config Validation String Validation - Validation for
STRINGfields. SeestringValidationBlock below.
- number
Validation Property Map - Validation for
NUMBERfields. SeenumberValidationBlock below. - string
List Property MapValidation - Validation for
STRINGLISTfields. SeestringListValidationBlock below. - string
Validation Property Map - Validation for
STRINGfields. SeestringValidationBlock below.
AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationNumberValidation, AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationNumberValidationArgs
AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringListValidation, AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringListValidationArgs
- Allowed
Values List<string> - Allowed values for items in this
STRINGLISTfield. - Max
Items int - Maximum number of items in the string list.
- Allowed
Values []string - Allowed values for items in this
STRINGLISTfield. - Max
Items int - Maximum number of items in the string list.
- allowed_
values list(string) - Allowed values for items in this
STRINGLISTfield. - max_
items number - Maximum number of items in the string list.
- allowed
Values List<String> - Allowed values for items in this
STRINGLISTfield. - max
Items Integer - Maximum number of items in the string list.
- allowed
Values string[] - Allowed values for items in this
STRINGLISTfield. - max
Items number - Maximum number of items in the string list.
- allowed_
values Sequence[str] - Allowed values for items in this
STRINGLISTfield. - max_
items int - Maximum number of items in the string list.
- allowed
Values List<String> - Allowed values for items in this
STRINGLISTfield. - max
Items Number - Maximum number of items in the string list.
AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringValidation, AgentcoreMemoryStrategyMemoryRecordSchemaMetadataSchemaExtractionConfigLlmExtractionConfigValidationStringValidationArgs
- Allowed
Values List<string> - Allowed values for this
STRINGfield.
- Allowed
Values []string - Allowed values for this
STRINGfield.
- allowed_
values list(string) - Allowed values for this
STRINGfield.
- allowed
Values List<String> - Allowed values for this
STRINGfield.
- allowed
Values string[] - Allowed values for this
STRINGfield.
- allowed_
values Sequence[str] - Allowed values for this
STRINGfield.
- allowed
Values List<String> - Allowed values for this
STRINGfield.
AgentcoreMemoryStrategyReflectionConfiguration, AgentcoreMemoryStrategyReflectionConfigurationArgs
- Namespace
Templates List<string> - Namespace templates over which to create reflections. Can be less nested than episode namespaces.
- Namespace
Templates []string - Namespace templates over which to create reflections. Can be less nested than episode namespaces.
- namespace_
templates list(string) - Namespace templates over which to create reflections. Can be less nested than episode namespaces.
- namespace
Templates List<String> - Namespace templates over which to create reflections. Can be less nested than episode namespaces.
- namespace
Templates string[] - Namespace templates over which to create reflections. Can be less nested than episode namespaces.
- namespace_
templates Sequence[str] - Namespace templates over which to create reflections. Can be less nested than episode namespaces.
- namespace
Templates List<String> - Namespace templates over which to create reflections. Can be less nested than episode namespaces.
AgentcoreMemoryStrategyTimeouts, AgentcoreMemoryStrategyTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Identity Schema
Required
memoryId(String) Memory ID.memoryStrategyId(String) Memory strategy ID.
Optional
accountId(String) Account ID where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import memory strategies using memoryId and memoryStrategyId separated by a comma (,). For example:
$ pulumi import aws:bedrock/agentcoreMemoryStrategy:AgentcoreMemoryStrategy example example_memory-5JcvKJ4GP0,example_memory_strategy-pblFzi8VyW
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Sep 10, 2026 by Pulumi