Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::ManagedScalingPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::EMRCreateCluster::ManagedScalingPolicyProperty
- Defined in:
- step_functions_tasks/emr_create_cluster.rb
Overview
The managed scaling policy for an Amazon EMR cluster.
Instance Attribute Summary collapse
-
#compute_limits ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::ManagedScalingComputeLimitsProperty?
readonly
The Amazon EC2 unit limits for a managed scaling policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(compute_limits: nil) ⇒ ManagedScalingPolicyProperty
constructor
A new instance of ManagedScalingPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(compute_limits: nil) ⇒ ManagedScalingPolicyProperty
Returns a new instance of ManagedScalingPolicyProperty.
2092 2093 2094 2095 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2092 def initialize(compute_limits: nil) @compute_limits = compute_limits.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::EMRCreateCluster::ManagedScalingComputeLimitsProperty.new(**compute_limits.transform_keys(&:to_sym)) : compute_limits Jsii::Type.check_type(@compute_limits, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLk1hbmFnZWRTY2FsaW5nQ29tcHV0ZUxpbWl0c1Byb3BlcnR5In0=")), "computeLimits") unless @compute_limits.nil? end |
Instance Attribute Details
#compute_limits ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::ManagedScalingComputeLimitsProperty? (readonly)
Note:
Default: - None
The Amazon EC2 unit limits for a managed scaling policy.
2101 2102 2103 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2101 def compute_limits @compute_limits end |
Class Method Details
.jsii_properties ⇒ Object
2103 2104 2105 2106 2107 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2103 def self.jsii_properties { :compute_limits => "computeLimits", } end |
Instance Method Details
#to_jsii ⇒ Object
2109 2110 2111 2112 2113 2114 2115 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2109 def to_jsii result = {} result.merge!({ "computeLimits" => @compute_limits, }) result.compact end |