aws-sdk-autoscaling 1.37.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -11,6 +13,7 @@ module Aws::AutoScaling
11
13
 
12
14
  include Seahorse::Model
13
15
 
16
+ ActiveInstanceRefreshNotFoundFault = Shapes::StructureShape.new(name: 'ActiveInstanceRefreshNotFoundFault')
14
17
  Activities = Shapes::ListShape.new(name: 'Activities')
15
18
  ActivitiesType = Shapes::StructureShape.new(name: 'ActivitiesType')
16
19
  Activity = Shapes::StructureShape.new(name: 'Activity')
@@ -52,6 +55,8 @@ module Aws::AutoScaling
52
55
  BlockDeviceEbsVolumeType = Shapes::StringShape.new(name: 'BlockDeviceEbsVolumeType')
53
56
  BlockDeviceMapping = Shapes::StructureShape.new(name: 'BlockDeviceMapping')
54
57
  BlockDeviceMappings = Shapes::ListShape.new(name: 'BlockDeviceMappings')
58
+ CancelInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'CancelInstanceRefreshAnswer')
59
+ CancelInstanceRefreshType = Shapes::StructureShape.new(name: 'CancelInstanceRefreshType')
55
60
  ClassicLinkVPCSecurityGroups = Shapes::ListShape.new(name: 'ClassicLinkVPCSecurityGroups')
56
61
  CompleteLifecycleActionAnswer = Shapes::StructureShape.new(name: 'CompleteLifecycleActionAnswer')
57
62
  CompleteLifecycleActionType = Shapes::StructureShape.new(name: 'CompleteLifecycleActionType')
@@ -71,6 +76,8 @@ module Aws::AutoScaling
71
76
  DescribeAdjustmentTypesAnswer = Shapes::StructureShape.new(name: 'DescribeAdjustmentTypesAnswer')
72
77
  DescribeAutoScalingInstancesType = Shapes::StructureShape.new(name: 'DescribeAutoScalingInstancesType')
73
78
  DescribeAutoScalingNotificationTypesAnswer = Shapes::StructureShape.new(name: 'DescribeAutoScalingNotificationTypesAnswer')
79
+ DescribeInstanceRefreshesAnswer = Shapes::StructureShape.new(name: 'DescribeInstanceRefreshesAnswer')
80
+ DescribeInstanceRefreshesType = Shapes::StructureShape.new(name: 'DescribeInstanceRefreshesType')
74
81
  DescribeLifecycleHookTypesAnswer = Shapes::StructureShape.new(name: 'DescribeLifecycleHookTypesAnswer')
75
82
  DescribeLifecycleHooksAnswer = Shapes::StructureShape.new(name: 'DescribeLifecycleHooksAnswer')
76
83
  DescribeLifecycleHooksType = Shapes::StructureShape.new(name: 'DescribeLifecycleHooksType')
@@ -118,8 +125,15 @@ module Aws::AutoScaling
118
125
  InstanceIds = Shapes::ListShape.new(name: 'InstanceIds')
119
126
  InstanceMonitoring = Shapes::StructureShape.new(name: 'InstanceMonitoring')
120
127
  InstanceProtected = Shapes::BooleanShape.new(name: 'InstanceProtected')
128
+ InstanceRefresh = Shapes::StructureShape.new(name: 'InstanceRefresh')
129
+ InstanceRefreshIds = Shapes::ListShape.new(name: 'InstanceRefreshIds')
130
+ InstanceRefreshInProgressFault = Shapes::StructureShape.new(name: 'InstanceRefreshInProgressFault')
131
+ InstanceRefreshStatus = Shapes::StringShape.new(name: 'InstanceRefreshStatus')
132
+ InstanceRefreshes = Shapes::ListShape.new(name: 'InstanceRefreshes')
121
133
  Instances = Shapes::ListShape.new(name: 'Instances')
122
134
  InstancesDistribution = Shapes::StructureShape.new(name: 'InstancesDistribution')
135
+ InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
136
+ IntPercent = Shapes::IntegerShape.new(name: 'IntPercent')
123
137
  InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
124
138
  LaunchConfiguration = Shapes::StructureShape.new(name: 'LaunchConfiguration')
125
139
  LaunchConfigurationNameType = Shapes::StructureShape.new(name: 'LaunchConfigurationNameType')
@@ -199,6 +213,9 @@ module Aws::AutoScaling
199
213
  PutScheduledUpdateGroupActionType = Shapes::StructureShape.new(name: 'PutScheduledUpdateGroupActionType')
200
214
  RecordLifecycleActionHeartbeatAnswer = Shapes::StructureShape.new(name: 'RecordLifecycleActionHeartbeatAnswer')
201
215
  RecordLifecycleActionHeartbeatType = Shapes::StructureShape.new(name: 'RecordLifecycleActionHeartbeatType')
216
+ RefreshInstanceWarmup = Shapes::IntegerShape.new(name: 'RefreshInstanceWarmup')
217
+ RefreshPreferences = Shapes::StructureShape.new(name: 'RefreshPreferences')
218
+ RefreshStrategy = Shapes::StringShape.new(name: 'RefreshStrategy')
202
219
  ResourceContentionFault = Shapes::StructureShape.new(name: 'ResourceContentionFault')
203
220
  ResourceInUseFault = Shapes::StructureShape.new(name: 'ResourceInUseFault')
204
221
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
@@ -224,6 +241,8 @@ module Aws::AutoScaling
224
241
  ShouldRespectGracePeriod = Shapes::BooleanShape.new(name: 'ShouldRespectGracePeriod')
225
242
  SpotInstancePools = Shapes::IntegerShape.new(name: 'SpotInstancePools')
226
243
  SpotPrice = Shapes::StringShape.new(name: 'SpotPrice')
244
+ StartInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'StartInstanceRefreshAnswer')
245
+ StartInstanceRefreshType = Shapes::StructureShape.new(name: 'StartInstanceRefreshType')
227
246
  StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
228
247
  StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
229
248
  SuspendedProcess = Shapes::StructureShape.new(name: 'SuspendedProcess')
@@ -253,6 +272,9 @@ module Aws::AutoScaling
253
272
  XmlStringMaxLen64 = Shapes::StringShape.new(name: 'XmlStringMaxLen64')
254
273
  XmlStringUserData = Shapes::StringShape.new(name: 'XmlStringUserData')
255
274
 
275
+ ActiveInstanceRefreshNotFoundFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
276
+ ActiveInstanceRefreshNotFoundFault.struct_class = Types::ActiveInstanceRefreshNotFoundFault
277
+
256
278
  Activities.member = Shapes::ShapeRef.new(shape: Activity)
257
279
 
258
280
  ActivitiesType.add_member(:activities, Shapes::ShapeRef.new(shape: Activities, required: true, location_name: "Activities"))
@@ -391,6 +413,12 @@ module Aws::AutoScaling
391
413
 
392
414
  BlockDeviceMappings.member = Shapes::ShapeRef.new(shape: BlockDeviceMapping)
393
415
 
416
+ CancelInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
417
+ CancelInstanceRefreshAnswer.struct_class = Types::CancelInstanceRefreshAnswer
418
+
419
+ CancelInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
420
+ CancelInstanceRefreshType.struct_class = Types::CancelInstanceRefreshType
421
+
394
422
  ClassicLinkVPCSecurityGroups.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
395
423
 
396
424
  CompleteLifecycleActionAnswer.struct_class = Types::CompleteLifecycleActionAnswer
@@ -498,6 +526,16 @@ module Aws::AutoScaling
498
526
  DescribeAutoScalingNotificationTypesAnswer.add_member(:auto_scaling_notification_types, Shapes::ShapeRef.new(shape: AutoScalingNotificationTypes, location_name: "AutoScalingNotificationTypes"))
499
527
  DescribeAutoScalingNotificationTypesAnswer.struct_class = Types::DescribeAutoScalingNotificationTypesAnswer
500
528
 
529
+ DescribeInstanceRefreshesAnswer.add_member(:instance_refreshes, Shapes::ShapeRef.new(shape: InstanceRefreshes, location_name: "InstanceRefreshes"))
530
+ DescribeInstanceRefreshesAnswer.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
531
+ DescribeInstanceRefreshesAnswer.struct_class = Types::DescribeInstanceRefreshesAnswer
532
+
533
+ DescribeInstanceRefreshesType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
534
+ DescribeInstanceRefreshesType.add_member(:instance_refresh_ids, Shapes::ShapeRef.new(shape: InstanceRefreshIds, location_name: "InstanceRefreshIds"))
535
+ DescribeInstanceRefreshesType.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
536
+ DescribeInstanceRefreshesType.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
537
+ DescribeInstanceRefreshesType.struct_class = Types::DescribeInstanceRefreshesType
538
+
501
539
  DescribeLifecycleHookTypesAnswer.add_member(:lifecycle_hook_types, Shapes::ShapeRef.new(shape: AutoScalingNotificationTypes, location_name: "LifecycleHookTypes"))
502
540
  DescribeLifecycleHookTypesAnswer.struct_class = Types::DescribeLifecycleHookTypesAnswer
503
541
 
@@ -662,6 +700,23 @@ module Aws::AutoScaling
662
700
  InstanceMonitoring.add_member(:enabled, Shapes::ShapeRef.new(shape: MonitoringEnabled, location_name: "Enabled"))
663
701
  InstanceMonitoring.struct_class = Types::InstanceMonitoring
664
702
 
703
+ InstanceRefresh.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
704
+ InstanceRefresh.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AutoScalingGroupName"))
705
+ InstanceRefresh.add_member(:status, Shapes::ShapeRef.new(shape: InstanceRefreshStatus, location_name: "Status"))
706
+ InstanceRefresh.add_member(:status_reason, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "StatusReason"))
707
+ InstanceRefresh.add_member(:start_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "StartTime"))
708
+ InstanceRefresh.add_member(:end_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "EndTime"))
709
+ InstanceRefresh.add_member(:percentage_complete, Shapes::ShapeRef.new(shape: IntPercent, location_name: "PercentageComplete"))
710
+ InstanceRefresh.add_member(:instances_to_update, Shapes::ShapeRef.new(shape: InstancesToUpdate, location_name: "InstancesToUpdate"))
711
+ InstanceRefresh.struct_class = Types::InstanceRefresh
712
+
713
+ InstanceRefreshIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
714
+
715
+ InstanceRefreshInProgressFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
716
+ InstanceRefreshInProgressFault.struct_class = Types::InstanceRefreshInProgressFault
717
+
718
+ InstanceRefreshes.member = Shapes::ShapeRef.new(shape: InstanceRefresh)
719
+
665
720
  Instances.member = Shapes::ShapeRef.new(shape: Instance)
666
721
 
667
722
  InstancesDistribution.add_member(:on_demand_allocation_strategy, Shapes::ShapeRef.new(shape: XmlString, location_name: "OnDemandAllocationStrategy"))
@@ -876,6 +931,10 @@ module Aws::AutoScaling
876
931
  RecordLifecycleActionHeartbeatType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, location_name: "InstanceId"))
877
932
  RecordLifecycleActionHeartbeatType.struct_class = Types::RecordLifecycleActionHeartbeatType
878
933
 
934
+ RefreshPreferences.add_member(:min_healthy_percentage, Shapes::ShapeRef.new(shape: IntPercent, location_name: "MinHealthyPercentage"))
935
+ RefreshPreferences.add_member(:instance_warmup, Shapes::ShapeRef.new(shape: RefreshInstanceWarmup, location_name: "InstanceWarmup"))
936
+ RefreshPreferences.struct_class = Types::RefreshPreferences
937
+
879
938
  ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
880
939
  ResourceContentionFault.struct_class = Types::ResourceContentionFault
881
940
 
@@ -961,6 +1020,14 @@ module Aws::AutoScaling
961
1020
  SetInstanceProtectionQuery.add_member(:protected_from_scale_in, Shapes::ShapeRef.new(shape: ProtectedFromScaleIn, required: true, location_name: "ProtectedFromScaleIn"))
962
1021
  SetInstanceProtectionQuery.struct_class = Types::SetInstanceProtectionQuery
963
1022
 
1023
+ StartInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
1024
+ StartInstanceRefreshAnswer.struct_class = Types::StartInstanceRefreshAnswer
1025
+
1026
+ StartInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
1027
+ StartInstanceRefreshType.add_member(:strategy, Shapes::ShapeRef.new(shape: RefreshStrategy, location_name: "Strategy"))
1028
+ StartInstanceRefreshType.add_member(:preferences, Shapes::ShapeRef.new(shape: RefreshPreferences, location_name: "Preferences"))
1029
+ StartInstanceRefreshType.struct_class = Types::StartInstanceRefreshType
1030
+
964
1031
  StepAdjustment.add_member(:metric_interval_lower_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalLowerBound"))
965
1032
  StepAdjustment.add_member(:metric_interval_upper_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalUpperBound"))
966
1033
  StepAdjustment.add_member(:scaling_adjustment, Shapes::ShapeRef.new(shape: PolicyIncrement, required: true, location_name: "ScalingAdjustment"))
@@ -1098,6 +1165,17 @@ module Aws::AutoScaling
1098
1165
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1099
1166
  end)
1100
1167
 
1168
+ api.add_operation(:cancel_instance_refresh, Seahorse::Model::Operation.new.tap do |o|
1169
+ o.name = "CancelInstanceRefresh"
1170
+ o.http_method = "POST"
1171
+ o.http_request_uri = "/"
1172
+ o.input = Shapes::ShapeRef.new(shape: CancelInstanceRefreshType)
1173
+ o.output = Shapes::ShapeRef.new(shape: CancelInstanceRefreshAnswer)
1174
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
1175
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1176
+ o.errors << Shapes::ShapeRef.new(shape: ActiveInstanceRefreshNotFoundFault)
1177
+ end)
1178
+
1101
1179
  api.add_operation(:complete_lifecycle_action, Seahorse::Model::Operation.new.tap do |o|
1102
1180
  o.name = "CompleteLifecycleAction"
1103
1181
  o.http_method = "POST"
@@ -1269,6 +1347,16 @@ module Aws::AutoScaling
1269
1347
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1270
1348
  end)
1271
1349
 
1350
+ api.add_operation(:describe_instance_refreshes, Seahorse::Model::Operation.new.tap do |o|
1351
+ o.name = "DescribeInstanceRefreshes"
1352
+ o.http_method = "POST"
1353
+ o.http_request_uri = "/"
1354
+ o.input = Shapes::ShapeRef.new(shape: DescribeInstanceRefreshesType)
1355
+ o.output = Shapes::ShapeRef.new(shape: DescribeInstanceRefreshesAnswer)
1356
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1357
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1358
+ end)
1359
+
1272
1360
  api.add_operation(:describe_launch_configurations, Seahorse::Model::Operation.new.tap do |o|
1273
1361
  o.name = "DescribeLaunchConfigurations"
1274
1362
  o.http_method = "POST"
@@ -1593,6 +1681,17 @@ module Aws::AutoScaling
1593
1681
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1594
1682
  end)
1595
1683
 
1684
+ api.add_operation(:start_instance_refresh, Seahorse::Model::Operation.new.tap do |o|
1685
+ o.name = "StartInstanceRefresh"
1686
+ o.http_method = "POST"
1687
+ o.http_request_uri = "/"
1688
+ o.input = Shapes::ShapeRef.new(shape: StartInstanceRefreshType)
1689
+ o.output = Shapes::ShapeRef.new(shape: StartInstanceRefreshAnswer)
1690
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
1691
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1692
+ o.errors << Shapes::ShapeRef.new(shape: InstanceRefreshInProgressFault)
1693
+ end)
1694
+
1596
1695
  api.add_operation(:suspend_processes, Seahorse::Model::Operation.new.tap do |o|
1597
1696
  o.name = "SuspendProcesses"
1598
1697
  o.http_method = "POST"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -25,7 +27,9 @@ module Aws::AutoScaling
25
27
  # See {Seahorse::Client::RequestContext} for more information.
26
28
  #
27
29
  # ## Error Classes
30
+ # * {ActiveInstanceRefreshNotFoundFault}
28
31
  # * {AlreadyExistsFault}
32
+ # * {InstanceRefreshInProgressFault}
29
33
  # * {InvalidNextToken}
30
34
  # * {LimitExceededFault}
31
35
  # * {ResourceContentionFault}
@@ -39,6 +43,21 @@ module Aws::AutoScaling
39
43
 
40
44
  extend Aws::Errors::DynamicErrors
41
45
 
46
+ class ActiveInstanceRefreshNotFoundFault < ServiceError
47
+
48
+ # @param [Seahorse::Client::RequestContext] context
49
+ # @param [String] message
50
+ # @param [Aws::AutoScaling::Types::ActiveInstanceRefreshNotFoundFault] data
51
+ def initialize(context, message, data = Aws::EmptyStructure.new)
52
+ super(context, message, data)
53
+ end
54
+
55
+ # @return [String]
56
+ def message
57
+ @message || @data[:message]
58
+ end
59
+ end
60
+
42
61
  class AlreadyExistsFault < ServiceError
43
62
 
44
63
  # @param [Seahorse::Client::RequestContext] context
@@ -54,6 +73,21 @@ module Aws::AutoScaling
54
73
  end
55
74
  end
56
75
 
76
+ class InstanceRefreshInProgressFault < ServiceError
77
+
78
+ # @param [Seahorse::Client::RequestContext] context
79
+ # @param [String] message
80
+ # @param [Aws::AutoScaling::Types::InstanceRefreshInProgressFault] data
81
+ def initialize(context, message, data = Aws::EmptyStructure.new)
82
+ super(context, message, data)
83
+ end
84
+
85
+ # @return [String]
86
+ def message
87
+ @message || @data[:message]
88
+ end
89
+ end
90
+
57
91
  class InvalidNextToken < ServiceError
58
92
 
59
93
  # @param [Seahorse::Client::RequestContext] context
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -299,15 +301,15 @@ module Aws::AutoScaling
299
301
  #
300
302
  # * autoscaling:EC2\_INSTANCE\_TERMINATING
301
303
  #
302
- # Conditional: This parameter is required for new lifecycle hooks, but
303
- # optional when updating existing hooks.
304
+ # Required for new lifecycle hooks, but optional when updating existing
305
+ # hooks.
304
306
  # @option options [String] :role_arn
305
307
  # The ARN of the IAM role that allows the Auto Scaling group to publish
306
308
  # to the specified notification target, for example, an Amazon SNS topic
307
309
  # or an Amazon SQS queue.
308
310
  #
309
- # Conditional: This parameter is required for new lifecycle hooks, but
310
- # optional when updating existing hooks.
311
+ # Required for new lifecycle hooks, but optional when updating existing
312
+ # hooks.
311
313
  # @option options [String] :notification_target_arn
312
314
  # The ARN of the notification target that Amazon EC2 Auto Scaling uses
313
315
  # to notify you when an instance is in the transition state for the
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -201,8 +203,10 @@ module Aws::AutoScaling
201
203
  # The amount of time, in seconds, after a scaling activity completes
202
204
  # before another scaling activity can start. The default value is `300`.
203
205
  #
204
- # For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
205
- # Auto Scaling User Guide*.
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*.
206
210
  #
207
211
  #
208
212
  #
@@ -258,8 +262,7 @@ module Aws::AutoScaling
258
262
  # For more information, see [Health Check Grace Period][1] in the
259
263
  # *Amazon EC2 Auto Scaling User Guide*.
260
264
  #
261
- # Conditional: This parameter is required if you are adding an `ELB`
262
- # health check.
265
+ # Required if you are adding an `ELB` health check.
263
266
  #
264
267
  #
265
268
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,16 +47,30 @@ module Aws::AutoScaling
45
47
  data[:policy_arn]
46
48
  end
47
49
 
48
- # The policy type. The valid values are `SimpleScaling`, `StepScaling`,
49
- # and `TargetTrackingScaling`.
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
50
66
  # @return [String]
51
67
  def policy_type
52
68
  data[:policy_type]
53
69
  end
54
70
 
55
- # The adjustment type, which specifies how `ScalingAdjustment` is
56
- # interpreted. The valid values are `ChangeInCapacity`, `ExactCapacity`,
57
- # and `PercentChangeInCapacity`.
71
+ # Specifies how the scaling adjustment is interpreted (either an
72
+ # absolute number or a percentage). The valid values are
73
+ # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
58
74
  # @return [String]
59
75
  def adjustment_type
60
76
  data[:adjustment_type]
@@ -67,10 +83,8 @@ module Aws::AutoScaling
67
83
  data[:min_adjustment_step]
68
84
  end
69
85
 
70
- # The minimum number of instances to scale. If the value of
71
- # `AdjustmentType` is `PercentChangeInCapacity`, the scaling policy
72
- # changes the `DesiredCapacity` of the Auto Scaling group by at least
73
- # this many instances. Otherwise, the error is `ValidationError`.
86
+ # The minimum value to scale by when the adjustment type is
87
+ # `PercentChangeInCapacity`.
74
88
  # @return [Integer]
75
89
  def min_adjustment_magnitude
76
90
  data[:min_adjustment_magnitude]
@@ -84,8 +98,7 @@ module Aws::AutoScaling
84
98
  data[:scaling_adjustment]
85
99
  end
86
100
 
87
- # The amount of time, in seconds, after a scaling activity completes
88
- # before any further dynamic scaling activities can start.
101
+ # The duration of the policy's cooldown period, in seconds.
89
102
  # @return [Integer]
90
103
  def cooldown
91
104
  data[:cooldown]
@@ -295,11 +308,9 @@ module Aws::AutoScaling
295
308
  # Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
296
309
  # period to complete before executing the policy.
297
310
  #
298
- # This parameter is not supported if the policy type is `StepScaling` or
299
- # `TargetTrackingScaling`.
300
- #
301
- # For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
302
- # 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*.
303
314
  #
304
315
  #
305
316
  #
@@ -314,13 +325,13 @@ module Aws::AutoScaling
314
325
  # If you specify a metric value that doesn't correspond to a step
315
326
  # adjustment for the policy, the call returns an error.
316
327
  #
317
- # Conditional: This parameter is required if the policy type is
318
- # `StepScaling` and not supported otherwise.
328
+ # Required if the policy type is `StepScaling` and not supported
329
+ # otherwise.
319
330
  # @option options [Float] :breach_threshold
320
331
  # The breach threshold for the alarm.
321
332
  #
322
- # Conditional: This parameter is required if the policy type is
323
- # `StepScaling` and not supported otherwise.
333
+ # Required if the policy type is `StepScaling` and not supported
334
+ # otherwise.
324
335
  # @return [EmptyStructure]
325
336
  def execute(options = {})
326
337
  options = options.merge(policy_name: @name)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information: