Class: AWSCDK::CfnAutoScalingScheduledAction
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnAutoScalingScheduledAction
- 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
-
#initialize(ignore_unmodified_group_size_properties: nil) ⇒ CfnAutoScalingScheduledAction
constructor
A new instance of CfnAutoScalingScheduledAction.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ignore_unmodified_group_size_properties: nil) ⇒ CfnAutoScalingScheduledAction
Returns a new instance of CfnAutoScalingScheduledAction.
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_properties ⇒ Boolean? (readonly)
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_properties ⇒ Object
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_jsii ⇒ Object
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 |