Class CfnMemory
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrockagentcore.CfnMemory
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,IMemoryRef
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:06.339Z")
@Stability(Stable)
public class CfnMemory
extends CfnResource
implements IInspectable, IMemoryRef, ITaggableV2
Resource Type definition for AWS::BedrockAgentCore::Memory.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.bedrockagentcore.*; CfnMemory cfnMemory = CfnMemory.Builder.create(this, "MyCfnMemory") .eventExpiryDuration(123) .name("name") // the properties below are optional .description("description") .encryptionKeyArn("encryptionKeyArn") .memoryExecutionRoleArn("memoryExecutionRoleArn") .memoryStrategies(List.of(MemoryStrategyProperty.builder() .customMemoryStrategy(CustomMemoryStrategyProperty.builder() .name("name") // the properties below are optional .configuration(CustomConfigurationInputProperty.builder() .semanticOverride(SemanticOverrideProperty.builder() .consolidation(SemanticOverrideConsolidationConfigurationInputProperty.builder() .appendToPrompt("appendToPrompt") .modelId("modelId") .build()) .extraction(SemanticOverrideExtractionConfigurationInputProperty.builder() .appendToPrompt("appendToPrompt") .modelId("modelId") .build()) .build()) .summaryOverride(SummaryOverrideProperty.builder() .consolidation(SummaryOverrideConsolidationConfigurationInputProperty.builder() .appendToPrompt("appendToPrompt") .modelId("modelId") .build()) .build()) .userPreferenceOverride(UserPreferenceOverrideProperty.builder() .consolidation(UserPreferenceOverrideConsolidationConfigurationInputProperty.builder() .appendToPrompt("appendToPrompt") .modelId("modelId") .build()) .extraction(UserPreferenceOverrideExtractionConfigurationInputProperty.builder() .appendToPrompt("appendToPrompt") .modelId("modelId") .build()) .build()) .build()) .createdAt("createdAt") .description("description") .namespaces(List.of("namespaces")) .status("status") .strategyId("strategyId") .type("type") .updatedAt("updatedAt") .build()) .semanticMemoryStrategy(SemanticMemoryStrategyProperty.builder() .name("name") // the properties below are optional .createdAt("createdAt") .description("description") .namespaces(List.of("namespaces")) .status("status") .strategyId("strategyId") .type("type") .updatedAt("updatedAt") .build()) .summaryMemoryStrategy(SummaryMemoryStrategyProperty.builder() .name("name") // the properties below are optional .createdAt("createdAt") .description("description") .namespaces(List.of("namespaces")) .status("status") .strategyId("strategyId") .type("type") .updatedAt("updatedAt") .build()) .userPreferenceMemoryStrategy(UserPreferenceMemoryStrategyProperty.builder() .name("name") // the properties below are optional .createdAt("createdAt") .description("description") .namespaces(List.of("namespaces")) .status("status") .strategyId("strategyId") .type("type") .updatedAt("updatedAt") .build()) .build())) .tags(Map.of( "tagsKey", "tags")) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnMemory
.static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.IMemoryRef
IMemoryRef.Jsii$Default, IMemoryRef.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnMemory
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMemory
(software.amazon.jsii.JsiiObjectRef objRef) CfnMemory
(software.constructs.Construct scope, String id, CfnMemoryProps props) -
Method Summary
Modifier and TypeMethodDescriptionARN of the Memory resource.Unique identifier for the Memory resource.Status of the Memory resource.Tag Manager which manages the tags for this resource.Description of the Memory resource.ARN format.Duration in days until memory events expire.ARN format.A reference to a Memory resource.List of memory strategies attached to this memory.getName()
Name of the Memory resource.getTags()
A map of tag keys and values.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) Description of the Memory resource.void
setEncryptionKeyArn
(String value) ARN format.void
setEventExpiryDuration
(Number value) Duration in days until memory events expire.void
setMemoryExecutionRoleArn
(String value) ARN format.void
setMemoryStrategies
(List<Object> value) List of memory strategies attached to this memory.void
setMemoryStrategies
(IResolvable value) List of memory strategies attached to this memory.void
Name of the Memory resource.void
A map of tag keys and values.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMemory
protected CfnMemory(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMemory
protected CfnMemory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMemory
@Stability(Stable) public CfnMemory(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMemoryProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrCreatedAt
-
getAttrFailureReason
-
getAttrMemoryArn
ARN of the Memory resource. -
getAttrMemoryId
Unique identifier for the Memory resource. -
getAttrStatus
Status of the Memory resource. -
getAttrUpdatedAt
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getMemoryRef
A reference to a Memory resource.- Specified by:
getMemoryRef
in interfaceIMemoryRef
-
getEventExpiryDuration
Duration in days until memory events expire. -
setEventExpiryDuration
Duration in days until memory events expire. -
getName
Name of the Memory resource. -
setName
Name of the Memory resource. -
getDescription
Description of the Memory resource. -
setDescription
Description of the Memory resource. -
getEncryptionKeyArn
ARN format. -
setEncryptionKeyArn
ARN format. -
getMemoryExecutionRoleArn
ARN format. -
setMemoryExecutionRoleArn
ARN format. -
getMemoryStrategies
List of memory strategies attached to this memory. -
setMemoryStrategies
List of memory strategies attached to this memory. -
setMemoryStrategies
List of memory strategies attached to this memory. -
getTags
A map of tag keys and values. -
setTags
A map of tag keys and values.
-