aws-sdk-autoscaling 1.43.0 → 1.48.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
  SHA256:
3
- metadata.gz: afecae18046996033a2ef55bfc84f74433ff7ca9495fdd25d0f3e12cacbf94ff
4
- data.tar.gz: d52641542a1f514bd4b026b8133450c0102505fd1f969888fe20f472a4b7f91b
3
+ metadata.gz: 2733052946fdae41ba318a15526e6c1a721f9a9030746b47dbfc5b3dfed62726
4
+ data.tar.gz: add416cedb67d8d8f93cbf23dc135806e3f2fad6e157563f4a30fbb28766341f
5
5
  SHA512:
6
- metadata.gz: 8ba73d0b1da470a5ebe7c7f208e16b13816cb3bfeab19567f7f74120ea8b8a99b8f0e2f5a6549b194ea0c797711eb1399e79b186cea84a7ad9373adb922cb4fc
7
- data.tar.gz: bf045f371fb7e6061144f3c8844c4e673e0ad9692fe759eacb8009e51866bcd31f3e74727139c00e254996fbe064737de4a8c105e128601b2bca8d0247b120c9
6
+ metadata.gz: 0762332cc703ebe4b886c870b565d3f7e4b7648a9c75a4ecb48a7ac010313d2b4197d13dcfc4503fd6b4104e98a797fa7791764f7b639d29b9ff90a4d5d1e313
7
+ data.tar.gz: 6ca77c2aa42babfe0b944e5d56b42dcb7902db8e8544c509697aefcec764fd8eebb6aeaa94d91d3e44c01a5ee1c5b436f35136fd955b683279cbeea5e84e80d6
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -55,9 +56,9 @@ require_relative 'aws-sdk-autoscaling/customizations'
55
56
  #
56
57
  # See {Errors} for more information.
57
58
  #
58
- # @service
59
+ # @!group service
59
60
  module Aws::AutoScaling
60
61
 
61
- GEM_VERSION = '1.43.0'
62
+ GEM_VERSION = '1.48.0'
62
63
 
63
64
  end
@@ -186,6 +186,12 @@ module Aws::AutoScaling
186
186
  data[:max_instance_lifetime]
187
187
  end
188
188
 
189
+ # Indicates whether capacity rebalance is enabled.
190
+ # @return [Boolean]
191
+ def capacity_rebalance
192
+ data[:capacity_rebalance]
193
+ end
194
+
189
195
  # @!endgroup
190
196
 
191
197
  # @return [Client]
@@ -592,7 +598,7 @@ module Aws::AutoScaling
592
598
  #
593
599
  # * `SimpleScaling` (default)
594
600
  # @option options [String] :adjustment_type
595
- # Specifies how the scaling adjustment is interpreted (either an
601
+ # Specifies how the scaling adjustment is interpreted (for example, an
596
602
  # absolute number or a percentage). The valid values are
597
603
  # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
598
604
  #
@@ -915,6 +921,7 @@ module Aws::AutoScaling
915
921
  # new_instances_protected_from_scale_in: false,
916
922
  # service_linked_role_arn: "ResourceName",
917
923
  # max_instance_lifetime: 1,
924
+ # capacity_rebalance: false,
918
925
  # })
919
926
  # @param [Hash] options ({})
920
927
  # @option options [String] :launch_configuration_name
@@ -956,8 +963,8 @@ module Aws::AutoScaling
956
963
  # <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
957
964
  # Auto Scaling may need to go above `MaxSize` to meet your capacity
958
965
  # requirements. In this event, Amazon EC2 Auto Scaling will never go
959
- # above `MaxSize` by more than your maximum instance weight (weights
960
- # that define how many capacity units each instance contributes to the
966
+ # above `MaxSize` by more than your largest instance weight (weights
967
+ # that define how many units each instance contributes to the desired
961
968
  # capacity of the group).
962
969
  #
963
970
  # </note>
@@ -1065,6 +1072,20 @@ module Aws::AutoScaling
1065
1072
  #
1066
1073
  #
1067
1074
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
1075
+ # @option options [Boolean] :capacity_rebalance
1076
+ # Enables or disables capacity rebalance.
1077
+ #
1078
+ # You can enable capacity rebalancing for your Auto Scaling groups when
1079
+ # using Spot Instances. When you turn on capacity rebalancing, Amazon
1080
+ # EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
1081
+ # EC2 predicts that a Spot Instance is at an elevated risk of
1082
+ # interruption. After launching a new instance, it then terminates an
1083
+ # old instance. For more information, see [Amazon EC2 Auto Scaling
1084
+ # capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
1085
+ #
1086
+ #
1087
+ #
1088
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
1068
1089
  # @return [AutoScalingGroup]
1069
1090
  def update(options = {})
1070
1091
  options = options.merge(auto_scaling_group_name: @name)
@@ -85,13 +85,28 @@ module Aws::AutoScaling
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::AutoScaling
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -712,6 +727,13 @@ module Aws::AutoScaling
712
727
  # Scaling User Guide*. For more information, see [Auto Scaling
713
728
  # Groups][4] in the *Amazon EC2 Auto Scaling User Guide*.
714
729
  #
730
+ # Every Auto Scaling group has three size parameters (`DesiredCapacity`,
731
+ # `MaxSize`, and `MinSize`). Usually, you set these sizes based on a
732
+ # specific number of instances. However, if you configure a mixed
733
+ # instances policy that defines weights for the instance types, you must
734
+ # specify these sizes with the same units that you use for weighting
735
+ # instances.
736
+ #
715
737
  #
716
738
  #
717
739
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html
@@ -804,8 +826,8 @@ module Aws::AutoScaling
804
826
  # <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
805
827
  # Auto Scaling may need to go above `MaxSize` to meet your capacity
806
828
  # requirements. In this event, Amazon EC2 Auto Scaling will never go
807
- # above `MaxSize` by more than your maximum instance weight (weights
808
- # that define how many capacity units each instance contributes to the
829
+ # above `MaxSize` by more than your largest instance weight (weights
830
+ # that define how many units each instance contributes to the desired
809
831
  # capacity of the group).
810
832
  #
811
833
  # </note>
@@ -941,6 +963,22 @@ module Aws::AutoScaling
941
963
  #
942
964
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
943
965
  #
966
+ # @option params [Boolean] :capacity_rebalance
967
+ # Indicates whether capacity rebalance is enabled. Otherwise, capacity
968
+ # rebalance is disabled.
969
+ #
970
+ # You can enable capacity rebalancing for your Auto Scaling groups when
971
+ # using Spot Instances. When you turn on capacity rebalancing, Amazon
972
+ # EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
973
+ # EC2 predicts that a Spot Instance is at an elevated risk of
974
+ # interruption. After launching a new instance, it then terminates an
975
+ # old instance. For more information, see [Amazon EC2 Auto Scaling
976
+ # capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
977
+ #
978
+ #
979
+ #
980
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
981
+ #
944
982
  # @option params [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
945
983
  # One or more lifecycle hooks.
946
984
  #
@@ -1094,6 +1132,7 @@ module Aws::AutoScaling
1094
1132
  # vpc_zone_identifier: "XmlStringMaxLen2047",
1095
1133
  # termination_policies: ["XmlStringMaxLen1600"],
1096
1134
  # new_instances_protected_from_scale_in: false,
1135
+ # capacity_rebalance: false,
1097
1136
  # lifecycle_hook_specification_list: [
1098
1137
  # {
1099
1138
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
@@ -1281,7 +1320,7 @@ module Aws::AutoScaling
1281
1320
  #
1282
1321
  #
1283
1322
  #
1284
- # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics
1323
+ # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
1285
1324
  #
1286
1325
  # @option params [String] :spot_price
1287
1326
  # The maximum hourly price to be paid for any Spot Instance launched to
@@ -1374,6 +1413,15 @@ module Aws::AutoScaling
1374
1413
  #
1375
1414
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
1376
1415
  #
1416
+ # @option params [Types::InstanceMetadataOptions] :metadata_options
1417
+ # The metadata options for the instances. For more information, see
1418
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
1419
+ # Scaling User Guide*.
1420
+ #
1421
+ #
1422
+ #
1423
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
1424
+ #
1377
1425
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1378
1426
  #
1379
1427
  #
@@ -1428,6 +1476,11 @@ module Aws::AutoScaling
1428
1476
  # ebs_optimized: false,
1429
1477
  # associate_public_ip_address: false,
1430
1478
  # placement_tenancy: "XmlStringMaxLen64",
1479
+ # metadata_options: {
1480
+ # http_tokens: "optional", # accepts optional, required
1481
+ # http_put_response_hop_limit: 1,
1482
+ # http_endpoint: "disabled", # accepts disabled, enabled
1483
+ # },
1431
1484
  # })
1432
1485
  #
1433
1486
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration AWS API Documentation
@@ -2065,6 +2118,7 @@ module Aws::AutoScaling
2065
2118
  # resp.auto_scaling_groups[0].new_instances_protected_from_scale_in #=> Boolean
2066
2119
  # resp.auto_scaling_groups[0].service_linked_role_arn #=> String
2067
2120
  # resp.auto_scaling_groups[0].max_instance_lifetime #=> Integer
2121
+ # resp.auto_scaling_groups[0].capacity_rebalance #=> Boolean
2068
2122
  # resp.next_token #=> String
2069
2123
  #
2070
2124
  #
@@ -2411,6 +2465,9 @@ module Aws::AutoScaling
2411
2465
  # resp.launch_configurations[0].ebs_optimized #=> Boolean
2412
2466
  # resp.launch_configurations[0].associate_public_ip_address #=> Boolean
2413
2467
  # resp.launch_configurations[0].placement_tenancy #=> String
2468
+ # resp.launch_configurations[0].metadata_options.http_tokens #=> String, one of "optional", "required"
2469
+ # resp.launch_configurations[0].metadata_options.http_put_response_hop_limit #=> Integer
2470
+ # resp.launch_configurations[0].metadata_options.http_endpoint #=> String, one of "disabled", "enabled"
2414
2471
  # resp.next_token #=> String
2415
2472
  #
2416
2473
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations AWS API Documentation
@@ -4043,6 +4100,9 @@ module Aws::AutoScaling
4043
4100
  # Auto Scaling Group Scales][1] in the *Amazon EC2 Auto Scaling User
4044
4101
  # Guide*.
4045
4102
  #
4103
+ # If you exceed your maximum limit of SNS topics, which is 10 per Auto
4104
+ # Scaling group, the call fails.
4105
+ #
4046
4106
  #
4047
4107
  #
4048
4108
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html
@@ -4119,7 +4179,7 @@ module Aws::AutoScaling
4119
4179
  # * `SimpleScaling` (default)
4120
4180
  #
4121
4181
  # @option params [String] :adjustment_type
4122
- # Specifies how the scaling adjustment is interpreted (either an
4182
+ # Specifies how the scaling adjustment is interpreted (for example, an
4123
4183
  # absolute number or a percentage). The valid values are
4124
4184
  # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
4125
4185
  #
@@ -4709,6 +4769,9 @@ module Aws::AutoScaling
4709
4769
  # Auto Scaling group from terminating on scale in, see [Instance
4710
4770
  # Protection][1] in the *Amazon EC2 Auto Scaling User Guide*.
4711
4771
  #
4772
+ # If you exceed your maximum limit of instance IDs, which is 50 per Auto
4773
+ # Scaling group, the call fails.
4774
+ #
4712
4775
  #
4713
4776
  #
4714
4777
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
@@ -5097,8 +5160,8 @@ module Aws::AutoScaling
5097
5160
  # <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
5098
5161
  # Auto Scaling may need to go above `MaxSize` to meet your capacity
5099
5162
  # requirements. In this event, Amazon EC2 Auto Scaling will never go
5100
- # above `MaxSize` by more than your maximum instance weight (weights
5101
- # that define how many capacity units each instance contributes to the
5163
+ # above `MaxSize` by more than your largest instance weight (weights
5164
+ # that define how many units each instance contributes to the desired
5102
5165
  # capacity of the group).
5103
5166
  #
5104
5167
  # </note>
@@ -5218,6 +5281,21 @@ module Aws::AutoScaling
5218
5281
  #
5219
5282
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
5220
5283
  #
5284
+ # @option params [Boolean] :capacity_rebalance
5285
+ # Enables or disables capacity rebalance.
5286
+ #
5287
+ # You can enable capacity rebalancing for your Auto Scaling groups when
5288
+ # using Spot Instances. When you turn on capacity rebalancing, Amazon
5289
+ # EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
5290
+ # EC2 predicts that a Spot Instance is at an elevated risk of
5291
+ # interruption. After launching a new instance, it then terminates an
5292
+ # old instance. For more information, see [Amazon EC2 Auto Scaling
5293
+ # capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
5294
+ #
5295
+ #
5296
+ #
5297
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
5298
+ #
5221
5299
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5222
5300
  #
5223
5301
  #
@@ -5295,6 +5373,7 @@ module Aws::AutoScaling
5295
5373
  # new_instances_protected_from_scale_in: false,
5296
5374
  # service_linked_role_arn: "ResourceName",
5297
5375
  # max_instance_lifetime: 1,
5376
+ # capacity_rebalance: false,
5298
5377
  # })
5299
5378
  #
5300
5379
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
@@ -5319,7 +5398,7 @@ module Aws::AutoScaling
5319
5398
  params: params,
5320
5399
  config: config)
5321
5400
  context[:gem_name] = 'aws-sdk-autoscaling'
5322
- context[:gem_version] = '1.43.0'
5401
+ context[:gem_version] = '1.48.0'
5323
5402
  Seahorse::Client::Request.new(handlers, context)
5324
5403
  end
5325
5404
 
@@ -57,6 +57,7 @@ module Aws::AutoScaling
57
57
  BlockDeviceMappings = Shapes::ListShape.new(name: 'BlockDeviceMappings')
58
58
  CancelInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'CancelInstanceRefreshAnswer')
59
59
  CancelInstanceRefreshType = Shapes::StructureShape.new(name: 'CancelInstanceRefreshType')
60
+ CapacityRebalanceEnabled = Shapes::BooleanShape.new(name: 'CapacityRebalanceEnabled')
60
61
  ClassicLinkVPCSecurityGroups = Shapes::ListShape.new(name: 'ClassicLinkVPCSecurityGroups')
61
62
  CompleteLifecycleActionAnswer = Shapes::StructureShape.new(name: 'CompleteLifecycleActionAnswer')
62
63
  CompleteLifecycleActionType = Shapes::StructureShape.new(name: 'CompleteLifecycleActionType')
@@ -123,6 +124,10 @@ module Aws::AutoScaling
123
124
  HonorCooldown = Shapes::BooleanShape.new(name: 'HonorCooldown')
124
125
  Instance = Shapes::StructureShape.new(name: 'Instance')
125
126
  InstanceIds = Shapes::ListShape.new(name: 'InstanceIds')
127
+ InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
128
+ InstanceMetadataHttpPutResponseHopLimit = Shapes::IntegerShape.new(name: 'InstanceMetadataHttpPutResponseHopLimit')
129
+ InstanceMetadataHttpTokensState = Shapes::StringShape.new(name: 'InstanceMetadataHttpTokensState')
130
+ InstanceMetadataOptions = Shapes::StructureShape.new(name: 'InstanceMetadataOptions')
126
131
  InstanceMonitoring = Shapes::StructureShape.new(name: 'InstanceMonitoring')
127
132
  InstanceProtected = Shapes::BooleanShape.new(name: 'InstanceProtected')
128
133
  InstanceRefresh = Shapes::StructureShape.new(name: 'InstanceRefresh')
@@ -354,6 +359,7 @@ module Aws::AutoScaling
354
359
  AutoScalingGroup.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
355
360
  AutoScalingGroup.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
356
361
  AutoScalingGroup.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
362
+ AutoScalingGroup.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
357
363
  AutoScalingGroup.struct_class = Types::AutoScalingGroup
358
364
 
359
365
  AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: ResourceName)
@@ -448,6 +454,7 @@ module Aws::AutoScaling
448
454
  CreateAutoScalingGroupType.add_member(:vpc_zone_identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen2047, location_name: "VPCZoneIdentifier"))
449
455
  CreateAutoScalingGroupType.add_member(:termination_policies, Shapes::ShapeRef.new(shape: TerminationPolicies, location_name: "TerminationPolicies"))
450
456
  CreateAutoScalingGroupType.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
457
+ CreateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
451
458
  CreateAutoScalingGroupType.add_member(:lifecycle_hook_specification_list, Shapes::ShapeRef.new(shape: LifecycleHookSpecifications, location_name: "LifecycleHookSpecificationList"))
452
459
  CreateAutoScalingGroupType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
453
460
  CreateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
@@ -472,6 +479,7 @@ module Aws::AutoScaling
472
479
  CreateLaunchConfigurationType.add_member(:ebs_optimized, Shapes::ShapeRef.new(shape: EbsOptimized, location_name: "EbsOptimized"))
473
480
  CreateLaunchConfigurationType.add_member(:associate_public_ip_address, Shapes::ShapeRef.new(shape: AssociatePublicIpAddress, location_name: "AssociatePublicIpAddress"))
474
481
  CreateLaunchConfigurationType.add_member(:placement_tenancy, Shapes::ShapeRef.new(shape: XmlStringMaxLen64, location_name: "PlacementTenancy"))
482
+ CreateLaunchConfigurationType.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptions, location_name: "MetadataOptions"))
475
483
  CreateLaunchConfigurationType.struct_class = Types::CreateLaunchConfigurationType
476
484
 
477
485
  CreateOrUpdateTagsType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
@@ -697,6 +705,11 @@ module Aws::AutoScaling
697
705
 
698
706
  InstanceIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen19)
699
707
 
708
+ InstanceMetadataOptions.add_member(:http_tokens, Shapes::ShapeRef.new(shape: InstanceMetadataHttpTokensState, location_name: "HttpTokens"))
709
+ InstanceMetadataOptions.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: InstanceMetadataHttpPutResponseHopLimit, location_name: "HttpPutResponseHopLimit"))
710
+ InstanceMetadataOptions.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
711
+ InstanceMetadataOptions.struct_class = Types::InstanceMetadataOptions
712
+
700
713
  InstanceMonitoring.add_member(:enabled, Shapes::ShapeRef.new(shape: MonitoringEnabled, location_name: "Enabled"))
701
714
  InstanceMonitoring.struct_class = Types::InstanceMonitoring
702
715
 
@@ -749,6 +762,7 @@ module Aws::AutoScaling
749
762
  LaunchConfiguration.add_member(:ebs_optimized, Shapes::ShapeRef.new(shape: EbsOptimized, location_name: "EbsOptimized"))
750
763
  LaunchConfiguration.add_member(:associate_public_ip_address, Shapes::ShapeRef.new(shape: AssociatePublicIpAddress, location_name: "AssociatePublicIpAddress"))
751
764
  LaunchConfiguration.add_member(:placement_tenancy, Shapes::ShapeRef.new(shape: XmlStringMaxLen64, location_name: "PlacementTenancy"))
765
+ LaunchConfiguration.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptions, location_name: "MetadataOptions"))
752
766
  LaunchConfiguration.struct_class = Types::LaunchConfiguration
753
767
 
754
768
  LaunchConfigurationNameType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "LaunchConfigurationName"))
@@ -1094,6 +1108,7 @@ module Aws::AutoScaling
1094
1108
  UpdateAutoScalingGroupType.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
1095
1109
  UpdateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
1096
1110
  UpdateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
1111
+ UpdateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
1097
1112
  UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
1098
1113
 
1099
1114
  Values.member = Shapes::ShapeRef.new(shape: XmlString)
@@ -175,7 +175,7 @@ module Aws::AutoScaling
175
175
  #
176
176
  #
177
177
  #
178
- # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics
178
+ # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
179
179
  # @return [Types::InstanceMonitoring]
180
180
  def instance_monitoring
181
181
  data[:instance_monitoring]
@@ -260,6 +260,18 @@ module Aws::AutoScaling
260
260
  data[:placement_tenancy]
261
261
  end
262
262
 
263
+ # The metadata options for the instances. For more information, see
264
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
265
+ # Scaling User Guide*.
266
+ #
267
+ #
268
+ #
269
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
270
+ # @return [Types::InstanceMetadataOptions]
271
+ def metadata_options
272
+ data[:metadata_options]
273
+ end
274
+
263
275
  # @!endgroup
264
276
 
265
277
  # @return [Client]
@@ -82,6 +82,7 @@ module Aws::AutoScaling
82
82
  # vpc_zone_identifier: "XmlStringMaxLen2047",
83
83
  # termination_policies: ["XmlStringMaxLen1600"],
84
84
  # new_instances_protected_from_scale_in: false,
85
+ # capacity_rebalance: false,
85
86
  # lifecycle_hook_specification_list: [
86
87
  # {
87
88
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
@@ -185,8 +186,8 @@ module Aws::AutoScaling
185
186
  # <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
186
187
  # Auto Scaling may need to go above `MaxSize` to meet your capacity
187
188
  # requirements. In this event, Amazon EC2 Auto Scaling will never go
188
- # above `MaxSize` by more than your maximum instance weight (weights
189
- # that define how many capacity units each instance contributes to the
189
+ # above `MaxSize` by more than your largest instance weight (weights
190
+ # that define how many units each instance contributes to the desired
190
191
  # capacity of the group).
191
192
  #
192
193
  # </note>
@@ -310,6 +311,21 @@ module Aws::AutoScaling
310
311
  #
311
312
  #
312
313
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
314
+ # @option options [Boolean] :capacity_rebalance
315
+ # Indicates whether capacity rebalance is enabled. Otherwise, capacity
316
+ # rebalance is disabled.
317
+ #
318
+ # You can enable capacity rebalancing for your Auto Scaling groups when
319
+ # using Spot Instances. When you turn on capacity rebalancing, Amazon
320
+ # EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
321
+ # EC2 predicts that a Spot Instance is at an elevated risk of
322
+ # interruption. After launching a new instance, it then terminates an
323
+ # old instance. For more information, see [Amazon EC2 Auto Scaling
324
+ # capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
325
+ #
326
+ #
327
+ #
328
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
313
329
  # @option options [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
314
330
  # One or more lifecycle hooks.
315
331
  # @option options [Array<Types::Tag>] :tags
@@ -403,6 +419,11 @@ module Aws::AutoScaling
403
419
  # ebs_optimized: false,
404
420
  # associate_public_ip_address: false,
405
421
  # placement_tenancy: "XmlStringMaxLen64",
422
+ # metadata_options: {
423
+ # http_tokens: "optional", # accepts optional, required
424
+ # http_put_response_hop_limit: 1,
425
+ # http_endpoint: "disabled", # accepts disabled, enabled
426
+ # },
406
427
  # })
407
428
  # @param [Hash] options ({})
408
429
  # @option options [required, String] :launch_configuration_name
@@ -532,7 +553,7 @@ module Aws::AutoScaling
532
553
  #
533
554
  #
534
555
  #
535
- # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics
556
+ # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
536
557
  # @option options [String] :spot_price
537
558
  # The maximum hourly price to be paid for any Spot Instance launched to
538
559
  # fulfill the request. Spot Instances are launched when the price you
@@ -619,6 +640,14 @@ module Aws::AutoScaling
619
640
  #
620
641
  #
621
642
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
643
+ # @option options [Types::InstanceMetadataOptions] :metadata_options
644
+ # The metadata options for the instances. For more information, see
645
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
646
+ # Scaling User Guide*.
647
+ #
648
+ #
649
+ #
650
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
622
651
  # @return [LaunchConfiguration]
623
652
  def create_launch_configuration(options = {})
624
653
  @client.create_launch_configuration(options)
@@ -68,7 +68,7 @@ module Aws::AutoScaling
68
68
  data[:policy_type]
69
69
  end
70
70
 
71
- # Specifies how the scaling adjustment is interpreted (either an
71
+ # Specifies how the scaling adjustment is interpreted (for example, an
72
72
  # absolute number or a percentage). The valid values are
73
73
  # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
74
74
  # @return [String]
@@ -372,6 +372,10 @@ module Aws::AutoScaling
372
372
  # Valid Range: Minimum value of 0.
373
373
  # @return [Integer]
374
374
  #
375
+ # @!attribute [rw] capacity_rebalance
376
+ # Indicates whether capacity rebalance is enabled.
377
+ # @return [Boolean]
378
+ #
375
379
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
376
380
  #
377
381
  class AutoScalingGroup < Struct.new(
@@ -400,7 +404,8 @@ module Aws::AutoScaling
400
404
  :termination_policies,
401
405
  :new_instances_protected_from_scale_in,
402
406
  :service_linked_role_arn,
403
- :max_instance_lifetime)
407
+ :max_instance_lifetime,
408
+ :capacity_rebalance)
404
409
  SENSITIVE = []
405
410
  include Aws::Structure
406
411
  end
@@ -834,6 +839,7 @@ module Aws::AutoScaling
834
839
  # vpc_zone_identifier: "XmlStringMaxLen2047",
835
840
  # termination_policies: ["XmlStringMaxLen1600"],
836
841
  # new_instances_protected_from_scale_in: false,
842
+ # capacity_rebalance: false,
837
843
  # lifecycle_hook_specification_list: [
838
844
  # {
839
845
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
@@ -950,9 +956,9 @@ module Aws::AutoScaling
950
956
  # <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon
951
957
  # EC2 Auto Scaling may need to go above `MaxSize` to meet your
952
958
  # capacity requirements. In this event, Amazon EC2 Auto Scaling will
953
- # never go above `MaxSize` by more than your maximum instance weight
954
- # (weights that define how many capacity units each instance
955
- # contributes to the capacity of the group).
959
+ # never go above `MaxSize` by more than your largest instance weight
960
+ # (weights that define how many units each instance contributes to the
961
+ # desired capacity of the group).
956
962
  #
957
963
  # </note>
958
964
  # @return [Integer]
@@ -1101,6 +1107,24 @@ module Aws::AutoScaling
1101
1107
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
1102
1108
  # @return [Boolean]
1103
1109
  #
1110
+ # @!attribute [rw] capacity_rebalance
1111
+ # Indicates whether capacity rebalance is enabled. Otherwise, capacity
1112
+ # rebalance is disabled.
1113
+ #
1114
+ # You can enable capacity rebalancing for your Auto Scaling groups
1115
+ # when using Spot Instances. When you turn on capacity rebalancing,
1116
+ # Amazon EC2 Auto Scaling attempts to launch a Spot Instance whenever
1117
+ # Amazon EC2 predicts that a Spot Instance is at an elevated risk of
1118
+ # interruption. After launching a new instance, it then terminates an
1119
+ # old instance. For more information, see [Amazon EC2 Auto Scaling
1120
+ # capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User
1121
+ # Guide*.
1122
+ #
1123
+ #
1124
+ #
1125
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
1126
+ # @return [Boolean]
1127
+ #
1104
1128
  # @!attribute [rw] lifecycle_hook_specification_list
1105
1129
  # One or more lifecycle hooks.
1106
1130
  # @return [Array<Types::LifecycleHookSpecification>]
@@ -1177,6 +1201,7 @@ module Aws::AutoScaling
1177
1201
  :vpc_zone_identifier,
1178
1202
  :termination_policies,
1179
1203
  :new_instances_protected_from_scale_in,
1204
+ :capacity_rebalance,
1180
1205
  :lifecycle_hook_specification_list,
1181
1206
  :tags,
1182
1207
  :service_linked_role_arn,
@@ -1223,6 +1248,11 @@ module Aws::AutoScaling
1223
1248
  # ebs_optimized: false,
1224
1249
  # associate_public_ip_address: false,
1225
1250
  # placement_tenancy: "XmlStringMaxLen64",
1251
+ # metadata_options: {
1252
+ # http_tokens: "optional", # accepts optional, required
1253
+ # http_put_response_hop_limit: 1,
1254
+ # http_endpoint: "disabled", # accepts disabled, enabled
1255
+ # },
1226
1256
  # }
1227
1257
  #
1228
1258
  # @!attribute [rw] launch_configuration_name
@@ -1377,7 +1407,7 @@ module Aws::AutoScaling
1377
1407
  #
1378
1408
  #
1379
1409
  #
1380
- # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics
1410
+ # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
1381
1411
  # @return [Types::InstanceMonitoring]
1382
1412
  #
1383
1413
  # @!attribute [rw] spot_price
@@ -1478,6 +1508,16 @@ module Aws::AutoScaling
1478
1508
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
1479
1509
  # @return [String]
1480
1510
  #
1511
+ # @!attribute [rw] metadata_options
1512
+ # The metadata options for the instances. For more information, see
1513
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2
1514
+ # Auto Scaling User Guide*.
1515
+ #
1516
+ #
1517
+ #
1518
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
1519
+ # @return [Types::InstanceMetadataOptions]
1520
+ #
1481
1521
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType AWS API Documentation
1482
1522
  #
1483
1523
  class CreateLaunchConfigurationType < Struct.new(
@@ -1498,7 +1538,8 @@ module Aws::AutoScaling
1498
1538
  :iam_instance_profile,
1499
1539
  :ebs_optimized,
1500
1540
  :associate_public_ip_address,
1501
- :placement_tenancy)
1541
+ :placement_tenancy,
1542
+ :metadata_options)
1502
1543
  SENSITIVE = []
1503
1544
  include Aws::Structure
1504
1545
  end
@@ -3002,6 +3043,72 @@ module Aws::AutoScaling
3002
3043
  include Aws::Structure
3003
3044
  end
3004
3045
 
3046
+ # The metadata options for the instances. For more information, see
3047
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
3048
+ # Scaling User Guide*.
3049
+ #
3050
+ #
3051
+ #
3052
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
3053
+ #
3054
+ # @note When making an API call, you may pass InstanceMetadataOptions
3055
+ # data as a hash:
3056
+ #
3057
+ # {
3058
+ # http_tokens: "optional", # accepts optional, required
3059
+ # http_put_response_hop_limit: 1,
3060
+ # http_endpoint: "disabled", # accepts disabled, enabled
3061
+ # }
3062
+ #
3063
+ # @!attribute [rw] http_tokens
3064
+ # The state of token usage for your instance metadata requests. If the
3065
+ # parameter is not specified in the request, the default state is
3066
+ # `optional`.
3067
+ #
3068
+ # If the state is `optional`, you can choose to retrieve instance
3069
+ # metadata with or without a signed token header on your request. If
3070
+ # you retrieve the IAM role credentials without a token, the version
3071
+ # 1.0 role credentials are returned. If you retrieve the IAM role
3072
+ # credentials using a valid signed token, the version 2.0 role
3073
+ # credentials are returned.
3074
+ #
3075
+ # If the state is `required`, you must send a signed token header with
3076
+ # any instance metadata retrieval requests. In this state, retrieving
3077
+ # the IAM role credentials always returns the version 2.0 credentials;
3078
+ # the version 1.0 credentials are not available.
3079
+ # @return [String]
3080
+ #
3081
+ # @!attribute [rw] http_put_response_hop_limit
3082
+ # The desired HTTP PUT response hop limit for instance metadata
3083
+ # requests. The larger the number, the further instance metadata
3084
+ # requests can travel.
3085
+ #
3086
+ # Default: 1
3087
+ #
3088
+ # Possible values: Integers from 1 to 64
3089
+ # @return [Integer]
3090
+ #
3091
+ # @!attribute [rw] http_endpoint
3092
+ # This parameter enables or disables the HTTP metadata endpoint on
3093
+ # your instances. If the parameter is not specified, the default state
3094
+ # is `enabled`.
3095
+ #
3096
+ # <note markdown="1"> If you specify a value of `disabled`, you will not be able to access
3097
+ # your instance metadata.
3098
+ #
3099
+ # </note>
3100
+ # @return [String]
3101
+ #
3102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceMetadataOptions AWS API Documentation
3103
+ #
3104
+ class InstanceMetadataOptions < Struct.new(
3105
+ :http_tokens,
3106
+ :http_put_response_hop_limit,
3107
+ :http_endpoint)
3108
+ SENSITIVE = []
3109
+ include Aws::Structure
3110
+ end
3111
+
3005
3112
  # Describes whether detailed monitoring is enabled for the Auto Scaling
3006
3113
  # instances.
3007
3114
  #
@@ -3382,7 +3489,7 @@ module Aws::AutoScaling
3382
3489
  #
3383
3490
  #
3384
3491
  #
3385
- # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics
3492
+ # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
3386
3493
  # @return [Types::InstanceMonitoring]
3387
3494
  #
3388
3495
  # @!attribute [rw] spot_price
@@ -3453,6 +3560,16 @@ module Aws::AutoScaling
3453
3560
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
3454
3561
  # @return [String]
3455
3562
  #
3563
+ # @!attribute [rw] metadata_options
3564
+ # The metadata options for the instances. For more information, see
3565
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2
3566
+ # Auto Scaling User Guide*.
3567
+ #
3568
+ #
3569
+ #
3570
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
3571
+ # @return [Types::InstanceMetadataOptions]
3572
+ #
3456
3573
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration AWS API Documentation
3457
3574
  #
3458
3575
  class LaunchConfiguration < Struct.new(
@@ -3474,7 +3591,8 @@ module Aws::AutoScaling
3474
3591
  :created_time,
3475
3592
  :ebs_optimized,
3476
3593
  :associate_public_ip_address,
3477
- :placement_tenancy)
3594
+ :placement_tenancy,
3595
+ :metadata_options)
3478
3596
  SENSITIVE = []
3479
3597
  include Aws::Structure
3480
3598
  end
@@ -4051,6 +4169,16 @@ module Aws::AutoScaling
4051
4169
  # * `GroupTerminatingInstances`
4052
4170
  #
4053
4171
  # * `GroupTotalInstances`
4172
+ #
4173
+ # * `GroupInServiceCapacity`
4174
+ #
4175
+ # * `GroupPendingCapacity`
4176
+ #
4177
+ # * `GroupStandbyCapacity`
4178
+ #
4179
+ # * `GroupTerminatingCapacity`
4180
+ #
4181
+ # * `GroupTotalCapacity`
4054
4182
  # @return [String]
4055
4183
  #
4056
4184
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricCollectionType AWS API Documentation
@@ -4277,17 +4405,20 @@ module Aws::AutoScaling
4277
4405
  # `ALBRequestCountPerTarget` and there is a target group attached to
4278
4406
  # the Auto Scaling group.
4279
4407
  #
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
4283
- # `app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id
4284
- # `, where
4408
+ # You create the resource label by appending the final portion of the
4409
+ # load balancer ARN and the final portion of the target group ARN into
4410
+ # a single value, separated by a forward slash (/). The format is
4411
+ # app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt;/targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt;,
4412
+ # where:
4413
+ #
4414
+ # * app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt; is the
4415
+ # final portion of the load balancer ARN
4285
4416
  #
4286
- # * `app/load-balancer-name/load-balancer-id ` is the final portion of
4287
- # the load balancer ARN, and
4417
+ # * targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt; is
4418
+ # the final portion of the target group ARN.
4288
4419
  #
4289
- # * `targetgroup/target-group-name/target-group-id ` is the final
4290
- # portion of the target group ARN.
4420
+ # This is an example:
4421
+ # app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
4291
4422
  #
4292
4423
  # To find the ARN for an Application Load Balancer, use the
4293
4424
  # [DescribeLoadBalancers][1] API operation. To find the ARN for the
@@ -4559,7 +4690,7 @@ module Aws::AutoScaling
4559
4690
  # @return [String]
4560
4691
  #
4561
4692
  # @!attribute [rw] adjustment_type
4562
- # Specifies how the scaling adjustment is interpreted (either an
4693
+ # Specifies how the scaling adjustment is interpreted (for example, an
4563
4694
  # absolute number or a percentage). The valid values are
4564
4695
  # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
4565
4696
  #
@@ -4956,7 +5087,7 @@ module Aws::AutoScaling
4956
5087
  # @return [String]
4957
5088
  #
4958
5089
  # @!attribute [rw] adjustment_type
4959
- # Specifies how the scaling adjustment is interpreted (either an
5090
+ # Specifies how the scaling adjustment is interpreted (for example, an
4960
5091
  # absolute number or a percentage). The valid values are
4961
5092
  # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
4962
5093
  # @return [String]
@@ -5789,6 +5920,7 @@ module Aws::AutoScaling
5789
5920
  # new_instances_protected_from_scale_in: false,
5790
5921
  # service_linked_role_arn: "ResourceName",
5791
5922
  # max_instance_lifetime: 1,
5923
+ # capacity_rebalance: false,
5792
5924
  # }
5793
5925
  #
5794
5926
  # @!attribute [rw] auto_scaling_group_name
@@ -5842,9 +5974,9 @@ module Aws::AutoScaling
5842
5974
  # <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon
5843
5975
  # EC2 Auto Scaling may need to go above `MaxSize` to meet your
5844
5976
  # capacity requirements. In this event, Amazon EC2 Auto Scaling will
5845
- # never go above `MaxSize` by more than your maximum instance weight
5846
- # (weights that define how many capacity units each instance
5847
- # contributes to the capacity of the group).
5977
+ # never go above `MaxSize` by more than your largest instance weight
5978
+ # (weights that define how many units each instance contributes to the
5979
+ # desired capacity of the group).
5848
5980
  #
5849
5981
  # </note>
5850
5982
  # @return [Integer]
@@ -5977,6 +6109,23 @@ module Aws::AutoScaling
5977
6109
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
5978
6110
  # @return [Integer]
5979
6111
  #
6112
+ # @!attribute [rw] capacity_rebalance
6113
+ # Enables or disables capacity rebalance.
6114
+ #
6115
+ # You can enable capacity rebalancing for your Auto Scaling groups
6116
+ # when using Spot Instances. When you turn on capacity rebalancing,
6117
+ # Amazon EC2 Auto Scaling attempts to launch a Spot Instance whenever
6118
+ # Amazon EC2 predicts that a Spot Instance is at an elevated risk of
6119
+ # interruption. After launching a new instance, it then terminates an
6120
+ # old instance. For more information, see [Amazon EC2 Auto Scaling
6121
+ # capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User
6122
+ # Guide*.
6123
+ #
6124
+ #
6125
+ #
6126
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
6127
+ # @return [Boolean]
6128
+ #
5980
6129
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
5981
6130
  #
5982
6131
  class UpdateAutoScalingGroupType < Struct.new(
@@ -5996,7 +6145,8 @@ module Aws::AutoScaling
5996
6145
  :termination_policies,
5997
6146
  :new_instances_protected_from_scale_in,
5998
6147
  :service_linked_role_arn,
5999
- :max_instance_lifetime)
6148
+ :max_instance_lifetime,
6149
+ :capacity_rebalance)
6000
6150
  SENSITIVE = []
6001
6151
  include Aws::Structure
6002
6152
  end
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.43.0
4
+ version: 1.48.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: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.99.0
22
+ version: 3.109.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement