Class CfnReservedDBInstance

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

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-22T17:37:33.051Z") @Stability(Stable) public class CfnReservedDBInstance extends CfnResource implements IInspectable, IReservedDBInstanceRef
Resource Type definition for AWS::RDS::ReservedDBInstance.

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.rds.*;
 CfnReservedDBInstance cfnReservedDBInstance = CfnReservedDBInstance.Builder.create(this, "MyCfnReservedDBInstance")
         .dbInstanceCount(123)
         .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

    • CfnReservedDBInstance

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

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

      @Stability(Stable) public CfnReservedDBInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnReservedDBInstanceProps props)
      Create a new AWS::RDS::ReservedDBInstance.

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

      @Stability(Stable) public CfnReservedDBInstance(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::RDS::ReservedDBInstance.

      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

    • arnForReservedDBInstance

      @Stability(Stable) @NotNull public static String arnForReservedDBInstance(@NotNull IReservedDBInstanceRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnReservedDBInstance

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

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

      @Stability(Stable) @NotNull public String getAttrCurrencyCode()
    • getAttrDbInstanceClass

      @Stability(Stable) @NotNull public String getAttrDbInstanceClass()
    • getAttrDuration

      @Stability(Stable) @NotNull public Number getAttrDuration()
    • getAttrFixedPrice

      @Stability(Stable) @NotNull public IResolvable getAttrFixedPrice()
    • getAttrMultiAz

      @Stability(Stable) @NotNull public IResolvable getAttrMultiAz()
    • getAttrOfferingType

      @Stability(Stable) @NotNull public String getAttrOfferingType()
    • getAttrProductDescription

      @Stability(Stable) @NotNull public String getAttrProductDescription()
    • getAttrRecurringCharges

      @Stability(Stable) @NotNull public IResolvable getAttrRecurringCharges()
    • getAttrReservedDbInstanceArn

      @Stability(Stable) @NotNull public String getAttrReservedDbInstanceArn()
    • getAttrReservedDbInstanceId

      @Stability(Stable) @NotNull public String getAttrReservedDbInstanceId()
    • getAttrReservedDbInstancesOfferingId

      @Stability(Stable) @NotNull public String getAttrReservedDbInstancesOfferingId()
    • getAttrStartTime

      @Stability(Stable) @NotNull public String getAttrStartTime()
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
    • getAttrTags

      @Stability(Stable) @NotNull public IResolvable getAttrTags()
    • getAttrUsagePrice

      @Stability(Stable) @NotNull public IResolvable getAttrUsagePrice()
    • 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
    • getReservedDbInstanceRef

      @Stability(Stable) @NotNull public ReservedDBInstanceReference getReservedDbInstanceRef()
      A reference to a ReservedDBInstance resource.
      Specified by:
      getReservedDbInstanceRef in interface IReservedDBInstanceRef
    • getDbInstanceCount

      @Stability(Stable) @Nullable public Number getDbInstanceCount()
    • setDbInstanceCount

      @Stability(Stable) public void setDbInstanceCount(@Nullable Number value)