java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
    • getAttrFailureReason

      @Stability(Stable) @NotNull public String getAttrFailureReason()
    • getAttrMemoryArn

      @Stability(Stable) @NotNull public String getAttrMemoryArn()
      ARN of the Memory resource.
    • getAttrMemoryId

      @Stability(Stable) @NotNull public String getAttrMemoryId()
      Unique identifier for the Memory resource.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      Status of the Memory resource.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getMemoryRef

      @Stability(Stable) @NotNull public MemoryReference getMemoryRef()
      A reference to a Memory resource.
      Specified by:
      getMemoryRef in interface IMemoryRef
    • getEventExpiryDuration

      @Stability(Stable) @NotNull public Number getEventExpiryDuration()
      Duration in days until memory events expire.
    • setEventExpiryDuration

      @Stability(Stable) public void setEventExpiryDuration(@NotNull Number value)
      Duration in days until memory events expire.
    • getName

      @Stability(Stable) @NotNull public String getName()
      Name of the Memory resource.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      Name of the Memory resource.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      Description of the Memory resource.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      Description of the Memory resource.
    • getEncryptionKeyArn

      @Stability(Stable) @Nullable public String getEncryptionKeyArn()
      ARN format.
    • setEncryptionKeyArn

      @Stability(Stable) public void setEncryptionKeyArn(@Nullable String value)
      ARN format.
    • getMemoryExecutionRoleArn

      @Stability(Stable) @Nullable public String getMemoryExecutionRoleArn()
      ARN format.
    • setMemoryExecutionRoleArn

      @Stability(Stable) public void setMemoryExecutionRoleArn(@Nullable String value)
      ARN format.
    • getMemoryStrategies

      @Stability(Stable) @Nullable public Object getMemoryStrategies()
      List of memory strategies attached to this memory.
    • setMemoryStrategies

      @Stability(Stable) public void setMemoryStrategies(@Nullable IResolvable value)
      List of memory strategies attached to this memory.
    • setMemoryStrategies

      @Stability(Stable) public void setMemoryStrategies(@Nullable List<Object> value)
      List of memory strategies attached to this memory.
    • getTags

      @Stability(Stable) @Nullable public Map<String,String> getTags()
      A map of tag keys and values.
    • setTags

      @Stability(Stable) public void setTags(@Nullable Map<String,String> value)
      A map of tag keys and values.