aws.bedrock.AgentcoreMemory
Manages an AWS Bedrock AgentCore Memory. Memory provides persistent storage for AI agent interactions, allowing agents to retain context across conversations and sessions.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const assumeRole = aws.iam.getPolicyDocument({
statements: [{
effect: "Allow",
actions: ["sts:AssumeRole"],
principals: [{
type: "Service",
identifiers: ["bedrock-agentcore.amazonaws.com"],
}],
}],
});
const example = new aws.iam.Role("example", {
name: "bedrock-agentcore-memory-role",
assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
});
const exampleRolePolicyAttachment = new aws.iam.RolePolicyAttachment("example", {
role: example.name,
policyArn: "arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy",
});
const exampleAgentcoreMemory = new aws.bedrock.AgentcoreMemory("example", {
name: "example-memory",
eventExpiryDuration: 30,
});
import pulumi
import pulumi_aws as aws
assume_role = aws.iam.get_policy_document(statements=[{
"effect": "Allow",
"actions": ["sts:AssumeRole"],
"principals": [{
"type": "Service",
"identifiers": ["bedrock-agentcore.amazonaws.com"],
}],
}])
example = aws.iam.Role("example",
name="bedrock-agentcore-memory-role",
assume_role_policy=assume_role.json)
example_role_policy_attachment = aws.iam.RolePolicyAttachment("example",
role=example.name,
policy_arn="arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy")
example_agentcore_memory = aws.bedrock.AgentcoreMemory("example",
name="example-memory",
event_expiry_duration=30)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
Statements: []iam.GetPolicyDocumentStatement{
{
Effect: pulumi.StringRef("Allow"),
Actions: []string{
"sts:AssumeRole",
},
Principals: []iam.GetPolicyDocumentStatementPrincipal{
{
Type: "Service",
Identifiers: []string{
"bedrock-agentcore.amazonaws.com",
},
},
},
},
},
}, nil)
if err != nil {
return err
}
example, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
Name: pulumi.String("bedrock-agentcore-memory-role"),
AssumeRolePolicy: pulumi.String(assumeRole.Json),
})
if err != nil {
return err
}
_, err = iam.NewRolePolicyAttachment(ctx, "example", &iam.RolePolicyAttachmentArgs{
Role: example.Name,
PolicyArn: pulumi.String("arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy"),
})
if err != nil {
return err
}
_, err = bedrock.NewAgentcoreMemory(ctx, "example", &bedrock.AgentcoreMemoryArgs{
Name: pulumi.String("example-memory"),
EventExpiryDuration: pulumi.Int(30),
})
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 assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
{
Statements = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
{
Effect = "Allow",
Actions = new[]
{
"sts:AssumeRole",
},
Principals = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
{
Type = "Service",
Identifiers = new[]
{
"bedrock-agentcore.amazonaws.com",
},
},
},
},
},
});
var example = new Aws.Iam.Role("example", new()
{
Name = "bedrock-agentcore-memory-role",
AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
});
var exampleRolePolicyAttachment = new Aws.Iam.RolePolicyAttachment("example", new()
{
Role = example.Name,
PolicyArn = "arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy",
});
var exampleAgentcoreMemory = new Aws.Bedrock.AgentcoreMemory("example", new()
{
Name = "example-memory",
EventExpiryDuration = 30,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.iam.RolePolicyAttachment;
import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
import com.pulumi.aws.bedrock.AgentcoreMemory;
import com.pulumi.aws.bedrock.AgentcoreMemoryArgs;
import java.util.List;
import java.util.ArrayList;
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) {
final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
.statements(GetPolicyDocumentStatementArgs.builder()
.effect("Allow")
.actions("sts:AssumeRole")
.principals(GetPolicyDocumentStatementPrincipalArgs.builder()
.type("Service")
.identifiers("bedrock-agentcore.amazonaws.com")
.build())
.build())
.build());
var example = new Role("example", RoleArgs.builder()
.name("bedrock-agentcore-memory-role")
.assumeRolePolicy(assumeRole.json())
.build());
var exampleRolePolicyAttachment = new RolePolicyAttachment("exampleRolePolicyAttachment", RolePolicyAttachmentArgs.builder()
.role(example.name())
.policyArn("arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy")
.build());
var exampleAgentcoreMemory = new AgentcoreMemory("exampleAgentcoreMemory", AgentcoreMemoryArgs.builder()
.name("example-memory")
.eventExpiryDuration(30)
.build());
}
}
resources:
example:
type: aws:iam:Role
properties:
name: bedrock-agentcore-memory-role
assumeRolePolicy: ${assumeRole.json}
exampleRolePolicyAttachment:
type: aws:iam:RolePolicyAttachment
name: example
properties:
role: ${example.name}
policyArn: arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy
exampleAgentcoreMemory:
type: aws:bedrock:AgentcoreMemory
name: example
properties:
name: example-memory
eventExpiryDuration: 30
variables:
assumeRole:
fn::invoke:
function: aws:iam:getPolicyDocument
arguments:
statements:
- effect: Allow
actions:
- sts:AssumeRole
principals:
- type: Service
identifiers:
- bedrock-agentcore.amazonaws.com
Memory with Custom Encryption and Role
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
example:
type: aws:kms:Key
properties:
description: KMS key for Bedrock AgentCore Memory
exampleAgentcoreMemory:
type: aws:bedrock:AgentcoreMemory
name: example
properties:
name: example-memory
description: Memory for customer service agent
eventExpiryDuration: 60
encryptionKeyArn: ${example.arn}
memoryExecutionRoleArn: ${exampleAwsIamRole.arn}
clientToken: unique-client-token
Create AgentcoreMemory Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgentcoreMemory(name: string, args: AgentcoreMemoryArgs, opts?: CustomResourceOptions);@overload
def AgentcoreMemory(resource_name: str,
args: AgentcoreMemoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AgentcoreMemory(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_expiry_duration: Optional[int] = None,
description: Optional[str] = None,
encryption_key_arn: Optional[str] = None,
memory_execution_role_arn: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[AgentcoreMemoryTimeoutsArgs] = None)func NewAgentcoreMemory(ctx *Context, name string, args AgentcoreMemoryArgs, opts ...ResourceOption) (*AgentcoreMemory, error)public AgentcoreMemory(string name, AgentcoreMemoryArgs args, CustomResourceOptions? opts = null)
public AgentcoreMemory(String name, AgentcoreMemoryArgs args)
public AgentcoreMemory(String name, AgentcoreMemoryArgs args, CustomResourceOptions options)
type: aws:bedrock:AgentcoreMemory
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AgentcoreMemoryArgs
- 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 AgentcoreMemoryArgs
- 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 AgentcoreMemoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentcoreMemoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentcoreMemoryArgs
- 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 agentcoreMemoryResource = new Aws.Bedrock.AgentcoreMemory("agentcoreMemoryResource", new()
{
EventExpiryDuration = 0,
Description = "string",
EncryptionKeyArn = "string",
MemoryExecutionRoleArn = "string",
Name = "string",
Region = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.Bedrock.Inputs.AgentcoreMemoryTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := bedrock.NewAgentcoreMemory(ctx, "agentcoreMemoryResource", &bedrock.AgentcoreMemoryArgs{
EventExpiryDuration: pulumi.Int(0),
Description: pulumi.String("string"),
EncryptionKeyArn: pulumi.String("string"),
MemoryExecutionRoleArn: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &bedrock.AgentcoreMemoryTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var agentcoreMemoryResource = new AgentcoreMemory("agentcoreMemoryResource", AgentcoreMemoryArgs.builder()
.eventExpiryDuration(0)
.description("string")
.encryptionKeyArn("string")
.memoryExecutionRoleArn("string")
.name("string")
.region("string")
.tags(Map.of("string", "string"))
.timeouts(AgentcoreMemoryTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
agentcore_memory_resource = aws.bedrock.AgentcoreMemory("agentcoreMemoryResource",
event_expiry_duration=0,
description="string",
encryption_key_arn="string",
memory_execution_role_arn="string",
name="string",
region="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
})
const agentcoreMemoryResource = new aws.bedrock.AgentcoreMemory("agentcoreMemoryResource", {
eventExpiryDuration: 0,
description: "string",
encryptionKeyArn: "string",
memoryExecutionRoleArn: "string",
name: "string",
region: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
});
type: aws:bedrock:AgentcoreMemory
properties:
description: string
encryptionKeyArn: string
eventExpiryDuration: 0
memoryExecutionRoleArn: string
name: string
region: string
tags:
string: string
timeouts:
create: string
delete: string
AgentcoreMemory 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 AgentcoreMemory resource accepts the following input properties:
- Event
Expiry intDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- Description string
- Description of the memory.
- Encryption
Key stringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- Name string
- Name of the memory.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agentcore
Memory Timeouts
- Event
Expiry intDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- Description string
- Description of the memory.
- Encryption
Key stringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- Name string
- Name of the memory.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agentcore
Memory Timeouts Args
- event
Expiry IntegerDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- description String
- Description of the memory.
- encryption
Key StringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name String
- Name of the memory.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Memory Timeouts
- event
Expiry numberDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- description string
- Description of the memory.
- encryption
Key stringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name string
- Name of the memory.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Memory Timeouts
- event_
expiry_ intduration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- description str
- Description of the memory.
- encryption_
key_ strarn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- memory_
execution_ strrole_ arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name str
- Name of the memory.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Memory Timeouts Args
- event
Expiry NumberDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- description String
- Description of the memory.
- encryption
Key StringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name String
- Name of the memory.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentcoreMemory resource produces the following output properties:
Look up Existing AgentcoreMemory Resource
Get an existing AgentcoreMemory 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?: AgentcoreMemoryState, opts?: CustomResourceOptions): AgentcoreMemory@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
description: Optional[str] = None,
encryption_key_arn: Optional[str] = None,
event_expiry_duration: Optional[int] = None,
memory_execution_role_arn: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
timeouts: Optional[AgentcoreMemoryTimeoutsArgs] = None) -> AgentcoreMemoryfunc GetAgentcoreMemory(ctx *Context, name string, id IDInput, state *AgentcoreMemoryState, opts ...ResourceOption) (*AgentcoreMemory, error)public static AgentcoreMemory Get(string name, Input<string> id, AgentcoreMemoryState? state, CustomResourceOptions? opts = null)public static AgentcoreMemory get(String name, Output<String> id, AgentcoreMemoryState state, CustomResourceOptions options)resources: _: type: aws:bedrock:AgentcoreMemory get: 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.
- Arn string
- ARN of the Memory.
- Description string
- Description of the memory.
- Encryption
Key stringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- Event
Expiry intDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- Name string
- Name of the memory.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Agentcore
Memory Timeouts
- Arn string
- ARN of the Memory.
- Description string
- Description of the memory.
- Encryption
Key stringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- Event
Expiry intDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- Memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- Name string
- Name of the memory.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Agentcore
Memory Timeouts Args
- arn String
- ARN of the Memory.
- description String
- Description of the memory.
- encryption
Key StringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- event
Expiry IntegerDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name String
- Name of the memory.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Memory Timeouts
- arn string
- ARN of the Memory.
- description string
- Description of the memory.
- encryption
Key stringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- event
Expiry numberDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- memory
Execution stringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name string
- Name of the memory.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Memory Timeouts
- arn str
- ARN of the Memory.
- description str
- Description of the memory.
- encryption_
key_ strarn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- event_
expiry_ intduration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- memory_
execution_ strrole_ arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name str
- Name of the memory.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Memory Timeouts Args
- arn String
- ARN of the Memory.
- description String
- Description of the memory.
- encryption
Key StringArn - ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
- event
Expiry NumberDuration Number of minutes after which memory events expire. Must be a positive integer.
The following arguments are optional:
- memory
Execution StringRole Arn - ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
- name String
- Name of the memory.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts Property Map
Supporting Types
AgentcoreMemoryTimeouts, AgentcoreMemoryTimeoutsArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Import
Using pulumi import, import Bedrock AgentCore Memory using the memory ID. For example:
$ pulumi import aws:bedrock/agentcoreMemory:AgentcoreMemory example MEMORY1234567890
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.
