Class CfnCluster.SimpleScalingPolicyConfigurationProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.emr.CfnCluster.SimpleScalingPolicyConfigurationProperty.Jsii$Proxy
All Implemented Interfaces:
CfnCluster.SimpleScalingPolicyConfigurationProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnCluster.SimpleScalingPolicyConfigurationProperty

@Stability(Stable) @Internal public static final class CfnCluster.SimpleScalingPolicyConfigurationProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnCluster.SimpleScalingPolicyConfigurationProperty
  • Constructor Details

  • Method Details

    • getScalingAdjustment

      public final Number getScalingAdjustment()
      Description copied from interface: CfnCluster.SimpleScalingPolicyConfigurationProperty
      The amount by which to scale in or scale out, based on the specified AdjustmentType .

      A positive value adds to the instance group's Amazon EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY , the number should only be a positive integer. If AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY , the value should express the percentage as an integer. For example, -20 indicates a decrease in 20% increments of cluster capacity.

      Specified by:
      getScalingAdjustment in interface CfnCluster.SimpleScalingPolicyConfigurationProperty
    • getAdjustmentType

      public final String getAdjustmentType()
      Description copied from interface: CfnCluster.SimpleScalingPolicyConfigurationProperty
      The way in which Amazon EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered.

      CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the Amazon EC2 instance count increments or decrements by ScalingAdjustment , which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment , which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of Amazon EC2 instances specified by ScalingAdjustment , which should be expressed as a positive integer.

      Specified by:
      getAdjustmentType in interface CfnCluster.SimpleScalingPolicyConfigurationProperty
    • getCoolDown

      public final Number getCoolDown()
      Description copied from interface: CfnCluster.SimpleScalingPolicyConfigurationProperty
      The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

      The default value is 0.

      Specified by:
      getCoolDown in interface CfnCluster.SimpleScalingPolicyConfigurationProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object