Class: AWSCDK::Autoscaling::UpdatePolicy
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Autoscaling::UpdatePolicy
- Defined in:
- autoscaling/update_policy.rb
Overview
How existing instances should be updated.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.replacing_update ⇒ AWSCDK::Autoscaling::UpdatePolicy
Create a new AutoScalingGroup and switch over to it.
-
.rolling_update(options = nil) ⇒ AWSCDK::Autoscaling::UpdatePolicy
Replace the instances in the AutoScalingGroup one by one, or in batches.
Instance Method Summary collapse
-
#initialize ⇒ UpdatePolicy
constructor
A new instance of UpdatePolicy.
Constructor Details
#initialize ⇒ UpdatePolicy
Returns a new instance of UpdatePolicy.
8 9 10 |
# File 'autoscaling/update_policy.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.jsii_overridable_methods ⇒ Object
12 13 14 15 |
# File 'autoscaling/update_policy.rb', line 12 def self.jsii_overridable_methods { } end |
.replacing_update ⇒ AWSCDK::Autoscaling::UpdatePolicy
Create a new AutoScalingGroup and switch over to it.
20 21 22 |
# File 'autoscaling/update_policy.rb', line 20 def self.replacing_update() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_autoscaling.UpdatePolicy", "replacingUpdate", []) end |
.rolling_update(options = nil) ⇒ AWSCDK::Autoscaling::UpdatePolicy
Replace the instances in the AutoScalingGroup one by one, or in batches.
28 29 30 31 32 |
# File 'autoscaling/update_policy.rb', line 28 def self.rolling_update( = nil) = .is_a?(Hash) ? ::AWSCDK::Autoscaling::RollingUpdateOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXV0b3NjYWxpbmcuUm9sbGluZ1VwZGF0ZU9wdGlvbnMifQ==")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_autoscaling.UpdatePolicy", "rollingUpdate", []) end |