Interface CfnTable.BillingModeProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTable.BillingModeProperty.Jsii$Proxy
Enclosing class:
CfnTable

@Stability(Stable) public static interface CfnTable.BillingModeProperty extends software.amazon.jsii.JsiiSerializable
Determines the billing mode for the table - on-demand or provisioned.

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.cassandra.*;
 BillingModeProperty billingModeProperty = BillingModeProperty.builder()
         .mode("mode")
         // the properties below are optional
         .provisionedThroughput(ProvisionedThroughputProperty.builder()
                 .readCapacityUnits(123)
                 .writeCapacityUnits(123)
                 .build())
         .build();
 
  • Method Details

    • getMode

      @Stability(Stable) @NotNull String getMode()
      The billing mode for the table:.

      • On-demand mode - ON_DEMAND
      • Provisioned mode - PROVISIONED

      If you choose PROVISIONED mode, then you also need to specify provisioned throughput (read and write capacity) for the table.

      Valid values: ON_DEMAND | PROVISIONED

    • getProvisionedThroughput

      @Stability(Stable) @Nullable default Object getProvisionedThroughput()
      The provisioned read capacity and write capacity for the table.

      For more information, see Provisioned throughput capacity mode in the Amazon Keyspaces Developer Guide .

    • builder

      @Stability(Stable) static CfnTable.BillingModeProperty.Builder builder()
      Returns:
      a CfnTable.BillingModeProperty.Builder of CfnTable.BillingModeProperty