Class: AWSCDK::EMR::CfnCluster::SpotResizingSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::SpotResizingSpecificationProperty
- Defined in:
- emr/cfn_cluster.rb
Overview
The resize specification for Spot Instances in the instance fleet, which contains the resize timeout period.
Instance Attribute Summary collapse
-
#allocation_strategy ⇒ String?
readonly
Specifies the allocation strategy to use to launch Spot instances during a resize.
-
#timeout_duration_minutes ⇒ Numeric?
readonly
Spot resize timeout in minutes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allocation_strategy: nil, timeout_duration_minutes: nil) ⇒ SpotResizingSpecificationProperty
constructor
A new instance of SpotResizingSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allocation_strategy: nil, timeout_duration_minutes: nil) ⇒ SpotResizingSpecificationProperty
Returns a new instance of SpotResizingSpecificationProperty.
3030 3031 3032 3033 3034 3035 |
# File 'emr/cfn_cluster.rb', line 3030 def initialize(allocation_strategy: nil, timeout_duration_minutes: nil) @allocation_strategy = allocation_strategy Jsii::Type.check_type(@allocation_strategy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "allocationStrategy") unless @allocation_strategy.nil? @timeout_duration_minutes = timeout_duration_minutes Jsii::Type.check_type(@timeout_duration_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutDurationMinutes") unless @timeout_duration_minutes.nil? end |
Instance Attribute Details
#allocation_strategy ⇒ String? (readonly)
Specifies the allocation strategy to use to launch Spot instances during a resize.
If you run Amazon EMR releases 6.9.0 or higher, the default is price-capacity-optimized . If you run Amazon EMR releases 6.8.0 or lower, the default is capacity-optimized .
3043 3044 3045 |
# File 'emr/cfn_cluster.rb', line 3043 def allocation_strategy @allocation_strategy end |
#timeout_duration_minutes ⇒ Numeric? (readonly)
Spot resize timeout in minutes.
If Spot Instances are not provisioned within this time, the resize workflow will stop provisioning of Spot instances. Minimum value is 5 minutes and maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.
3050 3051 3052 |
# File 'emr/cfn_cluster.rb', line 3050 def timeout_duration_minutes @timeout_duration_minutes end |
Class Method Details
.jsii_properties ⇒ Object
3052 3053 3054 3055 3056 3057 |
# File 'emr/cfn_cluster.rb', line 3052 def self.jsii_properties { :allocation_strategy => "allocationStrategy", :timeout_duration_minutes => "timeoutDurationMinutes", } end |
Instance Method Details
#to_jsii ⇒ Object
3059 3060 3061 3062 3063 3064 3065 3066 |
# File 'emr/cfn_cluster.rb', line 3059 def to_jsii result = {} result.merge!({ "allocationStrategy" => @allocation_strategy, "timeoutDurationMinutes" => @timeout_duration_minutes, }) result.compact end |