Class: AWSCDK::CfnResourceAutoScalingCreationPolicy
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnResourceAutoScalingCreationPolicy
- Defined in:
- cfn_resource_auto_scaling_creation_policy.rb
Overview
For an Auto Scaling group replacement update, specifies how many instances must signal success for the update to succeed.
Instance Attribute Summary collapse
-
#min_successful_instances_percent ⇒ Numeric?
readonly
Specifies the percentage of instances in an Auto Scaling replacement update that must signal success for the update to succeed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min_successful_instances_percent: nil) ⇒ CfnResourceAutoScalingCreationPolicy
constructor
A new instance of CfnResourceAutoScalingCreationPolicy.
- #to_jsii ⇒ Object
Constructor Details
#initialize(min_successful_instances_percent: nil) ⇒ CfnResourceAutoScalingCreationPolicy
Returns a new instance of CfnResourceAutoScalingCreationPolicy.
8 9 10 11 |
# File 'cfn_resource_auto_scaling_creation_policy.rb', line 8 def initialize(min_successful_instances_percent: nil) @min_successful_instances_percent = min_successful_instances_percent Jsii::Type.check_type(@min_successful_instances_percent, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minSuccessfulInstancesPercent") unless @min_successful_instances_percent.nil? end |
Instance Attribute Details
#min_successful_instances_percent ⇒ Numeric? (readonly)
Specifies the percentage of instances in an Auto Scaling replacement update that must signal success for the update to succeed.
You can specify a value from 0 to 100. AWS CloudFormation rounds to the nearest tenth of a percent. For example, if you update five instances with a minimum successful percentage of 50, three instances must signal success. If an instance doesn't send a signal within the time specified by the Timeout property, AWS CloudFormation assumes that the instance wasn't created.
21 22 23 |
# File 'cfn_resource_auto_scaling_creation_policy.rb', line 21 def min_successful_instances_percent @min_successful_instances_percent end |
Class Method Details
.jsii_properties ⇒ Object
23 24 25 26 27 |
# File 'cfn_resource_auto_scaling_creation_policy.rb', line 23 def self.jsii_properties { :min_successful_instances_percent => "minSuccessfulInstancesPercent", } end |
Instance Method Details
#to_jsii ⇒ Object
29 30 31 32 33 34 35 |
# File 'cfn_resource_auto_scaling_creation_policy.rb', line 29 def to_jsii result = {} result.merge!({ "minSuccessfulInstancesPercent" => @min_successful_instances_percent, }) result.compact end |