Class CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty.Builder, CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final String
The way in which Amazon EC2 instances are added (ifScalingAdjustment
is a positive number) or terminated (ifScalingAdjustment
is a negative number) each time the scaling activity is triggered.final Number
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.final Number
The amount by which to scale in or scale out, based on the specifiedAdjustmentType
.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty.Builder builder) Constructor that initializes the object based on literal property values passed by theCfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty.Builder
.
-
-
Method Details
-
getScalingAdjustment
Description copied from interface:CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
The amount by which to scale in or scale out, based on the specifiedAdjustmentType
.A positive value adds to the instance group's Amazon EC2 instance count while a negative number removes instances. If
AdjustmentType
is set toEXACT_CAPACITY
, the number should only be a positive integer. IfAdjustmentType
is set toPERCENT_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 interfaceCfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
-
getAdjustmentType
Description copied from interface:CfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
The way in which Amazon EC2 instances are added (ifScalingAdjustment
is a positive number) or terminated (ifScalingAdjustment
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 byScalingAdjustment
, which should be expressed as an integer.PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage specified byScalingAdjustment
, 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 byScalingAdjustment
, which should be expressed as a positive integer.- Specified by:
getAdjustmentType
in interfaceCfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
-
getCoolDown
Description copied from interface:CfnInstanceGroupConfig.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 interfaceCfnInstanceGroupConfig.SimpleScalingPolicyConfigurationProperty
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-