Class: AWSCDK::Autoscaling::CfnWarmPool::InstanceReusePolicyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
autoscaling/cfn_warm_pool.rb

Overview

A structure that specifies an instance reuse policy for the InstanceReusePolicy property of the AWS::AutoScaling::WarmPool resource.

For more information, see Warm pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reuse_on_scale_in: nil) ⇒ InstanceReusePolicyProperty

Returns a new instance of InstanceReusePolicyProperty.

Parameters:

  • reuse_on_scale_in (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.



555
556
557
558
# File 'autoscaling/cfn_warm_pool.rb', line 555

def initialize(reuse_on_scale_in: nil)
  @reuse_on_scale_in = reuse_on_scale_in
  Jsii::Type.check_type(@reuse_on_scale_in, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "reuseOnScaleIn") unless @reuse_on_scale_in.nil?
end

Instance Attribute Details

#reuse_on_scale_inBoolean, ... (readonly)

Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.



564
565
566
# File 'autoscaling/cfn_warm_pool.rb', line 564

def reuse_on_scale_in
  @reuse_on_scale_in
end

Class Method Details

.jsii_propertiesObject



566
567
568
569
570
# File 'autoscaling/cfn_warm_pool.rb', line 566

def self.jsii_properties
  {
    :reuse_on_scale_in => "reuseOnScaleIn",
  }
end

Instance Method Details

#to_jsiiObject



572
573
574
575
576
577
578
# File 'autoscaling/cfn_warm_pool.rb', line 572

def to_jsii
  result = {}
  result.merge!({
    "reuseOnScaleIn" => @reuse_on_scale_in,
  })
  result.compact
end