Interface IMemory
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IMemoryRef,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IMemory.Jsii$Default
- All Known Implementing Classes:
IMemory.Jsii$Proxy,Memory,MemoryBase
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.445Z")
@Stability(Stable)
public interface IMemory
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable, IMemoryRef
Interface for Memory resources.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIMemory.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringTimestamp when the memory was created.default IRoleThe IAM role that provides permissions for the memory to access AWS services.default IKeyCustom KMS key for encryption (if provided).The ARN of the memory resource.The id of the memory.default StringThe status of the memory.default StringTimestamp when the memory was last updated.grant(IGrantable grantee, String... actions) Grant the given principal identity permissions to perform actions on this memory.grantAdmin(IGrantable grantee) Grant the given principal identity permissions to manage the control plane of this memory.grantDelete(IGrantable grantee) Grant the given principal identity permissions to delete content on this memory.grantDeleteLongTermMemory(IGrantable grantee) Grant the given principal identity permissions to delete Long-Term Memory (LTM) content on this memory.grantDeleteShortTermMemory(IGrantable grantee) Grant the given principal identity permissions to delete Short-Term Memory (STM) content on this memory.grantFullAccess(IGrantable grantee) Grant the given principal identity permissions to do every action on this memory.grantRead(IGrantable grantee) Grant the given principal identity permissions to read the contents of this memory.grantReadLongTermMemory(IGrantable grantee) Grant the given principal identity permissions to read the Long-Term Memory (LTM) contents of this memory.grantReadShortTermMemory(IGrantable grantee) Grant the given principal identity permissions to read the Short-Term Memory (STM) contents of this memory.grantWrite(IGrantable grantee) Grant the given principal identity permissions to write content to this memory.Return the given named metric for this memory.metric(String metricName, MetricOptions props) Return the given named metric for this memory.metricErrorsForApiOperation(String operation) Return a metric containing the number of errors for a specific API operation performed on this memory.metricErrorsForApiOperation(String operation, MetricOptions props) Return a metric containing the number of errors for a specific API operation performed on this memory.Returns the metric containing the number of created memory events and memory records.Returns the metric containing the number of created memory events and memory records.metricForApiOperation(String metricName, String operation) Return the given named metric related to the API operation performed on this memory.metricForApiOperation(String metricName, String operation, MetricOptions props) Return the given named metric related to the API operation performed on this memory.metricInvocationsForApiOperation(String operation) Return a metric containing the total number of API requests made for a specific memory operation.metricInvocationsForApiOperation(String operation, MetricOptions props) Return a metric containing the total number of API requests made for a specific memory operation.metricLatencyForApiOperation(String operation) Return a metric measuring the latency of a specific API operation performed on this memory.metricLatencyForApiOperation(String operation, MetricOptions props) Return a metric measuring the latency of a specific API operation performed on this memory.Methods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IMemoryRef
getMemoryRefMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMemoryArn
The ARN of the memory resource. -
getMemoryId
The id of the memory. -
getCreatedAt
Timestamp when the memory was created. -
getExecutionRole
The IAM role that provides permissions for the memory to access AWS services. -
getKmsKey
Custom KMS key for encryption (if provided). -
getStatus
The status of the memory. -
getUpdatedAt
Timestamp when the memory was last updated. -
grant
Grant the given principal identity permissions to perform actions on this memory.- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantAdmin
Grant the given principal identity permissions to manage the control plane of this memory.- Parameters:
grantee- This parameter is required.
-
grantDelete
Grant the given principal identity permissions to delete content on this memory.- Parameters:
grantee- This parameter is required.
-
grantDeleteLongTermMemory
Grant the given principal identity permissions to delete Long-Term Memory (LTM) content on this memory.- Parameters:
grantee- This parameter is required.
-
grantDeleteShortTermMemory
Grant the given principal identity permissions to delete Short-Term Memory (STM) content on this memory.- Parameters:
grantee- This parameter is required.
-
grantFullAccess
Grant the given principal identity permissions to do every action on this memory.- Parameters:
grantee- This parameter is required.
-
grantRead
Grant the given principal identity permissions to read the contents of this memory.Both Short-Term Memory (STM) and Long-Term Memory (LTM).
- Parameters:
grantee- This parameter is required.
-
grantReadLongTermMemory
Grant the given principal identity permissions to read the Long-Term Memory (LTM) contents of this memory.- Parameters:
grantee- This parameter is required.
-
grantReadShortTermMemory
Grant the given principal identity permissions to read the Short-Term Memory (STM) contents of this memory.- Parameters:
grantee- This parameter is required.
-
grantWrite
Grant the given principal identity permissions to write content to this memory.- Parameters:
grantee- This parameter is required.
-
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this memory.- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this memory.- Parameters:
metricName- This parameter is required.
-
metricErrorsForApiOperation
@Stability(Stable) @NotNull Metric metricErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Return a metric containing the number of errors for a specific API operation performed on this memory.- Parameters:
operation- This parameter is required.props-
-
metricErrorsForApiOperation
Return a metric containing the number of errors for a specific API operation performed on this memory.- Parameters:
operation- This parameter is required.
-
metricEventCreationCount
Returns the metric containing the number of created memory events and memory records.- Parameters:
props-
-
metricEventCreationCount
Returns the metric containing the number of created memory events and memory records. -
metricForApiOperation
@Stability(Stable) @NotNull Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation, @Nullable MetricOptions props) Return the given named metric related to the API operation performed on this memory.- Parameters:
metricName- This parameter is required.operation- This parameter is required.props-
-
metricForApiOperation
@Stability(Stable) @NotNull Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation) Return the given named metric related to the API operation performed on this memory.- Parameters:
metricName- This parameter is required.operation- This parameter is required.
-
metricInvocationsForApiOperation
@Stability(Stable) @NotNull Metric metricInvocationsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Return a metric containing the total number of API requests made for a specific memory operation.- Parameters:
operation- This parameter is required.props-
-
metricInvocationsForApiOperation
Return a metric containing the total number of API requests made for a specific memory operation.- Parameters:
operation- This parameter is required.
-
metricLatencyForApiOperation
@Stability(Stable) @NotNull Metric metricLatencyForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Return a metric measuring the latency of a specific API operation performed on this memory.- Parameters:
operation- This parameter is required.props-
-
metricLatencyForApiOperation
Return a metric measuring the latency of a specific API operation performed on this memory.- Parameters:
operation- This parameter is required.
-