aws-sdk-autoscaling 1.42.0 → 1.47.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 +52 -13
- 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 +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +113 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a65e5422a6b8d2367aec636f3c3c801ebaa8f900fcfd47a63de0fd5d946935f
|
4
|
+
data.tar.gz: f8c8e3382708ac781260a9d331aac5b394d2f171350eba53428a3b9a8097f986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c109c5ff215ef16c6f413010ce0f98bb5a7a41d2d7a4a6ccdcb202333d968b11f836924552ba55714b602937cc01a5d57d93254a747c07fe3acd525a0f6c4c9
|
7
|
+
data.tar.gz: 656f6dff7ace5caca842c1799190b2782a787f7435405250e76f24e283b633f637af39eb28747c1bd3637d67e8cb1722eb49638e8c9db75d796204932d576c5b
|
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.47.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
|
@@ -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
|
808
|
-
# 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
|
809
831
|
# capacity of the group).
|
810
832
|
#
|
811
833
|
# </note>
|
@@ -1374,6 +1396,15 @@ module Aws::AutoScaling
|
|
1374
1396
|
#
|
1375
1397
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
1376
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
|
+
#
|
1377
1408
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1378
1409
|
#
|
1379
1410
|
#
|
@@ -1428,6 +1459,11 @@ module Aws::AutoScaling
|
|
1428
1459
|
# ebs_optimized: false,
|
1429
1460
|
# associate_public_ip_address: false,
|
1430
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
|
+
# },
|
1431
1467
|
# })
|
1432
1468
|
#
|
1433
1469
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration AWS API Documentation
|
@@ -2411,6 +2447,9 @@ module Aws::AutoScaling
|
|
2411
2447
|
# resp.launch_configurations[0].ebs_optimized #=> Boolean
|
2412
2448
|
# resp.launch_configurations[0].associate_public_ip_address #=> Boolean
|
2413
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"
|
2414
2453
|
# resp.next_token #=> String
|
2415
2454
|
#
|
2416
2455
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations AWS API Documentation
|
@@ -4119,7 +4158,7 @@ module Aws::AutoScaling
|
|
4119
4158
|
# * `SimpleScaling` (default)
|
4120
4159
|
#
|
4121
4160
|
# @option params [String] :adjustment_type
|
4122
|
-
# Specifies how the scaling adjustment is interpreted (
|
4161
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
4123
4162
|
# absolute number or a percentage). The valid values are
|
4124
4163
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4125
4164
|
#
|
@@ -5097,8 +5136,8 @@ module Aws::AutoScaling
|
|
5097
5136
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon EC2
|
5098
5137
|
# Auto Scaling may need to go above `MaxSize` to meet your capacity
|
5099
5138
|
# requirements. In this event, Amazon EC2 Auto Scaling will never go
|
5100
|
-
# above `MaxSize` by more than your
|
5101
|
-
# 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
|
5102
5141
|
# capacity of the group).
|
5103
5142
|
#
|
5104
5143
|
# </note>
|
@@ -5319,7 +5358,7 @@ module Aws::AutoScaling
|
|
5319
5358
|
params: params,
|
5320
5359
|
config: config)
|
5321
5360
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5322
|
-
context[:gem_version] = '1.
|
5361
|
+
context[:gem_version] = '1.47.0'
|
5323
5362
|
Seahorse::Client::Request.new(handlers, context)
|
5324
5363
|
end
|
5325
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]
|
@@ -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
|
@@ -3002,6 +3018,72 @@ module Aws::AutoScaling
|
|
3002
3018
|
include Aws::Structure
|
3003
3019
|
end
|
3004
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
|
+
|
3005
3087
|
# Describes whether detailed monitoring is enabled for the Auto Scaling
|
3006
3088
|
# instances.
|
3007
3089
|
#
|
@@ -3453,6 +3535,16 @@ module Aws::AutoScaling
|
|
3453
3535
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
3454
3536
|
# @return [String]
|
3455
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
|
+
#
|
3456
3548
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration AWS API Documentation
|
3457
3549
|
#
|
3458
3550
|
class LaunchConfiguration < Struct.new(
|
@@ -3474,7 +3566,8 @@ module Aws::AutoScaling
|
|
3474
3566
|
:created_time,
|
3475
3567
|
:ebs_optimized,
|
3476
3568
|
:associate_public_ip_address,
|
3477
|
-
:placement_tenancy
|
3569
|
+
:placement_tenancy,
|
3570
|
+
:metadata_options)
|
3478
3571
|
SENSITIVE = []
|
3479
3572
|
include Aws::Structure
|
3480
3573
|
end
|
@@ -4051,6 +4144,16 @@ module Aws::AutoScaling
|
|
4051
4144
|
# * `GroupTerminatingInstances`
|
4052
4145
|
#
|
4053
4146
|
# * `GroupTotalInstances`
|
4147
|
+
#
|
4148
|
+
# * `GroupInServiceCapacity`
|
4149
|
+
#
|
4150
|
+
# * `GroupPendingCapacity`
|
4151
|
+
#
|
4152
|
+
# * `GroupStandbyCapacity`
|
4153
|
+
#
|
4154
|
+
# * `GroupTerminatingCapacity`
|
4155
|
+
#
|
4156
|
+
# * `GroupTotalCapacity`
|
4054
4157
|
# @return [String]
|
4055
4158
|
#
|
4056
4159
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricCollectionType AWS API Documentation
|
@@ -4559,7 +4662,7 @@ module Aws::AutoScaling
|
|
4559
4662
|
# @return [String]
|
4560
4663
|
#
|
4561
4664
|
# @!attribute [rw] adjustment_type
|
4562
|
-
# Specifies how the scaling adjustment is interpreted (
|
4665
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
4563
4666
|
# absolute number or a percentage). The valid values are
|
4564
4667
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4565
4668
|
#
|
@@ -4956,7 +5059,7 @@ module Aws::AutoScaling
|
|
4956
5059
|
# @return [String]
|
4957
5060
|
#
|
4958
5061
|
# @!attribute [rw] adjustment_type
|
4959
|
-
# Specifies how the scaling adjustment is interpreted (
|
5062
|
+
# Specifies how the scaling adjustment is interpreted (for example, an
|
4960
5063
|
# absolute number or a percentage). The valid values are
|
4961
5064
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4962
5065
|
# @return [String]
|
@@ -5842,9 +5945,9 @@ module Aws::AutoScaling
|
|
5842
5945
|
# <note markdown="1"> With a mixed instances policy that uses instance weighting, Amazon
|
5843
5946
|
# EC2 Auto Scaling may need to go above `MaxSize` to meet your
|
5844
5947
|
# capacity requirements. In this event, Amazon EC2 Auto Scaling will
|
5845
|
-
# never go above `MaxSize` by more than your
|
5846
|
-
# (weights that define how many
|
5847
|
-
#
|
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).
|
5848
5951
|
#
|
5849
5952
|
# </note>
|
5850
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.47.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-30 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.
|
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.
|
32
|
+
version: 3.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|