aws-sdk-autoscaling 1.29.0 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74d10a4fc46b086f5231d2ed59ecd5515c49f5b6
4
- data.tar.gz: 802a7c4ab011ff8c061f2fdf1a022139020f5ca2
3
+ metadata.gz: 288e141d45f5e335d1ea19f7adf053ebb99939a7
4
+ data.tar.gz: 615cee12a5afce59603543ce1a1ce5ba8694cdb4
5
5
  SHA512:
6
- metadata.gz: c0dac9592d47b7ad159317e312b1e43e9beae3f1c24429ce5179bbce03de748cb379065f18af3bc5a41bff11885d446c6ddb9d3d1dd9ac8712562d4b20306608
7
- data.tar.gz: 26dcba0378f970a0785e0d06eb68b16bd6cda9104b0bbb309939fa2dd9e6a3cf711fccf6d8f3ff1ece320898e13c17e3cc9176436e67a56e3c07c2c45724683c
6
+ metadata.gz: db683f319a28056e7e7327e3d0a2490ef81dbce65a7c31b1069b53092734a0ff14b09fe978be318c8e24ceac2f68d6e156729f63f9d1b6a965ce5b03eea9ea26
7
+ data.tar.gz: e3a7d661058fffee86e78ba3490654e56fcd78c1781e297ae8c2850011ef19555b00062e8d2932849fec0b344f6f585d31f1e124175b549f3b26a9237131fef9
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
53
53
  # @service
54
54
  module Aws::AutoScaling
55
55
 
56
- GEM_VERSION = '1.29.0'
56
+ GEM_VERSION = '1.30.0'
57
57
 
58
58
  end
@@ -174,6 +174,15 @@ module Aws::AutoScaling
174
174
  data[:service_linked_role_arn]
175
175
  end
176
176
 
177
+ # The maximum amount of time, in seconds, that an instance can be in
178
+ # service.
179
+ #
180
+ # Valid Range: Minimum value of 604800.
181
+ # @return [Integer]
182
+ def max_instance_lifetime
183
+ data[:max_instance_lifetime]
184
+ end
185
+
177
186
  # @!endgroup
178
187
 
179
188
  # @return [Client]
@@ -809,6 +818,7 @@ module Aws::AutoScaling
809
818
  # overrides: [
810
819
  # {
811
820
  # instance_type: "XmlStringMaxLen255",
821
+ # weighted_capacity: "XmlStringMaxLen32",
812
822
  # },
813
823
  # ],
814
824
  # },
@@ -833,18 +843,13 @@ module Aws::AutoScaling
833
843
  # termination_policies: ["XmlStringMaxLen1600"],
834
844
  # new_instances_protected_from_scale_in: false,
835
845
  # service_linked_role_arn: "ResourceName",
846
+ # max_instance_lifetime: 1,
836
847
  # })
837
848
  # @param [Hash] options ({})
838
849
  # @option options [String] :launch_configuration_name
839
850
  # The name of the launch configuration. If you specify
840
851
  # `LaunchConfigurationName` in your update request, you can't specify
841
852
  # `LaunchTemplate` or `MixedInstancesPolicy`.
842
- #
843
- # To update an Auto Scaling group with a launch configuration with
844
- # `InstanceMonitoring` set to `false`, you must first disable the
845
- # collection of group metrics. Otherwise, you get an error. If you have
846
- # previously enabled the collection of group metrics, you can disable it
847
- # using DisableMetricsCollection.
848
853
  # @option options [Types::LaunchTemplateSpecification] :launch_template
849
854
  # The launch template and version to use to specify the updates. If you
850
855
  # specify `LaunchTemplate` in your update request, you can't specify
@@ -963,6 +968,11 @@ module Aws::AutoScaling
963
968
  #
964
969
  #
965
970
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
971
+ # @option options [Integer] :max_instance_lifetime
972
+ # The maximum amount of time, in seconds, that an instance can be in
973
+ # service.
974
+ #
975
+ # Valid Range: Minimum value of 604800.
966
976
  # @return [AutoScalingGroup]
967
977
  def update(options = {})
968
978
  options = options.merge(auto_scaling_group_name: @name)
@@ -828,6 +828,12 @@ module Aws::AutoScaling
828
828
  #
829
829
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
830
830
  #
831
+ # @option params [Integer] :max_instance_lifetime
832
+ # The maximum amount of time, in seconds, that an instance can be in
833
+ # service.
834
+ #
835
+ # Valid Range: Minimum value of 604800.
836
+ #
831
837
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
832
838
  #
833
839
  #
@@ -899,6 +905,7 @@ module Aws::AutoScaling
899
905
  # overrides: [
900
906
  # {
901
907
  # instance_type: "XmlStringMaxLen255",
908
+ # weighted_capacity: "XmlStringMaxLen32",
902
909
  # },
903
910
  # ],
904
911
  # },
@@ -946,6 +953,7 @@ module Aws::AutoScaling
946
953
  # },
947
954
  # ],
948
955
  # service_linked_role_arn: "ResourceName",
956
+ # max_instance_lifetime: 1,
949
957
  # })
950
958
  #
951
959
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation
@@ -1117,18 +1125,14 @@ module Aws::AutoScaling
1117
1125
  # @option params [String] :spot_price
1118
1126
  # The maximum hourly price to be paid for any Spot Instance launched to
1119
1127
  # fulfill the request. Spot Instances are launched when the price you
1120
- # specify exceeds the current Spot market price. For more information,
1121
- # see [Launching Spot Instances in Your Auto Scaling Group][1] in the
1128
+ # specify exceeds the current Spot price. For more information, see
1129
+ # [Launching Spot Instances in Your Auto Scaling Group][1] in the
1122
1130
  # *Amazon EC2 Auto Scaling User Guide*.
1123
1131
  #
1124
- # If a Spot price is set, then the Auto Scaling group will only launch
1125
- # instances when the Spot price has been met, regardless of the setting
1126
- # in the Auto Scaling group's `DesiredCapacity`.
1127
- #
1128
- # <note markdown="1"> When you change your Spot price by creating a new launch
1132
+ # <note markdown="1"> When you change your maximum price by creating a new launch
1129
1133
  # configuration, running instances will continue to run as long as the
1130
- # Spot price for those running instances is higher than the current Spot
1131
- # market price.
1134
+ # maximum price for those running instances is higher than the current
1135
+ # Spot price.
1132
1136
  #
1133
1137
  # </note>
1134
1138
  #
@@ -1203,7 +1207,7 @@ module Aws::AutoScaling
1203
1207
  # For more information, see [Instance Placement Tenancy][1] in the
1204
1208
  # *Amazon EC2 Auto Scaling User Guide*.
1205
1209
  #
1206
- # Valid values: `default` \| `dedicated`
1210
+ # Valid Values: `default` \| `dedicated`
1207
1211
  #
1208
1212
  #
1209
1213
  #
@@ -1835,6 +1839,7 @@ module Aws::AutoScaling
1835
1839
  # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.launch_template_specification.version #=> String
1836
1840
  # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides #=> Array
1837
1841
  # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_type #=> String
1842
+ # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].weighted_capacity #=> String
1838
1843
  # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
1839
1844
  # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
1840
1845
  # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
@@ -1855,6 +1860,7 @@ module Aws::AutoScaling
1855
1860
  # resp.auto_scaling_groups[0].health_check_grace_period #=> Integer
1856
1861
  # resp.auto_scaling_groups[0].instances #=> Array
1857
1862
  # resp.auto_scaling_groups[0].instances[0].instance_id #=> String
1863
+ # resp.auto_scaling_groups[0].instances[0].instance_type #=> String
1858
1864
  # resp.auto_scaling_groups[0].instances[0].availability_zone #=> String
1859
1865
  # resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby"
1860
1866
  # resp.auto_scaling_groups[0].instances[0].health_status #=> String
@@ -1863,6 +1869,7 @@ module Aws::AutoScaling
1863
1869
  # resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_name #=> String
1864
1870
  # resp.auto_scaling_groups[0].instances[0].launch_template.version #=> String
1865
1871
  # resp.auto_scaling_groups[0].instances[0].protected_from_scale_in #=> Boolean
1872
+ # resp.auto_scaling_groups[0].instances[0].weighted_capacity #=> String
1866
1873
  # resp.auto_scaling_groups[0].created_time #=> Time
1867
1874
  # resp.auto_scaling_groups[0].suspended_processes #=> Array
1868
1875
  # resp.auto_scaling_groups[0].suspended_processes[0].process_name #=> String
@@ -1883,6 +1890,7 @@ module Aws::AutoScaling
1883
1890
  # resp.auto_scaling_groups[0].termination_policies[0] #=> String
1884
1891
  # resp.auto_scaling_groups[0].new_instances_protected_from_scale_in #=> Boolean
1885
1892
  # resp.auto_scaling_groups[0].service_linked_role_arn #=> String
1893
+ # resp.auto_scaling_groups[0].max_instance_lifetime #=> Integer
1886
1894
  # resp.next_token #=> String
1887
1895
  #
1888
1896
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups AWS API Documentation
@@ -1952,6 +1960,7 @@ module Aws::AutoScaling
1952
1960
  #
1953
1961
  # resp.auto_scaling_instances #=> Array
1954
1962
  # resp.auto_scaling_instances[0].instance_id #=> String
1963
+ # resp.auto_scaling_instances[0].instance_type #=> String
1955
1964
  # resp.auto_scaling_instances[0].auto_scaling_group_name #=> String
1956
1965
  # resp.auto_scaling_instances[0].availability_zone #=> String
1957
1966
  # resp.auto_scaling_instances[0].lifecycle_state #=> String
@@ -1961,6 +1970,7 @@ module Aws::AutoScaling
1961
1970
  # resp.auto_scaling_instances[0].launch_template.launch_template_name #=> String
1962
1971
  # resp.auto_scaling_instances[0].launch_template.version #=> String
1963
1972
  # resp.auto_scaling_instances[0].protected_from_scale_in #=> Boolean
1973
+ # resp.auto_scaling_instances[0].weighted_capacity #=> String
1964
1974
  # resp.next_token #=> String
1965
1975
  #
1966
1976
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances AWS API Documentation
@@ -3298,6 +3308,15 @@ module Aws::AutoScaling
3298
3308
 
3299
3309
  # Moves the specified instances into the standby state.
3300
3310
  #
3311
+ # If you choose to decrement the desired capacity of the Auto Scaling
3312
+ # group, the instances can enter standby as long as the desired capacity
3313
+ # of the Auto Scaling group after the instances are placed into standby
3314
+ # is equal to or greater than the minimum capacity of the group.
3315
+ #
3316
+ # If you choose not to decrement the desired capacity of the Auto
3317
+ # Scaling group, the Auto Scaling group launches new instances to
3318
+ # replace the instances on standby.
3319
+ #
3301
3320
  # For more information, see [Temporarily Removing Instances from Your
3302
3321
  # Auto Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
3303
3322
  #
@@ -3454,6 +3473,9 @@ module Aws::AutoScaling
3454
3473
 
3455
3474
  # Moves the specified instances out of the standby state.
3456
3475
  #
3476
+ # After you put the instances back in service, the desired capacity is
3477
+ # incremented.
3478
+ #
3457
3479
  # For more information, see [Temporarily Removing Instances from Your
3458
3480
  # Auto Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
3459
3481
  #
@@ -4472,8 +4494,7 @@ module Aws::AutoScaling
4472
4494
  # To update an Auto Scaling group, specify the name of the group and the
4473
4495
  # parameter that you want to change. Any parameters that you don't
4474
4496
  # specify are not changed by this update request. The new settings take
4475
- # effect on any scaling activities after this call returns. Scaling
4476
- # activities that are currently in progress aren't affected.
4497
+ # effect on any scaling activities after this call returns.
4477
4498
  #
4478
4499
  # If you associate a new launch configuration or template with an Auto
4479
4500
  # Scaling group, all new instances will get the updated configuration.
@@ -4520,12 +4541,6 @@ module Aws::AutoScaling
4520
4541
  # `LaunchConfigurationName` in your update request, you can't specify
4521
4542
  # `LaunchTemplate` or `MixedInstancesPolicy`.
4522
4543
  #
4523
- # To update an Auto Scaling group with a launch configuration with
4524
- # `InstanceMonitoring` set to `false`, you must first disable the
4525
- # collection of group metrics. Otherwise, you get an error. If you have
4526
- # previously enabled the collection of group metrics, you can disable it
4527
- # using DisableMetricsCollection.
4528
- #
4529
4544
  # @option params [Types::LaunchTemplateSpecification] :launch_template
4530
4545
  # The launch template and version to use to specify the updates. If you
4531
4546
  # specify `LaunchTemplate` in your update request, you can't specify
@@ -4658,6 +4673,12 @@ module Aws::AutoScaling
4658
4673
  #
4659
4674
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
4660
4675
  #
4676
+ # @option params [Integer] :max_instance_lifetime
4677
+ # The maximum amount of time, in seconds, that an instance can be in
4678
+ # service.
4679
+ #
4680
+ # Valid Range: Minimum value of 604800.
4681
+ #
4661
4682
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4662
4683
  #
4663
4684
  #
@@ -4709,6 +4730,7 @@ module Aws::AutoScaling
4709
4730
  # overrides: [
4710
4731
  # {
4711
4732
  # instance_type: "XmlStringMaxLen255",
4733
+ # weighted_capacity: "XmlStringMaxLen32",
4712
4734
  # },
4713
4735
  # ],
4714
4736
  # },
@@ -4733,6 +4755,7 @@ module Aws::AutoScaling
4733
4755
  # termination_policies: ["XmlStringMaxLen1600"],
4734
4756
  # new_instances_protected_from_scale_in: false,
4735
4757
  # service_linked_role_arn: "ResourceName",
4758
+ # max_instance_lifetime: 1,
4736
4759
  # })
4737
4760
  #
4738
4761
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
@@ -4757,7 +4780,7 @@ module Aws::AutoScaling
4757
4780
  params: params,
4758
4781
  config: config)
4759
4782
  context[:gem_name] = 'aws-sdk-autoscaling'
4760
- context[:gem_version] = '1.29.0'
4783
+ context[:gem_version] = '1.30.0'
4761
4784
  Seahorse::Client::Request.new(handlers, context)
4762
4785
  end
4763
4786
 
@@ -146,6 +146,7 @@ module Aws::AutoScaling
146
146
  LoadBalancerStates = Shapes::ListShape.new(name: 'LoadBalancerStates')
147
147
  LoadBalancerTargetGroupState = Shapes::StructureShape.new(name: 'LoadBalancerTargetGroupState')
148
148
  LoadBalancerTargetGroupStates = Shapes::ListShape.new(name: 'LoadBalancerTargetGroupStates')
149
+ MaxInstanceLifetime = Shapes::IntegerShape.new(name: 'MaxInstanceLifetime')
149
150
  MaxNumberOfAutoScalingGroups = Shapes::IntegerShape.new(name: 'MaxNumberOfAutoScalingGroups')
150
151
  MaxNumberOfLaunchConfigurations = Shapes::IntegerShape.new(name: 'MaxNumberOfLaunchConfigurations')
151
152
  MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
@@ -329,6 +330,7 @@ module Aws::AutoScaling
329
330
  AutoScalingGroup.add_member(:termination_policies, Shapes::ShapeRef.new(shape: TerminationPolicies, location_name: "TerminationPolicies"))
330
331
  AutoScalingGroup.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
331
332
  AutoScalingGroup.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
333
+ AutoScalingGroup.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
332
334
  AutoScalingGroup.struct_class = Types::AutoScalingGroup
333
335
 
334
336
  AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: ResourceName)
@@ -345,6 +347,7 @@ module Aws::AutoScaling
345
347
  AutoScalingGroupsType.struct_class = Types::AutoScalingGroupsType
346
348
 
347
349
  AutoScalingInstanceDetails.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, required: true, location_name: "InstanceId"))
350
+ AutoScalingInstanceDetails.add_member(:instance_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceType"))
348
351
  AutoScalingInstanceDetails.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
349
352
  AutoScalingInstanceDetails.add_member(:availability_zone, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AvailabilityZone"))
350
353
  AutoScalingInstanceDetails.add_member(:lifecycle_state, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, required: true, location_name: "LifecycleState"))
@@ -352,6 +355,7 @@ module Aws::AutoScaling
352
355
  AutoScalingInstanceDetails.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
353
356
  AutoScalingInstanceDetails.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
354
357
  AutoScalingInstanceDetails.add_member(:protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, required: true, location_name: "ProtectedFromScaleIn"))
358
+ AutoScalingInstanceDetails.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, location_name: "WeightedCapacity"))
355
359
  AutoScalingInstanceDetails.struct_class = Types::AutoScalingInstanceDetails
356
360
 
357
361
  AutoScalingInstances.member = Shapes::ShapeRef.new(shape: AutoScalingInstanceDetails)
@@ -418,6 +422,7 @@ module Aws::AutoScaling
418
422
  CreateAutoScalingGroupType.add_member(:lifecycle_hook_specification_list, Shapes::ShapeRef.new(shape: LifecycleHookSpecifications, location_name: "LifecycleHookSpecificationList"))
419
423
  CreateAutoScalingGroupType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
420
424
  CreateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
425
+ CreateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
421
426
  CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType
422
427
 
423
428
  CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
@@ -641,12 +646,14 @@ module Aws::AutoScaling
641
646
  Filters.member = Shapes::ShapeRef.new(shape: Filter)
642
647
 
643
648
  Instance.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, required: true, location_name: "InstanceId"))
649
+ Instance.add_member(:instance_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceType"))
644
650
  Instance.add_member(:availability_zone, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AvailabilityZone"))
645
651
  Instance.add_member(:lifecycle_state, Shapes::ShapeRef.new(shape: LifecycleState, required: true, location_name: "LifecycleState"))
646
652
  Instance.add_member(:health_status, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, required: true, location_name: "HealthStatus"))
647
653
  Instance.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
648
654
  Instance.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
649
655
  Instance.add_member(:protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, required: true, location_name: "ProtectedFromScaleIn"))
656
+ Instance.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, location_name: "WeightedCapacity"))
650
657
  Instance.struct_class = Types::Instance
651
658
 
652
659
  InstanceIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen19)
@@ -709,6 +716,7 @@ module Aws::AutoScaling
709
716
  LaunchTemplate.struct_class = Types::LaunchTemplate
710
717
 
711
718
  LaunchTemplateOverrides.add_member(:instance_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceType"))
719
+ LaunchTemplateOverrides.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, location_name: "WeightedCapacity"))
712
720
  LaunchTemplateOverrides.struct_class = Types::LaunchTemplateOverrides
713
721
 
714
722
  LaunchTemplateSpecification.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchTemplateId"))
@@ -1015,6 +1023,7 @@ module Aws::AutoScaling
1015
1023
  UpdateAutoScalingGroupType.add_member(:termination_policies, Shapes::ShapeRef.new(shape: TerminationPolicies, location_name: "TerminationPolicies"))
1016
1024
  UpdateAutoScalingGroupType.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
1017
1025
  UpdateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
1026
+ UpdateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
1018
1027
  UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
1019
1028
 
1020
1029
  Values.member = Shapes::ShapeRef.new(shape: XmlString)
@@ -40,6 +40,12 @@ module Aws::AutoScaling
40
40
  end
41
41
  alias :instance_id :id
42
42
 
43
+ # The instance type of the EC2 instance.
44
+ # @return [String]
45
+ def instance_type
46
+ data[:instance_type]
47
+ end
48
+
43
49
  # The Availability Zone for the instance.
44
50
  # @return [String]
45
51
  def availability_zone
@@ -81,6 +87,15 @@ module Aws::AutoScaling
81
87
  data[:protected_from_scale_in]
82
88
  end
83
89
 
90
+ # The number of capacity units contributed by the instance based on its
91
+ # instance type.
92
+ #
93
+ # Valid Range: Minimum value of 1. Maximum value of 999.
94
+ # @return [String]
95
+ def weighted_capacity
96
+ data[:weighted_capacity]
97
+ end
98
+
84
99
  # @!endgroup
85
100
 
86
101
  # @return [Client]
@@ -179,7 +179,7 @@ module Aws::AutoScaling
179
179
 
180
180
  # The maximum hourly price to be paid for any Spot Instance launched to
181
181
  # fulfill the request. Spot Instances are launched when the price you
182
- # specify exceeds the current Spot market price.
182
+ # specify exceeds the current Spot price.
183
183
  #
184
184
  # For more information, see [Launching Spot Instances in Your Auto
185
185
  # Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
@@ -41,6 +41,7 @@ module Aws::AutoScaling
41
41
  # overrides: [
42
42
  # {
43
43
  # instance_type: "XmlStringMaxLen255",
44
+ # weighted_capacity: "XmlStringMaxLen32",
44
45
  # },
45
46
  # ],
46
47
  # },
@@ -88,6 +89,7 @@ module Aws::AutoScaling
88
89
  # },
89
90
  # ],
90
91
  # service_linked_role_arn: "ResourceName",
92
+ # max_instance_lifetime: 1,
91
93
  # })
92
94
  # @param [Hash] options ({})
93
95
  # @option options [required, String] :auto_scaling_group_name
@@ -298,6 +300,11 @@ module Aws::AutoScaling
298
300
  #
299
301
  #
300
302
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
303
+ # @option options [Integer] :max_instance_lifetime
304
+ # The maximum amount of time, in seconds, that an instance can be in
305
+ # service.
306
+ #
307
+ # Valid Range: Minimum value of 604800.
301
308
  # @return [AutoScalingGroup]
302
309
  def create_group(options = {})
303
310
  resp = @client.create_auto_scaling_group(options)
@@ -477,18 +484,14 @@ module Aws::AutoScaling
477
484
  # @option options [String] :spot_price
478
485
  # The maximum hourly price to be paid for any Spot Instance launched to
479
486
  # fulfill the request. Spot Instances are launched when the price you
480
- # specify exceeds the current Spot market price. For more information,
481
- # see [Launching Spot Instances in Your Auto Scaling Group][1] in the
487
+ # specify exceeds the current Spot price. For more information, see
488
+ # [Launching Spot Instances in Your Auto Scaling Group][1] in the
482
489
  # *Amazon EC2 Auto Scaling User Guide*.
483
490
  #
484
- # If a Spot price is set, then the Auto Scaling group will only launch
485
- # instances when the Spot price has been met, regardless of the setting
486
- # in the Auto Scaling group's `DesiredCapacity`.
487
- #
488
- # <note markdown="1"> When you change your Spot price by creating a new launch
491
+ # <note markdown="1"> When you change your maximum price by creating a new launch
489
492
  # configuration, running instances will continue to run as long as the
490
- # Spot price for those running instances is higher than the current Spot
491
- # market price.
493
+ # maximum price for those running instances is higher than the current
494
+ # Spot price.
492
495
  #
493
496
  # </note>
494
497
  #
@@ -559,7 +562,7 @@ module Aws::AutoScaling
559
562
  # For more information, see [Instance Placement Tenancy][1] in the
560
563
  # *Amazon EC2 Auto Scaling User Guide*.
561
564
  #
562
- # Valid values: `default` \| `dedicated`
565
+ # Valid Values: `default` \| `dedicated`
563
566
  #
564
567
  #
565
568
  #
@@ -341,6 +341,13 @@ module Aws::AutoScaling
341
341
  # Auto Scaling group uses to call other AWS services on your behalf.
342
342
  # @return [String]
343
343
  #
344
+ # @!attribute [rw] max_instance_lifetime
345
+ # The maximum amount of time, in seconds, that an instance can be in
346
+ # service.
347
+ #
348
+ # Valid Range: Minimum value of 604800.
349
+ # @return [Integer]
350
+ #
344
351
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
345
352
  #
346
353
  class AutoScalingGroup < Struct.new(
@@ -368,7 +375,8 @@ module Aws::AutoScaling
368
375
  :tags,
369
376
  :termination_policies,
370
377
  :new_instances_protected_from_scale_in,
371
- :service_linked_role_arn)
378
+ :service_linked_role_arn,
379
+ :max_instance_lifetime)
372
380
  include Aws::Structure
373
381
  end
374
382
 
@@ -435,6 +443,10 @@ module Aws::AutoScaling
435
443
  # The ID of the instance.
436
444
  # @return [String]
437
445
  #
446
+ # @!attribute [rw] instance_type
447
+ # The instance type of the EC2 instance.
448
+ # @return [String]
449
+ #
438
450
  # @!attribute [rw] auto_scaling_group_name
439
451
  # The name of the Auto Scaling group for the instance.
440
452
  # @return [String]
@@ -469,17 +481,26 @@ module Aws::AutoScaling
469
481
  # Amazon EC2 Auto Scaling when scaling in.
470
482
  # @return [Boolean]
471
483
  #
484
+ # @!attribute [rw] weighted_capacity
485
+ # The number of capacity units contributed by the instance based on
486
+ # its instance type.
487
+ #
488
+ # Valid Range: Minimum value of 1. Maximum value of 999.
489
+ # @return [String]
490
+ #
472
491
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingInstanceDetails AWS API Documentation
473
492
  #
474
493
  class AutoScalingInstanceDetails < Struct.new(
475
494
  :instance_id,
495
+ :instance_type,
476
496
  :auto_scaling_group_name,
477
497
  :availability_zone,
478
498
  :lifecycle_state,
479
499
  :health_status,
480
500
  :launch_configuration_name,
481
501
  :launch_template,
482
- :protected_from_scale_in)
502
+ :protected_from_scale_in,
503
+ :weighted_capacity)
483
504
  include Aws::Structure
484
505
  end
485
506
 
@@ -712,6 +733,7 @@ module Aws::AutoScaling
712
733
  # overrides: [
713
734
  # {
714
735
  # instance_type: "XmlStringMaxLen255",
736
+ # weighted_capacity: "XmlStringMaxLen32",
715
737
  # },
716
738
  # ],
717
739
  # },
@@ -759,6 +781,7 @@ module Aws::AutoScaling
759
781
  # },
760
782
  # ],
761
783
  # service_linked_role_arn: "ResourceName",
784
+ # max_instance_lifetime: 1,
762
785
  # }
763
786
  #
764
787
  # @!attribute [rw] auto_scaling_group_name
@@ -1012,6 +1035,13 @@ module Aws::AutoScaling
1012
1035
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
1013
1036
  # @return [String]
1014
1037
  #
1038
+ # @!attribute [rw] max_instance_lifetime
1039
+ # The maximum amount of time, in seconds, that an instance can be in
1040
+ # service.
1041
+ #
1042
+ # Valid Range: Minimum value of 604800.
1043
+ # @return [Integer]
1044
+ #
1015
1045
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType AWS API Documentation
1016
1046
  #
1017
1047
  class CreateAutoScalingGroupType < Struct.new(
@@ -1035,7 +1065,8 @@ module Aws::AutoScaling
1035
1065
  :new_instances_protected_from_scale_in,
1036
1066
  :lifecycle_hook_specification_list,
1037
1067
  :tags,
1038
- :service_linked_role_arn)
1068
+ :service_linked_role_arn,
1069
+ :max_instance_lifetime)
1039
1070
  include Aws::Structure
1040
1071
  end
1041
1072
 
@@ -1237,18 +1268,14 @@ module Aws::AutoScaling
1237
1268
  # @!attribute [rw] spot_price
1238
1269
  # The maximum hourly price to be paid for any Spot Instance launched
1239
1270
  # to fulfill the request. Spot Instances are launched when the price
1240
- # you specify exceeds the current Spot market price. For more
1241
- # information, see [Launching Spot Instances in Your Auto Scaling
1242
- # Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
1243
- #
1244
- # If a Spot price is set, then the Auto Scaling group will only launch
1245
- # instances when the Spot price has been met, regardless of the
1246
- # setting in the Auto Scaling group's `DesiredCapacity`.
1271
+ # you specify exceeds the current Spot price. For more information,
1272
+ # see [Launching Spot Instances in Your Auto Scaling Group][1] in the
1273
+ # *Amazon EC2 Auto Scaling User Guide*.
1247
1274
  #
1248
- # <note markdown="1"> When you change your Spot price by creating a new launch
1275
+ # <note markdown="1"> When you change your maximum price by creating a new launch
1249
1276
  # configuration, running instances will continue to run as long as the
1250
- # Spot price for those running instances is higher than the current
1251
- # Spot market price.
1277
+ # maximum price for those running instances is higher than the current
1278
+ # Spot price.
1252
1279
  #
1253
1280
  # </note>
1254
1281
  #
@@ -1329,7 +1356,7 @@ module Aws::AutoScaling
1329
1356
  # For more information, see [Instance Placement Tenancy][1] in the
1330
1357
  # *Amazon EC2 Auto Scaling User Guide*.
1331
1358
  #
1332
- # Valid values: `default` \| `dedicated`
1359
+ # Valid Values: `default` \| `dedicated`
1333
1360
  #
1334
1361
  #
1335
1362
  #
@@ -2304,7 +2331,7 @@ module Aws::AutoScaling
2304
2331
  # information, see [Amazon EBS Volume Types][1] in the *Amazon EC2
2305
2332
  # User Guide for Linux Instances*.
2306
2333
  #
2307
- # Valid values: `standard` \| `io1` \| `gp2` \| `st1` \| `sc1`
2334
+ # Valid Values: `standard` \| `io1` \| `gp2` \| `st1` \| `sc1`
2308
2335
  #
2309
2336
  #
2310
2337
  #
@@ -2662,6 +2689,10 @@ module Aws::AutoScaling
2662
2689
  # The ID of the instance.
2663
2690
  # @return [String]
2664
2691
  #
2692
+ # @!attribute [rw] instance_type
2693
+ # The instance type of the EC2 instance.
2694
+ # @return [String]
2695
+ #
2665
2696
  # @!attribute [rw] availability_zone
2666
2697
  # The Availability Zone in which the instance is running.
2667
2698
  # @return [String]
@@ -2691,16 +2722,25 @@ module Aws::AutoScaling
2691
2722
  # Amazon EC2 Auto Scaling when scaling in.
2692
2723
  # @return [Boolean]
2693
2724
  #
2725
+ # @!attribute [rw] weighted_capacity
2726
+ # The number of capacity units contributed by the instance based on
2727
+ # its instance type.
2728
+ #
2729
+ # Valid Range: Minimum value of 1. Maximum value of 999.
2730
+ # @return [String]
2731
+ #
2694
2732
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Instance AWS API Documentation
2695
2733
  #
2696
2734
  class Instance < Struct.new(
2697
2735
  :instance_id,
2736
+ :instance_type,
2698
2737
  :availability_zone,
2699
2738
  :lifecycle_state,
2700
2739
  :health_status,
2701
2740
  :launch_configuration_name,
2702
2741
  :launch_template,
2703
- :protected_from_scale_in)
2742
+ :protected_from_scale_in,
2743
+ :weighted_capacity)
2704
2744
  include Aws::Structure
2705
2745
  end
2706
2746
 
@@ -2734,6 +2774,15 @@ module Aws::AutoScaling
2734
2774
  # Instances, and how the Auto Scaling group allocates instance types to
2735
2775
  # fulfill On-Demand and Spot capacity.
2736
2776
  #
2777
+ # When you update `SpotAllocationStrategy`, `SpotInstancePools`, or
2778
+ # `SpotMaxPrice`, this update action does not deploy any changes across
2779
+ # the running Amazon EC2 instances in the group. Your existing Spot
2780
+ # Instances continue to run as long as the maximum price for those
2781
+ # instances is higher than the current Spot price. When scale out
2782
+ # occurs, Amazon EC2 Auto Scaling launches instances based on the new
2783
+ # settings. When scale in occurs, Amazon EC2 Auto Scaling terminates
2784
+ # instances according to the group's termination policies.
2785
+ #
2737
2786
  # @note When making an API call, you may pass InstancesDistribution
2738
2787
  # data as a hash:
2739
2788
  #
@@ -2765,20 +2814,36 @@ module Aws::AutoScaling
2765
2814
  # be fulfilled by On-Demand Instances. This base portion is
2766
2815
  # provisioned first as your group scales.
2767
2816
  #
2768
- # The default value is `0`. If you leave this parameter set to `0`,
2769
- # On-Demand Instances are launched as a percentage of the Auto Scaling
2770
- # group's desired capacity, per the
2771
- # `OnDemandPercentageAboveBaseCapacity` setting.
2817
+ # Default if not set is 0. If you leave it set to 0, On-Demand
2818
+ # Instances are launched as a percentage of the Auto Scaling group's
2819
+ # desired capacity, per the `OnDemandPercentageAboveBaseCapacity`
2820
+ # setting.
2821
+ #
2822
+ # <note markdown="1"> An update to this setting means a gradual replacement of instances
2823
+ # to maintain the specified number of On-Demand Instances for your
2824
+ # base capacity. When replacing instances, Amazon EC2 Auto Scaling
2825
+ # launches new instances before terminating the old ones.
2826
+ #
2827
+ # </note>
2772
2828
  # @return [Integer]
2773
2829
  #
2774
2830
  # @!attribute [rw] on_demand_percentage_above_base_capacity
2775
2831
  # Controls the percentages of On-Demand Instances and Spot Instances
2776
- # for your additional capacity beyond `OnDemandBaseCapacity`. The
2777
- # range is 0–100.
2832
+ # for your additional capacity beyond `OnDemandBaseCapacity`.
2833
+ #
2834
+ # Default if not set is 100. If you leave it set to 100, the
2835
+ # percentages are 100% for On-Demand Instances and 0% for Spot
2836
+ # Instances.
2837
+ #
2838
+ # <note markdown="1"> An update to this setting means a gradual replacement of instances
2839
+ # to maintain the percentage of On-Demand Instances for your
2840
+ # additional capacity above the base capacity. When replacing
2841
+ # instances, Amazon EC2 Auto Scaling launches new instances before
2842
+ # terminating the old ones.
2843
+ #
2844
+ # </note>
2778
2845
  #
2779
- # The default value is `100`. If you leave this parameter set to
2780
- # `100`, the percentages are 100% for On-Demand Instances and 0% for
2781
- # Spot Instances.
2846
+ # Valid Range: Minimum value of 0. Maximum value of 100.
2782
2847
  # @return [Integer]
2783
2848
  #
2784
2849
  # @!attribute [rw] spot_allocation_strategy
@@ -2802,10 +2867,12 @@ module Aws::AutoScaling
2802
2867
  # @!attribute [rw] spot_instance_pools
2803
2868
  # The number of Spot Instance pools across which to allocate your Spot
2804
2869
  # Instances. The Spot pools are determined from the different instance
2805
- # types in the Overrides array of LaunchTemplate. The range is 1–20.
2806
- # The default value is `2`.
2870
+ # types in the Overrides array of LaunchTemplate. Default if not set
2871
+ # is 2.
2807
2872
  #
2808
- # Valid only when the Spot allocation strategy is `lowest-price`.
2873
+ # Used only when the Spot allocation strategy is `lowest-price`.
2874
+ #
2875
+ # Valid Range: Minimum value of 1. Maximum value of 20.
2809
2876
  # @return [Integer]
2810
2877
  #
2811
2878
  # @!attribute [rw] spot_max_price
@@ -2974,7 +3041,7 @@ module Aws::AutoScaling
2974
3041
  # @!attribute [rw] spot_price
2975
3042
  # The maximum hourly price to be paid for any Spot Instance launched
2976
3043
  # to fulfill the request. Spot Instances are launched when the price
2977
- # you specify exceeds the current Spot market price.
3044
+ # you specify exceeds the current Spot price.
2978
3045
  #
2979
3046
  # For more information, see [Launching Spot Instances in Your Auto
2980
3047
  # Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
@@ -3141,6 +3208,12 @@ module Aws::AutoScaling
3141
3208
  # launch template with multiple instance types that can be used to
3142
3209
  # launch On-Demand Instances and Spot Instances.
3143
3210
  #
3211
+ # When you update the launch template or overrides, existing Amazon EC2
3212
+ # instances continue to run. When scale out occurs, Amazon EC2 Auto
3213
+ # Scaling launches instances to match the new settings. When scale in
3214
+ # occurs, Amazon EC2 Auto Scaling terminates instances according to the
3215
+ # group's termination policies.
3216
+ #
3144
3217
  # @note When making an API call, you may pass LaunchTemplate
3145
3218
  # data as a hash:
3146
3219
  #
@@ -3153,6 +3226,7 @@ module Aws::AutoScaling
3153
3226
  # overrides: [
3154
3227
  # {
3155
3228
  # instance_type: "XmlStringMaxLen255",
3229
+ # weighted_capacity: "XmlStringMaxLen32",
3156
3230
  # },
3157
3231
  # ],
3158
3232
  # }
@@ -3163,9 +3237,10 @@ module Aws::AutoScaling
3163
3237
  # @return [Types::LaunchTemplateSpecification]
3164
3238
  #
3165
3239
  # @!attribute [rw] overrides
3166
- # Any parameters that you specify override the same parameters in the
3167
- # launch template. Currently, the only supported override is instance
3168
- # type. You must specify between 2 and 20 overrides.
3240
+ # An optional setting. Any parameters that you specify override the
3241
+ # same parameters in the launch template. Currently, the only
3242
+ # supported override is instance type. You can specify between 1 and
3243
+ # 20 instance types.
3169
3244
  # @return [Array<Types::LaunchTemplateOverrides>]
3170
3245
  #
3171
3246
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
@@ -3183,6 +3258,7 @@ module Aws::AutoScaling
3183
3258
  #
3184
3259
  # {
3185
3260
  # instance_type: "XmlStringMaxLen255",
3261
+ # weighted_capacity: "XmlStringMaxLen32",
3186
3262
  # }
3187
3263
  #
3188
3264
  # @!attribute [rw] instance_type
@@ -3196,10 +3272,22 @@ module Aws::AutoScaling
3196
3272
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes
3197
3273
  # @return [String]
3198
3274
  #
3275
+ # @!attribute [rw] weighted_capacity
3276
+ # The number of capacity units, which gives the instance type a
3277
+ # proportional weight to other instance types. For example, larger
3278
+ # instance types are generally weighted more than smaller instance
3279
+ # types. These are the same units that you chose to set the desired
3280
+ # capacity in terms of instances, or a performance attribute such as
3281
+ # vCPUs, memory, or I/O.
3282
+ #
3283
+ # Valid Range: Minimum value of 1. Maximum value of 999.
3284
+ # @return [String]
3285
+ #
3199
3286
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateOverrides AWS API Documentation
3200
3287
  #
3201
3288
  class LaunchTemplateOverrides < Struct.new(
3202
- :instance_type)
3289
+ :instance_type,
3290
+ :weighted_capacity)
3203
3291
  include Aws::Structure
3204
3292
  end
3205
3293
 
@@ -3641,6 +3729,7 @@ module Aws::AutoScaling
3641
3729
  # overrides: [
3642
3730
  # {
3643
3731
  # instance_type: "XmlStringMaxLen255",
3732
+ # weighted_capacity: "XmlStringMaxLen32",
3644
3733
  # },
3645
3734
  # ],
3646
3735
  # },
@@ -3664,8 +3753,8 @@ module Aws::AutoScaling
3664
3753
  # @!attribute [rw] instances_distribution
3665
3754
  # The instances distribution to use.
3666
3755
  #
3667
- # If you leave this parameter unspecified when creating a mixed
3668
- # instances policy, the default values are used.
3756
+ # If you leave this parameter unspecified, the value for each
3757
+ # parameter in `InstancesDistribution` uses a default value.
3669
3758
  # @return [Types::InstancesDistribution]
3670
3759
  #
3671
3760
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MixedInstancesPolicy AWS API Documentation
@@ -3761,12 +3850,7 @@ module Aws::AutoScaling
3761
3850
  # }
3762
3851
  #
3763
3852
  # @!attribute [rw] predefined_metric_type
3764
- # The metric type.
3765
- # @return [String]
3766
- #
3767
- # @!attribute [rw] resource_label
3768
- # Identifies the resource associated with the metric type. The
3769
- # following predefined metrics are available:
3853
+ # The metric type. The following predefined metrics are available:
3770
3854
  #
3771
3855
  # * `ASGAverageCPUUtilization` - Average CPU utilization of the Auto
3772
3856
  # Scaling group.
@@ -3779,19 +3863,23 @@ module Aws::AutoScaling
3779
3863
  #
3780
3864
  # * `ALBRequestCountPerTarget` - Number of requests completed per
3781
3865
  # target in an Application Load Balancer target group.
3866
+ # @return [String]
3867
+ #
3868
+ # @!attribute [rw] resource_label
3869
+ # Identifies the resource associated with the metric type. You can't
3870
+ # specify a resource label unless the metric type is
3871
+ # `ALBRequestCountPerTarget` and there is a target group attached to
3872
+ # the Auto Scaling group.
3782
3873
  #
3783
- # For predefined metric types `ASGAverageCPUUtilization`,
3784
- # `ASGAverageNetworkIn`, and `ASGAverageNetworkOut`, the parameter
3785
- # must not be specified as the resource associated with the metric
3786
- # type is the Auto Scaling group. For predefined metric type
3787
- # `ALBRequestCountPerTarget`, the parameter must be specified in the
3788
- # format:
3874
+ # The format is
3789
3875
  # `app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id
3790
- # `, where `app/load-balancer-name/load-balancer-id ` is the final
3791
- # portion of the load balancer ARN, and
3792
- # `targetgroup/target-group-name/target-group-id ` is the final
3793
- # portion of the target group ARN. The target group must be attached
3794
- # to the Auto Scaling group.
3876
+ # `, where
3877
+ #
3878
+ # * `app/load-balancer-name/load-balancer-id ` is the final portion of
3879
+ # the load balancer ARN, and
3880
+ #
3881
+ # * `targetgroup/target-group-name/target-group-id ` is the final
3882
+ # portion of the target group ARN.
3795
3883
  # @return [String]
3796
3884
  #
3797
3885
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredefinedMetricSpecification AWS API Documentation
@@ -5053,6 +5141,7 @@ module Aws::AutoScaling
5053
5141
  # overrides: [
5054
5142
  # {
5055
5143
  # instance_type: "XmlStringMaxLen255",
5144
+ # weighted_capacity: "XmlStringMaxLen32",
5056
5145
  # },
5057
5146
  # ],
5058
5147
  # },
@@ -5077,6 +5166,7 @@ module Aws::AutoScaling
5077
5166
  # termination_policies: ["XmlStringMaxLen1600"],
5078
5167
  # new_instances_protected_from_scale_in: false,
5079
5168
  # service_linked_role_arn: "ResourceName",
5169
+ # max_instance_lifetime: 1,
5080
5170
  # }
5081
5171
  #
5082
5172
  # @!attribute [rw] auto_scaling_group_name
@@ -5087,12 +5177,6 @@ module Aws::AutoScaling
5087
5177
  # The name of the launch configuration. If you specify
5088
5178
  # `LaunchConfigurationName` in your update request, you can't specify
5089
5179
  # `LaunchTemplate` or `MixedInstancesPolicy`.
5090
- #
5091
- # To update an Auto Scaling group with a launch configuration with
5092
- # `InstanceMonitoring` set to `false`, you must first disable the
5093
- # collection of group metrics. Otherwise, you get an error. If you
5094
- # have previously enabled the collection of group metrics, you can
5095
- # disable it using DisableMetricsCollection.
5096
5180
  # @return [String]
5097
5181
  #
5098
5182
  # @!attribute [rw] launch_template
@@ -5243,6 +5327,13 @@ module Aws::AutoScaling
5243
5327
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
5244
5328
  # @return [String]
5245
5329
  #
5330
+ # @!attribute [rw] max_instance_lifetime
5331
+ # The maximum amount of time, in seconds, that an instance can be in
5332
+ # service.
5333
+ #
5334
+ # Valid Range: Minimum value of 604800.
5335
+ # @return [Integer]
5336
+ #
5246
5337
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
5247
5338
  #
5248
5339
  class UpdateAutoScalingGroupType < Struct.new(
@@ -5261,7 +5352,8 @@ module Aws::AutoScaling
5261
5352
  :vpc_zone_identifier,
5262
5353
  :termination_policies,
5263
5354
  :new_instances_protected_from_scale_in,
5264
- :service_linked_role_arn)
5355
+ :service_linked_role_arn,
5356
+ :max_instance_lifetime)
5265
5357
  include Aws::Structure
5266
5358
  end
5267
5359
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 1.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core