Class CfnReservedCacheNode

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

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:51:03.350Z") @Stability(Stable) public class CfnReservedCacheNode extends CfnResource implements IInspectable, IReservedCacheNodeRef
Represents an Amazon ElastiCache Reserved Cache Node.

Reserved Cache Nodes provide a discounted hourly rate compared to on-demand cache node pricing.

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.elasticache.*;
 CfnReservedCacheNode cfnReservedCacheNode = CfnReservedCacheNode.Builder.create(this, "MyCfnReservedCacheNode").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

    • CfnReservedCacheNode

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

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

      @Stability(Stable) public CfnReservedCacheNode(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnReservedCacheNodeProps props)
      Create a new AWS::ElastiCache::ReservedCacheNode.

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

      @Stability(Stable) public CfnReservedCacheNode(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::ElastiCache::ReservedCacheNode.

      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

    • isCfnReservedCacheNode

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

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

      @Stability(Stable) @NotNull public Number getAttrCacheNodeCount()
      The number of cache nodes that have been reserved.
    • getAttrCacheNodeType

      @Stability(Stable) @NotNull public String getAttrCacheNodeType()
      The cache node type for the reserved cache nodes.
    • 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 cache node.
    • getAttrOfferingType

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

      @Stability(Stable) @NotNull public String getAttrProductDescription()
      The description of the reserved cache node.
    • getAttrRecurringCharges

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

      @Stability(Stable) @NotNull public String getAttrReservationArn()
      The Amazon Resource Name (ARN) of the reserved cache node.
    • getAttrReservedCacheNodeId

      @Stability(Stable) @NotNull public String getAttrReservedCacheNodeId()
      The unique identifier for the reservation.
    • getAttrReservedCacheNodesOfferingId

      @Stability(Stable) @NotNull public String getAttrReservedCacheNodesOfferingId()
      The offering identifier.
    • getAttrStartTime

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

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

      @Stability(Stable) @NotNull public IResolvable getAttrTags()
      A list of tags.
    • getAttrUsagePrice

      @Stability(Stable) @NotNull public IResolvable getAttrUsagePrice()
      The hourly price charged for this reserved cache node.
    • 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
    • getReservedCacheNodeRef

      @Stability(Stable) @NotNull public ReservedCacheNodeReference getReservedCacheNodeRef()
      A reference to a ReservedCacheNode resource.
      Specified by:
      getReservedCacheNodeRef in interface IReservedCacheNodeRef