Enum StreamMode

java.lang.Object
java.lang.Enum<StreamMode>
software.amazon.awscdk.services.kinesis.StreamMode
All Implemented Interfaces:
Serializable, Comparable<StreamMode>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.647Z") @Stability(Stable) public enum StreamMode extends Enum<StreamMode>
Specifies the capacity mode to apply to this stream.
  • Enum Constant Details

    • PROVISIONED

      @Stability(Stable) public static final StreamMode PROVISIONED
      Specify the provisioned capacity mode.

      The stream will have shardCount shards unless modified and will be billed according to the provisioned capacity.

    • ON_DEMAND

      @Stability(Stable) public static final StreamMode ON_DEMAND
      Specify the on-demand capacity mode.

      The stream will autoscale and be billed according to the volume of data ingested and retrieved.

  • Method Details

    • values

      public static StreamMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static StreamMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null