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:
@@ -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:
@@ -8,6 +10,20 @@
8
10
  module Aws::AutoScaling
9
11
  module Types
10
12
 
13
+ # The request failed because an active instance refresh for the
14
+ # specified Auto Scaling group was not found.
15
+ #
16
+ # @!attribute [rw] message
17
+ # @return [String]
18
+ #
19
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActiveInstanceRefreshNotFoundFault AWS API Documentation
20
+ #
21
+ class ActiveInstanceRefreshNotFoundFault < Struct.new(
22
+ :message)
23
+ SENSITIVE = []
24
+ include Aws::Structure
25
+ end
26
+
11
27
  # @!attribute [rw] activities
12
28
  # The scaling activities. Activities are sorted by start time.
13
29
  # Activities still in progress are described first.
@@ -26,6 +42,7 @@ module Aws::AutoScaling
26
42
  class ActivitiesType < Struct.new(
27
43
  :activities,
28
44
  :next_token)
45
+ SENSITIVE = []
29
46
  include Aws::Structure
30
47
  end
31
48
 
@@ -87,6 +104,7 @@ module Aws::AutoScaling
87
104
  :status_message,
88
105
  :progress,
89
106
  :details)
107
+ SENSITIVE = []
90
108
  include Aws::Structure
91
109
  end
92
110
 
@@ -98,6 +116,7 @@ module Aws::AutoScaling
98
116
  #
99
117
  class ActivityType < Struct.new(
100
118
  :activity)
119
+ SENSITIVE = []
101
120
  include Aws::Structure
102
121
  end
103
122
 
@@ -112,6 +131,7 @@ module Aws::AutoScaling
112
131
  #
113
132
  class AdjustmentType < Struct.new(
114
133
  :adjustment_type)
134
+ SENSITIVE = []
115
135
  include Aws::Structure
116
136
  end
117
137
 
@@ -130,6 +150,7 @@ module Aws::AutoScaling
130
150
  class Alarm < Struct.new(
131
151
  :alarm_name,
132
152
  :alarm_arn)
153
+ SENSITIVE = []
133
154
  include Aws::Structure
134
155
  end
135
156
 
@@ -143,6 +164,7 @@ module Aws::AutoScaling
143
164
  #
144
165
  class AlreadyExistsFault < Struct.new(
145
166
  :message)
167
+ SENSITIVE = []
146
168
  include Aws::Structure
147
169
  end
148
170
 
@@ -167,6 +189,7 @@ module Aws::AutoScaling
167
189
  class AttachInstancesQuery < Struct.new(
168
190
  :instance_ids,
169
191
  :auto_scaling_group_name)
192
+ SENSITIVE = []
170
193
  include Aws::Structure
171
194
  end
172
195
 
@@ -196,6 +219,7 @@ module Aws::AutoScaling
196
219
  class AttachLoadBalancerTargetGroupsType < Struct.new(
197
220
  :auto_scaling_group_name,
198
221
  :target_group_arns)
222
+ SENSITIVE = []
199
223
  include Aws::Structure
200
224
  end
201
225
 
@@ -225,6 +249,7 @@ module Aws::AutoScaling
225
249
  class AttachLoadBalancersType < Struct.new(
226
250
  :auto_scaling_group_name,
227
251
  :load_balancer_names)
252
+ SENSITIVE = []
228
253
  include Aws::Structure
229
254
  end
230
255
 
@@ -263,8 +288,7 @@ module Aws::AutoScaling
263
288
  # @return [Integer]
264
289
  #
265
290
  # @!attribute [rw] default_cooldown
266
- # The amount of time, in seconds, after a scaling activity completes
267
- # before another scaling activity can start.
291
+ # The duration of the default cooldown period, in seconds.
268
292
  # @return [Integer]
269
293
  #
270
294
  # @!attribute [rw] availability_zones
@@ -377,6 +401,7 @@ module Aws::AutoScaling
377
401
  :new_instances_protected_from_scale_in,
378
402
  :service_linked_role_arn,
379
403
  :max_instance_lifetime)
404
+ SENSITIVE = []
380
405
  include Aws::Structure
381
406
  end
382
407
 
@@ -414,6 +439,7 @@ module Aws::AutoScaling
414
439
  :auto_scaling_group_names,
415
440
  :next_token,
416
441
  :max_records)
442
+ SENSITIVE = []
417
443
  include Aws::Structure
418
444
  end
419
445
 
@@ -434,6 +460,7 @@ module Aws::AutoScaling
434
460
  class AutoScalingGroupsType < Struct.new(
435
461
  :auto_scaling_groups,
436
462
  :next_token)
463
+ SENSITIVE = []
437
464
  include Aws::Structure
438
465
  end
439
466
 
@@ -501,6 +528,7 @@ module Aws::AutoScaling
501
528
  :launch_template,
502
529
  :protected_from_scale_in,
503
530
  :weighted_capacity)
531
+ SENSITIVE = []
504
532
  include Aws::Structure
505
533
  end
506
534
 
@@ -521,6 +549,7 @@ module Aws::AutoScaling
521
549
  class AutoScalingInstancesType < Struct.new(
522
550
  :auto_scaling_instances,
523
551
  :next_token)
552
+ SENSITIVE = []
524
553
  include Aws::Structure
525
554
  end
526
555
 
@@ -533,6 +562,7 @@ module Aws::AutoScaling
533
562
  #
534
563
  class BatchDeleteScheduledActionAnswer < Struct.new(
535
564
  :failed_scheduled_actions)
565
+ SENSITIVE = []
536
566
  include Aws::Structure
537
567
  end
538
568
 
@@ -558,6 +588,7 @@ module Aws::AutoScaling
558
588
  class BatchDeleteScheduledActionType < Struct.new(
559
589
  :auto_scaling_group_name,
560
590
  :scheduled_action_names)
591
+ SENSITIVE = []
561
592
  include Aws::Structure
562
593
  end
563
594
 
@@ -570,6 +601,7 @@ module Aws::AutoScaling
570
601
  #
571
602
  class BatchPutScheduledUpdateGroupActionAnswer < Struct.new(
572
603
  :failed_scheduled_update_group_actions)
604
+ SENSITIVE = []
573
605
  include Aws::Structure
574
606
  end
575
607
 
@@ -604,6 +636,7 @@ module Aws::AutoScaling
604
636
  class BatchPutScheduledUpdateGroupActionType < Struct.new(
605
637
  :auto_scaling_group_name,
606
638
  :scheduled_update_group_actions)
639
+ SENSITIVE = []
607
640
  include Aws::Structure
608
641
  end
609
642
 
@@ -667,6 +700,38 @@ module Aws::AutoScaling
667
700
  :device_name,
668
701
  :ebs,
669
702
  :no_device)
703
+ SENSITIVE = []
704
+ include Aws::Structure
705
+ end
706
+
707
+ # @!attribute [rw] instance_refresh_id
708
+ # The instance refresh ID.
709
+ # @return [String]
710
+ #
711
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefreshAnswer AWS API Documentation
712
+ #
713
+ class CancelInstanceRefreshAnswer < Struct.new(
714
+ :instance_refresh_id)
715
+ SENSITIVE = []
716
+ include Aws::Structure
717
+ end
718
+
719
+ # @note When making an API call, you may pass CancelInstanceRefreshType
720
+ # data as a hash:
721
+ #
722
+ # {
723
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
724
+ # }
725
+ #
726
+ # @!attribute [rw] auto_scaling_group_name
727
+ # The name of the Auto Scaling group.
728
+ # @return [String]
729
+ #
730
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefreshType AWS API Documentation
731
+ #
732
+ class CancelInstanceRefreshType < Struct.new(
733
+ :auto_scaling_group_name)
734
+ SENSITIVE = []
670
735
  include Aws::Structure
671
736
  end
672
737
 
@@ -717,6 +782,7 @@ module Aws::AutoScaling
717
782
  :lifecycle_action_token,
718
783
  :lifecycle_action_result,
719
784
  :instance_id)
785
+ SENSITIVE = []
720
786
  include Aws::Structure
721
787
  end
722
788
 
@@ -908,8 +974,10 @@ module Aws::AutoScaling
908
974
  # before another scaling activity can start. The default value is
909
975
  # `300`.
910
976
  #
911
- # For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
912
- # Auto Scaling User Guide*.
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*.
913
981
  #
914
982
  #
915
983
  #
@@ -975,8 +1043,7 @@ module Aws::AutoScaling
975
1043
  # For more information, see [Health Check Grace Period][1] in the
976
1044
  # *Amazon EC2 Auto Scaling User Guide*.
977
1045
  #
978
- # Conditional: This parameter is required if you are adding an `ELB`
979
- # health check.
1046
+ # Required if you are adding an `ELB` health check.
980
1047
  #
981
1048
  #
982
1049
  #
@@ -1114,6 +1181,7 @@ module Aws::AutoScaling
1114
1181
  :tags,
1115
1182
  :service_linked_role_arn,
1116
1183
  :max_instance_lifetime)
1184
+ SENSITIVE = []
1117
1185
  include Aws::Structure
1118
1186
  end
1119
1187
 
@@ -1431,6 +1499,7 @@ module Aws::AutoScaling
1431
1499
  :ebs_optimized,
1432
1500
  :associate_public_ip_address,
1433
1501
  :placement_tenancy)
1502
+ SENSITIVE = []
1434
1503
  include Aws::Structure
1435
1504
  end
1436
1505
 
@@ -1457,6 +1526,7 @@ module Aws::AutoScaling
1457
1526
  #
1458
1527
  class CreateOrUpdateTagsType < Struct.new(
1459
1528
  :tags)
1529
+ SENSITIVE = []
1460
1530
  include Aws::Structure
1461
1531
  end
1462
1532
 
@@ -1531,6 +1601,7 @@ module Aws::AutoScaling
1531
1601
  :dimensions,
1532
1602
  :statistic,
1533
1603
  :unit)
1604
+ SENSITIVE = []
1534
1605
  include Aws::Structure
1535
1606
  end
1536
1607
 
@@ -1558,6 +1629,7 @@ module Aws::AutoScaling
1558
1629
  class DeleteAutoScalingGroupType < Struct.new(
1559
1630
  :auto_scaling_group_name,
1560
1631
  :force_delete)
1632
+ SENSITIVE = []
1561
1633
  include Aws::Structure
1562
1634
  end
1563
1635
 
@@ -1586,6 +1658,7 @@ module Aws::AutoScaling
1586
1658
  class DeleteLifecycleHookType < Struct.new(
1587
1659
  :lifecycle_hook_name,
1588
1660
  :auto_scaling_group_name)
1661
+ SENSITIVE = []
1589
1662
  include Aws::Structure
1590
1663
  end
1591
1664
 
@@ -1611,6 +1684,7 @@ module Aws::AutoScaling
1611
1684
  class DeleteNotificationConfigurationType < Struct.new(
1612
1685
  :auto_scaling_group_name,
1613
1686
  :topic_arn)
1687
+ SENSITIVE = []
1614
1688
  include Aws::Structure
1615
1689
  end
1616
1690
 
@@ -1635,6 +1709,7 @@ module Aws::AutoScaling
1635
1709
  class DeletePolicyType < Struct.new(
1636
1710
  :auto_scaling_group_name,
1637
1711
  :policy_name)
1712
+ SENSITIVE = []
1638
1713
  include Aws::Structure
1639
1714
  end
1640
1715
 
@@ -1659,6 +1734,7 @@ module Aws::AutoScaling
1659
1734
  class DeleteScheduledActionType < Struct.new(
1660
1735
  :auto_scaling_group_name,
1661
1736
  :scheduled_action_name)
1737
+ SENSITIVE = []
1662
1738
  include Aws::Structure
1663
1739
  end
1664
1740
 
@@ -1685,6 +1761,7 @@ module Aws::AutoScaling
1685
1761
  #
1686
1762
  class DeleteTagsType < Struct.new(
1687
1763
  :tags)
1764
+ SENSITIVE = []
1688
1765
  include Aws::Structure
1689
1766
  end
1690
1767
 
@@ -1713,6 +1790,7 @@ module Aws::AutoScaling
1713
1790
  :max_number_of_launch_configurations,
1714
1791
  :number_of_auto_scaling_groups,
1715
1792
  :number_of_launch_configurations)
1793
+ SENSITIVE = []
1716
1794
  include Aws::Structure
1717
1795
  end
1718
1796
 
@@ -1724,6 +1802,7 @@ module Aws::AutoScaling
1724
1802
  #
1725
1803
  class DescribeAdjustmentTypesAnswer < Struct.new(
1726
1804
  :adjustment_types)
1805
+ SENSITIVE = []
1727
1806
  include Aws::Structure
1728
1807
  end
1729
1808
 
@@ -1759,6 +1838,7 @@ module Aws::AutoScaling
1759
1838
  :instance_ids,
1760
1839
  :max_records,
1761
1840
  :next_token)
1841
+ SENSITIVE = []
1762
1842
  include Aws::Structure
1763
1843
  end
1764
1844
 
@@ -1770,6 +1850,67 @@ module Aws::AutoScaling
1770
1850
  #
1771
1851
  class DescribeAutoScalingNotificationTypesAnswer < Struct.new(
1772
1852
  :auto_scaling_notification_types)
1853
+ SENSITIVE = []
1854
+ include Aws::Structure
1855
+ end
1856
+
1857
+ # @!attribute [rw] instance_refreshes
1858
+ # The instance refreshes for the specified group.
1859
+ # @return [Array<Types::InstanceRefresh>]
1860
+ #
1861
+ # @!attribute [rw] next_token
1862
+ # A string that indicates that the response contains more items than
1863
+ # can be returned in a single response. To receive additional items,
1864
+ # specify this string for the `NextToken` value when requesting the
1865
+ # next set of items. This value is null when there are no more items
1866
+ # to return.
1867
+ # @return [String]
1868
+ #
1869
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshesAnswer AWS API Documentation
1870
+ #
1871
+ class DescribeInstanceRefreshesAnswer < Struct.new(
1872
+ :instance_refreshes,
1873
+ :next_token)
1874
+ SENSITIVE = []
1875
+ include Aws::Structure
1876
+ end
1877
+
1878
+ # @note When making an API call, you may pass DescribeInstanceRefreshesType
1879
+ # data as a hash:
1880
+ #
1881
+ # {
1882
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1883
+ # instance_refresh_ids: ["XmlStringMaxLen255"],
1884
+ # next_token: "XmlString",
1885
+ # max_records: 1,
1886
+ # }
1887
+ #
1888
+ # @!attribute [rw] auto_scaling_group_name
1889
+ # The name of the Auto Scaling group.
1890
+ # @return [String]
1891
+ #
1892
+ # @!attribute [rw] instance_refresh_ids
1893
+ # One or more instance refresh IDs.
1894
+ # @return [Array<String>]
1895
+ #
1896
+ # @!attribute [rw] next_token
1897
+ # The token for the next set of items to return. (You received this
1898
+ # token from a previous call.)
1899
+ # @return [String]
1900
+ #
1901
+ # @!attribute [rw] max_records
1902
+ # The maximum number of items to return with this call. The default
1903
+ # value is `50` and the maximum value is `100`.
1904
+ # @return [Integer]
1905
+ #
1906
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshesType AWS API Documentation
1907
+ #
1908
+ class DescribeInstanceRefreshesType < Struct.new(
1909
+ :auto_scaling_group_name,
1910
+ :instance_refresh_ids,
1911
+ :next_token,
1912
+ :max_records)
1913
+ SENSITIVE = []
1773
1914
  include Aws::Structure
1774
1915
  end
1775
1916
 
@@ -1781,6 +1922,7 @@ module Aws::AutoScaling
1781
1922
  #
1782
1923
  class DescribeLifecycleHookTypesAnswer < Struct.new(
1783
1924
  :lifecycle_hook_types)
1925
+ SENSITIVE = []
1784
1926
  include Aws::Structure
1785
1927
  end
1786
1928
 
@@ -1792,6 +1934,7 @@ module Aws::AutoScaling
1792
1934
  #
1793
1935
  class DescribeLifecycleHooksAnswer < Struct.new(
1794
1936
  :lifecycle_hooks)
1937
+ SENSITIVE = []
1795
1938
  include Aws::Structure
1796
1939
  end
1797
1940
 
@@ -1817,6 +1960,7 @@ module Aws::AutoScaling
1817
1960
  class DescribeLifecycleHooksType < Struct.new(
1818
1961
  :auto_scaling_group_name,
1819
1962
  :lifecycle_hook_names)
1963
+ SENSITIVE = []
1820
1964
  include Aws::Structure
1821
1965
  end
1822
1966
 
@@ -1849,6 +1993,7 @@ module Aws::AutoScaling
1849
1993
  :auto_scaling_group_name,
1850
1994
  :next_token,
1851
1995
  :max_records)
1996
+ SENSITIVE = []
1852
1997
  include Aws::Structure
1853
1998
  end
1854
1999
 
@@ -1869,6 +2014,7 @@ module Aws::AutoScaling
1869
2014
  class DescribeLoadBalancerTargetGroupsResponse < Struct.new(
1870
2015
  :load_balancer_target_groups,
1871
2016
  :next_token)
2017
+ SENSITIVE = []
1872
2018
  include Aws::Structure
1873
2019
  end
1874
2020
 
@@ -1901,6 +2047,7 @@ module Aws::AutoScaling
1901
2047
  :auto_scaling_group_name,
1902
2048
  :next_token,
1903
2049
  :max_records)
2050
+ SENSITIVE = []
1904
2051
  include Aws::Structure
1905
2052
  end
1906
2053
 
@@ -1921,6 +2068,7 @@ module Aws::AutoScaling
1921
2068
  class DescribeLoadBalancersResponse < Struct.new(
1922
2069
  :load_balancers,
1923
2070
  :next_token)
2071
+ SENSITIVE = []
1924
2072
  include Aws::Structure
1925
2073
  end
1926
2074
 
@@ -1937,6 +2085,7 @@ module Aws::AutoScaling
1937
2085
  class DescribeMetricCollectionTypesAnswer < Struct.new(
1938
2086
  :metrics,
1939
2087
  :granularities)
2088
+ SENSITIVE = []
1940
2089
  include Aws::Structure
1941
2090
  end
1942
2091
 
@@ -1957,6 +2106,7 @@ module Aws::AutoScaling
1957
2106
  class DescribeNotificationConfigurationsAnswer < Struct.new(
1958
2107
  :notification_configurations,
1959
2108
  :next_token)
2109
+ SENSITIVE = []
1960
2110
  include Aws::Structure
1961
2111
  end
1962
2112
 
@@ -1989,6 +2139,7 @@ module Aws::AutoScaling
1989
2139
  :auto_scaling_group_names,
1990
2140
  :next_token,
1991
2141
  :max_records)
2142
+ SENSITIVE = []
1992
2143
  include Aws::Structure
1993
2144
  end
1994
2145
 
@@ -2037,6 +2188,7 @@ module Aws::AutoScaling
2037
2188
  :policy_types,
2038
2189
  :next_token,
2039
2190
  :max_records)
2191
+ SENSITIVE = []
2040
2192
  include Aws::Structure
2041
2193
  end
2042
2194
 
@@ -2079,6 +2231,7 @@ module Aws::AutoScaling
2079
2231
  :auto_scaling_group_name,
2080
2232
  :max_records,
2081
2233
  :next_token)
2234
+ SENSITIVE = []
2082
2235
  include Aws::Structure
2083
2236
  end
2084
2237
 
@@ -2134,6 +2287,7 @@ module Aws::AutoScaling
2134
2287
  :end_time,
2135
2288
  :next_token,
2136
2289
  :max_records)
2290
+ SENSITIVE = []
2137
2291
  include Aws::Structure
2138
2292
  end
2139
2293
 
@@ -2173,6 +2327,7 @@ module Aws::AutoScaling
2173
2327
  :filters,
2174
2328
  :next_token,
2175
2329
  :max_records)
2330
+ SENSITIVE = []
2176
2331
  include Aws::Structure
2177
2332
  end
2178
2333
 
@@ -2187,6 +2342,7 @@ module Aws::AutoScaling
2187
2342
  #
2188
2343
  class DescribeTerminationPolicyTypesAnswer < Struct.new(
2189
2344
  :termination_policy_types)
2345
+ SENSITIVE = []
2190
2346
  include Aws::Structure
2191
2347
  end
2192
2348
 
@@ -2199,6 +2355,7 @@ module Aws::AutoScaling
2199
2355
  #
2200
2356
  class DetachInstancesAnswer < Struct.new(
2201
2357
  :activities)
2358
+ SENSITIVE = []
2202
2359
  include Aws::Structure
2203
2360
  end
2204
2361
 
@@ -2230,6 +2387,7 @@ module Aws::AutoScaling
2230
2387
  :instance_ids,
2231
2388
  :auto_scaling_group_name,
2232
2389
  :should_decrement_desired_capacity)
2390
+ SENSITIVE = []
2233
2391
  include Aws::Structure
2234
2392
  end
2235
2393
 
@@ -2259,6 +2417,7 @@ module Aws::AutoScaling
2259
2417
  class DetachLoadBalancerTargetGroupsType < Struct.new(
2260
2418
  :auto_scaling_group_name,
2261
2419
  :target_group_arns)
2420
+ SENSITIVE = []
2262
2421
  include Aws::Structure
2263
2422
  end
2264
2423
 
@@ -2288,6 +2447,7 @@ module Aws::AutoScaling
2288
2447
  class DetachLoadBalancersType < Struct.new(
2289
2448
  :auto_scaling_group_name,
2290
2449
  :load_balancer_names)
2450
+ SENSITIVE = []
2291
2451
  include Aws::Structure
2292
2452
  end
2293
2453
 
@@ -2340,6 +2500,7 @@ module Aws::AutoScaling
2340
2500
  class DisableMetricsCollectionQuery < Struct.new(
2341
2501
  :auto_scaling_group_name,
2342
2502
  :metrics)
2503
+ SENSITIVE = []
2343
2504
  include Aws::Structure
2344
2505
  end
2345
2506
 
@@ -2361,9 +2522,7 @@ module Aws::AutoScaling
2361
2522
  # @!attribute [rw] snapshot_id
2362
2523
  # The snapshot ID of the volume to use.
2363
2524
  #
2364
- # Conditional: This parameter is optional if you specify a volume
2365
- # size. If you specify both `SnapshotId` and `VolumeSize`,
2366
- # `VolumeSize` must be equal or greater than the size of the snapshot.
2525
+ # You must specify either a `VolumeSize` or a `SnapshotId`.
2367
2526
  # @return [String]
2368
2527
  #
2369
2528
  # @!attribute [rw] volume_size
@@ -2377,9 +2536,9 @@ module Aws::AutoScaling
2377
2536
  # Default: If you create a volume from a snapshot and you don't
2378
2537
  # specify a volume size, the default is the snapshot size.
2379
2538
  #
2380
- # <note markdown="1"> At least one of VolumeSize or SnapshotId is required.
2381
- #
2382
- # </note>
2539
+ # You must specify either a `VolumeSize` or a `SnapshotId`. If you
2540
+ # specify both `SnapshotId` and `VolumeSize`, the volume size must be
2541
+ # equal or greater than the size of the snapshot.
2383
2542
  # @return [Integer]
2384
2543
  #
2385
2544
  # @!attribute [rw] volume_type
@@ -2407,8 +2566,8 @@ module Aws::AutoScaling
2407
2566
  # For more information, see [Amazon EBS Volume Types][1] in the
2408
2567
  # *Amazon EC2 User Guide for Linux Instances*.
2409
2568
  #
2410
- # Conditional: This parameter is required when the volume type is
2411
- # `io1`. (Not used with `standard`, `gp2`, `st1`, or `sc1` volumes.)
2569
+ # Required when the volume type is `io1`. (Not used with `standard`,
2570
+ # `gp2`, `st1`, or `sc1` volumes.)
2412
2571
  #
2413
2572
  #
2414
2573
  #
@@ -2461,6 +2620,7 @@ module Aws::AutoScaling
2461
2620
  :delete_on_termination,
2462
2621
  :iops,
2463
2622
  :encrypted)
2623
+ SENSITIVE = []
2464
2624
  include Aws::Structure
2465
2625
  end
2466
2626
 
@@ -2524,6 +2684,7 @@ module Aws::AutoScaling
2524
2684
  :auto_scaling_group_name,
2525
2685
  :metrics,
2526
2686
  :granularity)
2687
+ SENSITIVE = []
2527
2688
  include Aws::Structure
2528
2689
  end
2529
2690
 
@@ -2568,6 +2729,7 @@ module Aws::AutoScaling
2568
2729
  class EnabledMetric < Struct.new(
2569
2730
  :metric,
2570
2731
  :granularity)
2732
+ SENSITIVE = []
2571
2733
  include Aws::Structure
2572
2734
  end
2573
2735
 
@@ -2579,6 +2741,7 @@ module Aws::AutoScaling
2579
2741
  #
2580
2742
  class EnterStandbyAnswer < Struct.new(
2581
2743
  :activities)
2744
+ SENSITIVE = []
2582
2745
  include Aws::Structure
2583
2746
  end
2584
2747
 
@@ -2610,6 +2773,7 @@ module Aws::AutoScaling
2610
2773
  :instance_ids,
2611
2774
  :auto_scaling_group_name,
2612
2775
  :should_decrement_desired_capacity)
2776
+ SENSITIVE = []
2613
2777
  include Aws::Structure
2614
2778
  end
2615
2779
 
@@ -2636,11 +2800,9 @@ module Aws::AutoScaling
2636
2800
  # Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
2637
2801
  # period to complete before executing the policy.
2638
2802
  #
2639
- # This parameter is not supported if the policy type is `StepScaling`
2640
- # or `TargetTrackingScaling`.
2641
- #
2642
- # For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
2643
- # Auto Scaling User Guide*.
2803
+ # Valid only if the policy type is `SimpleScaling`. For more
2804
+ # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
2805
+ # in the *Amazon EC2 Auto Scaling User Guide*.
2644
2806
  #
2645
2807
  #
2646
2808
  #
@@ -2657,15 +2819,15 @@ module Aws::AutoScaling
2657
2819
  # If you specify a metric value that doesn't correspond to a step
2658
2820
  # adjustment for the policy, the call returns an error.
2659
2821
  #
2660
- # Conditional: This parameter is required if the policy type is
2661
- # `StepScaling` and not supported otherwise.
2822
+ # Required if the policy type is `StepScaling` and not supported
2823
+ # otherwise.
2662
2824
  # @return [Float]
2663
2825
  #
2664
2826
  # @!attribute [rw] breach_threshold
2665
2827
  # The breach threshold for the alarm.
2666
2828
  #
2667
- # Conditional: This parameter is required if the policy type is
2668
- # `StepScaling` and not supported otherwise.
2829
+ # Required if the policy type is `StepScaling` and not supported
2830
+ # otherwise.
2669
2831
  # @return [Float]
2670
2832
  #
2671
2833
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicyType AWS API Documentation
@@ -2676,6 +2838,7 @@ module Aws::AutoScaling
2676
2838
  :honor_cooldown,
2677
2839
  :metric_value,
2678
2840
  :breach_threshold)
2841
+ SENSITIVE = []
2679
2842
  include Aws::Structure
2680
2843
  end
2681
2844
 
@@ -2687,6 +2850,7 @@ module Aws::AutoScaling
2687
2850
  #
2688
2851
  class ExitStandbyAnswer < Struct.new(
2689
2852
  :activities)
2853
+ SENSITIVE = []
2690
2854
  include Aws::Structure
2691
2855
  end
2692
2856
 
@@ -2711,6 +2875,7 @@ module Aws::AutoScaling
2711
2875
  class ExitStandbyQuery < Struct.new(
2712
2876
  :instance_ids,
2713
2877
  :auto_scaling_group_name)
2878
+ SENSITIVE = []
2714
2879
  include Aws::Structure
2715
2880
  end
2716
2881
 
@@ -2735,6 +2900,7 @@ module Aws::AutoScaling
2735
2900
  :scheduled_action_name,
2736
2901
  :error_code,
2737
2902
  :error_message)
2903
+ SENSITIVE = []
2738
2904
  include Aws::Structure
2739
2905
  end
2740
2906
 
@@ -2770,6 +2936,7 @@ module Aws::AutoScaling
2770
2936
  class Filter < Struct.new(
2771
2937
  :name,
2772
2938
  :values)
2939
+ SENSITIVE = []
2773
2940
  include Aws::Structure
2774
2941
  end
2775
2942
 
@@ -2831,6 +2998,7 @@ module Aws::AutoScaling
2831
2998
  :launch_template,
2832
2999
  :protected_from_scale_in,
2833
3000
  :weighted_capacity)
3001
+ SENSITIVE = []
2834
3002
  include Aws::Structure
2835
3003
  end
2836
3004
 
@@ -2853,10 +3021,97 @@ module Aws::AutoScaling
2853
3021
  #
2854
3022
  class InstanceMonitoring < Struct.new(
2855
3023
  :enabled)
3024
+ SENSITIVE = []
3025
+ include Aws::Structure
3026
+ end
3027
+
3028
+ # Describes an instance refresh for an Auto Scaling group.
3029
+ #
3030
+ # @!attribute [rw] instance_refresh_id
3031
+ # The instance refresh ID.
3032
+ # @return [String]
3033
+ #
3034
+ # @!attribute [rw] auto_scaling_group_name
3035
+ # The name of the Auto Scaling group.
3036
+ # @return [String]
3037
+ #
3038
+ # @!attribute [rw] status
3039
+ # The current status for the instance refresh operation:
3040
+ #
3041
+ # * `Pending` - The request was created, but the operation has not
3042
+ # started.
3043
+ #
3044
+ # * `InProgress` - The operation is in progress.
3045
+ #
3046
+ # * `Successful` - The operation completed successfully.
3047
+ #
3048
+ # * `Failed` - The operation failed to complete. You can troubleshoot
3049
+ # using the status reason and the scaling activities.
3050
+ #
3051
+ # * `Cancelling` - An ongoing operation is being cancelled.
3052
+ # Cancellation does not roll back any replacements that have already
3053
+ # been completed, but it prevents new replacements from being
3054
+ # started.
3055
+ #
3056
+ # * `Cancelled` - The operation is cancelled.
3057
+ # @return [String]
3058
+ #
3059
+ # @!attribute [rw] status_reason
3060
+ # Provides more details about the current status of the instance
3061
+ # refresh.
3062
+ # @return [String]
3063
+ #
3064
+ # @!attribute [rw] start_time
3065
+ # The date and time at which the instance refresh began.
3066
+ # @return [Time]
3067
+ #
3068
+ # @!attribute [rw] end_time
3069
+ # The date and time at which the instance refresh ended.
3070
+ # @return [Time]
3071
+ #
3072
+ # @!attribute [rw] percentage_complete
3073
+ # The percentage of the instance refresh that is complete. For each
3074
+ # instance replacement, Amazon EC2 Auto Scaling tracks the instance's
3075
+ # health status and warm-up time. When the instance's health status
3076
+ # changes to healthy and the specified warm-up time passes, the
3077
+ # instance is considered updated and added to the percentage complete.
3078
+ # @return [Integer]
3079
+ #
3080
+ # @!attribute [rw] instances_to_update
3081
+ # The number of instances remaining to update before the instance
3082
+ # refresh is complete.
3083
+ # @return [Integer]
3084
+ #
3085
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceRefresh AWS API Documentation
3086
+ #
3087
+ class InstanceRefresh < Struct.new(
3088
+ :instance_refresh_id,
3089
+ :auto_scaling_group_name,
3090
+ :status,
3091
+ :status_reason,
3092
+ :start_time,
3093
+ :end_time,
3094
+ :percentage_complete,
3095
+ :instances_to_update)
3096
+ SENSITIVE = []
2856
3097
  include Aws::Structure
2857
3098
  end
2858
3099
 
2859
- # Describes an instances distribution for an Auto Scaling group with
3100
+ # The request failed because an active instance refresh operation
3101
+ # already exists for the specified Auto Scaling group.
3102
+ #
3103
+ # @!attribute [rw] message
3104
+ # @return [String]
3105
+ #
3106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceRefreshInProgressFault AWS API Documentation
3107
+ #
3108
+ class InstanceRefreshInProgressFault < Struct.new(
3109
+ :message)
3110
+ SENSITIVE = []
3111
+ include Aws::Structure
3112
+ end
3113
+
3114
+ # Describes an instances distribution for an Auto Scaling group with a
2860
3115
  # MixedInstancesPolicy.
2861
3116
  #
2862
3117
  # The instances distribution specifies the distribution of On-Demand
@@ -2984,6 +3239,7 @@ module Aws::AutoScaling
2984
3239
  :spot_allocation_strategy,
2985
3240
  :spot_instance_pools,
2986
3241
  :spot_max_price)
3242
+ SENSITIVE = []
2987
3243
  include Aws::Structure
2988
3244
  end
2989
3245
 
@@ -2996,6 +3252,7 @@ module Aws::AutoScaling
2996
3252
  #
2997
3253
  class InvalidNextToken < Struct.new(
2998
3254
  :message)
3255
+ SENSITIVE = []
2999
3256
  include Aws::Structure
3000
3257
  end
3001
3258
 
@@ -3218,6 +3475,7 @@ module Aws::AutoScaling
3218
3475
  :ebs_optimized,
3219
3476
  :associate_public_ip_address,
3220
3477
  :placement_tenancy)
3478
+ SENSITIVE = []
3221
3479
  include Aws::Structure
3222
3480
  end
3223
3481
 
@@ -3236,6 +3494,7 @@ module Aws::AutoScaling
3236
3494
  #
3237
3495
  class LaunchConfigurationNameType < Struct.new(
3238
3496
  :launch_configuration_name)
3497
+ SENSITIVE = []
3239
3498
  include Aws::Structure
3240
3499
  end
3241
3500
 
@@ -3269,6 +3528,7 @@ module Aws::AutoScaling
3269
3528
  :launch_configuration_names,
3270
3529
  :next_token,
3271
3530
  :max_records)
3531
+ SENSITIVE = []
3272
3532
  include Aws::Structure
3273
3533
  end
3274
3534
 
@@ -3289,6 +3549,7 @@ module Aws::AutoScaling
3289
3549
  class LaunchConfigurationsType < Struct.new(
3290
3550
  :launch_configurations,
3291
3551
  :next_token)
3552
+ SENSITIVE = []
3292
3553
  include Aws::Structure
3293
3554
  end
3294
3555
 
@@ -3340,6 +3601,7 @@ module Aws::AutoScaling
3340
3601
  class LaunchTemplate < Struct.new(
3341
3602
  :launch_template_specification,
3342
3603
  :overrides)
3604
+ SENSITIVE = []
3343
3605
  include Aws::Structure
3344
3606
  end
3345
3607
 
@@ -3392,6 +3654,7 @@ module Aws::AutoScaling
3392
3654
  class LaunchTemplateOverrides < Struct.new(
3393
3655
  :instance_type,
3394
3656
  :weighted_capacity)
3657
+ SENSITIVE = []
3395
3658
  include Aws::Structure
3396
3659
  end
3397
3660
 
@@ -3469,6 +3732,7 @@ module Aws::AutoScaling
3469
3732
  :launch_template_id,
3470
3733
  :launch_template_name,
3471
3734
  :version)
3735
+ SENSITIVE = []
3472
3736
  include Aws::Structure
3473
3737
  end
3474
3738
 
@@ -3542,6 +3806,7 @@ module Aws::AutoScaling
3542
3806
  :heartbeat_timeout,
3543
3807
  :global_timeout,
3544
3808
  :default_result)
3809
+ SENSITIVE = []
3545
3810
  include Aws::Structure
3546
3811
  end
3547
3812
 
@@ -3651,6 +3916,7 @@ module Aws::AutoScaling
3651
3916
  :default_result,
3652
3917
  :notification_target_arn,
3653
3918
  :role_arn)
3919
+ SENSITIVE = []
3654
3920
  include Aws::Structure
3655
3921
  end
3656
3922
 
@@ -3670,6 +3936,7 @@ module Aws::AutoScaling
3670
3936
  #
3671
3937
  class LimitExceededFault < Struct.new(
3672
3938
  :message)
3939
+ SENSITIVE = []
3673
3940
  include Aws::Structure
3674
3941
  end
3675
3942
 
@@ -3716,6 +3983,7 @@ module Aws::AutoScaling
3716
3983
  class LoadBalancerState < Struct.new(
3717
3984
  :load_balancer_name,
3718
3985
  :state)
3986
+ SENSITIVE = []
3719
3987
  include Aws::Structure
3720
3988
  end
3721
3989
 
@@ -3759,6 +4027,7 @@ module Aws::AutoScaling
3759
4027
  class LoadBalancerTargetGroupState < Struct.new(
3760
4028
  :load_balancer_target_group_arn,
3761
4029
  :state)
4030
+ SENSITIVE = []
3762
4031
  include Aws::Structure
3763
4032
  end
3764
4033
 
@@ -3788,6 +4057,7 @@ module Aws::AutoScaling
3788
4057
  #
3789
4058
  class MetricCollectionType < Struct.new(
3790
4059
  :metric)
4060
+ SENSITIVE = []
3791
4061
  include Aws::Structure
3792
4062
  end
3793
4063
 
@@ -3814,6 +4084,7 @@ module Aws::AutoScaling
3814
4084
  class MetricDimension < Struct.new(
3815
4085
  :name,
3816
4086
  :value)
4087
+ SENSITIVE = []
3817
4088
  include Aws::Structure
3818
4089
  end
3819
4090
 
@@ -3827,6 +4098,7 @@ module Aws::AutoScaling
3827
4098
  #
3828
4099
  class MetricGranularityType < Struct.new(
3829
4100
  :granularity)
4101
+ SENSITIVE = []
3830
4102
  include Aws::Structure
3831
4103
  end
3832
4104
 
@@ -3840,7 +4112,7 @@ module Aws::AutoScaling
3840
4112
  # You can create a mixed instances policy for a new Auto Scaling group,
3841
4113
  # or you can create it for an existing group by updating the group to
3842
4114
  # specify `MixedInstancesPolicy` as the top-level parameter instead of a
3843
- # launch configuration or template. For more information, see
4115
+ # launch configuration or launch template. For more information, see
3844
4116
  # CreateAutoScalingGroup and UpdateAutoScalingGroup.
3845
4117
  #
3846
4118
  #
@@ -3877,8 +4149,7 @@ module Aws::AutoScaling
3877
4149
  # @!attribute [rw] launch_template
3878
4150
  # The launch template and instance types (overrides).
3879
4151
  #
3880
- # This parameter must be specified when creating a mixed instances
3881
- # policy.
4152
+ # Required when creating a mixed instances policy.
3882
4153
  # @return [Types::LaunchTemplate]
3883
4154
  #
3884
4155
  # @!attribute [rw] instances_distribution
@@ -3893,6 +4164,7 @@ module Aws::AutoScaling
3893
4164
  class MixedInstancesPolicy < Struct.new(
3894
4165
  :launch_template,
3895
4166
  :instances_distribution)
4167
+ SENSITIVE = []
3896
4168
  include Aws::Structure
3897
4169
  end
3898
4170
 
@@ -3927,6 +4199,7 @@ module Aws::AutoScaling
3927
4199
  :auto_scaling_group_name,
3928
4200
  :topic_arn,
3929
4201
  :notification_type)
4202
+ SENSITIVE = []
3930
4203
  include Aws::Structure
3931
4204
  end
3932
4205
 
@@ -3947,6 +4220,7 @@ module Aws::AutoScaling
3947
4220
  class PoliciesType < Struct.new(
3948
4221
  :scaling_policies,
3949
4222
  :next_token)
4223
+ SENSITIVE = []
3950
4224
  include Aws::Structure
3951
4225
  end
3952
4226
 
@@ -3966,6 +4240,7 @@ module Aws::AutoScaling
3966
4240
  class PolicyARNType < Struct.new(
3967
4241
  :policy_arn,
3968
4242
  :alarms)
4243
+ SENSITIVE = []
3969
4244
  include Aws::Structure
3970
4245
  end
3971
4246
 
@@ -4002,7 +4277,9 @@ module Aws::AutoScaling
4002
4277
  # `ALBRequestCountPerTarget` and there is a target group attached to
4003
4278
  # the Auto Scaling group.
4004
4279
  #
4005
- # The format is
4280
+ # Elastic Load Balancing sends data about your load balancers to
4281
+ # Amazon CloudWatch. CloudWatch collects the data and specifies the
4282
+ # format to use to access the data. The format is
4006
4283
  # `app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id
4007
4284
  # `, where
4008
4285
  #
@@ -4011,6 +4288,15 @@ module Aws::AutoScaling
4011
4288
  #
4012
4289
  # * `targetgroup/target-group-name/target-group-id ` is the final
4013
4290
  # portion of the target group ARN.
4291
+ #
4292
+ # To find the ARN for an Application Load Balancer, use the
4293
+ # [DescribeLoadBalancers][1] API operation. To find the ARN for the
4294
+ # target group, use the [DescribeTargetGroups][2] API operation.
4295
+ #
4296
+ #
4297
+ #
4298
+ # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html
4299
+ # [2]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
4014
4300
  # @return [String]
4015
4301
  #
4016
4302
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredefinedMetricSpecification AWS API Documentation
@@ -4018,6 +4304,7 @@ module Aws::AutoScaling
4018
4304
  class PredefinedMetricSpecification < Struct.new(
4019
4305
  :predefined_metric_type,
4020
4306
  :resource_label)
4307
+ SENSITIVE = []
4021
4308
  include Aws::Structure
4022
4309
  end
4023
4310
 
@@ -4045,6 +4332,8 @@ module Aws::AutoScaling
4045
4332
  #
4046
4333
  # * `HealthCheck`
4047
4334
  #
4335
+ # * `InstanceRefresh`
4336
+ #
4048
4337
  # * `ReplaceUnhealthy`
4049
4338
  #
4050
4339
  # * `ScheduledActions`
@@ -4054,6 +4343,7 @@ module Aws::AutoScaling
4054
4343
  #
4055
4344
  class ProcessType < Struct.new(
4056
4345
  :process_name)
4346
+ SENSITIVE = []
4057
4347
  include Aws::Structure
4058
4348
  end
4059
4349
 
@@ -4065,6 +4355,7 @@ module Aws::AutoScaling
4065
4355
  #
4066
4356
  class ProcessesType < Struct.new(
4067
4357
  :processes)
4358
+ SENSITIVE = []
4068
4359
  include Aws::Structure
4069
4360
  end
4070
4361
 
@@ -4102,8 +4393,8 @@ module Aws::AutoScaling
4102
4393
  #
4103
4394
  # * autoscaling:EC2\_INSTANCE\_TERMINATING
4104
4395
  #
4105
- # Conditional: This parameter is required for new lifecycle hooks, but
4106
- # optional when updating existing hooks.
4396
+ # Required for new lifecycle hooks, but optional when updating
4397
+ # existing hooks.
4107
4398
  # @return [String]
4108
4399
  #
4109
4400
  # @!attribute [rw] role_arn
@@ -4111,8 +4402,8 @@ module Aws::AutoScaling
4111
4402
  # publish to the specified notification target, for example, an Amazon
4112
4403
  # SNS topic or an Amazon SQS queue.
4113
4404
  #
4114
- # Conditional: This parameter is required for new lifecycle hooks, but
4115
- # optional when updating existing hooks.
4405
+ # Required for new lifecycle hooks, but optional when updating
4406
+ # existing hooks.
4116
4407
  # @return [String]
4117
4408
  #
4118
4409
  # @!attribute [rw] notification_target_arn
@@ -4167,6 +4458,7 @@ module Aws::AutoScaling
4167
4458
  :notification_metadata,
4168
4459
  :heartbeat_timeout,
4169
4460
  :default_result)
4461
+ SENSITIVE = []
4170
4462
  include Aws::Structure
4171
4463
  end
4172
4464
 
@@ -4200,6 +4492,7 @@ module Aws::AutoScaling
4200
4492
  :auto_scaling_group_name,
4201
4493
  :topic_arn,
4202
4494
  :notification_types)
4495
+ SENSITIVE = []
4203
4496
  include Aws::Structure
4204
4497
  end
4205
4498
 
@@ -4256,19 +4549,23 @@ module Aws::AutoScaling
4256
4549
  # @return [String]
4257
4550
  #
4258
4551
  # @!attribute [rw] policy_type
4259
- # The policy type. The valid values are `SimpleScaling`,
4260
- # `StepScaling`, and `TargetTrackingScaling`. If the policy type is
4261
- # null, the value is treated as `SimpleScaling`.
4552
+ # One of the following policy types:
4553
+ #
4554
+ # * `TargetTrackingScaling`
4555
+ #
4556
+ # * `StepScaling`
4557
+ #
4558
+ # * `SimpleScaling` (default)
4262
4559
  # @return [String]
4263
4560
  #
4264
4561
  # @!attribute [rw] adjustment_type
4265
- # Specifies whether the `ScalingAdjustment` parameter is an absolute
4266
- # number or a percentage of the current capacity. The valid values are
4562
+ # Specifies how the scaling adjustment is interpreted (either an
4563
+ # absolute number or a percentage). The valid values are
4267
4564
  # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
4268
4565
  #
4269
- # Valid only if the policy type is `StepScaling` or `SimpleScaling`.
4270
- # For more information, see [Scaling Adjustment Types][1] in the
4271
- # *Amazon EC2 Auto Scaling User Guide*.
4566
+ # Required if the policy type is `StepScaling` or `SimpleScaling`. For
4567
+ # more information, see [Scaling Adjustment Types][1] in the *Amazon
4568
+ # EC2 Auto Scaling User Guide*.
4272
4569
  #
4273
4570
  #
4274
4571
  #
@@ -4281,18 +4578,23 @@ module Aws::AutoScaling
4281
4578
  # @return [Integer]
4282
4579
  #
4283
4580
  # @!attribute [rw] min_adjustment_magnitude
4284
- # The minimum value to scale by when scaling by percentages. For
4285
- # example, suppose that you create a step scaling policy to scale out
4286
- # an Auto Scaling group by 25 percent and you specify a
4287
- # `MinAdjustmentMagnitude` of 2. If the group has 4 instances and the
4288
- # scaling policy is performed, 25 percent of 4 is 1. However, because
4289
- # you specified a `MinAdjustmentMagnitude` of 2, Amazon EC2 Auto
4290
- # Scaling scales out the group by 2 instances.
4291
- #
4292
- # Valid only if the policy type is `StepScaling` or `SimpleScaling`
4293
- # and the adjustment type is `PercentChangeInCapacity`. For more
4294
- # information, see [Scaling Adjustment Types][1] in the *Amazon EC2
4295
- # Auto Scaling User Guide*.
4581
+ # The minimum value to scale by when the adjustment type is
4582
+ # `PercentChangeInCapacity`. For example, suppose that you create a
4583
+ # step scaling policy to scale out an Auto Scaling group by 25 percent
4584
+ # and you specify a `MinAdjustmentMagnitude` of 2. If the group has 4
4585
+ # instances and the scaling policy is performed, 25 percent of 4 is 1.
4586
+ # However, because you specified a `MinAdjustmentMagnitude` of 2,
4587
+ # Amazon EC2 Auto Scaling scales out the group by 2 instances.
4588
+ #
4589
+ # Valid only if the policy type is `StepScaling` or `SimpleScaling`.
4590
+ # For more information, see [Scaling Adjustment Types][1] in the
4591
+ # *Amazon EC2 Auto Scaling User Guide*.
4592
+ #
4593
+ # <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
4594
+ # `MinAdjustmentMagnitude` to a value that is at least as large as
4595
+ # your largest instance weight.
4596
+ #
4597
+ # </note>
4296
4598
  #
4297
4599
  #
4298
4600
  #
@@ -4300,26 +4602,23 @@ module Aws::AutoScaling
4300
4602
  # @return [Integer]
4301
4603
  #
4302
4604
  # @!attribute [rw] scaling_adjustment
4303
- # The amount by which a simple scaling policy scales the Auto Scaling
4304
- # group in response to an alarm breach. The adjustment is based on the
4305
- # value that you specified in the `AdjustmentType` parameter (either
4306
- # an absolute number or a percentage). A positive value adds to the
4307
- # current capacity and a negative value subtracts from the current
4308
- # capacity. For exact capacity, you must specify a positive value.
4309
- #
4310
- # Conditional: If you specify `SimpleScaling` for the policy type, you
4311
- # must specify this parameter. (Not used with any other policy type.)
4605
+ # The amount by which to scale, based on the specified adjustment
4606
+ # type. A positive value adds to the current capacity while a negative
4607
+ # number removes from the current capacity. For exact capacity, you
4608
+ # must specify a positive value.
4609
+ #
4610
+ # Required if the policy type is `SimpleScaling`. (Not used with any
4611
+ # other policy type.)
4312
4612
  # @return [Integer]
4313
4613
  #
4314
4614
  # @!attribute [rw] cooldown
4315
- # The amount of time, in seconds, after a scaling activity completes
4316
- # before any further dynamic scaling activities can start. If this
4317
- # parameter is not specified, the default cooldown period for the
4318
- # group applies.
4615
+ # The duration of the policy's cooldown period, in seconds. When a
4616
+ # cooldown period is specified here, it overrides the default cooldown
4617
+ # period defined for the Auto Scaling group.
4319
4618
  #
4320
4619
  # Valid only if the policy type is `SimpleScaling`. For more
4321
- # information, see [Scaling Cooldowns][1] in the *Amazon EC2 Auto
4322
- # Scaling User Guide*.
4620
+ # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
4621
+ # in the *Amazon EC2 Auto Scaling User Guide*.
4323
4622
  #
4324
4623
  #
4325
4624
  #
@@ -4338,29 +4637,42 @@ module Aws::AutoScaling
4338
4637
  # A set of adjustments that enable you to scale based on the size of
4339
4638
  # the alarm breach.
4340
4639
  #
4341
- # Conditional: If you specify `StepScaling` for the policy type, you
4342
- # must specify this parameter. (Not used with any other policy type.)
4640
+ # Required if the policy type is `StepScaling`. (Not used with any
4641
+ # other policy type.)
4343
4642
  # @return [Array<Types::StepAdjustment>]
4344
4643
  #
4345
4644
  # @!attribute [rw] estimated_instance_warmup
4346
4645
  # The estimated time, in seconds, until a newly launched instance can
4347
- # contribute to the CloudWatch metrics. The default is to use the
4348
- # value specified for the default cooldown period for the group.
4646
+ # contribute to the CloudWatch metrics. If not provided, the default
4647
+ # is to use the value from the default cooldown period for the Auto
4648
+ # Scaling group.
4349
4649
  #
4350
- # Valid only if the policy type is `StepScaling` or
4351
- # `TargetTrackingScaling`.
4650
+ # Valid only if the policy type is `TargetTrackingScaling` or
4651
+ # `StepScaling`.
4352
4652
  # @return [Integer]
4353
4653
  #
4354
4654
  # @!attribute [rw] target_tracking_configuration
4355
4655
  # A target tracking scaling policy. Includes support for predefined or
4356
4656
  # customized metrics.
4357
4657
  #
4658
+ # The following predefined metrics are available:
4659
+ #
4660
+ # * `ASGAverageCPUUtilization`
4661
+ #
4662
+ # * `ASGAverageNetworkIn`
4663
+ #
4664
+ # * `ASGAverageNetworkOut`
4665
+ #
4666
+ # * `ALBRequestCountPerTarget`
4667
+ #
4668
+ # If you specify `ALBRequestCountPerTarget` for the metric, you must
4669
+ # specify the `ResourceLabel` parameter with the
4670
+ # `PredefinedMetricSpecification`.
4671
+ #
4358
4672
  # For more information, see [TargetTrackingConfiguration][1] in the
4359
4673
  # *Amazon EC2 Auto Scaling API Reference*.
4360
4674
  #
4361
- # Conditional: If you specify `TargetTrackingScaling` for the policy
4362
- # type, you must specify this parameter. (Not used with any other
4363
- # policy type.)
4675
+ # Required if the policy type is `TargetTrackingScaling`.
4364
4676
  #
4365
4677
  #
4366
4678
  #
@@ -4394,6 +4706,7 @@ module Aws::AutoScaling
4394
4706
  :estimated_instance_warmup,
4395
4707
  :target_tracking_configuration,
4396
4708
  :enabled)
4709
+ SENSITIVE = []
4397
4710
  include Aws::Structure
4398
4711
  end
4399
4712
 
@@ -4485,6 +4798,7 @@ module Aws::AutoScaling
4485
4798
  :min_size,
4486
4799
  :max_size,
4487
4800
  :desired_capacity)
4801
+ SENSITIVE = []
4488
4802
  include Aws::Structure
4489
4803
  end
4490
4804
 
@@ -4528,6 +4842,41 @@ module Aws::AutoScaling
4528
4842
  :auto_scaling_group_name,
4529
4843
  :lifecycle_action_token,
4530
4844
  :instance_id)
4845
+ SENSITIVE = []
4846
+ include Aws::Structure
4847
+ end
4848
+
4849
+ # Describes information used to start an instance refresh.
4850
+ #
4851
+ # @note When making an API call, you may pass RefreshPreferences
4852
+ # data as a hash:
4853
+ #
4854
+ # {
4855
+ # min_healthy_percentage: 1,
4856
+ # instance_warmup: 1,
4857
+ # }
4858
+ #
4859
+ # @!attribute [rw] min_healthy_percentage
4860
+ # The amount of capacity in the Auto Scaling group that must remain
4861
+ # healthy during an instance refresh to allow the operation to
4862
+ # continue, as a percentage of the desired capacity of the Auto
4863
+ # Scaling group (rounded up to the nearest integer). The default is
4864
+ # `90`.
4865
+ # @return [Integer]
4866
+ #
4867
+ # @!attribute [rw] instance_warmup
4868
+ # The number of seconds until a newly launched instance is configured
4869
+ # and ready to use. During this time, Amazon EC2 Auto Scaling does not
4870
+ # immediately move on to the next replacement. The default is to use
4871
+ # the value for the health check grace period defined for the group.
4872
+ # @return [Integer]
4873
+ #
4874
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
4875
+ #
4876
+ class RefreshPreferences < Struct.new(
4877
+ :min_healthy_percentage,
4878
+ :instance_warmup)
4879
+ SENSITIVE = []
4531
4880
  include Aws::Structure
4532
4881
  end
4533
4882
 
@@ -4542,6 +4891,7 @@ module Aws::AutoScaling
4542
4891
  #
4543
4892
  class ResourceContentionFault < Struct.new(
4544
4893
  :message)
4894
+ SENSITIVE = []
4545
4895
  include Aws::Structure
4546
4896
  end
4547
4897
 
@@ -4554,6 +4904,7 @@ module Aws::AutoScaling
4554
4904
  #
4555
4905
  class ResourceInUseFault < Struct.new(
4556
4906
  :message)
4907
+ SENSITIVE = []
4557
4908
  include Aws::Structure
4558
4909
  end
4559
4910
 
@@ -4567,6 +4918,7 @@ module Aws::AutoScaling
4567
4918
  #
4568
4919
  class ScalingActivityInProgressFault < Struct.new(
4569
4920
  :message)
4921
+ SENSITIVE = []
4570
4922
  include Aws::Structure
4571
4923
  end
4572
4924
 
@@ -4585,14 +4937,28 @@ module Aws::AutoScaling
4585
4937
  # @return [String]
4586
4938
  #
4587
4939
  # @!attribute [rw] policy_type
4588
- # The policy type. The valid values are `SimpleScaling`,
4589
- # `StepScaling`, and `TargetTrackingScaling`.
4940
+ # One of the following policy types:
4941
+ #
4942
+ # * `TargetTrackingScaling`
4943
+ #
4944
+ # * `StepScaling`
4945
+ #
4946
+ # * `SimpleScaling` (default)
4947
+ #
4948
+ # For more information, see [Target Tracking Scaling Policies][1] and
4949
+ # [Step and Simple Scaling Policies][2] in the *Amazon EC2 Auto
4950
+ # Scaling User Guide*.
4951
+ #
4952
+ #
4953
+ #
4954
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
4955
+ # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html
4590
4956
  # @return [String]
4591
4957
  #
4592
4958
  # @!attribute [rw] adjustment_type
4593
- # The adjustment type, which specifies how `ScalingAdjustment` is
4594
- # interpreted. The valid values are `ChangeInCapacity`,
4595
- # `ExactCapacity`, and `PercentChangeInCapacity`.
4959
+ # Specifies how the scaling adjustment is interpreted (either an
4960
+ # absolute number or a percentage). The valid values are
4961
+ # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
4596
4962
  # @return [String]
4597
4963
  #
4598
4964
  # @!attribute [rw] min_adjustment_step
@@ -4601,10 +4967,8 @@ module Aws::AutoScaling
4601
4967
  # @return [Integer]
4602
4968
  #
4603
4969
  # @!attribute [rw] min_adjustment_magnitude
4604
- # The minimum number of instances to scale. If the value of
4605
- # `AdjustmentType` is `PercentChangeInCapacity`, the scaling policy
4606
- # changes the `DesiredCapacity` of the Auto Scaling group by at least
4607
- # this many instances. Otherwise, the error is `ValidationError`.
4970
+ # The minimum value to scale by when the adjustment type is
4971
+ # `PercentChangeInCapacity`.
4608
4972
  # @return [Integer]
4609
4973
  #
4610
4974
  # @!attribute [rw] scaling_adjustment
@@ -4614,8 +4978,7 @@ module Aws::AutoScaling
4614
4978
  # @return [Integer]
4615
4979
  #
4616
4980
  # @!attribute [rw] cooldown
4617
- # The amount of time, in seconds, after a scaling activity completes
4618
- # before any further dynamic scaling activities can start.
4981
+ # The duration of the policy's cooldown period, in seconds.
4619
4982
  # @return [Integer]
4620
4983
  #
4621
4984
  # @!attribute [rw] step_adjustments
@@ -4664,6 +5027,7 @@ module Aws::AutoScaling
4664
5027
  :alarms,
4665
5028
  :target_tracking_configuration,
4666
5029
  :enabled)
5030
+ SENSITIVE = []
4667
5031
  include Aws::Structure
4668
5032
  end
4669
5033
 
@@ -4680,24 +5044,27 @@ module Aws::AutoScaling
4680
5044
  # @return [String]
4681
5045
  #
4682
5046
  # @!attribute [rw] scaling_processes
4683
- # One or more of the following processes. If you omit this parameter,
4684
- # all processes are specified.
5047
+ # One or more of the following processes:
4685
5048
  #
4686
5049
  # * `Launch`
4687
5050
  #
4688
5051
  # * `Terminate`
4689
5052
  #
4690
- # * `HealthCheck`
5053
+ # * `AddToLoadBalancer`
4691
5054
  #
4692
- # * `ReplaceUnhealthy`
5055
+ # * `AlarmNotification`
4693
5056
  #
4694
5057
  # * `AZRebalance`
4695
5058
  #
4696
- # * `AlarmNotification`
5059
+ # * `HealthCheck`
5060
+ #
5061
+ # * `InstanceRefresh`
5062
+ #
5063
+ # * `ReplaceUnhealthy`
4697
5064
  #
4698
5065
  # * `ScheduledActions`
4699
5066
  #
4700
- # * `AddToLoadBalancer`
5067
+ # If you omit this parameter, all processes are specified.
4701
5068
  # @return [Array<String>]
4702
5069
  #
4703
5070
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScalingProcessQuery AWS API Documentation
@@ -4705,6 +5072,7 @@ module Aws::AutoScaling
4705
5072
  class ScalingProcessQuery < Struct.new(
4706
5073
  :auto_scaling_group_name,
4707
5074
  :scaling_processes)
5075
+ SENSITIVE = []
4708
5076
  include Aws::Structure
4709
5077
  end
4710
5078
 
@@ -4725,6 +5093,7 @@ module Aws::AutoScaling
4725
5093
  class ScheduledActionsType < Struct.new(
4726
5094
  :scheduled_update_group_actions,
4727
5095
  :next_token)
5096
+ SENSITIVE = []
4728
5097
  include Aws::Structure
4729
5098
  end
4730
5099
 
@@ -4790,6 +5159,7 @@ module Aws::AutoScaling
4790
5159
  :min_size,
4791
5160
  :max_size,
4792
5161
  :desired_capacity)
5162
+ SENSITIVE = []
4793
5163
  include Aws::Structure
4794
5164
  end
4795
5165
 
@@ -4874,6 +5244,7 @@ module Aws::AutoScaling
4874
5244
  :min_size,
4875
5245
  :max_size,
4876
5246
  :desired_capacity)
5247
+ SENSITIVE = []
4877
5248
  include Aws::Structure
4878
5249
  end
4879
5250
 
@@ -4886,6 +5257,7 @@ module Aws::AutoScaling
4886
5257
  #
4887
5258
  class ServiceLinkedRoleFailure < Struct.new(
4888
5259
  :message)
5260
+ SENSITIVE = []
4889
5261
  include Aws::Structure
4890
5262
  end
4891
5263
 
@@ -4922,6 +5294,7 @@ module Aws::AutoScaling
4922
5294
  :auto_scaling_group_name,
4923
5295
  :desired_capacity,
4924
5296
  :honor_cooldown)
5297
+ SENSITIVE = []
4925
5298
  include Aws::Structure
4926
5299
  end
4927
5300
 
@@ -4966,6 +5339,7 @@ module Aws::AutoScaling
4966
5339
  :instance_id,
4967
5340
  :health_status,
4968
5341
  :should_respect_grace_period)
5342
+ SENSITIVE = []
4969
5343
  include Aws::Structure
4970
5344
  end
4971
5345
 
@@ -5001,6 +5375,73 @@ module Aws::AutoScaling
5001
5375
  :instance_ids,
5002
5376
  :auto_scaling_group_name,
5003
5377
  :protected_from_scale_in)
5378
+ SENSITIVE = []
5379
+ include Aws::Structure
5380
+ end
5381
+
5382
+ # @!attribute [rw] instance_refresh_id
5383
+ # A unique ID for tracking the progress of the request.
5384
+ # @return [String]
5385
+ #
5386
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefreshAnswer AWS API Documentation
5387
+ #
5388
+ class StartInstanceRefreshAnswer < Struct.new(
5389
+ :instance_refresh_id)
5390
+ SENSITIVE = []
5391
+ include Aws::Structure
5392
+ end
5393
+
5394
+ # @note When making an API call, you may pass StartInstanceRefreshType
5395
+ # data as a hash:
5396
+ #
5397
+ # {
5398
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5399
+ # strategy: "Rolling", # accepts Rolling
5400
+ # preferences: {
5401
+ # min_healthy_percentage: 1,
5402
+ # instance_warmup: 1,
5403
+ # },
5404
+ # }
5405
+ #
5406
+ # @!attribute [rw] auto_scaling_group_name
5407
+ # The name of the Auto Scaling group.
5408
+ # @return [String]
5409
+ #
5410
+ # @!attribute [rw] strategy
5411
+ # The strategy to use for the instance refresh. The only valid value
5412
+ # is `Rolling`.
5413
+ #
5414
+ # A rolling update is an update that is applied to all instances in an
5415
+ # Auto Scaling group until all instances have been updated. A rolling
5416
+ # update can fail due to failed health checks or if instances are on
5417
+ # standby or are protected from scale in. If the rolling update
5418
+ # process fails, any instances that were already replaced are not
5419
+ # rolled back to their previous configuration.
5420
+ # @return [String]
5421
+ #
5422
+ # @!attribute [rw] preferences
5423
+ # Set of preferences associated with the instance refresh request.
5424
+ #
5425
+ # If not provided, the default values are used. For
5426
+ # `MinHealthyPercentage`, the default value is `90`. For
5427
+ # `InstanceWarmup`, the default is to use the value specified for the
5428
+ # health check grace period for the Auto Scaling group.
5429
+ #
5430
+ # For more information, see [RefreshPreferences][1] in the *Amazon EC2
5431
+ # Auto Scaling API Reference*.
5432
+ #
5433
+ #
5434
+ #
5435
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_RefreshPreferences.html
5436
+ # @return [Types::RefreshPreferences]
5437
+ #
5438
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefreshType AWS API Documentation
5439
+ #
5440
+ class StartInstanceRefreshType < Struct.new(
5441
+ :auto_scaling_group_name,
5442
+ :strategy,
5443
+ :preferences)
5444
+ SENSITIVE = []
5004
5445
  include Aws::Structure
5005
5446
  end
5006
5447
 
@@ -5081,6 +5522,7 @@ module Aws::AutoScaling
5081
5522
  :metric_interval_lower_bound,
5082
5523
  :metric_interval_upper_bound,
5083
5524
  :scaling_adjustment)
5525
+ SENSITIVE = []
5084
5526
  include Aws::Structure
5085
5527
  end
5086
5528
 
@@ -5106,6 +5548,7 @@ module Aws::AutoScaling
5106
5548
  class SuspendedProcess < Struct.new(
5107
5549
  :process_name,
5108
5550
  :suspension_reason)
5551
+ SENSITIVE = []
5109
5552
  include Aws::Structure
5110
5553
  end
5111
5554
 
@@ -5152,6 +5595,7 @@ module Aws::AutoScaling
5152
5595
  :key,
5153
5596
  :value,
5154
5597
  :propagate_at_launch)
5598
+ SENSITIVE = []
5155
5599
  include Aws::Structure
5156
5600
  end
5157
5601
 
@@ -5187,6 +5631,7 @@ module Aws::AutoScaling
5187
5631
  :key,
5188
5632
  :value,
5189
5633
  :propagate_at_launch)
5634
+ SENSITIVE = []
5190
5635
  include Aws::Structure
5191
5636
  end
5192
5637
 
@@ -5207,6 +5652,7 @@ module Aws::AutoScaling
5207
5652
  class TagsType < Struct.new(
5208
5653
  :tags,
5209
5654
  :next_token)
5655
+ SENSITIVE = []
5210
5656
  include Aws::Structure
5211
5657
  end
5212
5658
 
@@ -5266,6 +5712,7 @@ module Aws::AutoScaling
5266
5712
  :customized_metric_specification,
5267
5713
  :target_value,
5268
5714
  :disable_scale_in)
5715
+ SENSITIVE = []
5269
5716
  include Aws::Structure
5270
5717
  end
5271
5718
 
@@ -5291,6 +5738,7 @@ module Aws::AutoScaling
5291
5738
  class TerminateInstanceInAutoScalingGroupType < Struct.new(
5292
5739
  :instance_id,
5293
5740
  :should_decrement_desired_capacity)
5741
+ SENSITIVE = []
5294
5742
  include Aws::Structure
5295
5743
  end
5296
5744
 
@@ -5413,13 +5861,12 @@ module Aws::AutoScaling
5413
5861
  # @!attribute [rw] default_cooldown
5414
5862
  # The amount of time, in seconds, after a scaling activity completes
5415
5863
  # before another scaling activity can start. The default value is
5416
- # `300`. This cooldown period is not used when a scaling-specific
5417
- # cooldown is specified.
5864
+ # `300`.
5418
5865
  #
5419
- # Cooldown periods are not supported for target tracking scaling
5420
- # policies, step scaling policies, or scheduled scaling. For more
5421
- # information, see [Scaling Cooldowns][1] in the *Amazon EC2 Auto
5422
- # Scaling User Guide*.
5866
+ # This setting applies when using simple scaling policies, but not
5867
+ # when using other scaling policies or scheduled scaling. For more
5868
+ # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
5869
+ # in the *Amazon EC2 Auto Scaling User Guide*.
5423
5870
  #
5424
5871
  #
5425
5872
  #
@@ -5445,8 +5892,7 @@ module Aws::AutoScaling
5445
5892
  # For more information, see [Health Check Grace Period][1] in the
5446
5893
  # *Amazon EC2 Auto Scaling User Guide*.
5447
5894
  #
5448
- # Conditional: This parameter is required if you are adding an `ELB`
5449
- # health check.
5895
+ # Required if you are adding an `ELB` health check.
5450
5896
  #
5451
5897
  #
5452
5898
  #
@@ -5551,6 +5997,7 @@ module Aws::AutoScaling
5551
5997
  :new_instances_protected_from_scale_in,
5552
5998
  :service_linked_role_arn,
5553
5999
  :max_instance_lifetime)
6000
+ SENSITIVE = []
5554
6001
  include Aws::Structure
5555
6002
  end
5556
6003