Class CfnReservedNode

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IReservedNodeRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:51:07.189Z") @Stability(Stable) public class CfnReservedNode extends CfnResource implements IInspectable, IReservedNodeRef
Represents a MemoryDB reserved node purchased via PurchaseReservedNodesOffering.

Reserved nodes are not eligible for cancellation and are non-refundable.

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.memorydb.*;
 CfnReservedNode cfnReservedNode = CfnReservedNode.Builder.create(this, "MyCfnReservedNode").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

    • CfnReservedNode

      protected CfnReservedNode(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnReservedNode

      protected CfnReservedNode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnReservedNode

      @Stability(Stable) public CfnReservedNode(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnReservedNodeProps props)
      Create a new AWS::MemoryDB::ReservedNode.

      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.
    • CfnReservedNode

      @Stability(Stable) public CfnReservedNode(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::MemoryDB::ReservedNode.

      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.
  • Method Details

    • arnForReservedNode

      @Stability(Stable) @NotNull public static String arnForReservedNode(@NotNull IReservedNodeRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnReservedNode

      @Stability(Stable) @NotNull public static Boolean isCfnReservedNode(@NotNull Object x)
      Checks whether the given object is a CfnReservedNode.

      Parameters:
      x - This parameter is required.
    • 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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the reserved node.
    • getAttrDuration

      @Stability(Stable) @NotNull public Number getAttrDuration()
      The duration of the reservation in seconds.
    • getAttrFixedPrice

      @Stability(Stable) @NotNull public IResolvable getAttrFixedPrice()
      The fixed price charged for this reserved node.
    • getAttrNodeCount

      @Stability(Stable) @NotNull public Number getAttrNodeCount()
      The number of nodes that have been reserved.
    • getAttrNodeType

      @Stability(Stable) @NotNull public String getAttrNodeType()
      The node type for the reserved nodes.
    • getAttrOfferingType

      @Stability(Stable) @NotNull public String getAttrOfferingType()
      The offering type of this reserved node.
    • getAttrRecurringCharges

      @Stability(Stable) @NotNull public IResolvable getAttrRecurringCharges()
      The recurring price charged to run this reserved node.
    • getAttrReservationId

      @Stability(Stable) @NotNull public String getAttrReservationId()
      A customer-specified identifier to track this reservation.
    • getAttrReservedNodesOfferingId

      @Stability(Stable) @NotNull public String getAttrReservedNodesOfferingId()
      The ID of the reserved node offering to purchase.
    • getAttrStartTime

      @Stability(Stable) @NotNull public String getAttrStartTime()
      The time the reservation started.
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
      The state of the reserved node.
    • getAttrTags

      @Stability(Stable) @NotNull public IResolvable getAttrTags()
      A list of tags to be added to this resource.
    • getCfnProperties

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

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getReservedNodeRef

      @Stability(Stable) @NotNull public ReservedNodeReference getReservedNodeRef()
      A reference to a ReservedNode resource.
      Specified by:
      getReservedNodeRef in interface IReservedNodeRef