Class: AWSCDK::EKS::CfnNodegroup::WarmPoolConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_nodegroup.rb

Overview

The warm pool configuration for the node group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, max_group_prepared_capacity: nil, min_size: nil, pool_state: nil, reuse_on_scale_in: nil) ⇒ WarmPoolConfigProperty

Returns a new instance of WarmPoolConfigProperty.

Parameters:

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

    Enable or disable warm pool for the node group.

  • max_group_prepared_capacity (Numeric, nil) (defaults to: nil)

    The maximum number of instances that are allowed to be in the warm pool.

  • min_size (Numeric, nil) (defaults to: nil)

    The minimum number of instances to maintain in the warm pool.

  • pool_state (String, nil) (defaults to: nil)

    The desired state of warm pool instances.

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

    Whether to return instances to the warm pool during scale-in instead of terminating them.



1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
# File 'eks/cfn_nodegroup.rb', line 1252

def initialize(enabled: nil, max_group_prepared_capacity: nil, min_size: nil, pool_state: nil, reuse_on_scale_in: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @max_group_prepared_capacity = max_group_prepared_capacity
  Jsii::Type.check_type(@max_group_prepared_capacity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxGroupPreparedCapacity") unless @max_group_prepared_capacity.nil?
  @min_size = min_size
  Jsii::Type.check_type(@min_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minSize") unless @min_size.nil?
  @pool_state = pool_state
  Jsii::Type.check_type(@pool_state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "poolState") unless @pool_state.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

#enabledBoolean, ... (readonly)

Enable or disable warm pool for the node group.



1269
1270
1271
# File 'eks/cfn_nodegroup.rb', line 1269

def enabled
  @enabled
end

#max_group_prepared_capacityNumeric? (readonly)

The maximum number of instances that are allowed to be in the warm pool.



1274
1275
1276
# File 'eks/cfn_nodegroup.rb', line 1274

def max_group_prepared_capacity
  @max_group_prepared_capacity
end

#min_sizeNumeric? (readonly)

The minimum number of instances to maintain in the warm pool.



1279
1280
1281
# File 'eks/cfn_nodegroup.rb', line 1279

def min_size
  @min_size
end

#pool_stateString? (readonly)

The desired state of warm pool instances.



1284
1285
1286
# File 'eks/cfn_nodegroup.rb', line 1284

def pool_state
  @pool_state
end

#reuse_on_scale_inBoolean, ... (readonly)

Whether to return instances to the warm pool during scale-in instead of terminating them.



1289
1290
1291
# File 'eks/cfn_nodegroup.rb', line 1289

def reuse_on_scale_in
  @reuse_on_scale_in
end

Class Method Details

.jsii_propertiesObject



1291
1292
1293
1294
1295
1296
1297
1298
1299
# File 'eks/cfn_nodegroup.rb', line 1291

def self.jsii_properties
  {
    :enabled => "enabled",
    :max_group_prepared_capacity => "maxGroupPreparedCapacity",
    :min_size => "minSize",
    :pool_state => "poolState",
    :reuse_on_scale_in => "reuseOnScaleIn",
  }
end

Instance Method Details

#to_jsiiObject



1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
# File 'eks/cfn_nodegroup.rb', line 1301

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "maxGroupPreparedCapacity" => @max_group_prepared_capacity,
    "minSize" => @min_size,
    "poolState" => @pool_state,
    "reuseOnScaleIn" => @reuse_on_scale_in,
  })
  result.compact
end