aws-sdk-autoscaling 1.41.0 → 1.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +3 -2
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +3 -3
- data/lib/aws-sdk-autoscaling/client.rb +169 -46
- data/lib/aws-sdk-autoscaling/client_api.rb +11 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +12 -0
- data/lib/aws-sdk-autoscaling/resource.rb +15 -2
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +4 -6
- data/lib/aws-sdk-autoscaling/types.rb +120 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69d46faae6b988f40ca324bb0b65e53bc9b9d79241a3d6fd97fef6ec9de26927
|
4
|
+
data.tar.gz: 6230cc92ec03b0e3074fc2234a581cf96ae48714703560eba4f64f4a8da0596f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca6375c6eef681d27ca9cdf02059b69b46e62de1ca7f605007a52f6090548d7dfbf8cc1c2e54024fa591f7143cfed155e428af5e45a850bde62a449c77b4d1c
|
7
|
+
data.tar.gz: 1aa7de25fc6a7a088dba855268bd07f1f5e406a25f881ccf4eeca8f2f349ee01f388b81cfabfc466a6379085dad3f71a976bce6f63a2bc74a350f4a7841eada5
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -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
|
-
#
|
59
|
+
# @!group service
|
59
60
|
module Aws::AutoScaling
|
60
61
|
|
61
|
-
GEM_VERSION = '1.
|
62
|
+
GEM_VERSION = '1.46.0'
|
62
63
|
|
63
64
|
end
|
@@ -592,7 +592,7 @@ module Aws::AutoScaling
|
|
592
592
|
#
|
593
593
|
# * `SimpleScaling` (default)
|
594
594
|
# @option options [String] :adjustment_type
|
595
|
-
# Specifies how the scaling adjustment is interpreted (
|
595
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
596
596
|
# absolute number or a percentage). The valid values are
|
597
597
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
598
598
|
#
|
@@ -956,8 +956,8 @@ module Aws::AutoScaling
|
|
956
956
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
|
957
957
|
# Auto Scaling may need to go above `MaxSize` to meet your capacity
|
958
958
|
# requirements. In this event, Amazon EC2 Auto Scaling will never go
|
959
|
-
# above `MaxSize` by more than your
|
960
|
-
# that define how many
|
959
|
+
# above `MaxSize` by more than your largest instance weight (weights
|
960
|
+
# that define how many units each instance contributes to the desired
|
961
961
|
# capacity of the group).
|
962
962
|
#
|
963
963
|
# </note>
|
@@ -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::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
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
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
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
|
@@ -582,6 +597,20 @@ module Aws::AutoScaling
|
|
582
597
|
#
|
583
598
|
# * {Types::CancelInstanceRefreshAnswer#instance_refresh_id #instance_refresh_id} => String
|
584
599
|
#
|
600
|
+
#
|
601
|
+
# @example Example: To cancel an instance refresh
|
602
|
+
#
|
603
|
+
# # This example cancels an instance refresh operation in progress.
|
604
|
+
#
|
605
|
+
# resp = client.cancel_instance_refresh({
|
606
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
607
|
+
# })
|
608
|
+
#
|
609
|
+
# resp.to_h outputs the following:
|
610
|
+
# {
|
611
|
+
# instance_refresh_id: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
|
612
|
+
# }
|
613
|
+
#
|
585
614
|
# @example Request syntax with placeholder values
|
586
615
|
#
|
587
616
|
# resp = client.cancel_instance_refresh({
|
@@ -698,6 +727,13 @@ module Aws::AutoScaling
|
|
698
727
|
# Scaling User Guide*. For more information, see [Auto Scaling
|
699
728
|
# Groups][4] in the *Amazon EC2 Auto Scaling User Guide*.
|
700
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
|
+
#
|
701
737
|
#
|
702
738
|
#
|
703
739
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html
|
@@ -790,8 +826,8 @@ module Aws::AutoScaling
|
|
790
826
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
|
791
827
|
# Auto Scaling may need to go above `MaxSize` to meet your capacity
|
792
828
|
# requirements. In this event, Amazon EC2 Auto Scaling will never go
|
793
|
-
# above `MaxSize` by more than your
|
794
|
-
# that define how many
|
829
|
+
# above `MaxSize` by more than your largest instance weight (weights
|
830
|
+
# that define how many units each instance contributes to the desired
|
795
831
|
# capacity of the group).
|
796
832
|
#
|
797
833
|
# </note>
|
@@ -987,46 +1023,50 @@ module Aws::AutoScaling
|
|
987
1023
|
#
|
988
1024
|
# resp = client.create_auto_scaling_group({
|
989
1025
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
990
|
-
#
|
1026
|
+
# launch_template: {
|
1027
|
+
# launch_template_id: "lt-0a20c965061f64abc",
|
1028
|
+
# version: "$Latest",
|
1029
|
+
# },
|
1030
|
+
# max_instance_lifetime: 2592000,
|
991
1031
|
# max_size: 3,
|
992
1032
|
# min_size: 1,
|
993
|
-
# vpc_zone_identifier: "subnet-
|
1033
|
+
# vpc_zone_identifier: "subnet-057fa0918fEXAMPLE",
|
994
1034
|
# })
|
995
1035
|
#
|
996
|
-
# @example Example: To create an Auto Scaling group with an attached
|
1036
|
+
# @example Example: To create an Auto Scaling group with an attached target group
|
997
1037
|
#
|
998
|
-
# # This example creates an Auto Scaling group and attaches the specified
|
1038
|
+
# # This example creates an Auto Scaling group and attaches the specified target group.
|
999
1039
|
#
|
1000
1040
|
# resp = client.create_auto_scaling_group({
|
1001
1041
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
1002
|
-
# availability_zones: [
|
1003
|
-
# "us-west-2c",
|
1004
|
-
# ],
|
1005
1042
|
# health_check_grace_period: 120,
|
1006
1043
|
# health_check_type: "ELB",
|
1007
1044
|
# launch_configuration_name: "my-launch-config",
|
1008
|
-
# load_balancer_names: [
|
1009
|
-
# "my-load-balancer",
|
1010
|
-
# ],
|
1011
1045
|
# max_size: 3,
|
1012
1046
|
# min_size: 1,
|
1047
|
+
# target_group_arns: [
|
1048
|
+
# "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
|
1049
|
+
# ],
|
1050
|
+
# vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
|
1013
1051
|
# })
|
1014
1052
|
#
|
1015
|
-
# @example Example: To create an Auto Scaling group with an attached
|
1053
|
+
# @example Example: To create an Auto Scaling group with an attached load balancer
|
1016
1054
|
#
|
1017
|
-
# # This example creates an Auto Scaling group and attaches the specified
|
1055
|
+
# # This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.
|
1018
1056
|
#
|
1019
1057
|
# resp = client.create_auto_scaling_group({
|
1020
1058
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
1059
|
+
# availability_zones: [
|
1060
|
+
# "us-west-2c",
|
1061
|
+
# ],
|
1021
1062
|
# health_check_grace_period: 120,
|
1022
1063
|
# health_check_type: "ELB",
|
1023
1064
|
# launch_configuration_name: "my-launch-config",
|
1065
|
+
# load_balancer_names: [
|
1066
|
+
# "my-load-balancer",
|
1067
|
+
# ],
|
1024
1068
|
# max_size: 3,
|
1025
1069
|
# min_size: 1,
|
1026
|
-
# target_group_arns: [
|
1027
|
-
# "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
|
1028
|
-
# ],
|
1029
|
-
# vpc_zone_identifier: "subnet-4176792c, subnet-65ea5f08",
|
1030
1070
|
# })
|
1031
1071
|
#
|
1032
1072
|
# @example Request syntax with placeholder values
|
@@ -1356,6 +1396,15 @@ module Aws::AutoScaling
|
|
1356
1396
|
#
|
1357
1397
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
1358
1398
|
#
|
1399
|
+
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1400
|
+
# The metadata options for the instances. For more information, see
|
1401
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
|
1402
|
+
# Linux Instances*.
|
1403
|
+
#
|
1404
|
+
#
|
1405
|
+
#
|
1406
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
1407
|
+
#
|
1359
1408
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1360
1409
|
#
|
1361
1410
|
#
|
@@ -1410,6 +1459,11 @@ module Aws::AutoScaling
|
|
1410
1459
|
# ebs_optimized: false,
|
1411
1460
|
# associate_public_ip_address: false,
|
1412
1461
|
# placement_tenancy: "XmlStringMaxLen64",
|
1462
|
+
# metadata_options: {
|
1463
|
+
# http_tokens: "optional", # accepts optional, required
|
1464
|
+
# http_put_response_hop_limit: 1,
|
1465
|
+
# http_endpoint: "disabled", # accepts disabled, enabled
|
1466
|
+
# },
|
1413
1467
|
# })
|
1414
1468
|
#
|
1415
1469
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration AWS API Documentation
|
@@ -1689,7 +1743,7 @@ module Aws::AutoScaling
|
|
1689
1743
|
#
|
1690
1744
|
# resp = client.delete_policy({
|
1691
1745
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
1692
|
-
# policy_name: "
|
1746
|
+
# policy_name: "my-step-scale-out-policy",
|
1693
1747
|
# })
|
1694
1748
|
#
|
1695
1749
|
# @example Request syntax with placeholder values
|
@@ -1858,7 +1912,7 @@ module Aws::AutoScaling
|
|
1858
1912
|
# * {Types::DescribeAdjustmentTypesAnswer#adjustment_types #adjustment_types} => Array<Types::AdjustmentType>
|
1859
1913
|
#
|
1860
1914
|
#
|
1861
|
-
# @example Example: To describe the Auto Scaling adjustment types
|
1915
|
+
# @example Example: To describe the Amazon EC2 Auto Scaling adjustment types
|
1862
1916
|
#
|
1863
1917
|
# # This example describes the available adjustment types.
|
1864
1918
|
#
|
@@ -2234,6 +2288,38 @@ module Aws::AutoScaling
|
|
2234
2288
|
# * {Types::DescribeInstanceRefreshesAnswer#instance_refreshes #instance_refreshes} => Array<Types::InstanceRefresh>
|
2235
2289
|
# * {Types::DescribeInstanceRefreshesAnswer#next_token #next_token} => String
|
2236
2290
|
#
|
2291
|
+
#
|
2292
|
+
# @example Example: To list instance refreshes
|
2293
|
+
#
|
2294
|
+
# # This example describes the instance refreshes for the specified Auto Scaling group.
|
2295
|
+
#
|
2296
|
+
# resp = client.describe_instance_refreshes({
|
2297
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
2298
|
+
# })
|
2299
|
+
#
|
2300
|
+
# resp.to_h outputs the following:
|
2301
|
+
# {
|
2302
|
+
# instance_refreshes: [
|
2303
|
+
# {
|
2304
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
2305
|
+
# instance_refresh_id: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
|
2306
|
+
# instances_to_update: 5,
|
2307
|
+
# percentage_complete: 0,
|
2308
|
+
# start_time: Time.parse("2020-06-02T18:11:27Z"),
|
2309
|
+
# status: "InProgress",
|
2310
|
+
# },
|
2311
|
+
# {
|
2312
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
2313
|
+
# end_time: Time.parse("2020-06-02T16:53:37Z"),
|
2314
|
+
# instance_refresh_id: "dd7728d0-5bc4-4575-96a3-1b2c52bf8bb1",
|
2315
|
+
# instances_to_update: 0,
|
2316
|
+
# percentage_complete: 100,
|
2317
|
+
# start_time: Time.parse("2020-06-02T16:43:19Z"),
|
2318
|
+
# status: "Successful",
|
2319
|
+
# },
|
2320
|
+
# ],
|
2321
|
+
# }
|
2322
|
+
#
|
2237
2323
|
# @example Request syntax with placeholder values
|
2238
2324
|
#
|
2239
2325
|
# resp = client.describe_instance_refreshes({
|
@@ -2361,6 +2447,9 @@ module Aws::AutoScaling
|
|
2361
2447
|
# resp.launch_configurations[0].ebs_optimized #=> Boolean
|
2362
2448
|
# resp.launch_configurations[0].associate_public_ip_address #=> Boolean
|
2363
2449
|
# resp.launch_configurations[0].placement_tenancy #=> String
|
2450
|
+
# resp.launch_configurations[0].metadata_options.http_tokens #=> String, one of "optional", "required"
|
2451
|
+
# resp.launch_configurations[0].metadata_options.http_put_response_hop_limit #=> Integer
|
2452
|
+
# resp.launch_configurations[0].metadata_options.http_endpoint #=> String, one of "disabled", "enabled"
|
2364
2453
|
# resp.next_token #=> String
|
2365
2454
|
#
|
2366
2455
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations AWS API Documentation
|
@@ -2782,7 +2871,7 @@ module Aws::AutoScaling
|
|
2782
2871
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2783
2872
|
#
|
2784
2873
|
#
|
2785
|
-
# @example Example: To describe
|
2874
|
+
# @example Example: To describe scaling policies
|
2786
2875
|
#
|
2787
2876
|
# # This example describes the policies for the specified Auto Scaling group.
|
2788
2877
|
#
|
@@ -3687,7 +3776,8 @@ module Aws::AutoScaling
|
|
3687
3776
|
req.send_request(options)
|
3688
3777
|
end
|
3689
3778
|
|
3690
|
-
# Executes the specified policy.
|
3779
|
+
# Executes the specified policy. This can be useful for testing the
|
3780
|
+
# design of your scaling policy.
|
3691
3781
|
#
|
3692
3782
|
# @option params [String] :auto_scaling_group_name
|
3693
3783
|
# The name of the Auto Scaling group.
|
@@ -3699,11 +3789,9 @@ module Aws::AutoScaling
|
|
3699
3789
|
# Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
|
3700
3790
|
# period to complete before executing the policy.
|
3701
3791
|
#
|
3702
|
-
#
|
3703
|
-
#
|
3704
|
-
#
|
3705
|
-
# For more information, see [Scaling Cooldowns for Amazon EC2 Auto
|
3706
|
-
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3792
|
+
# Valid only if the policy type is `SimpleScaling`. For more
|
3793
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1] in
|
3794
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
3707
3795
|
#
|
3708
3796
|
#
|
3709
3797
|
#
|
@@ -3731,14 +3819,15 @@ module Aws::AutoScaling
|
|
3731
3819
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3732
3820
|
#
|
3733
3821
|
#
|
3734
|
-
# @example Example: To execute
|
3822
|
+
# @example Example: To execute a scaling policy
|
3735
3823
|
#
|
3736
|
-
# # This example executes the specified
|
3824
|
+
# # This example executes the specified policy.
|
3737
3825
|
#
|
3738
3826
|
# resp = client.execute_policy({
|
3739
3827
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
3740
|
-
#
|
3741
|
-
#
|
3828
|
+
# breach_threshold: 50.0,
|
3829
|
+
# metric_value: 59.0,
|
3830
|
+
# policy_name: "my-step-scale-out-policy",
|
3742
3831
|
# })
|
3743
3832
|
#
|
3744
3833
|
# @example Request syntax with placeholder values
|
@@ -4069,7 +4158,7 @@ module Aws::AutoScaling
|
|
4069
4158
|
# * `SimpleScaling` (default)
|
4070
4159
|
#
|
4071
4160
|
# @option params [String] :adjustment_type
|
4072
|
-
# Specifies how the scaling adjustment is interpreted (
|
4161
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
4073
4162
|
# absolute number or a percentage). The valid values are
|
4074
4163
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4075
4164
|
#
|
@@ -4201,15 +4290,31 @@ module Aws::AutoScaling
|
|
4201
4290
|
# # This example adds the specified policy to the specified Auto Scaling group.
|
4202
4291
|
#
|
4203
4292
|
# resp = client.put_scaling_policy({
|
4204
|
-
# adjustment_type: "ChangeInCapacity",
|
4205
4293
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
4206
|
-
# policy_name: "
|
4207
|
-
#
|
4294
|
+
# policy_name: "alb1000-target-tracking-scaling-policy",
|
4295
|
+
# policy_type: "TargetTrackingScaling",
|
4296
|
+
# target_tracking_configuration: {
|
4297
|
+
# predefined_metric_specification: {
|
4298
|
+
# predefined_metric_type: "ALBRequestCountPerTarget",
|
4299
|
+
# resource_label: "app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d",
|
4300
|
+
# },
|
4301
|
+
# target_value: 1000.0,
|
4302
|
+
# },
|
4208
4303
|
# })
|
4209
4304
|
#
|
4210
4305
|
# resp.to_h outputs the following:
|
4211
4306
|
# {
|
4212
|
-
#
|
4307
|
+
# alarms: [
|
4308
|
+
# {
|
4309
|
+
# alarm_arn: "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e",
|
4310
|
+
# alarm_name: "TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e",
|
4311
|
+
# },
|
4312
|
+
# {
|
4313
|
+
# alarm_arn: "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2",
|
4314
|
+
# alarm_name: "TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2",
|
4315
|
+
# },
|
4316
|
+
# ],
|
4317
|
+
# policy_arn: "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:228f02c2-c665-4bfd-aaac-8b04080bea3c:autoScalingGroupName/my-auto-scaling-group:policyName/alb1000-target-tracking-scaling-policy",
|
4213
4318
|
# }
|
4214
4319
|
#
|
4215
4320
|
# @example Request syntax with placeholder values
|
@@ -4752,6 +4857,24 @@ module Aws::AutoScaling
|
|
4752
4857
|
#
|
4753
4858
|
# * {Types::StartInstanceRefreshAnswer#instance_refresh_id #instance_refresh_id} => String
|
4754
4859
|
#
|
4860
|
+
#
|
4861
|
+
# @example Example: To start an instance refresh
|
4862
|
+
#
|
4863
|
+
# # This example starts an instance refresh for the specified Auto Scaling group.
|
4864
|
+
#
|
4865
|
+
# resp = client.start_instance_refresh({
|
4866
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
4867
|
+
# preferences: {
|
4868
|
+
# instance_warmup: 400,
|
4869
|
+
# min_healthy_percentage: 50,
|
4870
|
+
# },
|
4871
|
+
# })
|
4872
|
+
#
|
4873
|
+
# resp.to_h outputs the following:
|
4874
|
+
# {
|
4875
|
+
# instance_refresh_id: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
|
4876
|
+
# }
|
4877
|
+
#
|
4755
4878
|
# @example Request syntax with placeholder values
|
4756
4879
|
#
|
4757
4880
|
# resp = client.start_instance_refresh({
|
@@ -5013,8 +5136,8 @@ module Aws::AutoScaling
|
|
5013
5136
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
|
5014
5137
|
# Auto Scaling may need to go above `MaxSize` to meet your capacity
|
5015
5138
|
# requirements. In this event, Amazon EC2 Auto Scaling will never go
|
5016
|
-
# above `MaxSize` by more than your
|
5017
|
-
# that define how many
|
5139
|
+
# above `MaxSize` by more than your largest instance weight (weights
|
5140
|
+
# that define how many units each instance contributes to the desired
|
5018
5141
|
# capacity of the group).
|
5019
5142
|
#
|
5020
5143
|
# </note>
|
@@ -5235,7 +5358,7 @@ module Aws::AutoScaling
|
|
5235
5358
|
params: params,
|
5236
5359
|
config: config)
|
5237
5360
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5238
|
-
context[:gem_version] = '1.
|
5361
|
+
context[:gem_version] = '1.46.0'
|
5239
5362
|
Seahorse::Client::Request.new(handlers, context)
|
5240
5363
|
end
|
5241
5364
|
|
@@ -123,6 +123,10 @@ module Aws::AutoScaling
|
|
123
123
|
HonorCooldown = Shapes::BooleanShape.new(name: 'HonorCooldown')
|
124
124
|
Instance = Shapes::StructureShape.new(name: 'Instance')
|
125
125
|
InstanceIds = Shapes::ListShape.new(name: 'InstanceIds')
|
126
|
+
InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
|
127
|
+
InstanceMetadataHttpPutResponseHopLimit = Shapes::IntegerShape.new(name: 'InstanceMetadataHttpPutResponseHopLimit')
|
128
|
+
InstanceMetadataHttpTokensState = Shapes::StringShape.new(name: 'InstanceMetadataHttpTokensState')
|
129
|
+
InstanceMetadataOptions = Shapes::StructureShape.new(name: 'InstanceMetadataOptions')
|
126
130
|
InstanceMonitoring = Shapes::StructureShape.new(name: 'InstanceMonitoring')
|
127
131
|
InstanceProtected = Shapes::BooleanShape.new(name: 'InstanceProtected')
|
128
132
|
InstanceRefresh = Shapes::StructureShape.new(name: 'InstanceRefresh')
|
@@ -472,6 +476,7 @@ module Aws::AutoScaling
|
|
472
476
|
CreateLaunchConfigurationType.add_member(:ebs_optimized, Shapes::ShapeRef.new(shape: EbsOptimized, location_name: "EbsOptimized"))
|
473
477
|
CreateLaunchConfigurationType.add_member(:associate_public_ip_address, Shapes::ShapeRef.new(shape: AssociatePublicIpAddress, location_name: "AssociatePublicIpAddress"))
|
474
478
|
CreateLaunchConfigurationType.add_member(:placement_tenancy, Shapes::ShapeRef.new(shape: XmlStringMaxLen64, location_name: "PlacementTenancy"))
|
479
|
+
CreateLaunchConfigurationType.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptions, location_name: "MetadataOptions"))
|
475
480
|
CreateLaunchConfigurationType.struct_class = Types::CreateLaunchConfigurationType
|
476
481
|
|
477
482
|
CreateOrUpdateTagsType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
|
@@ -697,6 +702,11 @@ module Aws::AutoScaling
|
|
697
702
|
|
698
703
|
InstanceIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen19)
|
699
704
|
|
705
|
+
InstanceMetadataOptions.add_member(:http_tokens, Shapes::ShapeRef.new(shape: InstanceMetadataHttpTokensState, location_name: "HttpTokens"))
|
706
|
+
InstanceMetadataOptions.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: InstanceMetadataHttpPutResponseHopLimit, location_name: "HttpPutResponseHopLimit"))
|
707
|
+
InstanceMetadataOptions.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
|
708
|
+
InstanceMetadataOptions.struct_class = Types::InstanceMetadataOptions
|
709
|
+
|
700
710
|
InstanceMonitoring.add_member(:enabled, Shapes::ShapeRef.new(shape: MonitoringEnabled, location_name: "Enabled"))
|
701
711
|
InstanceMonitoring.struct_class = Types::InstanceMonitoring
|
702
712
|
|
@@ -749,6 +759,7 @@ module Aws::AutoScaling
|
|
749
759
|
LaunchConfiguration.add_member(:ebs_optimized, Shapes::ShapeRef.new(shape: EbsOptimized, location_name: "EbsOptimized"))
|
750
760
|
LaunchConfiguration.add_member(:associate_public_ip_address, Shapes::ShapeRef.new(shape: AssociatePublicIpAddress, location_name: "AssociatePublicIpAddress"))
|
751
761
|
LaunchConfiguration.add_member(:placement_tenancy, Shapes::ShapeRef.new(shape: XmlStringMaxLen64, location_name: "PlacementTenancy"))
|
762
|
+
LaunchConfiguration.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptions, location_name: "MetadataOptions"))
|
752
763
|
LaunchConfiguration.struct_class = Types::LaunchConfiguration
|
753
764
|
|
754
765
|
LaunchConfigurationNameType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "LaunchConfigurationName"))
|
@@ -260,6 +260,18 @@ module Aws::AutoScaling
|
|
260
260
|
data[:placement_tenancy]
|
261
261
|
end
|
262
262
|
|
263
|
+
# The metadata options for the instances. For more information, see
|
264
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
|
265
|
+
# Linux Instances*.
|
266
|
+
#
|
267
|
+
#
|
268
|
+
#
|
269
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
270
|
+
# @return [Types::InstanceMetadataOptions]
|
271
|
+
def metadata_options
|
272
|
+
data[:metadata_options]
|
273
|
+
end
|
274
|
+
|
263
275
|
# @!endgroup
|
264
276
|
|
265
277
|
# @return [Client]
|
@@ -185,8 +185,8 @@ module Aws::AutoScaling
|
|
185
185
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
|
186
186
|
# Auto Scaling may need to go above `MaxSize` to meet your capacity
|
187
187
|
# requirements. In this event, Amazon EC2 Auto Scaling will never go
|
188
|
-
# above `MaxSize` by more than your
|
189
|
-
# that define how many
|
188
|
+
# above `MaxSize` by more than your largest instance weight (weights
|
189
|
+
# that define how many units each instance contributes to the desired
|
190
190
|
# capacity of the group).
|
191
191
|
#
|
192
192
|
# </note>
|
@@ -403,6 +403,11 @@ module Aws::AutoScaling
|
|
403
403
|
# ebs_optimized: false,
|
404
404
|
# associate_public_ip_address: false,
|
405
405
|
# placement_tenancy: "XmlStringMaxLen64",
|
406
|
+
# metadata_options: {
|
407
|
+
# http_tokens: "optional", # accepts optional, required
|
408
|
+
# http_put_response_hop_limit: 1,
|
409
|
+
# http_endpoint: "disabled", # accepts disabled, enabled
|
410
|
+
# },
|
406
411
|
# })
|
407
412
|
# @param [Hash] options ({})
|
408
413
|
# @option options [required, String] :launch_configuration_name
|
@@ -619,6 +624,14 @@ module Aws::AutoScaling
|
|
619
624
|
#
|
620
625
|
#
|
621
626
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
627
|
+
# @option options [Types::InstanceMetadataOptions] :metadata_options
|
628
|
+
# The metadata options for the instances. For more information, see
|
629
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
|
630
|
+
# Linux Instances*.
|
631
|
+
#
|
632
|
+
#
|
633
|
+
#
|
634
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
622
635
|
# @return [LaunchConfiguration]
|
623
636
|
def create_launch_configuration(options = {})
|
624
637
|
@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 (
|
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]
|
@@ -308,11 +308,9 @@ module Aws::AutoScaling
|
|
308
308
|
# Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
|
309
309
|
# period to complete before executing the policy.
|
310
310
|
#
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
# For more information, see [Scaling Cooldowns for Amazon EC2 Auto
|
315
|
-
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
311
|
+
# Valid only if the policy type is `SimpleScaling`. For more
|
312
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1] in
|
313
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
316
314
|
#
|
317
315
|
#
|
318
316
|
#
|
@@ -950,9 +950,9 @@ module Aws::AutoScaling
|
|
950
950
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon
|
951
951
|
# EC2 Auto Scaling may need to go above `MaxSize` to meet your
|
952
952
|
# capacity requirements. In this event, Amazon EC2 Auto Scaling will
|
953
|
-
# never go above `MaxSize` by more than your
|
954
|
-
# (weights that define how many
|
955
|
-
#
|
953
|
+
# never go above `MaxSize` by more than your largest instance weight
|
954
|
+
# (weights that define how many units each instance contributes to the
|
955
|
+
# desired capacity of the group).
|
956
956
|
#
|
957
957
|
# </note>
|
958
958
|
# @return [Integer]
|
@@ -1223,6 +1223,11 @@ module Aws::AutoScaling
|
|
1223
1223
|
# ebs_optimized: false,
|
1224
1224
|
# associate_public_ip_address: false,
|
1225
1225
|
# placement_tenancy: "XmlStringMaxLen64",
|
1226
|
+
# metadata_options: {
|
1227
|
+
# http_tokens: "optional", # accepts optional, required
|
1228
|
+
# http_put_response_hop_limit: 1,
|
1229
|
+
# http_endpoint: "disabled", # accepts disabled, enabled
|
1230
|
+
# },
|
1226
1231
|
# }
|
1227
1232
|
#
|
1228
1233
|
# @!attribute [rw] launch_configuration_name
|
@@ -1478,6 +1483,16 @@ module Aws::AutoScaling
|
|
1478
1483
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
1479
1484
|
# @return [String]
|
1480
1485
|
#
|
1486
|
+
# @!attribute [rw] metadata_options
|
1487
|
+
# The metadata options for the instances. For more information, see
|
1488
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide
|
1489
|
+
# for Linux Instances*.
|
1490
|
+
#
|
1491
|
+
#
|
1492
|
+
#
|
1493
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
1494
|
+
# @return [Types::InstanceMetadataOptions]
|
1495
|
+
#
|
1481
1496
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType AWS API Documentation
|
1482
1497
|
#
|
1483
1498
|
class CreateLaunchConfigurationType < Struct.new(
|
@@ -1498,7 +1513,8 @@ module Aws::AutoScaling
|
|
1498
1513
|
:iam_instance_profile,
|
1499
1514
|
:ebs_optimized,
|
1500
1515
|
:associate_public_ip_address,
|
1501
|
-
:placement_tenancy
|
1516
|
+
:placement_tenancy,
|
1517
|
+
:metadata_options)
|
1502
1518
|
SENSITIVE = []
|
1503
1519
|
include Aws::Structure
|
1504
1520
|
end
|
@@ -2522,9 +2538,7 @@ module Aws::AutoScaling
|
|
2522
2538
|
# @!attribute [rw] snapshot_id
|
2523
2539
|
# The snapshot ID of the volume to use.
|
2524
2540
|
#
|
2525
|
-
#
|
2526
|
-
# specify both `SnapshotId` and `VolumeSize`, the volume size must be
|
2527
|
-
# equal or greater than the size of the snapshot.
|
2541
|
+
# You must specify either a `VolumeSize` or a `SnapshotId`.
|
2528
2542
|
# @return [String]
|
2529
2543
|
#
|
2530
2544
|
# @!attribute [rw] volume_size
|
@@ -2538,9 +2552,9 @@ module Aws::AutoScaling
|
|
2538
2552
|
# Default: If you create a volume from a snapshot and you don't
|
2539
2553
|
# specify a volume size, the default is the snapshot size.
|
2540
2554
|
#
|
2541
|
-
#
|
2542
|
-
#
|
2543
|
-
#
|
2555
|
+
# You must specify either a `VolumeSize` or a `SnapshotId`. If you
|
2556
|
+
# specify both `SnapshotId` and `VolumeSize`, the volume size must be
|
2557
|
+
# equal or greater than the size of the snapshot.
|
2544
2558
|
# @return [Integer]
|
2545
2559
|
#
|
2546
2560
|
# @!attribute [rw] volume_type
|
@@ -2802,11 +2816,9 @@ module Aws::AutoScaling
|
|
2802
2816
|
# Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
|
2803
2817
|
# period to complete before executing the policy.
|
2804
2818
|
#
|
2805
|
-
#
|
2806
|
-
#
|
2807
|
-
#
|
2808
|
-
# For more information, see [Scaling Cooldowns for Amazon EC2 Auto
|
2809
|
-
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
2819
|
+
# Valid only if the policy type is `SimpleScaling`. For more
|
2820
|
+
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
|
2821
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
2810
2822
|
#
|
2811
2823
|
#
|
2812
2824
|
#
|
@@ -3006,6 +3018,72 @@ module Aws::AutoScaling
|
|
3006
3018
|
include Aws::Structure
|
3007
3019
|
end
|
3008
3020
|
|
3021
|
+
# The metadata options for the instances. For more information, see
|
3022
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
|
3023
|
+
# Linux Instances*.
|
3024
|
+
#
|
3025
|
+
#
|
3026
|
+
#
|
3027
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
3028
|
+
#
|
3029
|
+
# @note When making an API call, you may pass InstanceMetadataOptions
|
3030
|
+
# data as a hash:
|
3031
|
+
#
|
3032
|
+
# {
|
3033
|
+
# http_tokens: "optional", # accepts optional, required
|
3034
|
+
# http_put_response_hop_limit: 1,
|
3035
|
+
# http_endpoint: "disabled", # accepts disabled, enabled
|
3036
|
+
# }
|
3037
|
+
#
|
3038
|
+
# @!attribute [rw] http_tokens
|
3039
|
+
# The state of token usage for your instance metadata requests. If the
|
3040
|
+
# parameter is not specified in the request, the default state is
|
3041
|
+
# `optional`.
|
3042
|
+
#
|
3043
|
+
# If the state is `optional`, you can choose to retrieve instance
|
3044
|
+
# metadata with or without a signed token header on your request. If
|
3045
|
+
# you retrieve the IAM role credentials without a token, the version
|
3046
|
+
# 1.0 role credentials are returned. If you retrieve the IAM role
|
3047
|
+
# credentials using a valid signed token, the version 2.0 role
|
3048
|
+
# credentials are returned.
|
3049
|
+
#
|
3050
|
+
# If the state is `required`, you must send a signed token header with
|
3051
|
+
# any instance metadata retrieval requests. In this state, retrieving
|
3052
|
+
# the IAM role credentials always returns the version 2.0 credentials;
|
3053
|
+
# the version 1.0 credentials are not available.
|
3054
|
+
# @return [String]
|
3055
|
+
#
|
3056
|
+
# @!attribute [rw] http_put_response_hop_limit
|
3057
|
+
# The desired HTTP PUT response hop limit for instance metadata
|
3058
|
+
# requests. The larger the number, the further instance metadata
|
3059
|
+
# requests can travel.
|
3060
|
+
#
|
3061
|
+
# Default: 1
|
3062
|
+
#
|
3063
|
+
# Possible values: Integers from 1 to 64
|
3064
|
+
# @return [Integer]
|
3065
|
+
#
|
3066
|
+
# @!attribute [rw] http_endpoint
|
3067
|
+
# This parameter enables or disables the HTTP metadata endpoint on
|
3068
|
+
# your instances. If the parameter is not specified, the default state
|
3069
|
+
# is `enabled`.
|
3070
|
+
#
|
3071
|
+
# <note markdown="1"> If you specify a value of `disabled`, you will not be able to access
|
3072
|
+
# your instance metadata.
|
3073
|
+
#
|
3074
|
+
# </note>
|
3075
|
+
# @return [String]
|
3076
|
+
#
|
3077
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceMetadataOptions AWS API Documentation
|
3078
|
+
#
|
3079
|
+
class InstanceMetadataOptions < Struct.new(
|
3080
|
+
:http_tokens,
|
3081
|
+
:http_put_response_hop_limit,
|
3082
|
+
:http_endpoint)
|
3083
|
+
SENSITIVE = []
|
3084
|
+
include Aws::Structure
|
3085
|
+
end
|
3086
|
+
|
3009
3087
|
# Describes whether detailed monitoring is enabled for the Auto Scaling
|
3010
3088
|
# instances.
|
3011
3089
|
#
|
@@ -3457,6 +3535,16 @@ module Aws::AutoScaling
|
|
3457
3535
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
3458
3536
|
# @return [String]
|
3459
3537
|
#
|
3538
|
+
# @!attribute [rw] metadata_options
|
3539
|
+
# The metadata options for the instances. For more information, see
|
3540
|
+
# [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide
|
3541
|
+
# for Linux Instances*.
|
3542
|
+
#
|
3543
|
+
#
|
3544
|
+
#
|
3545
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
3546
|
+
# @return [Types::InstanceMetadataOptions]
|
3547
|
+
#
|
3460
3548
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration AWS API Documentation
|
3461
3549
|
#
|
3462
3550
|
class LaunchConfiguration < Struct.new(
|
@@ -3478,7 +3566,8 @@ module Aws::AutoScaling
|
|
3478
3566
|
:created_time,
|
3479
3567
|
:ebs_optimized,
|
3480
3568
|
:associate_public_ip_address,
|
3481
|
-
:placement_tenancy
|
3569
|
+
:placement_tenancy,
|
3570
|
+
:metadata_options)
|
3482
3571
|
SENSITIVE = []
|
3483
3572
|
include Aws::Structure
|
3484
3573
|
end
|
@@ -4055,6 +4144,16 @@ module Aws::AutoScaling
|
|
4055
4144
|
# * `GroupTerminatingInstances`
|
4056
4145
|
#
|
4057
4146
|
# * `GroupTotalInstances`
|
4147
|
+
#
|
4148
|
+
# * `GroupInServiceCapacity`
|
4149
|
+
#
|
4150
|
+
# * `GroupPendingCapacity`
|
4151
|
+
#
|
4152
|
+
# * `GroupStandbyCapacity`
|
4153
|
+
#
|
4154
|
+
# * `GroupTerminatingCapacity`
|
4155
|
+
#
|
4156
|
+
# * `GroupTotalCapacity`
|
4058
4157
|
# @return [String]
|
4059
4158
|
#
|
4060
4159
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricCollectionType AWS API Documentation
|
@@ -4563,7 +4662,7 @@ module Aws::AutoScaling
|
|
4563
4662
|
# @return [String]
|
4564
4663
|
#
|
4565
4664
|
# @!attribute [rw] adjustment_type
|
4566
|
-
# Specifies how the scaling adjustment is interpreted (
|
4665
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
4567
4666
|
# absolute number or a percentage). The valid values are
|
4568
4667
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4569
4668
|
#
|
@@ -4960,7 +5059,7 @@ module Aws::AutoScaling
|
|
4960
5059
|
# @return [String]
|
4961
5060
|
#
|
4962
5061
|
# @!attribute [rw] adjustment_type
|
4963
|
-
# Specifies how the scaling adjustment is interpreted (
|
5062
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
4964
5063
|
# absolute number or a percentage). The valid values are
|
4965
5064
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4966
5065
|
# @return [String]
|
@@ -5846,9 +5945,9 @@ module Aws::AutoScaling
|
|
5846
5945
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon
|
5847
5946
|
# EC2 Auto Scaling may need to go above `MaxSize` to meet your
|
5848
5947
|
# capacity requirements. In this event, Amazon EC2 Auto Scaling will
|
5849
|
-
# never go above `MaxSize` by more than your
|
5850
|
-
# (weights that define how many
|
5851
|
-
#
|
5948
|
+
# never go above `MaxSize` by more than your largest instance weight
|
5949
|
+
# (weights that define how many units each instance contributes to the
|
5950
|
+
# desired capacity of the group).
|
5852
5951
|
#
|
5853
5952
|
# </note>
|
5854
5953
|
# @return [Integer]
|
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.
|
4
|
+
version: 1.46.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-
|
11
|
+
date: 2020-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|