aws-sdk-autoscaling 1.39.0 → 1.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +69 -54
- data/lib/aws-sdk-autoscaling/client.rb +245 -101
- data/lib/aws-sdk-autoscaling/client_api.rb +11 -0
- data/lib/aws-sdk-autoscaling/customizations.rb +1 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +12 -0
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +4 -4
- data/lib/aws-sdk-autoscaling/resource.rb +20 -6
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +29 -20
- data/lib/aws-sdk-autoscaling/types.rb +366 -113
- metadata +2 -2
@@ -123,6 +123,10 @@ module Aws::AutoScaling
|
|
123
123
|
HonorCooldown = Shapes::BooleanShape.new(name: 'HonorCooldown')
|
124
124
|
Instance = Shapes::StructureShape.new(name: 'Instance')
|
125
125
|
InstanceIds = Shapes::ListShape.new(name: 'InstanceIds')
|
126
|
+
InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
|
127
|
+
InstanceMetadataHttpPutResponseHopLimit = Shapes::IntegerShape.new(name: 'InstanceMetadataHttpPutResponseHopLimit')
|
128
|
+
InstanceMetadataHttpTokensState = Shapes::StringShape.new(name: 'InstanceMetadataHttpTokensState')
|
129
|
+
InstanceMetadataOptions = Shapes::StructureShape.new(name: 'InstanceMetadataOptions')
|
126
130
|
InstanceMonitoring = Shapes::StructureShape.new(name: 'InstanceMonitoring')
|
127
131
|
InstanceProtected = Shapes::BooleanShape.new(name: 'InstanceProtected')
|
128
132
|
InstanceRefresh = Shapes::StructureShape.new(name: 'InstanceRefresh')
|
@@ -472,6 +476,7 @@ module Aws::AutoScaling
|
|
472
476
|
CreateLaunchConfigurationType.add_member(:ebs_optimized, Shapes::ShapeRef.new(shape: EbsOptimized, location_name: "EbsOptimized"))
|
473
477
|
CreateLaunchConfigurationType.add_member(:associate_public_ip_address, Shapes::ShapeRef.new(shape: AssociatePublicIpAddress, location_name: "AssociatePublicIpAddress"))
|
474
478
|
CreateLaunchConfigurationType.add_member(:placement_tenancy, Shapes::ShapeRef.new(shape: XmlStringMaxLen64, location_name: "PlacementTenancy"))
|
479
|
+
CreateLaunchConfigurationType.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptions, location_name: "MetadataOptions"))
|
475
480
|
CreateLaunchConfigurationType.struct_class = Types::CreateLaunchConfigurationType
|
476
481
|
|
477
482
|
CreateOrUpdateTagsType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
|
@@ -697,6 +702,11 @@ module Aws::AutoScaling
|
|
697
702
|
|
698
703
|
InstanceIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen19)
|
699
704
|
|
705
|
+
InstanceMetadataOptions.add_member(:http_tokens, Shapes::ShapeRef.new(shape: InstanceMetadataHttpTokensState, location_name: "HttpTokens"))
|
706
|
+
InstanceMetadataOptions.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: InstanceMetadataHttpPutResponseHopLimit, location_name: "HttpPutResponseHopLimit"))
|
707
|
+
InstanceMetadataOptions.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
|
708
|
+
InstanceMetadataOptions.struct_class = Types::InstanceMetadataOptions
|
709
|
+
|
700
710
|
InstanceMonitoring.add_member(:enabled, Shapes::ShapeRef.new(shape: MonitoringEnabled, location_name: "Enabled"))
|
701
711
|
InstanceMonitoring.struct_class = Types::InstanceMonitoring
|
702
712
|
|
@@ -749,6 +759,7 @@ module Aws::AutoScaling
|
|
749
759
|
LaunchConfiguration.add_member(:ebs_optimized, Shapes::ShapeRef.new(shape: EbsOptimized, location_name: "EbsOptimized"))
|
750
760
|
LaunchConfiguration.add_member(:associate_public_ip_address, Shapes::ShapeRef.new(shape: AssociatePublicIpAddress, location_name: "AssociatePublicIpAddress"))
|
751
761
|
LaunchConfiguration.add_member(:placement_tenancy, Shapes::ShapeRef.new(shape: XmlStringMaxLen64, location_name: "PlacementTenancy"))
|
762
|
+
LaunchConfiguration.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptions, location_name: "MetadataOptions"))
|
752
763
|
LaunchConfiguration.struct_class = Types::LaunchConfiguration
|
753
764
|
|
754
765
|
LaunchConfigurationNameType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "LaunchConfigurationName"))
|
@@ -260,6 +260,18 @@ module Aws::AutoScaling
|
|
260
260
|
data[:placement_tenancy]
|
261
261
|
end
|
262
262
|
|
263
|
+
# The metadata options for the instances. For more information, see
|
264
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
|
265
|
+
# Linux Instances*.
|
266
|
+
#
|
267
|
+
#
|
268
|
+
#
|
269
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
270
|
+
# @return [Types::InstanceMetadataOptions]
|
271
|
+
def metadata_options
|
272
|
+
data[:metadata_options]
|
273
|
+
end
|
274
|
+
|
263
275
|
# @!endgroup
|
264
276
|
|
265
277
|
# @return [Client]
|
@@ -301,15 +301,15 @@ module Aws::AutoScaling
|
|
301
301
|
#
|
302
302
|
# * autoscaling:EC2\_INSTANCE\_TERMINATING
|
303
303
|
#
|
304
|
-
#
|
305
|
-
#
|
304
|
+
# Required for new lifecycle hooks, but optional when updating existing
|
305
|
+
# hooks.
|
306
306
|
# @option options [String] :role_arn
|
307
307
|
# The ARN of the IAM role that allows the Auto Scaling group to publish
|
308
308
|
# to the specified notification target, for example, an Amazon SNS topic
|
309
309
|
# or an Amazon SQS queue.
|
310
310
|
#
|
311
|
-
#
|
312
|
-
#
|
311
|
+
# Required for new lifecycle hooks, but optional when updating existing
|
312
|
+
# hooks.
|
313
313
|
# @option options [String] :notification_target_arn
|
314
314
|
# The ARN of the notification target that Amazon EC2 Auto Scaling uses
|
315
315
|
# to notify you when an instance is in the transition state for the
|
@@ -185,8 +185,8 @@ module Aws::AutoScaling
|
|
185
185
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
|
186
186
|
# Auto Scaling may need to go above `MaxSize` to meet your capacity
|
187
187
|
# requirements. In this event, Amazon EC2 Auto Scaling will never go
|
188
|
-
# above `MaxSize` by more than your
|
189
|
-
# that define how many
|
188
|
+
# above `MaxSize` by more than your largest instance weight (weights
|
189
|
+
# that define how many units each instance contributes to the desired
|
190
190
|
# capacity of the group).
|
191
191
|
#
|
192
192
|
# </note>
|
@@ -203,8 +203,10 @@ module Aws::AutoScaling
|
|
203
203
|
# The amount of time, in seconds, after a scaling activity completes
|
204
204
|
# before another scaling activity can start. The default value is `300`.
|
205
205
|
#
|
206
|
-
#
|
207
|
-
#
|
206
|
+
# This setting applies when using simple scaling policies, but not when
|
207
|
+
# using other scaling policies or scheduled scaling. For more
|
208
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1] in
|
209
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
208
210
|
#
|
209
211
|
#
|
210
212
|
#
|
@@ -260,8 +262,7 @@ module Aws::AutoScaling
|
|
260
262
|
# For more information, see [Health Check Grace Period][1] in the
|
261
263
|
# *Amazon EC2 Auto Scaling User Guide*.
|
262
264
|
#
|
263
|
-
#
|
264
|
-
# health check.
|
265
|
+
# Required if you are adding an `ELB` health check.
|
265
266
|
#
|
266
267
|
#
|
267
268
|
#
|
@@ -402,6 +403,11 @@ module Aws::AutoScaling
|
|
402
403
|
# ebs_optimized: false,
|
403
404
|
# associate_public_ip_address: false,
|
404
405
|
# placement_tenancy: "XmlStringMaxLen64",
|
406
|
+
# metadata_options: {
|
407
|
+
# http_tokens: "optional", # accepts optional, required
|
408
|
+
# http_put_response_hop_limit: 1,
|
409
|
+
# http_endpoint: "disabled", # accepts disabled, enabled
|
410
|
+
# },
|
405
411
|
# })
|
406
412
|
# @param [Hash] options ({})
|
407
413
|
# @option options [required, String] :launch_configuration_name
|
@@ -618,6 +624,14 @@ module Aws::AutoScaling
|
|
618
624
|
#
|
619
625
|
#
|
620
626
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
627
|
+
# @option options [Types::InstanceMetadataOptions] :metadata_options
|
628
|
+
# The metadata options for the instances. For more information, see
|
629
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
|
630
|
+
# Linux Instances*.
|
631
|
+
#
|
632
|
+
#
|
633
|
+
#
|
634
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
621
635
|
# @return [LaunchConfiguration]
|
622
636
|
def create_launch_configuration(options = {})
|
623
637
|
@client.create_launch_configuration(options)
|
@@ -47,16 +47,30 @@ module Aws::AutoScaling
|
|
47
47
|
data[:policy_arn]
|
48
48
|
end
|
49
49
|
|
50
|
-
#
|
51
|
-
#
|
50
|
+
# One of the following policy types:
|
51
|
+
#
|
52
|
+
# * `TargetTrackingScaling`
|
53
|
+
#
|
54
|
+
# * `StepScaling`
|
55
|
+
#
|
56
|
+
# * `SimpleScaling` (default)
|
57
|
+
#
|
58
|
+
# For more information, see [Target Tracking Scaling Policies][1] and
|
59
|
+
# [Step and Simple Scaling Policies][2] in the *Amazon EC2 Auto Scaling
|
60
|
+
# User Guide*.
|
61
|
+
#
|
62
|
+
#
|
63
|
+
#
|
64
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
|
65
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html
|
52
66
|
# @return [String]
|
53
67
|
def policy_type
|
54
68
|
data[:policy_type]
|
55
69
|
end
|
56
70
|
|
57
|
-
#
|
58
|
-
#
|
59
|
-
# and `PercentChangeInCapacity`.
|
71
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
72
|
+
# absolute number or a percentage). The valid values are
|
73
|
+
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
60
74
|
# @return [String]
|
61
75
|
def adjustment_type
|
62
76
|
data[:adjustment_type]
|
@@ -69,10 +83,8 @@ module Aws::AutoScaling
|
|
69
83
|
data[:min_adjustment_step]
|
70
84
|
end
|
71
85
|
|
72
|
-
# The minimum
|
73
|
-
# `
|
74
|
-
# changes the `DesiredCapacity` of the Auto Scaling group by at least
|
75
|
-
# this many instances. Otherwise, the error is `ValidationError`.
|
86
|
+
# The minimum value to scale by when the adjustment type is
|
87
|
+
# `PercentChangeInCapacity`.
|
76
88
|
# @return [Integer]
|
77
89
|
def min_adjustment_magnitude
|
78
90
|
data[:min_adjustment_magnitude]
|
@@ -86,8 +98,7 @@ module Aws::AutoScaling
|
|
86
98
|
data[:scaling_adjustment]
|
87
99
|
end
|
88
100
|
|
89
|
-
# The
|
90
|
-
# before any further dynamic scaling activities can start.
|
101
|
+
# The duration of the policy's cooldown period, in seconds.
|
91
102
|
# @return [Integer]
|
92
103
|
def cooldown
|
93
104
|
data[:cooldown]
|
@@ -297,11 +308,9 @@ module Aws::AutoScaling
|
|
297
308
|
# Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
|
298
309
|
# period to complete before executing the policy.
|
299
310
|
#
|
300
|
-
#
|
301
|
-
#
|
302
|
-
#
|
303
|
-
# For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
|
304
|
-
# Auto Scaling User Guide*.
|
311
|
+
# Valid only if the policy type is `SimpleScaling`. For more
|
312
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1] in
|
313
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
305
314
|
#
|
306
315
|
#
|
307
316
|
#
|
@@ -316,13 +325,13 @@ module Aws::AutoScaling
|
|
316
325
|
# If you specify a metric value that doesn't correspond to a step
|
317
326
|
# adjustment for the policy, the call returns an error.
|
318
327
|
#
|
319
|
-
#
|
320
|
-
#
|
328
|
+
# Required if the policy type is `StepScaling` and not supported
|
329
|
+
# otherwise.
|
321
330
|
# @option options [Float] :breach_threshold
|
322
331
|
# The breach threshold for the alarm.
|
323
332
|
#
|
324
|
-
#
|
325
|
-
#
|
333
|
+
# Required if the policy type is `StepScaling` and not supported
|
334
|
+
# otherwise.
|
326
335
|
# @return [EmptyStructure]
|
327
336
|
def execute(options = {})
|
328
337
|
options = options.merge(policy_name: @name)
|
@@ -20,6 +20,7 @@ module Aws::AutoScaling
|
|
20
20
|
#
|
21
21
|
class ActiveInstanceRefreshNotFoundFault < Struct.new(
|
22
22
|
:message)
|
23
|
+
SENSITIVE = []
|
23
24
|
include Aws::Structure
|
24
25
|
end
|
25
26
|
|
@@ -41,6 +42,7 @@ module Aws::AutoScaling
|
|
41
42
|
class ActivitiesType < Struct.new(
|
42
43
|
:activities,
|
43
44
|
:next_token)
|
45
|
+
SENSITIVE = []
|
44
46
|
include Aws::Structure
|
45
47
|
end
|
46
48
|
|
@@ -102,6 +104,7 @@ module Aws::AutoScaling
|
|
102
104
|
:status_message,
|
103
105
|
:progress,
|
104
106
|
:details)
|
107
|
+
SENSITIVE = []
|
105
108
|
include Aws::Structure
|
106
109
|
end
|
107
110
|
|
@@ -113,6 +116,7 @@ module Aws::AutoScaling
|
|
113
116
|
#
|
114
117
|
class ActivityType < Struct.new(
|
115
118
|
:activity)
|
119
|
+
SENSITIVE = []
|
116
120
|
include Aws::Structure
|
117
121
|
end
|
118
122
|
|
@@ -127,6 +131,7 @@ module Aws::AutoScaling
|
|
127
131
|
#
|
128
132
|
class AdjustmentType < Struct.new(
|
129
133
|
:adjustment_type)
|
134
|
+
SENSITIVE = []
|
130
135
|
include Aws::Structure
|
131
136
|
end
|
132
137
|
|
@@ -145,6 +150,7 @@ module Aws::AutoScaling
|
|
145
150
|
class Alarm < Struct.new(
|
146
151
|
:alarm_name,
|
147
152
|
:alarm_arn)
|
153
|
+
SENSITIVE = []
|
148
154
|
include Aws::Structure
|
149
155
|
end
|
150
156
|
|
@@ -158,6 +164,7 @@ module Aws::AutoScaling
|
|
158
164
|
#
|
159
165
|
class AlreadyExistsFault < Struct.new(
|
160
166
|
:message)
|
167
|
+
SENSITIVE = []
|
161
168
|
include Aws::Structure
|
162
169
|
end
|
163
170
|
|
@@ -182,6 +189,7 @@ module Aws::AutoScaling
|
|
182
189
|
class AttachInstancesQuery < Struct.new(
|
183
190
|
:instance_ids,
|
184
191
|
:auto_scaling_group_name)
|
192
|
+
SENSITIVE = []
|
185
193
|
include Aws::Structure
|
186
194
|
end
|
187
195
|
|
@@ -211,6 +219,7 @@ module Aws::AutoScaling
|
|
211
219
|
class AttachLoadBalancerTargetGroupsType < Struct.new(
|
212
220
|
:auto_scaling_group_name,
|
213
221
|
:target_group_arns)
|
222
|
+
SENSITIVE = []
|
214
223
|
include Aws::Structure
|
215
224
|
end
|
216
225
|
|
@@ -240,6 +249,7 @@ module Aws::AutoScaling
|
|
240
249
|
class AttachLoadBalancersType < Struct.new(
|
241
250
|
:auto_scaling_group_name,
|
242
251
|
:load_balancer_names)
|
252
|
+
SENSITIVE = []
|
243
253
|
include Aws::Structure
|
244
254
|
end
|
245
255
|
|
@@ -278,8 +288,7 @@ module Aws::AutoScaling
|
|
278
288
|
# @return [Integer]
|
279
289
|
#
|
280
290
|
# @!attribute [rw] default_cooldown
|
281
|
-
# The
|
282
|
-
# before another scaling activity can start.
|
291
|
+
# The duration of the default cooldown period, in seconds.
|
283
292
|
# @return [Integer]
|
284
293
|
#
|
285
294
|
# @!attribute [rw] availability_zones
|
@@ -392,6 +401,7 @@ module Aws::AutoScaling
|
|
392
401
|
:new_instances_protected_from_scale_in,
|
393
402
|
:service_linked_role_arn,
|
394
403
|
:max_instance_lifetime)
|
404
|
+
SENSITIVE = []
|
395
405
|
include Aws::Structure
|
396
406
|
end
|
397
407
|
|
@@ -429,6 +439,7 @@ module Aws::AutoScaling
|
|
429
439
|
:auto_scaling_group_names,
|
430
440
|
:next_token,
|
431
441
|
:max_records)
|
442
|
+
SENSITIVE = []
|
432
443
|
include Aws::Structure
|
433
444
|
end
|
434
445
|
|
@@ -449,6 +460,7 @@ module Aws::AutoScaling
|
|
449
460
|
class AutoScalingGroupsType < Struct.new(
|
450
461
|
:auto_scaling_groups,
|
451
462
|
:next_token)
|
463
|
+
SENSITIVE = []
|
452
464
|
include Aws::Structure
|
453
465
|
end
|
454
466
|
|
@@ -516,6 +528,7 @@ module Aws::AutoScaling
|
|
516
528
|
:launch_template,
|
517
529
|
:protected_from_scale_in,
|
518
530
|
:weighted_capacity)
|
531
|
+
SENSITIVE = []
|
519
532
|
include Aws::Structure
|
520
533
|
end
|
521
534
|
|
@@ -536,6 +549,7 @@ module Aws::AutoScaling
|
|
536
549
|
class AutoScalingInstancesType < Struct.new(
|
537
550
|
:auto_scaling_instances,
|
538
551
|
:next_token)
|
552
|
+
SENSITIVE = []
|
539
553
|
include Aws::Structure
|
540
554
|
end
|
541
555
|
|
@@ -548,6 +562,7 @@ module Aws::AutoScaling
|
|
548
562
|
#
|
549
563
|
class BatchDeleteScheduledActionAnswer < Struct.new(
|
550
564
|
:failed_scheduled_actions)
|
565
|
+
SENSITIVE = []
|
551
566
|
include Aws::Structure
|
552
567
|
end
|
553
568
|
|
@@ -573,6 +588,7 @@ module Aws::AutoScaling
|
|
573
588
|
class BatchDeleteScheduledActionType < Struct.new(
|
574
589
|
:auto_scaling_group_name,
|
575
590
|
:scheduled_action_names)
|
591
|
+
SENSITIVE = []
|
576
592
|
include Aws::Structure
|
577
593
|
end
|
578
594
|
|
@@ -585,6 +601,7 @@ module Aws::AutoScaling
|
|
585
601
|
#
|
586
602
|
class BatchPutScheduledUpdateGroupActionAnswer < Struct.new(
|
587
603
|
:failed_scheduled_update_group_actions)
|
604
|
+
SENSITIVE = []
|
588
605
|
include Aws::Structure
|
589
606
|
end
|
590
607
|
|
@@ -619,6 +636,7 @@ module Aws::AutoScaling
|
|
619
636
|
class BatchPutScheduledUpdateGroupActionType < Struct.new(
|
620
637
|
:auto_scaling_group_name,
|
621
638
|
:scheduled_update_group_actions)
|
639
|
+
SENSITIVE = []
|
622
640
|
include Aws::Structure
|
623
641
|
end
|
624
642
|
|
@@ -682,6 +700,7 @@ module Aws::AutoScaling
|
|
682
700
|
:device_name,
|
683
701
|
:ebs,
|
684
702
|
:no_device)
|
703
|
+
SENSITIVE = []
|
685
704
|
include Aws::Structure
|
686
705
|
end
|
687
706
|
|
@@ -693,6 +712,7 @@ module Aws::AutoScaling
|
|
693
712
|
#
|
694
713
|
class CancelInstanceRefreshAnswer < Struct.new(
|
695
714
|
:instance_refresh_id)
|
715
|
+
SENSITIVE = []
|
696
716
|
include Aws::Structure
|
697
717
|
end
|
698
718
|
|
@@ -711,6 +731,7 @@ module Aws::AutoScaling
|
|
711
731
|
#
|
712
732
|
class CancelInstanceRefreshType < Struct.new(
|
713
733
|
:auto_scaling_group_name)
|
734
|
+
SENSITIVE = []
|
714
735
|
include Aws::Structure
|
715
736
|
end
|
716
737
|
|
@@ -761,6 +782,7 @@ module Aws::AutoScaling
|
|
761
782
|
:lifecycle_action_token,
|
762
783
|
:lifecycle_action_result,
|
763
784
|
:instance_id)
|
785
|
+
SENSITIVE = []
|
764
786
|
include Aws::Structure
|
765
787
|
end
|
766
788
|
|
@@ -928,9 +950,9 @@ module Aws::AutoScaling
|
|
928
950
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon
|
929
951
|
# EC2 Auto Scaling may need to go above `MaxSize` to meet your
|
930
952
|
# capacity requirements. In this event, Amazon EC2 Auto Scaling will
|
931
|
-
# never go above `MaxSize` by more than your
|
932
|
-
# (weights that define how many
|
933
|
-
#
|
953
|
+
# never go above `MaxSize` by more than your largest instance weight
|
954
|
+
# (weights that define how many units each instance contributes to the
|
955
|
+
# desired capacity of the group).
|
934
956
|
#
|
935
957
|
# </note>
|
936
958
|
# @return [Integer]
|
@@ -952,8 +974,10 @@ module Aws::AutoScaling
|
|
952
974
|
# before another scaling activity can start. The default value is
|
953
975
|
# `300`.
|
954
976
|
#
|
955
|
-
#
|
956
|
-
#
|
977
|
+
# This setting applies when using simple scaling policies, but not
|
978
|
+
# when using other scaling policies or scheduled scaling. For more
|
979
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
|
980
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
957
981
|
#
|
958
982
|
#
|
959
983
|
#
|
@@ -1019,8 +1043,7 @@ module Aws::AutoScaling
|
|
1019
1043
|
# For more information, see [Health Check Grace Period][1] in the
|
1020
1044
|
# *Amazon EC2 Auto Scaling User Guide*.
|
1021
1045
|
#
|
1022
|
-
#
|
1023
|
-
# health check.
|
1046
|
+
# Required if you are adding an `ELB` health check.
|
1024
1047
|
#
|
1025
1048
|
#
|
1026
1049
|
#
|
@@ -1158,6 +1181,7 @@ module Aws::AutoScaling
|
|
1158
1181
|
:tags,
|
1159
1182
|
:service_linked_role_arn,
|
1160
1183
|
:max_instance_lifetime)
|
1184
|
+
SENSITIVE = []
|
1161
1185
|
include Aws::Structure
|
1162
1186
|
end
|
1163
1187
|
|
@@ -1199,6 +1223,11 @@ module Aws::AutoScaling
|
|
1199
1223
|
# ebs_optimized: false,
|
1200
1224
|
# associate_public_ip_address: false,
|
1201
1225
|
# placement_tenancy: "XmlStringMaxLen64",
|
1226
|
+
# metadata_options: {
|
1227
|
+
# http_tokens: "optional", # accepts optional, required
|
1228
|
+
# http_put_response_hop_limit: 1,
|
1229
|
+
# http_endpoint: "disabled", # accepts disabled, enabled
|
1230
|
+
# },
|
1202
1231
|
# }
|
1203
1232
|
#
|
1204
1233
|
# @!attribute [rw] launch_configuration_name
|
@@ -1454,6 +1483,16 @@ module Aws::AutoScaling
|
|
1454
1483
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
1455
1484
|
# @return [String]
|
1456
1485
|
#
|
1486
|
+
# @!attribute [rw] metadata_options
|
1487
|
+
# The metadata options for the instances. For more information, see
|
1488
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide
|
1489
|
+
# for Linux Instances*.
|
1490
|
+
#
|
1491
|
+
#
|
1492
|
+
#
|
1493
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
1494
|
+
# @return [Types::InstanceMetadataOptions]
|
1495
|
+
#
|
1457
1496
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType AWS API Documentation
|
1458
1497
|
#
|
1459
1498
|
class CreateLaunchConfigurationType < Struct.new(
|
@@ -1474,7 +1513,9 @@ module Aws::AutoScaling
|
|
1474
1513
|
:iam_instance_profile,
|
1475
1514
|
:ebs_optimized,
|
1476
1515
|
:associate_public_ip_address,
|
1477
|
-
:placement_tenancy
|
1516
|
+
:placement_tenancy,
|
1517
|
+
:metadata_options)
|
1518
|
+
SENSITIVE = []
|
1478
1519
|
include Aws::Structure
|
1479
1520
|
end
|
1480
1521
|
|
@@ -1501,6 +1542,7 @@ module Aws::AutoScaling
|
|
1501
1542
|
#
|
1502
1543
|
class CreateOrUpdateTagsType < Struct.new(
|
1503
1544
|
:tags)
|
1545
|
+
SENSITIVE = []
|
1504
1546
|
include Aws::Structure
|
1505
1547
|
end
|
1506
1548
|
|
@@ -1575,6 +1617,7 @@ module Aws::AutoScaling
|
|
1575
1617
|
:dimensions,
|
1576
1618
|
:statistic,
|
1577
1619
|
:unit)
|
1620
|
+
SENSITIVE = []
|
1578
1621
|
include Aws::Structure
|
1579
1622
|
end
|
1580
1623
|
|
@@ -1602,6 +1645,7 @@ module Aws::AutoScaling
|
|
1602
1645
|
class DeleteAutoScalingGroupType < Struct.new(
|
1603
1646
|
:auto_scaling_group_name,
|
1604
1647
|
:force_delete)
|
1648
|
+
SENSITIVE = []
|
1605
1649
|
include Aws::Structure
|
1606
1650
|
end
|
1607
1651
|
|
@@ -1630,6 +1674,7 @@ module Aws::AutoScaling
|
|
1630
1674
|
class DeleteLifecycleHookType < Struct.new(
|
1631
1675
|
:lifecycle_hook_name,
|
1632
1676
|
:auto_scaling_group_name)
|
1677
|
+
SENSITIVE = []
|
1633
1678
|
include Aws::Structure
|
1634
1679
|
end
|
1635
1680
|
|
@@ -1655,6 +1700,7 @@ module Aws::AutoScaling
|
|
1655
1700
|
class DeleteNotificationConfigurationType < Struct.new(
|
1656
1701
|
:auto_scaling_group_name,
|
1657
1702
|
:topic_arn)
|
1703
|
+
SENSITIVE = []
|
1658
1704
|
include Aws::Structure
|
1659
1705
|
end
|
1660
1706
|
|
@@ -1679,6 +1725,7 @@ module Aws::AutoScaling
|
|
1679
1725
|
class DeletePolicyType < Struct.new(
|
1680
1726
|
:auto_scaling_group_name,
|
1681
1727
|
:policy_name)
|
1728
|
+
SENSITIVE = []
|
1682
1729
|
include Aws::Structure
|
1683
1730
|
end
|
1684
1731
|
|
@@ -1703,6 +1750,7 @@ module Aws::AutoScaling
|
|
1703
1750
|
class DeleteScheduledActionType < Struct.new(
|
1704
1751
|
:auto_scaling_group_name,
|
1705
1752
|
:scheduled_action_name)
|
1753
|
+
SENSITIVE = []
|
1706
1754
|
include Aws::Structure
|
1707
1755
|
end
|
1708
1756
|
|
@@ -1729,6 +1777,7 @@ module Aws::AutoScaling
|
|
1729
1777
|
#
|
1730
1778
|
class DeleteTagsType < Struct.new(
|
1731
1779
|
:tags)
|
1780
|
+
SENSITIVE = []
|
1732
1781
|
include Aws::Structure
|
1733
1782
|
end
|
1734
1783
|
|
@@ -1757,6 +1806,7 @@ module Aws::AutoScaling
|
|
1757
1806
|
:max_number_of_launch_configurations,
|
1758
1807
|
:number_of_auto_scaling_groups,
|
1759
1808
|
:number_of_launch_configurations)
|
1809
|
+
SENSITIVE = []
|
1760
1810
|
include Aws::Structure
|
1761
1811
|
end
|
1762
1812
|
|
@@ -1768,6 +1818,7 @@ module Aws::AutoScaling
|
|
1768
1818
|
#
|
1769
1819
|
class DescribeAdjustmentTypesAnswer < Struct.new(
|
1770
1820
|
:adjustment_types)
|
1821
|
+
SENSITIVE = []
|
1771
1822
|
include Aws::Structure
|
1772
1823
|
end
|
1773
1824
|
|
@@ -1803,6 +1854,7 @@ module Aws::AutoScaling
|
|
1803
1854
|
:instance_ids,
|
1804
1855
|
:max_records,
|
1805
1856
|
:next_token)
|
1857
|
+
SENSITIVE = []
|
1806
1858
|
include Aws::Structure
|
1807
1859
|
end
|
1808
1860
|
|
@@ -1814,18 +1866,12 @@ module Aws::AutoScaling
|
|
1814
1866
|
#
|
1815
1867
|
class DescribeAutoScalingNotificationTypesAnswer < Struct.new(
|
1816
1868
|
:auto_scaling_notification_types)
|
1869
|
+
SENSITIVE = []
|
1817
1870
|
include Aws::Structure
|
1818
1871
|
end
|
1819
1872
|
|
1820
1873
|
# @!attribute [rw] instance_refreshes
|
1821
1874
|
# The instance refreshes for the specified group.
|
1822
|
-
#
|
1823
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1824
|
-
# an Instance Refresh][1].
|
1825
|
-
#
|
1826
|
-
#
|
1827
|
-
#
|
1828
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
|
1829
1875
|
# @return [Array<Types::InstanceRefresh>]
|
1830
1876
|
#
|
1831
1877
|
# @!attribute [rw] next_token
|
@@ -1841,6 +1887,7 @@ module Aws::AutoScaling
|
|
1841
1887
|
class DescribeInstanceRefreshesAnswer < Struct.new(
|
1842
1888
|
:instance_refreshes,
|
1843
1889
|
:next_token)
|
1890
|
+
SENSITIVE = []
|
1844
1891
|
include Aws::Structure
|
1845
1892
|
end
|
1846
1893
|
|
@@ -1879,6 +1926,7 @@ module Aws::AutoScaling
|
|
1879
1926
|
:instance_refresh_ids,
|
1880
1927
|
:next_token,
|
1881
1928
|
:max_records)
|
1929
|
+
SENSITIVE = []
|
1882
1930
|
include Aws::Structure
|
1883
1931
|
end
|
1884
1932
|
|
@@ -1890,6 +1938,7 @@ module Aws::AutoScaling
|
|
1890
1938
|
#
|
1891
1939
|
class DescribeLifecycleHookTypesAnswer < Struct.new(
|
1892
1940
|
:lifecycle_hook_types)
|
1941
|
+
SENSITIVE = []
|
1893
1942
|
include Aws::Structure
|
1894
1943
|
end
|
1895
1944
|
|
@@ -1901,6 +1950,7 @@ module Aws::AutoScaling
|
|
1901
1950
|
#
|
1902
1951
|
class DescribeLifecycleHooksAnswer < Struct.new(
|
1903
1952
|
:lifecycle_hooks)
|
1953
|
+
SENSITIVE = []
|
1904
1954
|
include Aws::Structure
|
1905
1955
|
end
|
1906
1956
|
|
@@ -1926,6 +1976,7 @@ module Aws::AutoScaling
|
|
1926
1976
|
class DescribeLifecycleHooksType < Struct.new(
|
1927
1977
|
:auto_scaling_group_name,
|
1928
1978
|
:lifecycle_hook_names)
|
1979
|
+
SENSITIVE = []
|
1929
1980
|
include Aws::Structure
|
1930
1981
|
end
|
1931
1982
|
|
@@ -1958,6 +2009,7 @@ module Aws::AutoScaling
|
|
1958
2009
|
:auto_scaling_group_name,
|
1959
2010
|
:next_token,
|
1960
2011
|
:max_records)
|
2012
|
+
SENSITIVE = []
|
1961
2013
|
include Aws::Structure
|
1962
2014
|
end
|
1963
2015
|
|
@@ -1978,6 +2030,7 @@ module Aws::AutoScaling
|
|
1978
2030
|
class DescribeLoadBalancerTargetGroupsResponse < Struct.new(
|
1979
2031
|
:load_balancer_target_groups,
|
1980
2032
|
:next_token)
|
2033
|
+
SENSITIVE = []
|
1981
2034
|
include Aws::Structure
|
1982
2035
|
end
|
1983
2036
|
|
@@ -2010,6 +2063,7 @@ module Aws::AutoScaling
|
|
2010
2063
|
:auto_scaling_group_name,
|
2011
2064
|
:next_token,
|
2012
2065
|
:max_records)
|
2066
|
+
SENSITIVE = []
|
2013
2067
|
include Aws::Structure
|
2014
2068
|
end
|
2015
2069
|
|
@@ -2030,6 +2084,7 @@ module Aws::AutoScaling
|
|
2030
2084
|
class DescribeLoadBalancersResponse < Struct.new(
|
2031
2085
|
:load_balancers,
|
2032
2086
|
:next_token)
|
2087
|
+
SENSITIVE = []
|
2033
2088
|
include Aws::Structure
|
2034
2089
|
end
|
2035
2090
|
|
@@ -2046,6 +2101,7 @@ module Aws::AutoScaling
|
|
2046
2101
|
class DescribeMetricCollectionTypesAnswer < Struct.new(
|
2047
2102
|
:metrics,
|
2048
2103
|
:granularities)
|
2104
|
+
SENSITIVE = []
|
2049
2105
|
include Aws::Structure
|
2050
2106
|
end
|
2051
2107
|
|
@@ -2066,6 +2122,7 @@ module Aws::AutoScaling
|
|
2066
2122
|
class DescribeNotificationConfigurationsAnswer < Struct.new(
|
2067
2123
|
:notification_configurations,
|
2068
2124
|
:next_token)
|
2125
|
+
SENSITIVE = []
|
2069
2126
|
include Aws::Structure
|
2070
2127
|
end
|
2071
2128
|
|
@@ -2098,6 +2155,7 @@ module Aws::AutoScaling
|
|
2098
2155
|
:auto_scaling_group_names,
|
2099
2156
|
:next_token,
|
2100
2157
|
:max_records)
|
2158
|
+
SENSITIVE = []
|
2101
2159
|
include Aws::Structure
|
2102
2160
|
end
|
2103
2161
|
|
@@ -2146,6 +2204,7 @@ module Aws::AutoScaling
|
|
2146
2204
|
:policy_types,
|
2147
2205
|
:next_token,
|
2148
2206
|
:max_records)
|
2207
|
+
SENSITIVE = []
|
2149
2208
|
include Aws::Structure
|
2150
2209
|
end
|
2151
2210
|
|
@@ -2188,6 +2247,7 @@ module Aws::AutoScaling
|
|
2188
2247
|
:auto_scaling_group_name,
|
2189
2248
|
:max_records,
|
2190
2249
|
:next_token)
|
2250
|
+
SENSITIVE = []
|
2191
2251
|
include Aws::Structure
|
2192
2252
|
end
|
2193
2253
|
|
@@ -2243,6 +2303,7 @@ module Aws::AutoScaling
|
|
2243
2303
|
:end_time,
|
2244
2304
|
:next_token,
|
2245
2305
|
:max_records)
|
2306
|
+
SENSITIVE = []
|
2246
2307
|
include Aws::Structure
|
2247
2308
|
end
|
2248
2309
|
|
@@ -2282,6 +2343,7 @@ module Aws::AutoScaling
|
|
2282
2343
|
:filters,
|
2283
2344
|
:next_token,
|
2284
2345
|
:max_records)
|
2346
|
+
SENSITIVE = []
|
2285
2347
|
include Aws::Structure
|
2286
2348
|
end
|
2287
2349
|
|
@@ -2296,6 +2358,7 @@ module Aws::AutoScaling
|
|
2296
2358
|
#
|
2297
2359
|
class DescribeTerminationPolicyTypesAnswer < Struct.new(
|
2298
2360
|
:termination_policy_types)
|
2361
|
+
SENSITIVE = []
|
2299
2362
|
include Aws::Structure
|
2300
2363
|
end
|
2301
2364
|
|
@@ -2308,6 +2371,7 @@ module Aws::AutoScaling
|
|
2308
2371
|
#
|
2309
2372
|
class DetachInstancesAnswer < Struct.new(
|
2310
2373
|
:activities)
|
2374
|
+
SENSITIVE = []
|
2311
2375
|
include Aws::Structure
|
2312
2376
|
end
|
2313
2377
|
|
@@ -2339,6 +2403,7 @@ module Aws::AutoScaling
|
|
2339
2403
|
:instance_ids,
|
2340
2404
|
:auto_scaling_group_name,
|
2341
2405
|
:should_decrement_desired_capacity)
|
2406
|
+
SENSITIVE = []
|
2342
2407
|
include Aws::Structure
|
2343
2408
|
end
|
2344
2409
|
|
@@ -2368,6 +2433,7 @@ module Aws::AutoScaling
|
|
2368
2433
|
class DetachLoadBalancerTargetGroupsType < Struct.new(
|
2369
2434
|
:auto_scaling_group_name,
|
2370
2435
|
:target_group_arns)
|
2436
|
+
SENSITIVE = []
|
2371
2437
|
include Aws::Structure
|
2372
2438
|
end
|
2373
2439
|
|
@@ -2397,6 +2463,7 @@ module Aws::AutoScaling
|
|
2397
2463
|
class DetachLoadBalancersType < Struct.new(
|
2398
2464
|
:auto_scaling_group_name,
|
2399
2465
|
:load_balancer_names)
|
2466
|
+
SENSITIVE = []
|
2400
2467
|
include Aws::Structure
|
2401
2468
|
end
|
2402
2469
|
|
@@ -2449,6 +2516,7 @@ module Aws::AutoScaling
|
|
2449
2516
|
class DisableMetricsCollectionQuery < Struct.new(
|
2450
2517
|
:auto_scaling_group_name,
|
2451
2518
|
:metrics)
|
2519
|
+
SENSITIVE = []
|
2452
2520
|
include Aws::Structure
|
2453
2521
|
end
|
2454
2522
|
|
@@ -2470,9 +2538,7 @@ module Aws::AutoScaling
|
|
2470
2538
|
# @!attribute [rw] snapshot_id
|
2471
2539
|
# The snapshot ID of the volume to use.
|
2472
2540
|
#
|
2473
|
-
#
|
2474
|
-
# size. If you specify both `SnapshotId` and `VolumeSize`,
|
2475
|
-
# `VolumeSize` must be equal or greater than the size of the snapshot.
|
2541
|
+
# You must specify either a `VolumeSize` or a `SnapshotId`.
|
2476
2542
|
# @return [String]
|
2477
2543
|
#
|
2478
2544
|
# @!attribute [rw] volume_size
|
@@ -2486,9 +2552,9 @@ module Aws::AutoScaling
|
|
2486
2552
|
# Default: If you create a volume from a snapshot and you don't
|
2487
2553
|
# specify a volume size, the default is the snapshot size.
|
2488
2554
|
#
|
2489
|
-
#
|
2490
|
-
#
|
2491
|
-
#
|
2555
|
+
# You must specify either a `VolumeSize` or a `SnapshotId`. If you
|
2556
|
+
# specify both `SnapshotId` and `VolumeSize`, the volume size must be
|
2557
|
+
# equal or greater than the size of the snapshot.
|
2492
2558
|
# @return [Integer]
|
2493
2559
|
#
|
2494
2560
|
# @!attribute [rw] volume_type
|
@@ -2516,8 +2582,8 @@ module Aws::AutoScaling
|
|
2516
2582
|
# For more information, see [Amazon EBS Volume Types][1] in the
|
2517
2583
|
# *Amazon EC2 User Guide for Linux Instances*.
|
2518
2584
|
#
|
2519
|
-
#
|
2520
|
-
# `
|
2585
|
+
# Required when the volume type is `io1`. (Not used with `standard`,
|
2586
|
+
# `gp2`, `st1`, or `sc1` volumes.)
|
2521
2587
|
#
|
2522
2588
|
#
|
2523
2589
|
#
|
@@ -2570,6 +2636,7 @@ module Aws::AutoScaling
|
|
2570
2636
|
:delete_on_termination,
|
2571
2637
|
:iops,
|
2572
2638
|
:encrypted)
|
2639
|
+
SENSITIVE = []
|
2573
2640
|
include Aws::Structure
|
2574
2641
|
end
|
2575
2642
|
|
@@ -2633,6 +2700,7 @@ module Aws::AutoScaling
|
|
2633
2700
|
:auto_scaling_group_name,
|
2634
2701
|
:metrics,
|
2635
2702
|
:granularity)
|
2703
|
+
SENSITIVE = []
|
2636
2704
|
include Aws::Structure
|
2637
2705
|
end
|
2638
2706
|
|
@@ -2677,6 +2745,7 @@ module Aws::AutoScaling
|
|
2677
2745
|
class EnabledMetric < Struct.new(
|
2678
2746
|
:metric,
|
2679
2747
|
:granularity)
|
2748
|
+
SENSITIVE = []
|
2680
2749
|
include Aws::Structure
|
2681
2750
|
end
|
2682
2751
|
|
@@ -2688,6 +2757,7 @@ module Aws::AutoScaling
|
|
2688
2757
|
#
|
2689
2758
|
class EnterStandbyAnswer < Struct.new(
|
2690
2759
|
:activities)
|
2760
|
+
SENSITIVE = []
|
2691
2761
|
include Aws::Structure
|
2692
2762
|
end
|
2693
2763
|
|
@@ -2719,6 +2789,7 @@ module Aws::AutoScaling
|
|
2719
2789
|
:instance_ids,
|
2720
2790
|
:auto_scaling_group_name,
|
2721
2791
|
:should_decrement_desired_capacity)
|
2792
|
+
SENSITIVE = []
|
2722
2793
|
include Aws::Structure
|
2723
2794
|
end
|
2724
2795
|
|
@@ -2745,11 +2816,9 @@ module Aws::AutoScaling
|
|
2745
2816
|
# Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
|
2746
2817
|
# period to complete before executing the policy.
|
2747
2818
|
#
|
2748
|
-
#
|
2749
|
-
#
|
2750
|
-
#
|
2751
|
-
# For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
|
2752
|
-
# Auto Scaling User Guide*.
|
2819
|
+
# Valid only if the policy type is `SimpleScaling`. For more
|
2820
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
|
2821
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
2753
2822
|
#
|
2754
2823
|
#
|
2755
2824
|
#
|
@@ -2766,15 +2835,15 @@ module Aws::AutoScaling
|
|
2766
2835
|
# If you specify a metric value that doesn't correspond to a step
|
2767
2836
|
# adjustment for the policy, the call returns an error.
|
2768
2837
|
#
|
2769
|
-
#
|
2770
|
-
#
|
2838
|
+
# Required if the policy type is `StepScaling` and not supported
|
2839
|
+
# otherwise.
|
2771
2840
|
# @return [Float]
|
2772
2841
|
#
|
2773
2842
|
# @!attribute [rw] breach_threshold
|
2774
2843
|
# The breach threshold for the alarm.
|
2775
2844
|
#
|
2776
|
-
#
|
2777
|
-
#
|
2845
|
+
# Required if the policy type is `StepScaling` and not supported
|
2846
|
+
# otherwise.
|
2778
2847
|
# @return [Float]
|
2779
2848
|
#
|
2780
2849
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicyType AWS API Documentation
|
@@ -2785,6 +2854,7 @@ module Aws::AutoScaling
|
|
2785
2854
|
:honor_cooldown,
|
2786
2855
|
:metric_value,
|
2787
2856
|
:breach_threshold)
|
2857
|
+
SENSITIVE = []
|
2788
2858
|
include Aws::Structure
|
2789
2859
|
end
|
2790
2860
|
|
@@ -2796,6 +2866,7 @@ module Aws::AutoScaling
|
|
2796
2866
|
#
|
2797
2867
|
class ExitStandbyAnswer < Struct.new(
|
2798
2868
|
:activities)
|
2869
|
+
SENSITIVE = []
|
2799
2870
|
include Aws::Structure
|
2800
2871
|
end
|
2801
2872
|
|
@@ -2820,6 +2891,7 @@ module Aws::AutoScaling
|
|
2820
2891
|
class ExitStandbyQuery < Struct.new(
|
2821
2892
|
:instance_ids,
|
2822
2893
|
:auto_scaling_group_name)
|
2894
|
+
SENSITIVE = []
|
2823
2895
|
include Aws::Structure
|
2824
2896
|
end
|
2825
2897
|
|
@@ -2844,6 +2916,7 @@ module Aws::AutoScaling
|
|
2844
2916
|
:scheduled_action_name,
|
2845
2917
|
:error_code,
|
2846
2918
|
:error_message)
|
2919
|
+
SENSITIVE = []
|
2847
2920
|
include Aws::Structure
|
2848
2921
|
end
|
2849
2922
|
|
@@ -2879,6 +2952,7 @@ module Aws::AutoScaling
|
|
2879
2952
|
class Filter < Struct.new(
|
2880
2953
|
:name,
|
2881
2954
|
:values)
|
2955
|
+
SENSITIVE = []
|
2882
2956
|
include Aws::Structure
|
2883
2957
|
end
|
2884
2958
|
|
@@ -2940,6 +3014,73 @@ module Aws::AutoScaling
|
|
2940
3014
|
:launch_template,
|
2941
3015
|
:protected_from_scale_in,
|
2942
3016
|
:weighted_capacity)
|
3017
|
+
SENSITIVE = []
|
3018
|
+
include Aws::Structure
|
3019
|
+
end
|
3020
|
+
|
3021
|
+
# The metadata options for the instances. For more information, see
|
3022
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
|
3023
|
+
# Linux Instances*.
|
3024
|
+
#
|
3025
|
+
#
|
3026
|
+
#
|
3027
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
3028
|
+
#
|
3029
|
+
# @note When making an API call, you may pass InstanceMetadataOptions
|
3030
|
+
# data as a hash:
|
3031
|
+
#
|
3032
|
+
# {
|
3033
|
+
# http_tokens: "optional", # accepts optional, required
|
3034
|
+
# http_put_response_hop_limit: 1,
|
3035
|
+
# http_endpoint: "disabled", # accepts disabled, enabled
|
3036
|
+
# }
|
3037
|
+
#
|
3038
|
+
# @!attribute [rw] http_tokens
|
3039
|
+
# The state of token usage for your instance metadata requests. If the
|
3040
|
+
# parameter is not specified in the request, the default state is
|
3041
|
+
# `optional`.
|
3042
|
+
#
|
3043
|
+
# If the state is `optional`, you can choose to retrieve instance
|
3044
|
+
# metadata with or without a signed token header on your request. If
|
3045
|
+
# you retrieve the IAM role credentials without a token, the version
|
3046
|
+
# 1.0 role credentials are returned. If you retrieve the IAM role
|
3047
|
+
# credentials using a valid signed token, the version 2.0 role
|
3048
|
+
# credentials are returned.
|
3049
|
+
#
|
3050
|
+
# If the state is `required`, you must send a signed token header with
|
3051
|
+
# any instance metadata retrieval requests. In this state, retrieving
|
3052
|
+
# the IAM role credentials always returns the version 2.0 credentials;
|
3053
|
+
# the version 1.0 credentials are not available.
|
3054
|
+
# @return [String]
|
3055
|
+
#
|
3056
|
+
# @!attribute [rw] http_put_response_hop_limit
|
3057
|
+
# The desired HTTP PUT response hop limit for instance metadata
|
3058
|
+
# requests. The larger the number, the further instance metadata
|
3059
|
+
# requests can travel.
|
3060
|
+
#
|
3061
|
+
# Default: 1
|
3062
|
+
#
|
3063
|
+
# Possible values: Integers from 1 to 64
|
3064
|
+
# @return [Integer]
|
3065
|
+
#
|
3066
|
+
# @!attribute [rw] http_endpoint
|
3067
|
+
# This parameter enables or disables the HTTP metadata endpoint on
|
3068
|
+
# your instances. If the parameter is not specified, the default state
|
3069
|
+
# is `enabled`.
|
3070
|
+
#
|
3071
|
+
# <note markdown="1"> If you specify a value of `disabled`, you will not be able to access
|
3072
|
+
# your instance metadata.
|
3073
|
+
#
|
3074
|
+
# </note>
|
3075
|
+
# @return [String]
|
3076
|
+
#
|
3077
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceMetadataOptions AWS API Documentation
|
3078
|
+
#
|
3079
|
+
class InstanceMetadataOptions < Struct.new(
|
3080
|
+
:http_tokens,
|
3081
|
+
:http_put_response_hop_limit,
|
3082
|
+
:http_endpoint)
|
3083
|
+
SENSITIVE = []
|
2943
3084
|
include Aws::Structure
|
2944
3085
|
end
|
2945
3086
|
|
@@ -2962,6 +3103,7 @@ module Aws::AutoScaling
|
|
2962
3103
|
#
|
2963
3104
|
class InstanceMonitoring < Struct.new(
|
2964
3105
|
:enabled)
|
3106
|
+
SENSITIVE = []
|
2965
3107
|
include Aws::Structure
|
2966
3108
|
end
|
2967
3109
|
|
@@ -3033,6 +3175,7 @@ module Aws::AutoScaling
|
|
3033
3175
|
:end_time,
|
3034
3176
|
:percentage_complete,
|
3035
3177
|
:instances_to_update)
|
3178
|
+
SENSITIVE = []
|
3036
3179
|
include Aws::Structure
|
3037
3180
|
end
|
3038
3181
|
|
@@ -3046,6 +3189,7 @@ module Aws::AutoScaling
|
|
3046
3189
|
#
|
3047
3190
|
class InstanceRefreshInProgressFault < Struct.new(
|
3048
3191
|
:message)
|
3192
|
+
SENSITIVE = []
|
3049
3193
|
include Aws::Structure
|
3050
3194
|
end
|
3051
3195
|
|
@@ -3177,6 +3321,7 @@ module Aws::AutoScaling
|
|
3177
3321
|
:spot_allocation_strategy,
|
3178
3322
|
:spot_instance_pools,
|
3179
3323
|
:spot_max_price)
|
3324
|
+
SENSITIVE = []
|
3180
3325
|
include Aws::Structure
|
3181
3326
|
end
|
3182
3327
|
|
@@ -3189,6 +3334,7 @@ module Aws::AutoScaling
|
|
3189
3334
|
#
|
3190
3335
|
class InvalidNextToken < Struct.new(
|
3191
3336
|
:message)
|
3337
|
+
SENSITIVE = []
|
3192
3338
|
include Aws::Structure
|
3193
3339
|
end
|
3194
3340
|
|
@@ -3389,6 +3535,16 @@ module Aws::AutoScaling
|
|
3389
3535
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
3390
3536
|
# @return [String]
|
3391
3537
|
#
|
3538
|
+
# @!attribute [rw] metadata_options
|
3539
|
+
# The metadata options for the instances. For more information, see
|
3540
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide
|
3541
|
+
# for Linux Instances*.
|
3542
|
+
#
|
3543
|
+
#
|
3544
|
+
#
|
3545
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
3546
|
+
# @return [Types::InstanceMetadataOptions]
|
3547
|
+
#
|
3392
3548
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration AWS API Documentation
|
3393
3549
|
#
|
3394
3550
|
class LaunchConfiguration < Struct.new(
|
@@ -3410,7 +3566,9 @@ module Aws::AutoScaling
|
|
3410
3566
|
:created_time,
|
3411
3567
|
:ebs_optimized,
|
3412
3568
|
:associate_public_ip_address,
|
3413
|
-
:placement_tenancy
|
3569
|
+
:placement_tenancy,
|
3570
|
+
:metadata_options)
|
3571
|
+
SENSITIVE = []
|
3414
3572
|
include Aws::Structure
|
3415
3573
|
end
|
3416
3574
|
|
@@ -3429,6 +3587,7 @@ module Aws::AutoScaling
|
|
3429
3587
|
#
|
3430
3588
|
class LaunchConfigurationNameType < Struct.new(
|
3431
3589
|
:launch_configuration_name)
|
3590
|
+
SENSITIVE = []
|
3432
3591
|
include Aws::Structure
|
3433
3592
|
end
|
3434
3593
|
|
@@ -3462,6 +3621,7 @@ module Aws::AutoScaling
|
|
3462
3621
|
:launch_configuration_names,
|
3463
3622
|
:next_token,
|
3464
3623
|
:max_records)
|
3624
|
+
SENSITIVE = []
|
3465
3625
|
include Aws::Structure
|
3466
3626
|
end
|
3467
3627
|
|
@@ -3482,6 +3642,7 @@ module Aws::AutoScaling
|
|
3482
3642
|
class LaunchConfigurationsType < Struct.new(
|
3483
3643
|
:launch_configurations,
|
3484
3644
|
:next_token)
|
3645
|
+
SENSITIVE = []
|
3485
3646
|
include Aws::Structure
|
3486
3647
|
end
|
3487
3648
|
|
@@ -3533,6 +3694,7 @@ module Aws::AutoScaling
|
|
3533
3694
|
class LaunchTemplate < Struct.new(
|
3534
3695
|
:launch_template_specification,
|
3535
3696
|
:overrides)
|
3697
|
+
SENSITIVE = []
|
3536
3698
|
include Aws::Structure
|
3537
3699
|
end
|
3538
3700
|
|
@@ -3585,6 +3747,7 @@ module Aws::AutoScaling
|
|
3585
3747
|
class LaunchTemplateOverrides < Struct.new(
|
3586
3748
|
:instance_type,
|
3587
3749
|
:weighted_capacity)
|
3750
|
+
SENSITIVE = []
|
3588
3751
|
include Aws::Structure
|
3589
3752
|
end
|
3590
3753
|
|
@@ -3662,6 +3825,7 @@ module Aws::AutoScaling
|
|
3662
3825
|
:launch_template_id,
|
3663
3826
|
:launch_template_name,
|
3664
3827
|
:version)
|
3828
|
+
SENSITIVE = []
|
3665
3829
|
include Aws::Structure
|
3666
3830
|
end
|
3667
3831
|
|
@@ -3735,6 +3899,7 @@ module Aws::AutoScaling
|
|
3735
3899
|
:heartbeat_timeout,
|
3736
3900
|
:global_timeout,
|
3737
3901
|
:default_result)
|
3902
|
+
SENSITIVE = []
|
3738
3903
|
include Aws::Structure
|
3739
3904
|
end
|
3740
3905
|
|
@@ -3844,6 +4009,7 @@ module Aws::AutoScaling
|
|
3844
4009
|
:default_result,
|
3845
4010
|
:notification_target_arn,
|
3846
4011
|
:role_arn)
|
4012
|
+
SENSITIVE = []
|
3847
4013
|
include Aws::Structure
|
3848
4014
|
end
|
3849
4015
|
|
@@ -3863,6 +4029,7 @@ module Aws::AutoScaling
|
|
3863
4029
|
#
|
3864
4030
|
class LimitExceededFault < Struct.new(
|
3865
4031
|
:message)
|
4032
|
+
SENSITIVE = []
|
3866
4033
|
include Aws::Structure
|
3867
4034
|
end
|
3868
4035
|
|
@@ -3909,6 +4076,7 @@ module Aws::AutoScaling
|
|
3909
4076
|
class LoadBalancerState < Struct.new(
|
3910
4077
|
:load_balancer_name,
|
3911
4078
|
:state)
|
4079
|
+
SENSITIVE = []
|
3912
4080
|
include Aws::Structure
|
3913
4081
|
end
|
3914
4082
|
|
@@ -3952,6 +4120,7 @@ module Aws::AutoScaling
|
|
3952
4120
|
class LoadBalancerTargetGroupState < Struct.new(
|
3953
4121
|
:load_balancer_target_group_arn,
|
3954
4122
|
:state)
|
4123
|
+
SENSITIVE = []
|
3955
4124
|
include Aws::Structure
|
3956
4125
|
end
|
3957
4126
|
|
@@ -3975,12 +4144,23 @@ module Aws::AutoScaling
|
|
3975
4144
|
# * `GroupTerminatingInstances`
|
3976
4145
|
#
|
3977
4146
|
# * `GroupTotalInstances`
|
4147
|
+
#
|
4148
|
+
# * `GroupInServiceCapacity`
|
4149
|
+
#
|
4150
|
+
# * `GroupPendingCapacity`
|
4151
|
+
#
|
4152
|
+
# * `GroupStandbyCapacity`
|
4153
|
+
#
|
4154
|
+
# * `GroupTerminatingCapacity`
|
4155
|
+
#
|
4156
|
+
# * `GroupTotalCapacity`
|
3978
4157
|
# @return [String]
|
3979
4158
|
#
|
3980
4159
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricCollectionType AWS API Documentation
|
3981
4160
|
#
|
3982
4161
|
class MetricCollectionType < Struct.new(
|
3983
4162
|
:metric)
|
4163
|
+
SENSITIVE = []
|
3984
4164
|
include Aws::Structure
|
3985
4165
|
end
|
3986
4166
|
|
@@ -4007,6 +4187,7 @@ module Aws::AutoScaling
|
|
4007
4187
|
class MetricDimension < Struct.new(
|
4008
4188
|
:name,
|
4009
4189
|
:value)
|
4190
|
+
SENSITIVE = []
|
4010
4191
|
include Aws::Structure
|
4011
4192
|
end
|
4012
4193
|
|
@@ -4020,6 +4201,7 @@ module Aws::AutoScaling
|
|
4020
4201
|
#
|
4021
4202
|
class MetricGranularityType < Struct.new(
|
4022
4203
|
:granularity)
|
4204
|
+
SENSITIVE = []
|
4023
4205
|
include Aws::Structure
|
4024
4206
|
end
|
4025
4207
|
|
@@ -4033,7 +4215,7 @@ module Aws::AutoScaling
|
|
4033
4215
|
# You can create a mixed instances policy for a new Auto Scaling group,
|
4034
4216
|
# or you can create it for an existing group by updating the group to
|
4035
4217
|
# specify `MixedInstancesPolicy` as the top-level parameter instead of a
|
4036
|
-
# launch configuration or template. For more information, see
|
4218
|
+
# launch configuration or launch template. For more information, see
|
4037
4219
|
# CreateAutoScalingGroup and UpdateAutoScalingGroup.
|
4038
4220
|
#
|
4039
4221
|
#
|
@@ -4070,8 +4252,7 @@ module Aws::AutoScaling
|
|
4070
4252
|
# @!attribute [rw] launch_template
|
4071
4253
|
# The launch template and instance types (overrides).
|
4072
4254
|
#
|
4073
|
-
#
|
4074
|
-
# policy.
|
4255
|
+
# Required when creating a mixed instances policy.
|
4075
4256
|
# @return [Types::LaunchTemplate]
|
4076
4257
|
#
|
4077
4258
|
# @!attribute [rw] instances_distribution
|
@@ -4086,6 +4267,7 @@ module Aws::AutoScaling
|
|
4086
4267
|
class MixedInstancesPolicy < Struct.new(
|
4087
4268
|
:launch_template,
|
4088
4269
|
:instances_distribution)
|
4270
|
+
SENSITIVE = []
|
4089
4271
|
include Aws::Structure
|
4090
4272
|
end
|
4091
4273
|
|
@@ -4120,6 +4302,7 @@ module Aws::AutoScaling
|
|
4120
4302
|
:auto_scaling_group_name,
|
4121
4303
|
:topic_arn,
|
4122
4304
|
:notification_type)
|
4305
|
+
SENSITIVE = []
|
4123
4306
|
include Aws::Structure
|
4124
4307
|
end
|
4125
4308
|
|
@@ -4140,6 +4323,7 @@ module Aws::AutoScaling
|
|
4140
4323
|
class PoliciesType < Struct.new(
|
4141
4324
|
:scaling_policies,
|
4142
4325
|
:next_token)
|
4326
|
+
SENSITIVE = []
|
4143
4327
|
include Aws::Structure
|
4144
4328
|
end
|
4145
4329
|
|
@@ -4159,6 +4343,7 @@ module Aws::AutoScaling
|
|
4159
4343
|
class PolicyARNType < Struct.new(
|
4160
4344
|
:policy_arn,
|
4161
4345
|
:alarms)
|
4346
|
+
SENSITIVE = []
|
4162
4347
|
include Aws::Structure
|
4163
4348
|
end
|
4164
4349
|
|
@@ -4222,6 +4407,7 @@ module Aws::AutoScaling
|
|
4222
4407
|
class PredefinedMetricSpecification < Struct.new(
|
4223
4408
|
:predefined_metric_type,
|
4224
4409
|
:resource_label)
|
4410
|
+
SENSITIVE = []
|
4225
4411
|
include Aws::Structure
|
4226
4412
|
end
|
4227
4413
|
|
@@ -4260,6 +4446,7 @@ module Aws::AutoScaling
|
|
4260
4446
|
#
|
4261
4447
|
class ProcessType < Struct.new(
|
4262
4448
|
:process_name)
|
4449
|
+
SENSITIVE = []
|
4263
4450
|
include Aws::Structure
|
4264
4451
|
end
|
4265
4452
|
|
@@ -4271,6 +4458,7 @@ module Aws::AutoScaling
|
|
4271
4458
|
#
|
4272
4459
|
class ProcessesType < Struct.new(
|
4273
4460
|
:processes)
|
4461
|
+
SENSITIVE = []
|
4274
4462
|
include Aws::Structure
|
4275
4463
|
end
|
4276
4464
|
|
@@ -4308,8 +4496,8 @@ module Aws::AutoScaling
|
|
4308
4496
|
#
|
4309
4497
|
# * autoscaling:EC2\_INSTANCE\_TERMINATING
|
4310
4498
|
#
|
4311
|
-
#
|
4312
|
-
#
|
4499
|
+
# Required for new lifecycle hooks, but optional when updating
|
4500
|
+
# existing hooks.
|
4313
4501
|
# @return [String]
|
4314
4502
|
#
|
4315
4503
|
# @!attribute [rw] role_arn
|
@@ -4317,8 +4505,8 @@ module Aws::AutoScaling
|
|
4317
4505
|
# publish to the specified notification target, for example, an Amazon
|
4318
4506
|
# SNS topic or an Amazon SQS queue.
|
4319
4507
|
#
|
4320
|
-
#
|
4321
|
-
#
|
4508
|
+
# Required for new lifecycle hooks, but optional when updating
|
4509
|
+
# existing hooks.
|
4322
4510
|
# @return [String]
|
4323
4511
|
#
|
4324
4512
|
# @!attribute [rw] notification_target_arn
|
@@ -4373,6 +4561,7 @@ module Aws::AutoScaling
|
|
4373
4561
|
:notification_metadata,
|
4374
4562
|
:heartbeat_timeout,
|
4375
4563
|
:default_result)
|
4564
|
+
SENSITIVE = []
|
4376
4565
|
include Aws::Structure
|
4377
4566
|
end
|
4378
4567
|
|
@@ -4406,6 +4595,7 @@ module Aws::AutoScaling
|
|
4406
4595
|
:auto_scaling_group_name,
|
4407
4596
|
:topic_arn,
|
4408
4597
|
:notification_types)
|
4598
|
+
SENSITIVE = []
|
4409
4599
|
include Aws::Structure
|
4410
4600
|
end
|
4411
4601
|
|
@@ -4462,19 +4652,23 @@ module Aws::AutoScaling
|
|
4462
4652
|
# @return [String]
|
4463
4653
|
#
|
4464
4654
|
# @!attribute [rw] policy_type
|
4465
|
-
#
|
4466
|
-
#
|
4467
|
-
#
|
4655
|
+
# One of the following policy types:
|
4656
|
+
#
|
4657
|
+
# * `TargetTrackingScaling`
|
4658
|
+
#
|
4659
|
+
# * `StepScaling`
|
4660
|
+
#
|
4661
|
+
# * `SimpleScaling` (default)
|
4468
4662
|
# @return [String]
|
4469
4663
|
#
|
4470
4664
|
# @!attribute [rw] adjustment_type
|
4471
|
-
# Specifies
|
4472
|
-
# number or a percentage
|
4665
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
4666
|
+
# absolute number or a percentage). The valid values are
|
4473
4667
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4474
4668
|
#
|
4475
|
-
#
|
4476
|
-
#
|
4477
|
-
#
|
4669
|
+
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
4670
|
+
# more information, see [Scaling Adjustment Types][1] in the *Amazon
|
4671
|
+
# EC2 Auto Scaling User Guide*.
|
4478
4672
|
#
|
4479
4673
|
#
|
4480
4674
|
#
|
@@ -4487,18 +4681,23 @@ module Aws::AutoScaling
|
|
4487
4681
|
# @return [Integer]
|
4488
4682
|
#
|
4489
4683
|
# @!attribute [rw] min_adjustment_magnitude
|
4490
|
-
# The minimum value to scale by when
|
4491
|
-
# example, suppose that you create a
|
4492
|
-
# an Auto Scaling group by 25 percent
|
4493
|
-
# `MinAdjustmentMagnitude` of 2. If the group has 4
|
4494
|
-
# scaling policy is performed, 25 percent of 4 is 1.
|
4495
|
-
# you specified a `MinAdjustmentMagnitude` of 2,
|
4496
|
-
# Scaling scales out the group by 2 instances.
|
4497
|
-
#
|
4498
|
-
# Valid only if the policy type is `StepScaling` or `SimpleScaling
|
4499
|
-
#
|
4500
|
-
#
|
4501
|
-
#
|
4684
|
+
# The minimum value to scale by when the adjustment type is
|
4685
|
+
# `PercentChangeInCapacity`. For example, suppose that you create a
|
4686
|
+
# step scaling policy to scale out an Auto Scaling group by 25 percent
|
4687
|
+
# and you specify a `MinAdjustmentMagnitude` of 2. If the group has 4
|
4688
|
+
# instances and the scaling policy is performed, 25 percent of 4 is 1.
|
4689
|
+
# However, because you specified a `MinAdjustmentMagnitude` of 2,
|
4690
|
+
# Amazon EC2 Auto Scaling scales out the group by 2 instances.
|
4691
|
+
#
|
4692
|
+
# Valid only if the policy type is `StepScaling` or `SimpleScaling`.
|
4693
|
+
# For more information, see [Scaling Adjustment Types][1] in the
|
4694
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
4695
|
+
#
|
4696
|
+
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
4697
|
+
# `MinAdjustmentMagnitude` to a value that is at least as large as
|
4698
|
+
# your largest instance weight.
|
4699
|
+
#
|
4700
|
+
# </note>
|
4502
4701
|
#
|
4503
4702
|
#
|
4504
4703
|
#
|
@@ -4506,26 +4705,23 @@ module Aws::AutoScaling
|
|
4506
4705
|
# @return [Integer]
|
4507
4706
|
#
|
4508
4707
|
# @!attribute [rw] scaling_adjustment
|
4509
|
-
# The amount by which
|
4510
|
-
#
|
4511
|
-
#
|
4512
|
-
#
|
4513
|
-
#
|
4514
|
-
#
|
4515
|
-
#
|
4516
|
-
# Conditional: If you specify `SimpleScaling` for the policy type, you
|
4517
|
-
# must specify this parameter. (Not used with any other policy type.)
|
4708
|
+
# The amount by which to scale, based on the specified adjustment
|
4709
|
+
# type. A positive value adds to the current capacity while a negative
|
4710
|
+
# number removes from the current capacity. For exact capacity, you
|
4711
|
+
# must specify a positive value.
|
4712
|
+
#
|
4713
|
+
# Required if the policy type is `SimpleScaling`. (Not used with any
|
4714
|
+
# other policy type.)
|
4518
4715
|
# @return [Integer]
|
4519
4716
|
#
|
4520
4717
|
# @!attribute [rw] cooldown
|
4521
|
-
# The
|
4522
|
-
#
|
4523
|
-
#
|
4524
|
-
# group applies.
|
4718
|
+
# The duration of the policy's cooldown period, in seconds. When a
|
4719
|
+
# cooldown period is specified here, it overrides the default cooldown
|
4720
|
+
# period defined for the Auto Scaling group.
|
4525
4721
|
#
|
4526
4722
|
# Valid only if the policy type is `SimpleScaling`. For more
|
4527
|
-
# information, see [Scaling Cooldowns
|
4528
|
-
# Scaling User Guide*.
|
4723
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
|
4724
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
4529
4725
|
#
|
4530
4726
|
#
|
4531
4727
|
#
|
@@ -4544,29 +4740,42 @@ module Aws::AutoScaling
|
|
4544
4740
|
# A set of adjustments that enable you to scale based on the size of
|
4545
4741
|
# the alarm breach.
|
4546
4742
|
#
|
4547
|
-
#
|
4548
|
-
#
|
4743
|
+
# Required if the policy type is `StepScaling`. (Not used with any
|
4744
|
+
# other policy type.)
|
4549
4745
|
# @return [Array<Types::StepAdjustment>]
|
4550
4746
|
#
|
4551
4747
|
# @!attribute [rw] estimated_instance_warmup
|
4552
4748
|
# The estimated time, in seconds, until a newly launched instance can
|
4553
|
-
# contribute to the CloudWatch metrics.
|
4554
|
-
#
|
4749
|
+
# contribute to the CloudWatch metrics. If not provided, the default
|
4750
|
+
# is to use the value from the default cooldown period for the Auto
|
4751
|
+
# Scaling group.
|
4555
4752
|
#
|
4556
|
-
# Valid only if the policy type is `
|
4557
|
-
# `
|
4753
|
+
# Valid only if the policy type is `TargetTrackingScaling` or
|
4754
|
+
# `StepScaling`.
|
4558
4755
|
# @return [Integer]
|
4559
4756
|
#
|
4560
4757
|
# @!attribute [rw] target_tracking_configuration
|
4561
4758
|
# A target tracking scaling policy. Includes support for predefined or
|
4562
4759
|
# customized metrics.
|
4563
4760
|
#
|
4761
|
+
# The following predefined metrics are available:
|
4762
|
+
#
|
4763
|
+
# * `ASGAverageCPUUtilization`
|
4764
|
+
#
|
4765
|
+
# * `ASGAverageNetworkIn`
|
4766
|
+
#
|
4767
|
+
# * `ASGAverageNetworkOut`
|
4768
|
+
#
|
4769
|
+
# * `ALBRequestCountPerTarget`
|
4770
|
+
#
|
4771
|
+
# If you specify `ALBRequestCountPerTarget` for the metric, you must
|
4772
|
+
# specify the `ResourceLabel` parameter with the
|
4773
|
+
# `PredefinedMetricSpecification`.
|
4774
|
+
#
|
4564
4775
|
# For more information, see [TargetTrackingConfiguration][1] in the
|
4565
4776
|
# *Amazon EC2 Auto Scaling API Reference*.
|
4566
4777
|
#
|
4567
|
-
#
|
4568
|
-
# type, you must specify this parameter. (Not used with any other
|
4569
|
-
# policy type.)
|
4778
|
+
# Required if the policy type is `TargetTrackingScaling`.
|
4570
4779
|
#
|
4571
4780
|
#
|
4572
4781
|
#
|
@@ -4600,6 +4809,7 @@ module Aws::AutoScaling
|
|
4600
4809
|
:estimated_instance_warmup,
|
4601
4810
|
:target_tracking_configuration,
|
4602
4811
|
:enabled)
|
4812
|
+
SENSITIVE = []
|
4603
4813
|
include Aws::Structure
|
4604
4814
|
end
|
4605
4815
|
|
@@ -4691,6 +4901,7 @@ module Aws::AutoScaling
|
|
4691
4901
|
:min_size,
|
4692
4902
|
:max_size,
|
4693
4903
|
:desired_capacity)
|
4904
|
+
SENSITIVE = []
|
4694
4905
|
include Aws::Structure
|
4695
4906
|
end
|
4696
4907
|
|
@@ -4734,6 +4945,7 @@ module Aws::AutoScaling
|
|
4734
4945
|
:auto_scaling_group_name,
|
4735
4946
|
:lifecycle_action_token,
|
4736
4947
|
:instance_id)
|
4948
|
+
SENSITIVE = []
|
4737
4949
|
include Aws::Structure
|
4738
4950
|
end
|
4739
4951
|
|
@@ -4759,10 +4971,7 @@ module Aws::AutoScaling
|
|
4759
4971
|
# The number of seconds until a newly launched instance is configured
|
4760
4972
|
# and ready to use. During this time, Amazon EC2 Auto Scaling does not
|
4761
4973
|
# immediately move on to the next replacement. The default is to use
|
4762
|
-
# the value
|
4763
|
-
#
|
4764
|
-
# Note: While warming up, a newly launched instance is not counted
|
4765
|
-
# toward the aggregated metrics of the Auto Scaling group.
|
4974
|
+
# the value for the health check grace period defined for the group.
|
4766
4975
|
# @return [Integer]
|
4767
4976
|
#
|
4768
4977
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
|
@@ -4770,6 +4979,7 @@ module Aws::AutoScaling
|
|
4770
4979
|
class RefreshPreferences < Struct.new(
|
4771
4980
|
:min_healthy_percentage,
|
4772
4981
|
:instance_warmup)
|
4982
|
+
SENSITIVE = []
|
4773
4983
|
include Aws::Structure
|
4774
4984
|
end
|
4775
4985
|
|
@@ -4784,6 +4994,7 @@ module Aws::AutoScaling
|
|
4784
4994
|
#
|
4785
4995
|
class ResourceContentionFault < Struct.new(
|
4786
4996
|
:message)
|
4997
|
+
SENSITIVE = []
|
4787
4998
|
include Aws::Structure
|
4788
4999
|
end
|
4789
5000
|
|
@@ -4796,6 +5007,7 @@ module Aws::AutoScaling
|
|
4796
5007
|
#
|
4797
5008
|
class ResourceInUseFault < Struct.new(
|
4798
5009
|
:message)
|
5010
|
+
SENSITIVE = []
|
4799
5011
|
include Aws::Structure
|
4800
5012
|
end
|
4801
5013
|
|
@@ -4809,6 +5021,7 @@ module Aws::AutoScaling
|
|
4809
5021
|
#
|
4810
5022
|
class ScalingActivityInProgressFault < Struct.new(
|
4811
5023
|
:message)
|
5024
|
+
SENSITIVE = []
|
4812
5025
|
include Aws::Structure
|
4813
5026
|
end
|
4814
5027
|
|
@@ -4827,14 +5040,28 @@ module Aws::AutoScaling
|
|
4827
5040
|
# @return [String]
|
4828
5041
|
#
|
4829
5042
|
# @!attribute [rw] policy_type
|
4830
|
-
#
|
4831
|
-
#
|
5043
|
+
# One of the following policy types:
|
5044
|
+
#
|
5045
|
+
# * `TargetTrackingScaling`
|
5046
|
+
#
|
5047
|
+
# * `StepScaling`
|
5048
|
+
#
|
5049
|
+
# * `SimpleScaling` (default)
|
5050
|
+
#
|
5051
|
+
# For more information, see [Target Tracking Scaling Policies][1] and
|
5052
|
+
# [Step and Simple Scaling Policies][2] in the *Amazon EC2 Auto
|
5053
|
+
# Scaling User Guide*.
|
5054
|
+
#
|
5055
|
+
#
|
5056
|
+
#
|
5057
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
|
5058
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html
|
4832
5059
|
# @return [String]
|
4833
5060
|
#
|
4834
5061
|
# @!attribute [rw] adjustment_type
|
4835
|
-
#
|
4836
|
-
#
|
4837
|
-
# `ExactCapacity`, and `PercentChangeInCapacity`.
|
5062
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
5063
|
+
# absolute number or a percentage). The valid values are
|
5064
|
+
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4838
5065
|
# @return [String]
|
4839
5066
|
#
|
4840
5067
|
# @!attribute [rw] min_adjustment_step
|
@@ -4843,10 +5070,8 @@ module Aws::AutoScaling
|
|
4843
5070
|
# @return [Integer]
|
4844
5071
|
#
|
4845
5072
|
# @!attribute [rw] min_adjustment_magnitude
|
4846
|
-
# The minimum
|
4847
|
-
# `
|
4848
|
-
# changes the `DesiredCapacity` of the Auto Scaling group by at least
|
4849
|
-
# this many instances. Otherwise, the error is `ValidationError`.
|
5073
|
+
# The minimum value to scale by when the adjustment type is
|
5074
|
+
# `PercentChangeInCapacity`.
|
4850
5075
|
# @return [Integer]
|
4851
5076
|
#
|
4852
5077
|
# @!attribute [rw] scaling_adjustment
|
@@ -4856,8 +5081,7 @@ module Aws::AutoScaling
|
|
4856
5081
|
# @return [Integer]
|
4857
5082
|
#
|
4858
5083
|
# @!attribute [rw] cooldown
|
4859
|
-
# The
|
4860
|
-
# before any further dynamic scaling activities can start.
|
5084
|
+
# The duration of the policy's cooldown period, in seconds.
|
4861
5085
|
# @return [Integer]
|
4862
5086
|
#
|
4863
5087
|
# @!attribute [rw] step_adjustments
|
@@ -4906,6 +5130,7 @@ module Aws::AutoScaling
|
|
4906
5130
|
:alarms,
|
4907
5131
|
:target_tracking_configuration,
|
4908
5132
|
:enabled)
|
5133
|
+
SENSITIVE = []
|
4909
5134
|
include Aws::Structure
|
4910
5135
|
end
|
4911
5136
|
|
@@ -4950,6 +5175,7 @@ module Aws::AutoScaling
|
|
4950
5175
|
class ScalingProcessQuery < Struct.new(
|
4951
5176
|
:auto_scaling_group_name,
|
4952
5177
|
:scaling_processes)
|
5178
|
+
SENSITIVE = []
|
4953
5179
|
include Aws::Structure
|
4954
5180
|
end
|
4955
5181
|
|
@@ -4970,6 +5196,7 @@ module Aws::AutoScaling
|
|
4970
5196
|
class ScheduledActionsType < Struct.new(
|
4971
5197
|
:scheduled_update_group_actions,
|
4972
5198
|
:next_token)
|
5199
|
+
SENSITIVE = []
|
4973
5200
|
include Aws::Structure
|
4974
5201
|
end
|
4975
5202
|
|
@@ -5035,6 +5262,7 @@ module Aws::AutoScaling
|
|
5035
5262
|
:min_size,
|
5036
5263
|
:max_size,
|
5037
5264
|
:desired_capacity)
|
5265
|
+
SENSITIVE = []
|
5038
5266
|
include Aws::Structure
|
5039
5267
|
end
|
5040
5268
|
|
@@ -5119,6 +5347,7 @@ module Aws::AutoScaling
|
|
5119
5347
|
:min_size,
|
5120
5348
|
:max_size,
|
5121
5349
|
:desired_capacity)
|
5350
|
+
SENSITIVE = []
|
5122
5351
|
include Aws::Structure
|
5123
5352
|
end
|
5124
5353
|
|
@@ -5131,6 +5360,7 @@ module Aws::AutoScaling
|
|
5131
5360
|
#
|
5132
5361
|
class ServiceLinkedRoleFailure < Struct.new(
|
5133
5362
|
:message)
|
5363
|
+
SENSITIVE = []
|
5134
5364
|
include Aws::Structure
|
5135
5365
|
end
|
5136
5366
|
|
@@ -5167,6 +5397,7 @@ module Aws::AutoScaling
|
|
5167
5397
|
:auto_scaling_group_name,
|
5168
5398
|
:desired_capacity,
|
5169
5399
|
:honor_cooldown)
|
5400
|
+
SENSITIVE = []
|
5170
5401
|
include Aws::Structure
|
5171
5402
|
end
|
5172
5403
|
|
@@ -5211,6 +5442,7 @@ module Aws::AutoScaling
|
|
5211
5442
|
:instance_id,
|
5212
5443
|
:health_status,
|
5213
5444
|
:should_respect_grace_period)
|
5445
|
+
SENSITIVE = []
|
5214
5446
|
include Aws::Structure
|
5215
5447
|
end
|
5216
5448
|
|
@@ -5246,6 +5478,7 @@ module Aws::AutoScaling
|
|
5246
5478
|
:instance_ids,
|
5247
5479
|
:auto_scaling_group_name,
|
5248
5480
|
:protected_from_scale_in)
|
5481
|
+
SENSITIVE = []
|
5249
5482
|
include Aws::Structure
|
5250
5483
|
end
|
5251
5484
|
|
@@ -5257,6 +5490,7 @@ module Aws::AutoScaling
|
|
5257
5490
|
#
|
5258
5491
|
class StartInstanceRefreshAnswer < Struct.new(
|
5259
5492
|
:instance_refresh_id)
|
5493
|
+
SENSITIVE = []
|
5260
5494
|
include Aws::Structure
|
5261
5495
|
end
|
5262
5496
|
|
@@ -5283,13 +5517,25 @@ module Aws::AutoScaling
|
|
5283
5517
|
# A rolling update is an update that is applied to all instances in an
|
5284
5518
|
# Auto Scaling group until all instances have been updated. A rolling
|
5285
5519
|
# update can fail due to failed health checks or if instances are on
|
5286
|
-
# standby or are protected from scale
|
5520
|
+
# standby or are protected from scale in. If the rolling update
|
5287
5521
|
# process fails, any instances that were already replaced are not
|
5288
5522
|
# rolled back to their previous configuration.
|
5289
5523
|
# @return [String]
|
5290
5524
|
#
|
5291
5525
|
# @!attribute [rw] preferences
|
5292
5526
|
# Set of preferences associated with the instance refresh request.
|
5527
|
+
#
|
5528
|
+
# If not provided, the default values are used. For
|
5529
|
+
# `MinHealthyPercentage`, the default value is `90`. For
|
5530
|
+
# `InstanceWarmup`, the default is to use the value specified for the
|
5531
|
+
# health check grace period for the Auto Scaling group.
|
5532
|
+
#
|
5533
|
+
# For more information, see [RefreshPreferences][1] in the *Amazon EC2
|
5534
|
+
# Auto Scaling API Reference*.
|
5535
|
+
#
|
5536
|
+
#
|
5537
|
+
#
|
5538
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_RefreshPreferences.html
|
5293
5539
|
# @return [Types::RefreshPreferences]
|
5294
5540
|
#
|
5295
5541
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefreshType AWS API Documentation
|
@@ -5298,6 +5544,7 @@ module Aws::AutoScaling
|
|
5298
5544
|
:auto_scaling_group_name,
|
5299
5545
|
:strategy,
|
5300
5546
|
:preferences)
|
5547
|
+
SENSITIVE = []
|
5301
5548
|
include Aws::Structure
|
5302
5549
|
end
|
5303
5550
|
|
@@ -5378,6 +5625,7 @@ module Aws::AutoScaling
|
|
5378
5625
|
:metric_interval_lower_bound,
|
5379
5626
|
:metric_interval_upper_bound,
|
5380
5627
|
:scaling_adjustment)
|
5628
|
+
SENSITIVE = []
|
5381
5629
|
include Aws::Structure
|
5382
5630
|
end
|
5383
5631
|
|
@@ -5403,6 +5651,7 @@ module Aws::AutoScaling
|
|
5403
5651
|
class SuspendedProcess < Struct.new(
|
5404
5652
|
:process_name,
|
5405
5653
|
:suspension_reason)
|
5654
|
+
SENSITIVE = []
|
5406
5655
|
include Aws::Structure
|
5407
5656
|
end
|
5408
5657
|
|
@@ -5449,6 +5698,7 @@ module Aws::AutoScaling
|
|
5449
5698
|
:key,
|
5450
5699
|
:value,
|
5451
5700
|
:propagate_at_launch)
|
5701
|
+
SENSITIVE = []
|
5452
5702
|
include Aws::Structure
|
5453
5703
|
end
|
5454
5704
|
|
@@ -5484,6 +5734,7 @@ module Aws::AutoScaling
|
|
5484
5734
|
:key,
|
5485
5735
|
:value,
|
5486
5736
|
:propagate_at_launch)
|
5737
|
+
SENSITIVE = []
|
5487
5738
|
include Aws::Structure
|
5488
5739
|
end
|
5489
5740
|
|
@@ -5504,6 +5755,7 @@ module Aws::AutoScaling
|
|
5504
5755
|
class TagsType < Struct.new(
|
5505
5756
|
:tags,
|
5506
5757
|
:next_token)
|
5758
|
+
SENSITIVE = []
|
5507
5759
|
include Aws::Structure
|
5508
5760
|
end
|
5509
5761
|
|
@@ -5563,6 +5815,7 @@ module Aws::AutoScaling
|
|
5563
5815
|
:customized_metric_specification,
|
5564
5816
|
:target_value,
|
5565
5817
|
:disable_scale_in)
|
5818
|
+
SENSITIVE = []
|
5566
5819
|
include Aws::Structure
|
5567
5820
|
end
|
5568
5821
|
|
@@ -5588,6 +5841,7 @@ module Aws::AutoScaling
|
|
5588
5841
|
class TerminateInstanceInAutoScalingGroupType < Struct.new(
|
5589
5842
|
:instance_id,
|
5590
5843
|
:should_decrement_desired_capacity)
|
5844
|
+
SENSITIVE = []
|
5591
5845
|
include Aws::Structure
|
5592
5846
|
end
|
5593
5847
|
|
@@ -5691,9 +5945,9 @@ module Aws::AutoScaling
|
|
5691
5945
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon
|
5692
5946
|
# EC2 Auto Scaling may need to go above `MaxSize` to meet your
|
5693
5947
|
# capacity requirements. In this event, Amazon EC2 Auto Scaling will
|
5694
|
-
# never go above `MaxSize` by more than your
|
5695
|
-
# (weights that define how many
|
5696
|
-
#
|
5948
|
+
# never go above `MaxSize` by more than your largest instance weight
|
5949
|
+
# (weights that define how many units each instance contributes to the
|
5950
|
+
# desired capacity of the group).
|
5697
5951
|
#
|
5698
5952
|
# </note>
|
5699
5953
|
# @return [Integer]
|
@@ -5710,13 +5964,12 @@ module Aws::AutoScaling
|
|
5710
5964
|
# @!attribute [rw] default_cooldown
|
5711
5965
|
# The amount of time, in seconds, after a scaling activity completes
|
5712
5966
|
# before another scaling activity can start. The default value is
|
5713
|
-
# `300`.
|
5714
|
-
# cooldown is specified.
|
5967
|
+
# `300`.
|
5715
5968
|
#
|
5716
|
-
#
|
5717
|
-
#
|
5718
|
-
# information, see [Scaling Cooldowns
|
5719
|
-
# Scaling User Guide*.
|
5969
|
+
# This setting applies when using simple scaling policies, but not
|
5970
|
+
# when using other scaling policies or scheduled scaling. For more
|
5971
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
|
5972
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
5720
5973
|
#
|
5721
5974
|
#
|
5722
5975
|
#
|
@@ -5742,8 +5995,7 @@ module Aws::AutoScaling
|
|
5742
5995
|
# For more information, see [Health Check Grace Period][1] in the
|
5743
5996
|
# *Amazon EC2 Auto Scaling User Guide*.
|
5744
5997
|
#
|
5745
|
-
#
|
5746
|
-
# health check.
|
5998
|
+
# Required if you are adding an `ELB` health check.
|
5747
5999
|
#
|
5748
6000
|
#
|
5749
6001
|
#
|
@@ -5848,6 +6100,7 @@ module Aws::AutoScaling
|
|
5848
6100
|
:new_instances_protected_from_scale_in,
|
5849
6101
|
:service_linked_role_arn,
|
5850
6102
|
:max_instance_lifetime)
|
6103
|
+
SENSITIVE = []
|
5851
6104
|
include Aws::Structure
|
5852
6105
|
end
|
5853
6106
|
|