Class: AWSCDK::CfnAutoScalingScheduledAction

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cfn_auto_scaling_scheduled_action.rb

Overview

With scheduled actions, the group size properties of an Auto Scaling group can change at any time.

When you update a stack with an Auto Scaling group and scheduled action, AWS CloudFormation always sets the group size property values of your Auto Scaling group to the values that are defined in the AWS::AutoScaling::AutoScalingGroup resource of your template, even if a scheduled action is in effect.

If you do not want AWS CloudFormation to change any of the group size property values when you have a scheduled action in effect, use the AutoScalingScheduledAction update policy to prevent AWS CloudFormation from changing the MinSize, MaxSize, or DesiredCapacity properties unless you have modified these values in your template.\

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ignore_unmodified_group_size_properties: nil) ⇒ CfnAutoScalingScheduledAction

Returns a new instance of CfnAutoScalingScheduledAction.

Parameters:

  • ignore_unmodified_group_size_properties (Boolean, nil) (defaults to: nil)


17
18
19
20
# File 'cfn_auto_scaling_scheduled_action.rb', line 17

def initialize(ignore_unmodified_group_size_properties: nil)
  @ignore_unmodified_group_size_properties = ignore_unmodified_group_size_properties
  Jsii::Type.check_type(@ignore_unmodified_group_size_properties, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "ignoreUnmodifiedGroupSizeProperties") unless @ignore_unmodified_group_size_properties.nil?
end

Instance Attribute Details

#ignore_unmodified_group_size_propertiesBoolean? (readonly)

Returns:

  • (Boolean, nil)


23
24
25
# File 'cfn_auto_scaling_scheduled_action.rb', line 23

def ignore_unmodified_group_size_properties
  @ignore_unmodified_group_size_properties
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
# File 'cfn_auto_scaling_scheduled_action.rb', line 25

def self.jsii_properties
  {
    :ignore_unmodified_group_size_properties => "ignoreUnmodifiedGroupSizeProperties",
  }
end

Instance Method Details

#to_jsiiObject



31
32
33
34
35
36
37
# File 'cfn_auto_scaling_scheduled_action.rb', line 31

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