aws-sdk-autoscaling 1.54.0 → 1.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +375 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-autoscaling.rb +2 -2
- data/lib/aws-sdk-autoscaling/activity.rb +14 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +27 -9
- data/lib/aws-sdk-autoscaling/client.rb +66 -23
- data/lib/aws-sdk-autoscaling/client_api.rb +16 -1
- data/lib/aws-sdk-autoscaling/errors.rb +1 -1
- data/lib/aws-sdk-autoscaling/instance.rb +1 -1
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +1 -1
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +1 -1
- data/lib/aws-sdk-autoscaling/load_balancer.rb +1 -1
- data/lib/aws-sdk-autoscaling/notification_configuration.rb +1 -1
- data/lib/aws-sdk-autoscaling/resource.rb +8 -4
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +1 -1
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +7 -1
- data/lib/aws-sdk-autoscaling/tag.rb +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +131 -38
- data/lib/aws-sdk-autoscaling/waiters.rb +1 -1
- metadata +6 -3
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -141,14 +141,14 @@ module Aws::AutoScaling
|
|
141
141
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
142
142
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
143
143
|
# An embedded object that specifies a mixed instances policy. The
|
144
|
-
# required
|
144
|
+
# required properties must be specified. If optional properties are
|
145
145
|
# unspecified, their default values are used.
|
146
146
|
#
|
147
|
-
# The policy includes
|
147
|
+
# The policy includes properties that not only define the distribution
|
148
148
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
149
149
|
# for Spot Instances, and how the Auto Scaling group allocates instance
|
150
150
|
# types to fulfill On-Demand and Spot capacities, but also the
|
151
|
-
#
|
151
|
+
# properties that specify the instance configuration information—the
|
152
152
|
# launch template and instance types. The policy can also include a
|
153
153
|
# weight for each instance type and different launch templates for
|
154
154
|
# individual instance types. For more information, see [Auto Scaling
|
@@ -633,6 +633,7 @@ module Aws::AutoScaling
|
|
633
633
|
# activities = auto_scaling.activities({
|
634
634
|
# activity_ids: ["XmlString"],
|
635
635
|
# auto_scaling_group_name: "XmlStringMaxLen255",
|
636
|
+
# include_deleted_groups: false,
|
636
637
|
# })
|
637
638
|
# @param [Hash] options ({})
|
638
639
|
# @option options [Array<String>] :activity_ids
|
@@ -643,6 +644,9 @@ module Aws::AutoScaling
|
|
643
644
|
# results are limited to that group.
|
644
645
|
# @option options [String] :auto_scaling_group_name
|
645
646
|
# The name of the Auto Scaling group.
|
647
|
+
# @option options [Boolean] :include_deleted_groups
|
648
|
+
# Indicates whether to include scaling activity from deleted Auto
|
649
|
+
# Scaling groups.
|
646
650
|
# @return [Activity::Collection]
|
647
651
|
def activities(options = {})
|
648
652
|
batches = Enumerator.new do |y|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -96,6 +96,12 @@ module Aws::AutoScaling
|
|
96
96
|
data[:desired_capacity]
|
97
97
|
end
|
98
98
|
|
99
|
+
# The time zone for the cron expression.
|
100
|
+
# @return [String]
|
101
|
+
def time_zone
|
102
|
+
data[:time_zone]
|
103
|
+
end
|
104
|
+
|
99
105
|
# @!endgroup
|
100
106
|
|
101
107
|
# @return [Client]
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -91,6 +91,15 @@ module Aws::AutoScaling
|
|
91
91
|
# The details about the activity.
|
92
92
|
# @return [String]
|
93
93
|
#
|
94
|
+
# @!attribute [rw] auto_scaling_group_state
|
95
|
+
# The state of the Auto Scaling group, which is either `InService` or
|
96
|
+
# `Deleted`.
|
97
|
+
# @return [String]
|
98
|
+
#
|
99
|
+
# @!attribute [rw] auto_scaling_group_arn
|
100
|
+
# The Amazon Resource Name (ARN) of the Auto Scaling group.
|
101
|
+
# @return [String]
|
102
|
+
#
|
94
103
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Activity AWS API Documentation
|
95
104
|
#
|
96
105
|
class Activity < Struct.new(
|
@@ -103,7 +112,9 @@ module Aws::AutoScaling
|
|
103
112
|
:status_code,
|
104
113
|
:status_message,
|
105
114
|
:progress,
|
106
|
-
:details
|
115
|
+
:details,
|
116
|
+
:auto_scaling_group_state,
|
117
|
+
:auto_scaling_group_arn)
|
107
118
|
SENSITIVE = []
|
108
119
|
include Aws::Structure
|
109
120
|
end
|
@@ -640,6 +651,7 @@ module Aws::AutoScaling
|
|
640
651
|
# min_size: 1,
|
641
652
|
# max_size: 1,
|
642
653
|
# desired_capacity: 1,
|
654
|
+
# time_zone: "XmlStringMaxLen255",
|
643
655
|
# },
|
644
656
|
# ],
|
645
657
|
# }
|
@@ -920,14 +932,14 @@ module Aws::AutoScaling
|
|
920
932
|
#
|
921
933
|
# @!attribute [rw] mixed_instances_policy
|
922
934
|
# An embedded object that specifies a mixed instances policy. The
|
923
|
-
# required
|
935
|
+
# required properties must be specified. If optional properties are
|
924
936
|
# unspecified, their default values are used.
|
925
937
|
#
|
926
|
-
# The policy includes
|
938
|
+
# The policy includes properties that not only define the distribution
|
927
939
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
928
940
|
# for Spot Instances, and how the Auto Scaling group allocates
|
929
941
|
# instance types to fulfill On-Demand and Spot capacities, but also
|
930
|
-
# the
|
942
|
+
# the properties that specify the instance configuration
|
931
943
|
# information—the launch template and instance types. The policy can
|
932
944
|
# also include a weight for each instance type and different launch
|
933
945
|
# templates for individual instance types. For more information, see
|
@@ -2226,6 +2238,7 @@ module Aws::AutoScaling
|
|
2226
2238
|
# {
|
2227
2239
|
# activity_ids: ["XmlString"],
|
2228
2240
|
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2241
|
+
# include_deleted_groups: false,
|
2229
2242
|
# max_records: 1,
|
2230
2243
|
# next_token: "XmlString",
|
2231
2244
|
# }
|
@@ -2242,6 +2255,11 @@ module Aws::AutoScaling
|
|
2242
2255
|
# The name of the Auto Scaling group.
|
2243
2256
|
# @return [String]
|
2244
2257
|
#
|
2258
|
+
# @!attribute [rw] include_deleted_groups
|
2259
|
+
# Indicates whether to include scaling activity from deleted Auto
|
2260
|
+
# Scaling groups.
|
2261
|
+
# @return [Boolean]
|
2262
|
+
#
|
2245
2263
|
# @!attribute [rw] max_records
|
2246
2264
|
# The maximum number of items to return with this call. The default
|
2247
2265
|
# value is `100` and the maximum value is `100`.
|
@@ -2257,6 +2275,7 @@ module Aws::AutoScaling
|
|
2257
2275
|
class DescribeScalingActivitiesType < Struct.new(
|
2258
2276
|
:activity_ids,
|
2259
2277
|
:auto_scaling_group_name,
|
2278
|
+
:include_deleted_groups,
|
2260
2279
|
:max_records,
|
2261
2280
|
:next_token)
|
2262
2281
|
SENSITIVE = []
|
@@ -3241,12 +3260,12 @@ module Aws::AutoScaling
|
|
3241
3260
|
# Indicates how to allocate instance types to fulfill On-Demand
|
3242
3261
|
# capacity. The only valid value is `prioritized`, which is also the
|
3243
3262
|
# default value. This strategy uses the order of instance types in the
|
3244
|
-
#
|
3245
|
-
# first instance type in the array is prioritized
|
3246
|
-
# last. If all your On-Demand capacity cannot be
|
3247
|
-
# highest priority instance, then the Auto
|
3248
|
-
# remaining capacity using the second
|
3249
|
-
# on.
|
3263
|
+
# `LaunchTemplateOverrides` to define the launch priority of each
|
3264
|
+
# instance type. The first instance type in the array is prioritized
|
3265
|
+
# higher than the last. If all your On-Demand capacity cannot be
|
3266
|
+
# fulfilled using your highest priority instance, then the Auto
|
3267
|
+
# Scaling groups launches the remaining capacity using the second
|
3268
|
+
# priority instance type, and so on.
|
3250
3269
|
# @return [String]
|
3251
3270
|
#
|
3252
3271
|
# @!attribute [rw] on_demand_base_capacity
|
@@ -3267,14 +3286,21 @@ module Aws::AutoScaling
|
|
3267
3286
|
# @return [Integer]
|
3268
3287
|
#
|
3269
3288
|
# @!attribute [rw] spot_allocation_strategy
|
3270
|
-
# Indicates how to allocate instances across Spot Instance pools.
|
3271
|
-
#
|
3272
|
-
#
|
3273
|
-
# optimally chosen based on the available Spot capacity. If the
|
3274
|
-
# allocation strategy is `lowest-price`, the Auto Scaling group
|
3289
|
+
# Indicates how to allocate instances across Spot Instance pools.
|
3290
|
+
#
|
3291
|
+
# If the allocation strategy is `lowest-price`, the Auto Scaling group
|
3275
3292
|
# launches instances using the Spot pools with the lowest price, and
|
3276
3293
|
# evenly allocates your instances across the number of Spot pools that
|
3277
3294
|
# you specify. Defaults to `lowest-price` if not specified.
|
3295
|
+
#
|
3296
|
+
# If the allocation strategy is `capacity-optimized` (recommended),
|
3297
|
+
# the Auto Scaling group launches instances using Spot pools that are
|
3298
|
+
# optimally chosen based on the available Spot capacity.
|
3299
|
+
# Alternatively, you can use `capacity-optimized-prioritized` and set
|
3300
|
+
# the order of instance types in the list of launch template overrides
|
3301
|
+
# from highest to lowest priority (from first to last in the list).
|
3302
|
+
# Amazon EC2 Auto Scaling honors the instance type priorities on a
|
3303
|
+
# best-effort basis but optimizes for capacity first.
|
3278
3304
|
# @return [String]
|
3279
3305
|
#
|
3280
3306
|
# @!attribute [rw] spot_instance_pools
|
@@ -3619,7 +3645,7 @@ module Aws::AutoScaling
|
|
3619
3645
|
|
3620
3646
|
# Describes a launch template and overrides.
|
3621
3647
|
#
|
3622
|
-
# You specify these
|
3648
|
+
# You specify these properties as part of a mixed instances policy.
|
3623
3649
|
#
|
3624
3650
|
# When you update the launch template or overrides, existing Amazon EC2
|
3625
3651
|
# instances continue to run. When scale out occurs, Amazon EC2 Auto
|
@@ -3654,7 +3680,7 @@ module Aws::AutoScaling
|
|
3654
3680
|
# @return [Types::LaunchTemplateSpecification]
|
3655
3681
|
#
|
3656
3682
|
# @!attribute [rw] overrides
|
3657
|
-
# Any
|
3683
|
+
# Any properties that you specify override the same properties in the
|
3658
3684
|
# launch template. If not provided, Amazon EC2 Auto Scaling uses the
|
3659
3685
|
# instance type specified in the launch template when it launches an
|
3660
3686
|
# instance.
|
@@ -4212,7 +4238,7 @@ module Aws::AutoScaling
|
|
4212
4238
|
#
|
4213
4239
|
# You can create a mixed instances policy for a new Auto Scaling group,
|
4214
4240
|
# or you can create it for an existing group by updating the group to
|
4215
|
-
# specify `MixedInstancesPolicy` as the top-level
|
4241
|
+
# specify `MixedInstancesPolicy` as the top-level property instead of a
|
4216
4242
|
# launch configuration or launch template.
|
4217
4243
|
#
|
4218
4244
|
#
|
@@ -4260,7 +4286,7 @@ module Aws::AutoScaling
|
|
4260
4286
|
#
|
4261
4287
|
# @!attribute [rw] instances_distribution
|
4262
4288
|
# Specifies the instances distribution. If not provided, the value for
|
4263
|
-
# each
|
4289
|
+
# each property in `InstancesDistribution` uses a default value.
|
4264
4290
|
# @return [Types::InstancesDistribution]
|
4265
4291
|
#
|
4266
4292
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MixedInstancesPolicy AWS API Documentation
|
@@ -4830,6 +4856,7 @@ module Aws::AutoScaling
|
|
4830
4856
|
# min_size: 1,
|
4831
4857
|
# max_size: 1,
|
4832
4858
|
# desired_capacity: 1,
|
4859
|
+
# time_zone: "XmlStringMaxLen255",
|
4833
4860
|
# }
|
4834
4861
|
#
|
4835
4862
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -4858,21 +4885,21 @@ module Aws::AutoScaling
|
|
4858
4885
|
# @return [Time]
|
4859
4886
|
#
|
4860
4887
|
# @!attribute [rw] end_time
|
4861
|
-
# The date and time for the recurring schedule to end
|
4862
|
-
# Scaling does not perform the action after this time.
|
4888
|
+
# The date and time for the recurring schedule to end, in UTC.
|
4863
4889
|
# @return [Time]
|
4864
4890
|
#
|
4865
4891
|
# @!attribute [rw] recurrence
|
4866
|
-
# The recurring schedule for this action
|
4867
|
-
#
|
4868
|
-
# \[
|
4869
|
-
#
|
4870
|
-
#
|
4871
|
-
# [Crontab][1].
|
4892
|
+
# The recurring schedule for this action. This format consists of five
|
4893
|
+
# fields separated by white spaces: \[Minute\] \[Hour\]
|
4894
|
+
# \[Day\_of\_Month\] \[Month\_of\_Year\] \[Day\_of\_Week\]. The value
|
4895
|
+
# must be in quotes (for example, `"30 0 1 1,6,12 *"`). For more
|
4896
|
+
# information about this format, see [Crontab][1].
|
4872
4897
|
#
|
4873
4898
|
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
4874
4899
|
# form the boundaries of when the recurring action starts and stops.
|
4875
4900
|
#
|
4901
|
+
# Cron expressions use Universal Coordinated Time (UTC) by default.
|
4902
|
+
#
|
4876
4903
|
#
|
4877
4904
|
#
|
4878
4905
|
# [1]: http://crontab.org
|
@@ -4893,6 +4920,20 @@ module Aws::AutoScaling
|
|
4893
4920
|
# scaling conditions.
|
4894
4921
|
# @return [Integer]
|
4895
4922
|
#
|
4923
|
+
# @!attribute [rw] time_zone
|
4924
|
+
# Specifies the time zone for a cron expression. If a time zone is not
|
4925
|
+
# provided, UTC is used by default.
|
4926
|
+
#
|
4927
|
+
# Valid values are the canonical names of the IANA time zones, derived
|
4928
|
+
# from the IANA Time Zone Database (such as `Etc/GMT+9` or
|
4929
|
+
# `Pacific/Tahiti`). For more information, see
|
4930
|
+
# [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones][1].
|
4931
|
+
#
|
4932
|
+
#
|
4933
|
+
#
|
4934
|
+
# [1]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
4935
|
+
# @return [String]
|
4936
|
+
#
|
4896
4937
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupActionType AWS API Documentation
|
4897
4938
|
#
|
4898
4939
|
class PutScheduledUpdateGroupActionType < Struct.new(
|
@@ -4904,7 +4945,8 @@ module Aws::AutoScaling
|
|
4904
4945
|
:recurrence,
|
4905
4946
|
:min_size,
|
4906
4947
|
:max_size,
|
4907
|
-
:desired_capacity
|
4948
|
+
:desired_capacity,
|
4949
|
+
:time_zone)
|
4908
4950
|
SENSITIVE = []
|
4909
4951
|
include Aws::Structure
|
4910
4952
|
end
|
@@ -4955,12 +4997,18 @@ module Aws::AutoScaling
|
|
4955
4997
|
|
4956
4998
|
# Describes information used to start an instance refresh.
|
4957
4999
|
#
|
5000
|
+
# All properties are optional. However, if you specify a value for
|
5001
|
+
# `CheckpointDelay`, you must also provide a value for
|
5002
|
+
# `CheckpointPercentages`.
|
5003
|
+
#
|
4958
5004
|
# @note When making an API call, you may pass RefreshPreferences
|
4959
5005
|
# data as a hash:
|
4960
5006
|
#
|
4961
5007
|
# {
|
4962
5008
|
# min_healthy_percentage: 1,
|
4963
5009
|
# instance_warmup: 1,
|
5010
|
+
# checkpoint_percentages: [1],
|
5011
|
+
# checkpoint_delay: 1,
|
4964
5012
|
# }
|
4965
5013
|
#
|
4966
5014
|
# @!attribute [rw] min_healthy_percentage
|
@@ -4978,11 +5026,35 @@ module Aws::AutoScaling
|
|
4978
5026
|
# the value for the health check grace period defined for the group.
|
4979
5027
|
# @return [Integer]
|
4980
5028
|
#
|
5029
|
+
# @!attribute [rw] checkpoint_percentages
|
5030
|
+
# Threshold values for each checkpoint in ascending order. Each number
|
5031
|
+
# must be unique. To replace all instances in the Auto Scaling group,
|
5032
|
+
# the last number in the array must be `100`.
|
5033
|
+
#
|
5034
|
+
# For usage examples, see [Adding checkpoints to an instance
|
5035
|
+
# refresh][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
5036
|
+
#
|
5037
|
+
#
|
5038
|
+
#
|
5039
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-adding-checkpoints-instance-refresh.html
|
5040
|
+
# @return [Array<Integer>]
|
5041
|
+
#
|
5042
|
+
# @!attribute [rw] checkpoint_delay
|
5043
|
+
# The amount of time, in seconds, to wait after a checkpoint before
|
5044
|
+
# continuing. This property is optional, but if you specify a value
|
5045
|
+
# for it, you must also specify a value for `CheckpointPercentages`.
|
5046
|
+
# If you specify a value for `CheckpointPercentages` and not for
|
5047
|
+
# `CheckpointDelay`, the `CheckpointDelay` defaults to `3600` (1
|
5048
|
+
# hour).
|
5049
|
+
# @return [Integer]
|
5050
|
+
#
|
4981
5051
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
|
4982
5052
|
#
|
4983
5053
|
class RefreshPreferences < Struct.new(
|
4984
5054
|
:min_healthy_percentage,
|
4985
|
-
:instance_warmup
|
5055
|
+
:instance_warmup,
|
5056
|
+
:checkpoint_percentages,
|
5057
|
+
:checkpoint_delay)
|
4986
5058
|
SENSITIVE = []
|
4987
5059
|
include Aws::Structure
|
4988
5060
|
end
|
@@ -5253,6 +5325,10 @@ module Aws::AutoScaling
|
|
5253
5325
|
# to maintain.
|
5254
5326
|
# @return [Integer]
|
5255
5327
|
#
|
5328
|
+
# @!attribute [rw] time_zone
|
5329
|
+
# The time zone for the cron expression.
|
5330
|
+
# @return [String]
|
5331
|
+
#
|
5256
5332
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledUpdateGroupAction AWS API Documentation
|
5257
5333
|
#
|
5258
5334
|
class ScheduledUpdateGroupAction < Struct.new(
|
@@ -5265,7 +5341,8 @@ module Aws::AutoScaling
|
|
5265
5341
|
:recurrence,
|
5266
5342
|
:min_size,
|
5267
5343
|
:max_size,
|
5268
|
-
:desired_capacity
|
5344
|
+
:desired_capacity,
|
5345
|
+
:time_zone)
|
5269
5346
|
SENSITIVE = []
|
5270
5347
|
include Aws::Structure
|
5271
5348
|
end
|
@@ -5273,9 +5350,6 @@ module Aws::AutoScaling
|
|
5273
5350
|
# Describes information used for one or more scheduled scaling action
|
5274
5351
|
# updates in a BatchPutScheduledUpdateGroupAction operation.
|
5275
5352
|
#
|
5276
|
-
# When updating a scheduled scaling action, all optional parameters are
|
5277
|
-
# left unchanged if not specified.
|
5278
|
-
#
|
5279
5353
|
# @note When making an API call, you may pass ScheduledUpdateGroupActionRequest
|
5280
5354
|
# data as a hash:
|
5281
5355
|
#
|
@@ -5287,6 +5361,7 @@ module Aws::AutoScaling
|
|
5287
5361
|
# min_size: 1,
|
5288
5362
|
# max_size: 1,
|
5289
5363
|
# desired_capacity: 1,
|
5364
|
+
# time_zone: "XmlStringMaxLen255",
|
5290
5365
|
# }
|
5291
5366
|
#
|
5292
5367
|
# @!attribute [rw] scheduled_action_name
|
@@ -5307,8 +5382,7 @@ module Aws::AutoScaling
|
|
5307
5382
|
# @return [Time]
|
5308
5383
|
#
|
5309
5384
|
# @!attribute [rw] end_time
|
5310
|
-
# The date and time for the recurring schedule to end
|
5311
|
-
# Scaling does not perform the action after this time.
|
5385
|
+
# The date and time for the recurring schedule to end, in UTC.
|
5312
5386
|
# @return [Time]
|
5313
5387
|
#
|
5314
5388
|
# @!attribute [rw] recurrence
|
@@ -5322,6 +5396,8 @@ module Aws::AutoScaling
|
|
5322
5396
|
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
5323
5397
|
# form the boundaries of when the recurring action starts and stops.
|
5324
5398
|
#
|
5399
|
+
# Cron expressions use Universal Coordinated Time (UTC) by default.
|
5400
|
+
#
|
5325
5401
|
#
|
5326
5402
|
#
|
5327
5403
|
# [1]: http://crontab.org
|
@@ -5341,6 +5417,20 @@ module Aws::AutoScaling
|
|
5341
5417
|
# to maintain.
|
5342
5418
|
# @return [Integer]
|
5343
5419
|
#
|
5420
|
+
# @!attribute [rw] time_zone
|
5421
|
+
# Specifies the time zone for a cron expression. If a time zone is not
|
5422
|
+
# provided, UTC is used by default.
|
5423
|
+
#
|
5424
|
+
# Valid values are the canonical names of the IANA time zones, derived
|
5425
|
+
# from the IANA Time Zone Database (such as `Etc/GMT+9` or
|
5426
|
+
# `Pacific/Tahiti`). For more information, see
|
5427
|
+
# [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones][1].
|
5428
|
+
#
|
5429
|
+
#
|
5430
|
+
#
|
5431
|
+
# [1]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
5432
|
+
# @return [String]
|
5433
|
+
#
|
5344
5434
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledUpdateGroupActionRequest AWS API Documentation
|
5345
5435
|
#
|
5346
5436
|
class ScheduledUpdateGroupActionRequest < Struct.new(
|
@@ -5350,7 +5440,8 @@ module Aws::AutoScaling
|
|
5350
5440
|
:recurrence,
|
5351
5441
|
:min_size,
|
5352
5442
|
:max_size,
|
5353
|
-
:desired_capacity
|
5443
|
+
:desired_capacity,
|
5444
|
+
:time_zone)
|
5354
5445
|
SENSITIVE = []
|
5355
5446
|
include Aws::Structure
|
5356
5447
|
end
|
@@ -5507,6 +5598,8 @@ module Aws::AutoScaling
|
|
5507
5598
|
# preferences: {
|
5508
5599
|
# min_healthy_percentage: 1,
|
5509
5600
|
# instance_warmup: 1,
|
5601
|
+
# checkpoint_percentages: [1],
|
5602
|
+
# checkpoint_delay: 1,
|
5510
5603
|
# },
|
5511
5604
|
# }
|
5512
5605
|
#
|
@@ -5922,7 +6015,7 @@ module Aws::AutoScaling
|
|
5922
6015
|
#
|
5923
6016
|
# @!attribute [rw] mixed_instances_policy
|
5924
6017
|
# An embedded object that specifies a mixed instances policy. When you
|
5925
|
-
# make changes to an existing policy, all optional
|
6018
|
+
# make changes to an existing policy, all optional properties are left
|
5926
6019
|
# unchanged if not specified. For more information, see [Auto Scaling
|
5927
6020
|
# groups with multiple instance types and purchase options][1] in the
|
5928
6021
|
# *Amazon EC2 Auto Scaling User Guide*.
|