aws-sdk-autoscaling 1.49.0 → 1.50.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 +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +6 -1
- data/lib/aws-sdk-autoscaling/client.rb +17 -3
- data/lib/aws-sdk-autoscaling/client_api.rb +1 -0
- data/lib/aws-sdk-autoscaling/resource.rb +7 -1
- data/lib/aws-sdk-autoscaling/types.rb +61 -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: 7f5cd630fa1733a3686b3a32353aa0c1049969555e2ced4d437049162b19b045
|
4
|
+
data.tar.gz: 47f35b87f1b91ba69dc7b577a2be602e0788c039ec0520997b9ccb19ae85d915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de4a71226e3bf5bbbb2161d0d903de16cabc63a9573f8a151649acd5ffc816bc4220ab3eb13eaa9f15189a56c6af2d85605c913ee00cf2f05c45211ce843184f
|
7
|
+
data.tar.gz: 59bf612f1affd9d86e3476b70861d5c72a6587af3cb1271909bccd1c0822e7c249520b21641d0b35c8dbeca6165224916e161fe0d0e27151204553d14df1208f
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -896,6 +896,11 @@ module Aws::AutoScaling
|
|
896
896
|
# {
|
897
897
|
# instance_type: "XmlStringMaxLen255",
|
898
898
|
# weighted_capacity: "XmlStringMaxLen32",
|
899
|
+
# launch_template_specification: {
|
900
|
+
# launch_template_id: "XmlStringMaxLen255",
|
901
|
+
# launch_template_name: "LaunchTemplateName",
|
902
|
+
# version: "XmlStringMaxLen255",
|
903
|
+
# },
|
899
904
|
# },
|
900
905
|
# ],
|
901
906
|
# },
|
@@ -936,7 +941,7 @@ module Aws::AutoScaling
|
|
936
941
|
# An embedded object that specifies a mixed instances policy. When you
|
937
942
|
# make changes to an existing policy, all optional parameters are left
|
938
943
|
# unchanged if not specified. For more information, see [Auto Scaling
|
939
|
-
#
|
944
|
+
# groups with multiple instance types and purchase options][1] in the
|
940
945
|
# *Amazon EC2 Auto Scaling User Guide*.
|
941
946
|
#
|
942
947
|
#
|
@@ -783,7 +783,8 @@ module Aws::AutoScaling
|
|
783
783
|
# types to fulfill On-Demand and Spot capacities, but also the
|
784
784
|
# parameters that specify the instance configuration information—the
|
785
785
|
# launch template and instance types. The policy can also include a
|
786
|
-
# weight for each instance type
|
786
|
+
# weight for each instance type and different launch templates for
|
787
|
+
# individual instance types. For more information, see [Auto Scaling
|
787
788
|
# groups with multiple instance types and purchase options][1] in the
|
788
789
|
# *Amazon EC2 Auto Scaling User Guide*.
|
789
790
|
#
|
@@ -1069,6 +1070,11 @@ module Aws::AutoScaling
|
|
1069
1070
|
# {
|
1070
1071
|
# instance_type: "XmlStringMaxLen255",
|
1071
1072
|
# weighted_capacity: "XmlStringMaxLen32",
|
1073
|
+
# launch_template_specification: {
|
1074
|
+
# launch_template_id: "XmlStringMaxLen255",
|
1075
|
+
# launch_template_name: "LaunchTemplateName",
|
1076
|
+
# version: "XmlStringMaxLen255",
|
1077
|
+
# },
|
1072
1078
|
# },
|
1073
1079
|
# ],
|
1074
1080
|
# },
|
@@ -2030,6 +2036,9 @@ module Aws::AutoScaling
|
|
2030
2036
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides #=> Array
|
2031
2037
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_type #=> String
|
2032
2038
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].weighted_capacity #=> String
|
2039
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_id #=> String
|
2040
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_name #=> String
|
2041
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.version #=> String
|
2033
2042
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
2034
2043
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
2035
2044
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
@@ -5094,7 +5103,7 @@ module Aws::AutoScaling
|
|
5094
5103
|
# An embedded object that specifies a mixed instances policy. When you
|
5095
5104
|
# make changes to an existing policy, all optional parameters are left
|
5096
5105
|
# unchanged if not specified. For more information, see [Auto Scaling
|
5097
|
-
#
|
5106
|
+
# groups with multiple instance types and purchase options][1] in the
|
5098
5107
|
# *Amazon EC2 Auto Scaling User Guide*.
|
5099
5108
|
#
|
5100
5109
|
#
|
@@ -5280,6 +5289,11 @@ module Aws::AutoScaling
|
|
5280
5289
|
# {
|
5281
5290
|
# instance_type: "XmlStringMaxLen255",
|
5282
5291
|
# weighted_capacity: "XmlStringMaxLen32",
|
5292
|
+
# launch_template_specification: {
|
5293
|
+
# launch_template_id: "XmlStringMaxLen255",
|
5294
|
+
# launch_template_name: "LaunchTemplateName",
|
5295
|
+
# version: "XmlStringMaxLen255",
|
5296
|
+
# },
|
5283
5297
|
# },
|
5284
5298
|
# ],
|
5285
5299
|
# },
|
@@ -5330,7 +5344,7 @@ module Aws::AutoScaling
|
|
5330
5344
|
params: params,
|
5331
5345
|
config: config)
|
5332
5346
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5333
|
-
context[:gem_version] = '1.
|
5347
|
+
context[:gem_version] = '1.50.0'
|
5334
5348
|
Seahorse::Client::Request.new(handlers, context)
|
5335
5349
|
end
|
5336
5350
|
|
@@ -787,6 +787,7 @@ module Aws::AutoScaling
|
|
787
787
|
|
788
788
|
LaunchTemplateOverrides.add_member(:instance_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceType"))
|
789
789
|
LaunchTemplateOverrides.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, location_name: "WeightedCapacity"))
|
790
|
+
LaunchTemplateOverrides.add_member(:launch_template_specification, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplateSpecification"))
|
790
791
|
LaunchTemplateOverrides.struct_class = Types::LaunchTemplateOverrides
|
791
792
|
|
792
793
|
LaunchTemplateSpecification.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchTemplateId"))
|
@@ -56,6 +56,11 @@ module Aws::AutoScaling
|
|
56
56
|
# {
|
57
57
|
# instance_type: "XmlStringMaxLen255",
|
58
58
|
# weighted_capacity: "XmlStringMaxLen32",
|
59
|
+
# launch_template_specification: {
|
60
|
+
# launch_template_id: "XmlStringMaxLen255",
|
61
|
+
# launch_template_name: "LaunchTemplateName",
|
62
|
+
# version: "XmlStringMaxLen255",
|
63
|
+
# },
|
59
64
|
# },
|
60
65
|
# ],
|
61
66
|
# },
|
@@ -146,7 +151,8 @@ module Aws::AutoScaling
|
|
146
151
|
# types to fulfill On-Demand and Spot capacities, but also the
|
147
152
|
# parameters that specify the instance configuration information—the
|
148
153
|
# launch template and instance types. The policy can also include a
|
149
|
-
# weight for each instance type
|
154
|
+
# weight for each instance type and different launch templates for
|
155
|
+
# individual instance types. For more information, see [Auto Scaling
|
150
156
|
# groups with multiple instance types and purchase options][1] in the
|
151
157
|
# *Amazon EC2 Auto Scaling User Guide*.
|
152
158
|
#
|
@@ -812,6 +812,11 @@ module Aws::AutoScaling
|
|
812
812
|
# {
|
813
813
|
# instance_type: "XmlStringMaxLen255",
|
814
814
|
# weighted_capacity: "XmlStringMaxLen32",
|
815
|
+
# launch_template_specification: {
|
816
|
+
# launch_template_id: "XmlStringMaxLen255",
|
817
|
+
# launch_template_name: "LaunchTemplateName",
|
818
|
+
# version: "XmlStringMaxLen255",
|
819
|
+
# },
|
815
820
|
# },
|
816
821
|
# ],
|
817
822
|
# },
|
@@ -908,8 +913,9 @@ module Aws::AutoScaling
|
|
908
913
|
# instance types to fulfill On-Demand and Spot capacities, but also
|
909
914
|
# the parameters that specify the instance configuration
|
910
915
|
# information—the launch template and instance types. The policy can
|
911
|
-
# also include a weight for each instance type
|
912
|
-
#
|
916
|
+
# also include a weight for each instance type and different launch
|
917
|
+
# templates for individual instance types. For more information, see
|
918
|
+
# [Auto Scaling groups with multiple instance types and purchase
|
913
919
|
# options][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
914
920
|
#
|
915
921
|
# Conditional: You must specify either a launch template
|
@@ -3590,9 +3596,7 @@ module Aws::AutoScaling
|
|
3590
3596
|
|
3591
3597
|
# Describes a launch template and overrides.
|
3592
3598
|
#
|
3593
|
-
#
|
3594
|
-
# launch template with multiple instance types that can be used to
|
3595
|
-
# launch On-Demand Instances and Spot Instances.
|
3599
|
+
# You specify these parameters as part of a mixed instances policy.
|
3596
3600
|
#
|
3597
3601
|
# When you update the launch template or overrides, existing Amazon EC2
|
3598
3602
|
# instances continue to run. When scale out occurs, Amazon EC2 Auto
|
@@ -3613,6 +3617,11 @@ module Aws::AutoScaling
|
|
3613
3617
|
# {
|
3614
3618
|
# instance_type: "XmlStringMaxLen255",
|
3615
3619
|
# weighted_capacity: "XmlStringMaxLen32",
|
3620
|
+
# launch_template_specification: {
|
3621
|
+
# launch_template_id: "XmlStringMaxLen255",
|
3622
|
+
# launch_template_name: "LaunchTemplateName",
|
3623
|
+
# version: "XmlStringMaxLen255",
|
3624
|
+
# },
|
3616
3625
|
# },
|
3617
3626
|
# ],
|
3618
3627
|
# }
|
@@ -3623,10 +3632,9 @@ module Aws::AutoScaling
|
|
3623
3632
|
#
|
3624
3633
|
# @!attribute [rw] overrides
|
3625
3634
|
# Any parameters that you specify override the same parameters in the
|
3626
|
-
# launch template.
|
3627
|
-
# type
|
3628
|
-
#
|
3629
|
-
# specified in the launch template when it launches an instance.
|
3635
|
+
# launch template. If not provided, Amazon EC2 Auto Scaling uses the
|
3636
|
+
# instance type specified in the launch template when it launches an
|
3637
|
+
# instance.
|
3630
3638
|
# @return [Array<Types::LaunchTemplateOverrides>]
|
3631
3639
|
#
|
3632
3640
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
|
@@ -3638,11 +3646,14 @@ module Aws::AutoScaling
|
|
3638
3646
|
include Aws::Structure
|
3639
3647
|
end
|
3640
3648
|
|
3641
|
-
# Describes an override for a launch template.
|
3642
|
-
#
|
3649
|
+
# Describes an override for a launch template. The maximum number of
|
3650
|
+
# instance types that can be associated with an Auto Scaling group is
|
3651
|
+
# 20. For more information, see [Configuring overrides][1] in the
|
3652
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
3653
|
+
#
|
3643
3654
|
#
|
3644
|
-
#
|
3645
|
-
#
|
3655
|
+
#
|
3656
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-override-options.html
|
3646
3657
|
#
|
3647
3658
|
# @note When making an API call, you may pass LaunchTemplateOverrides
|
3648
3659
|
# data as a hash:
|
@@ -3650,18 +3661,22 @@ module Aws::AutoScaling
|
|
3650
3661
|
# {
|
3651
3662
|
# instance_type: "XmlStringMaxLen255",
|
3652
3663
|
# weighted_capacity: "XmlStringMaxLen32",
|
3664
|
+
# launch_template_specification: {
|
3665
|
+
# launch_template_id: "XmlStringMaxLen255",
|
3666
|
+
# launch_template_name: "LaunchTemplateName",
|
3667
|
+
# version: "XmlStringMaxLen255",
|
3668
|
+
# },
|
3653
3669
|
# }
|
3654
3670
|
#
|
3655
3671
|
# @!attribute [rw] instance_type
|
3656
3672
|
# The instance type, such as `m3.xlarge`. You must use an instance
|
3657
3673
|
# type that is supported in your requested Region and Availability
|
3658
|
-
# Zones. For information
|
3659
|
-
#
|
3660
|
-
# User Guide.*
|
3674
|
+
# Zones. For more information, see [Instance types][1] in the *Amazon
|
3675
|
+
# Elastic Compute Cloud User Guide*.
|
3661
3676
|
#
|
3662
3677
|
#
|
3663
3678
|
#
|
3664
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
3679
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
3665
3680
|
# @return [String]
|
3666
3681
|
#
|
3667
3682
|
# @!attribute [rw] weighted_capacity
|
@@ -3685,11 +3700,26 @@ module Aws::AutoScaling
|
|
3685
3700
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html
|
3686
3701
|
# @return [String]
|
3687
3702
|
#
|
3703
|
+
# @!attribute [rw] launch_template_specification
|
3704
|
+
# Provides the launch template to be used when launching the instance
|
3705
|
+
# type. For example, some instance types might require a launch
|
3706
|
+
# template with a different AMI. If not provided, Amazon EC2 Auto
|
3707
|
+
# Scaling uses the launch template that's defined for your mixed
|
3708
|
+
# instances policy. For more information, see [Specifying a different
|
3709
|
+
# launch template for an instance type][1] in the *Amazon EC2 Auto
|
3710
|
+
# Scaling User Guide*.
|
3711
|
+
#
|
3712
|
+
#
|
3713
|
+
#
|
3714
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html
|
3715
|
+
# @return [Types::LaunchTemplateSpecification]
|
3716
|
+
#
|
3688
3717
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateOverrides AWS API Documentation
|
3689
3718
|
#
|
3690
3719
|
class LaunchTemplateOverrides < Struct.new(
|
3691
3720
|
:instance_type,
|
3692
|
-
:weighted_capacity
|
3721
|
+
:weighted_capacity,
|
3722
|
+
:launch_template_specification)
|
3693
3723
|
SENSITIVE = []
|
3694
3724
|
include Aws::Structure
|
3695
3725
|
end
|
@@ -4148,8 +4178,8 @@ module Aws::AutoScaling
|
|
4148
4178
|
# Describes a mixed instances policy for an Auto Scaling group. With
|
4149
4179
|
# mixed instances, your Auto Scaling group can provision a combination
|
4150
4180
|
# of On-Demand Instances and Spot Instances across multiple instance
|
4151
|
-
# types. For more information, see [Auto Scaling
|
4152
|
-
#
|
4181
|
+
# types. For more information, see [Auto Scaling groups with multiple
|
4182
|
+
# instance types and purchase options][1] in the *Amazon EC2 Auto
|
4153
4183
|
# Scaling User Guide*.
|
4154
4184
|
#
|
4155
4185
|
# You can create a mixed instances policy for a new Auto Scaling group,
|
@@ -4175,6 +4205,11 @@ module Aws::AutoScaling
|
|
4175
4205
|
# {
|
4176
4206
|
# instance_type: "XmlStringMaxLen255",
|
4177
4207
|
# weighted_capacity: "XmlStringMaxLen32",
|
4208
|
+
# launch_template_specification: {
|
4209
|
+
# launch_template_id: "XmlStringMaxLen255",
|
4210
|
+
# launch_template_name: "LaunchTemplateName",
|
4211
|
+
# version: "XmlStringMaxLen255",
|
4212
|
+
# },
|
4178
4213
|
# },
|
4179
4214
|
# ],
|
4180
4215
|
# },
|
@@ -5808,6 +5843,11 @@ module Aws::AutoScaling
|
|
5808
5843
|
# {
|
5809
5844
|
# instance_type: "XmlStringMaxLen255",
|
5810
5845
|
# weighted_capacity: "XmlStringMaxLen32",
|
5846
|
+
# launch_template_specification: {
|
5847
|
+
# launch_template_id: "XmlStringMaxLen255",
|
5848
|
+
# launch_template_name: "LaunchTemplateName",
|
5849
|
+
# version: "XmlStringMaxLen255",
|
5850
|
+
# },
|
5811
5851
|
# },
|
5812
5852
|
# ],
|
5813
5853
|
# },
|
@@ -5856,7 +5896,7 @@ module Aws::AutoScaling
|
|
5856
5896
|
# An embedded object that specifies a mixed instances policy. When you
|
5857
5897
|
# make changes to an existing policy, all optional parameters are left
|
5858
5898
|
# unchanged if not specified. For more information, see [Auto Scaling
|
5859
|
-
#
|
5899
|
+
# groups with multiple instance types and purchase options][1] in the
|
5860
5900
|
# *Amazon EC2 Auto Scaling User Guide*.
|
5861
5901
|
#
|
5862
5902
|
#
|
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.50.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-
|
11
|
+
date: 2020-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|