aws-sdk-autoscaling 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3866d10256da0a4bb8f5fe1d17410802f5a2294
4
- data.tar.gz: 979828c93d1c5be1bcc655c9e0a7183539745c0b
3
+ metadata.gz: 4881896af25970a4421222a4c333b8dc95b496e0
4
+ data.tar.gz: dfe8c32c1bdcb4da9ec51153bfca268bebdf7621
5
5
  SHA512:
6
- metadata.gz: 0edf212977bb0579bd5dc457aadd4bcdbff60c400becead9fee5748ffc3690f0a9bb0bddcc73916947eb0d8ea7d4c2c766ed37c3cf77ae24737566b6a69c681f
7
- data.tar.gz: b422e041107199c3f80ae4251f5417d19311051e7566d8f0b2e512379eb3315bde1fba032dc8c4ccd3e722be3bcd5140ed9c78a19f410f2eb42d99f1cfd9d01d
6
+ metadata.gz: 72b751498810b3f12f52fafe213e7e391c2b6daaa2fee0a10cd921b2d865241eeafb661a0639c234d8a4c23299d9ddb0cdf4b89d508e8d678e8615b121f9333d
7
+ data.tar.gz: 2e9f0aefcea69cf37b81bc238e9e3cf37471a669ca19de640b168edc8eea2d1a315878b1acb6169b362ff26cf016cdc8507cfb25db47f4ee278de37d6722c839
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
53
53
  # @service
54
54
  module Aws::AutoScaling
55
55
 
56
- GEM_VERSION = '1.3.0'
56
+ GEM_VERSION = '1.4.0'
57
57
 
58
58
  end
@@ -31,7 +31,7 @@ module Aws::AutoScaling
31
31
  end
32
32
  alias :auto_scaling_group_name :name
33
33
 
34
- # The Amazon Resource Name (ARN) of the group.
34
+ # The Amazon Resource Name (ARN) of the Auto Scaling group.
35
35
  # @return [String]
36
36
  def auto_scaling_group_arn
37
37
  data[:auto_scaling_group_arn]
@@ -43,6 +43,12 @@ module Aws::AutoScaling
43
43
  data[:launch_configuration_name]
44
44
  end
45
45
 
46
+ # The launch template for the group.
47
+ # @return [Types::LaunchTemplateSpecification]
48
+ def launch_template
49
+ data[:launch_template]
50
+ end
51
+
46
52
  # The minimum size of the group.
47
53
  # @return [Integer]
48
54
  def min_size
@@ -756,6 +762,11 @@ module Aws::AutoScaling
756
762
  #
757
763
  # autoscalinggroup = auto_scaling_group.update({
758
764
  # launch_configuration_name: "ResourceName",
765
+ # launch_template: {
766
+ # launch_template_id: "XmlStringMaxLen255",
767
+ # launch_template_name: "LaunchTemplateName",
768
+ # version: "XmlStringMaxLen255",
769
+ # },
759
770
  # min_size: 1,
760
771
  # max_size: 1,
761
772
  # desired_capacity: 1,
@@ -770,7 +781,11 @@ module Aws::AutoScaling
770
781
  # })
771
782
  # @param [Hash] options ({})
772
783
  # @option options [String] :launch_configuration_name
773
- # The name of the launch configuration.
784
+ # The name of the launch configuration. You must specify either a launch
785
+ # configuration or a launch template.
786
+ # @option options [Types::LaunchTemplateSpecification] :launch_template
787
+ # The launch template to use to specify the updates. You must specify a
788
+ # launch configuration or a launch template.
774
789
  # @option options [Integer] :min_size
775
790
  # The minimum size of the Auto Scaling group.
776
791
  # @option options [Integer] :max_size
@@ -1025,11 +1040,10 @@ module Aws::AutoScaling
1025
1040
  # })
1026
1041
  # @param [Hash] options ({})
1027
1042
  # @option options [Array<String>] :policy_names
1028
- # One or more policy names or policy ARNs to be described. If you omit
1029
- # this parameter, all policy names are described. If an group name is
1030
- # provided, the results are limited to that group. This list is limited
1031
- # to 50 items. If you specify an unknown policy name, it is ignored with
1032
- # no error.
1043
+ # The names of one or more policies. If you omit this parameter, all
1044
+ # policies are described. If an group name is provided, the results are
1045
+ # limited to that group. This list is limited to 50 items. If you
1046
+ # specify an unknown policy name, it is ignored with no error.
1033
1047
  # @option options [Array<String>] :policy_types
1034
1048
  # One or more policy types. Valid values are `SimpleScaling` and
1035
1049
  # `StepScaling`.
@@ -169,7 +169,7 @@ module Aws::AutoScaling
169
169
  # One or more instance IDs.
170
170
  #
171
171
  # @option params [required, String] :auto_scaling_group_name
172
- # The name of the group.
172
+ # The name of the Auto Scaling group.
173
173
  #
174
174
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
175
175
  #
@@ -269,7 +269,7 @@ module Aws::AutoScaling
269
269
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html
270
270
  #
271
271
  # @option params [required, String] :auto_scaling_group_name
272
- # The name of the group.
272
+ # The name of the Auto Scaling group.
273
273
  #
274
274
  # @option params [required, Array<String>] :load_balancer_names
275
275
  # One or more load balancer names.
@@ -339,7 +339,7 @@ module Aws::AutoScaling
339
339
  # The name of the lifecycle hook.
340
340
  #
341
341
  # @option params [required, String] :auto_scaling_group_name
342
- # The name of the group for the lifecycle hook.
342
+ # The name of the Auto Scaling group.
343
343
  #
344
344
  # @option params [String] :lifecycle_action_token
345
345
  # A universally unique identifier (UUID) that identifies a specific
@@ -402,17 +402,23 @@ module Aws::AutoScaling
402
402
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html
403
403
  #
404
404
  # @option params [required, String] :auto_scaling_group_name
405
- # The name of the group. This name must be unique within the scope of
406
- # your AWS account.
405
+ # The name of the Auto Scaling group. This name must be unique within
406
+ # the scope of your AWS account.
407
407
  #
408
408
  # @option params [String] :launch_configuration_name
409
- # The name of the launch configuration. Alternatively, specify an EC2
410
- # instance instead of a launch configuration.
409
+ # The name of the launch configuration. You must specify one of the
410
+ # following: a launch configuration, a launch template, or an EC2
411
+ # instance.
412
+ #
413
+ # @option params [Types::LaunchTemplateSpecification] :launch_template
414
+ # The launch template to use to launch instances. You must specify one
415
+ # of the following: a launch template, a launch configuration, or an EC2
416
+ # instance.
411
417
  #
412
418
  # @option params [String] :instance_id
413
419
  # The ID of the instance used to create a launch configuration for the
414
- # group. Alternatively, specify a launch configuration instead of an EC2
415
- # instance.
420
+ # group. You must specify one of the following: an EC2 instance, a
421
+ # launch configuration, or a launch template.
416
422
  #
417
423
  # When you specify an ID of an instance, Auto Scaling creates a new
418
424
  # launch configuration and associates it with the group. This launch
@@ -604,6 +610,11 @@ module Aws::AutoScaling
604
610
  # resp = client.create_auto_scaling_group({
605
611
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
606
612
  # launch_configuration_name: "ResourceName",
613
+ # launch_template: {
614
+ # launch_template_id: "XmlStringMaxLen255",
615
+ # launch_template_name: "LaunchTemplateName",
616
+ # version: "XmlStringMaxLen255",
617
+ # },
607
618
  # instance_id: "XmlStringMaxLen19",
608
619
  # min_size: 1, # required
609
620
  # max_size: 1, # required
@@ -621,7 +632,7 @@ module Aws::AutoScaling
621
632
  # lifecycle_hook_specification_list: [
622
633
  # {
623
634
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
624
- # lifecycle_transition: "LifecycleTransition",
635
+ # lifecycle_transition: "LifecycleTransition", # required
625
636
  # notification_metadata: "XmlStringMaxLen1023",
626
637
  # heartbeat_timeout: 1,
627
638
  # default_result: "LifecycleActionResult",
@@ -1011,7 +1022,7 @@ module Aws::AutoScaling
1011
1022
  # capacity of the Auto Scaling group to zero.
1012
1023
  #
1013
1024
  # @option params [required, String] :auto_scaling_group_name
1014
- # The name of the group to delete.
1025
+ # The name of the Auto Scaling group.
1015
1026
  #
1016
1027
  # @option params [Boolean] :force_delete
1017
1028
  # Specifies that the group will be deleted along with all instances
@@ -1100,7 +1111,7 @@ module Aws::AutoScaling
1100
1111
  # The name of the lifecycle hook.
1101
1112
  #
1102
1113
  # @option params [required, String] :auto_scaling_group_name
1103
- # The name of the Auto Scaling group for the lifecycle hook.
1114
+ # The name of the Auto Scaling group.
1104
1115
  #
1105
1116
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1106
1117
  #
@@ -1383,8 +1394,8 @@ module Aws::AutoScaling
1383
1394
  # Describes one or more Auto Scaling groups.
1384
1395
  #
1385
1396
  # @option params [Array<String>] :auto_scaling_group_names
1386
- # The group names. If you omit this parameter, all Auto Scaling groups
1387
- # are described.
1397
+ # The names of the Auto Scaling groups. If you omit this parameter, all
1398
+ # Auto Scaling groups are described.
1388
1399
  #
1389
1400
  # @option params [String] :next_token
1390
1401
  # The token for the next set of items to return. (You received this
@@ -1468,6 +1479,9 @@ module Aws::AutoScaling
1468
1479
  # resp.auto_scaling_groups[0].auto_scaling_group_name #=> String
1469
1480
  # resp.auto_scaling_groups[0].auto_scaling_group_arn #=> String
1470
1481
  # resp.auto_scaling_groups[0].launch_configuration_name #=> String
1482
+ # resp.auto_scaling_groups[0].launch_template.launch_template_id #=> String
1483
+ # resp.auto_scaling_groups[0].launch_template.launch_template_name #=> String
1484
+ # resp.auto_scaling_groups[0].launch_template.version #=> String
1471
1485
  # resp.auto_scaling_groups[0].min_size #=> Integer
1472
1486
  # resp.auto_scaling_groups[0].max_size #=> Integer
1473
1487
  # resp.auto_scaling_groups[0].desired_capacity #=> Integer
@@ -1486,6 +1500,9 @@ module Aws::AutoScaling
1486
1500
  # resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby"
1487
1501
  # resp.auto_scaling_groups[0].instances[0].health_status #=> String
1488
1502
  # resp.auto_scaling_groups[0].instances[0].launch_configuration_name #=> String
1503
+ # resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_id #=> String
1504
+ # resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_name #=> String
1505
+ # resp.auto_scaling_groups[0].instances[0].launch_template.version #=> String
1489
1506
  # resp.auto_scaling_groups[0].instances[0].protected_from_scale_in #=> Boolean
1490
1507
  # resp.auto_scaling_groups[0].created_time #=> Time
1491
1508
  # resp.auto_scaling_groups[0].suspended_processes #=> Array
@@ -1580,6 +1597,9 @@ module Aws::AutoScaling
1580
1597
  # resp.auto_scaling_instances[0].lifecycle_state #=> String
1581
1598
  # resp.auto_scaling_instances[0].health_status #=> String
1582
1599
  # resp.auto_scaling_instances[0].launch_configuration_name #=> String
1600
+ # resp.auto_scaling_instances[0].launch_template.launch_template_id #=> String
1601
+ # resp.auto_scaling_instances[0].launch_template.launch_template_name #=> String
1602
+ # resp.auto_scaling_instances[0].launch_template.version #=> String
1583
1603
  # resp.auto_scaling_instances[0].protected_from_scale_in #=> Boolean
1584
1604
  # resp.next_token #=> String
1585
1605
  #
@@ -1775,7 +1795,7 @@ module Aws::AutoScaling
1775
1795
  # Describes the lifecycle hooks for the specified Auto Scaling group.
1776
1796
  #
1777
1797
  # @option params [required, String] :auto_scaling_group_name
1778
- # The name of the group.
1798
+ # The name of the Auto Scaling group.
1779
1799
  #
1780
1800
  # @option params [Array<String>] :lifecycle_hook_names
1781
1801
  # The names of one or more lifecycle hooks. If you omit this parameter,
@@ -1907,7 +1927,7 @@ module Aws::AutoScaling
1907
1927
  # instead.
1908
1928
  #
1909
1929
  # @option params [required, String] :auto_scaling_group_name
1910
- # The name of the group.
1930
+ # The name of the Auto Scaling group.
1911
1931
  #
1912
1932
  # @option params [String] :next_token
1913
1933
  # The token for the next set of items to return. (You received this
@@ -2039,7 +2059,7 @@ module Aws::AutoScaling
2039
2059
  # Scaling group.
2040
2060
  #
2041
2061
  # @option params [Array<String>] :auto_scaling_group_names
2042
- # The name of the group.
2062
+ # The name of the Auto Scaling group.
2043
2063
  #
2044
2064
  # @option params [String] :next_token
2045
2065
  # The token for the next set of items to return. (You received this
@@ -2109,14 +2129,13 @@ module Aws::AutoScaling
2109
2129
  # Describes the policies for the specified Auto Scaling group.
2110
2130
  #
2111
2131
  # @option params [String] :auto_scaling_group_name
2112
- # The name of the group.
2132
+ # The name of the Auto Scaling group.
2113
2133
  #
2114
2134
  # @option params [Array<String>] :policy_names
2115
- # One or more policy names or policy ARNs to be described. If you omit
2116
- # this parameter, all policy names are described. If an group name is
2117
- # provided, the results are limited to that group. This list is limited
2118
- # to 50 items. If you specify an unknown policy name, it is ignored with
2119
- # no error.
2135
+ # The names of one or more policies. If you omit this parameter, all
2136
+ # policies are described. If an group name is provided, the results are
2137
+ # limited to that group. This list is limited to 50 items. If you
2138
+ # specify an unknown policy name, it is ignored with no error.
2120
2139
  #
2121
2140
  # @option params [Array<String>] :policy_types
2122
2141
  # One or more policy types. Valid values are `SimpleScaling` and
@@ -2234,7 +2253,7 @@ module Aws::AutoScaling
2234
2253
  # unknown activities are requested, they are ignored with no error.
2235
2254
  #
2236
2255
  # @option params [String] :auto_scaling_group_name
2237
- # The name of the group.
2256
+ # The name of the Auto Scaling group.
2238
2257
  #
2239
2258
  # @option params [Integer] :max_records
2240
2259
  # The maximum number of items to return with this call. The default
@@ -2372,7 +2391,7 @@ module Aws::AutoScaling
2372
2391
  # DescribeScalingActivities.
2373
2392
  #
2374
2393
  # @option params [String] :auto_scaling_group_name
2375
- # The name of the group.
2394
+ # The name of the Auto Scaling group.
2376
2395
  #
2377
2396
  # @option params [Array<String>] :scheduled_action_names
2378
2397
  # Describes one or more scheduled actions. If you omit this parameter,
@@ -2623,7 +2642,7 @@ module Aws::AutoScaling
2623
2642
  # One or more instance IDs.
2624
2643
  #
2625
2644
  # @option params [required, String] :auto_scaling_group_name
2626
- # The name of the group.
2645
+ # The name of the Auto Scaling group.
2627
2646
  #
2628
2647
  # @option params [required, Boolean] :should_decrement_desired_capacity
2629
2648
  # If `True`, the Auto Scaling group decrements the desired capacity
@@ -2783,7 +2802,7 @@ module Aws::AutoScaling
2783
2802
  # Disables group metrics for the specified Auto Scaling group.
2784
2803
  #
2785
2804
  # @option params [required, String] :auto_scaling_group_name
2786
- # The name or Amazon Resource Name (ARN) of the group.
2805
+ # The name of the Auto Scaling group.
2787
2806
  #
2788
2807
  # @option params [Array<String>] :metrics
2789
2808
  # One or more of the following metrics. If you omit this parameter, all
@@ -2844,7 +2863,7 @@ module Aws::AutoScaling
2844
2863
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html
2845
2864
  #
2846
2865
  # @option params [required, String] :auto_scaling_group_name
2847
- # The name or ARN of the Auto Scaling group.
2866
+ # The name of the Auto Scaling group.
2848
2867
  #
2849
2868
  # @option params [Array<String>] :metrics
2850
2869
  # One or more of the following metrics. If you omit this parameter, all
@@ -2988,7 +3007,7 @@ module Aws::AutoScaling
2988
3007
  # Executes the specified policy.
2989
3008
  #
2990
3009
  # @option params [String] :auto_scaling_group_name
2991
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
3010
+ # The name of the Auto Scaling group.
2992
3011
  #
2993
3012
  # @option params [required, String] :policy_name
2994
3013
  # The name or ARN of the policy.
@@ -3181,8 +3200,7 @@ module Aws::AutoScaling
3181
3200
  # The name of the lifecycle hook.
3182
3201
  #
3183
3202
  # @option params [required, String] :auto_scaling_group_name
3184
- # The name of the Auto Scaling group to which you want to assign the
3185
- # lifecycle hook.
3203
+ # The name of the Auto Scaling group.
3186
3204
  #
3187
3205
  # @option params [String] :lifecycle_transition
3188
3206
  # The instance state to which you want to attach the lifecycle hook. For
@@ -3341,7 +3359,7 @@ module Aws::AutoScaling
3341
3359
  # [1]: http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
3342
3360
  #
3343
3361
  # @option params [required, String] :auto_scaling_group_name
3344
- # The name or ARN of the group.
3362
+ # The name of the Auto Scaling group.
3345
3363
  #
3346
3364
  # @option params [required, String] :policy_name
3347
3365
  # The name of the policy.
@@ -3520,7 +3538,7 @@ module Aws::AutoScaling
3520
3538
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html
3521
3539
  #
3522
3540
  # @option params [required, String] :auto_scaling_group_name
3523
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
3541
+ # The name of the Auto Scaling group.
3524
3542
  #
3525
3543
  # @option params [required, String] :scheduled_action_name
3526
3544
  # The name of this scaling action.
@@ -3636,7 +3654,7 @@ module Aws::AutoScaling
3636
3654
  # The name of the lifecycle hook.
3637
3655
  #
3638
3656
  # @option params [required, String] :auto_scaling_group_name
3639
- # The name of the Auto Scaling group for the hook.
3657
+ # The name of the Auto Scaling group.
3640
3658
  #
3641
3659
  # @option params [String] :lifecycle_action_token
3642
3660
  # A token that uniquely identifies a specific lifecycle action
@@ -3688,7 +3706,7 @@ module Aws::AutoScaling
3688
3706
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html
3689
3707
  #
3690
3708
  # @option params [required, String] :auto_scaling_group_name
3691
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
3709
+ # The name of the Auto Scaling group.
3692
3710
  #
3693
3711
  # @option params [Array<String>] :scaling_processes
3694
3712
  # One or more of the following processes. If you omit this parameter,
@@ -3862,7 +3880,7 @@ module Aws::AutoScaling
3862
3880
  # One or more instance IDs.
3863
3881
  #
3864
3882
  # @option params [required, String] :auto_scaling_group_name
3865
- # The name of the group.
3883
+ # The name of the Auto Scaling group.
3866
3884
  #
3867
3885
  # @option params [required, Boolean] :protected_from_scale_in
3868
3886
  # Indicates whether the instance is protected from termination by Auto
@@ -3928,7 +3946,7 @@ module Aws::AutoScaling
3928
3946
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html
3929
3947
  #
3930
3948
  # @option params [required, String] :auto_scaling_group_name
3931
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
3949
+ # The name of the Auto Scaling group.
3932
3950
  #
3933
3951
  # @option params [Array<String>] :scaling_processes
3934
3952
  # One or more of the following processes. If you omit this parameter,
@@ -4067,7 +4085,12 @@ module Aws::AutoScaling
4067
4085
  # The name of the Auto Scaling group.
4068
4086
  #
4069
4087
  # @option params [String] :launch_configuration_name
4070
- # The name of the launch configuration.
4088
+ # The name of the launch configuration. You must specify either a launch
4089
+ # configuration or a launch template.
4090
+ #
4091
+ # @option params [Types::LaunchTemplateSpecification] :launch_template
4092
+ # The launch template to use to specify the updates. You must specify a
4093
+ # launch configuration or a launch template.
4071
4094
  #
4072
4095
  # @option params [Integer] :min_size
4073
4096
  # The minimum size of the Auto Scaling group.
@@ -4186,6 +4209,11 @@ module Aws::AutoScaling
4186
4209
  # resp = client.update_auto_scaling_group({
4187
4210
  # auto_scaling_group_name: "ResourceName", # required
4188
4211
  # launch_configuration_name: "ResourceName",
4212
+ # launch_template: {
4213
+ # launch_template_id: "XmlStringMaxLen255",
4214
+ # launch_template_name: "LaunchTemplateName",
4215
+ # version: "XmlStringMaxLen255",
4216
+ # },
4189
4217
  # min_size: 1,
4190
4218
  # max_size: 1,
4191
4219
  # desired_capacity: 1,
@@ -4221,7 +4249,7 @@ module Aws::AutoScaling
4221
4249
  params: params,
4222
4250
  config: config)
4223
4251
  context[:gem_name] = 'aws-sdk-autoscaling'
4224
- context[:gem_version] = '1.3.0'
4252
+ context[:gem_version] = '1.4.0'
4225
4253
  Seahorse::Client::Request.new(handlers, context)
4226
4254
  end
4227
4255
 
@@ -120,6 +120,8 @@ module Aws::AutoScaling
120
120
  LaunchConfigurationNamesType = Shapes::StructureShape.new(name: 'LaunchConfigurationNamesType')
121
121
  LaunchConfigurations = Shapes::ListShape.new(name: 'LaunchConfigurations')
122
122
  LaunchConfigurationsType = Shapes::StructureShape.new(name: 'LaunchConfigurationsType')
123
+ LaunchTemplateName = Shapes::StringShape.new(name: 'LaunchTemplateName')
124
+ LaunchTemplateSpecification = Shapes::StructureShape.new(name: 'LaunchTemplateSpecification')
123
125
  LifecycleActionResult = Shapes::StringShape.new(name: 'LifecycleActionResult')
124
126
  LifecycleActionToken = Shapes::StringShape.new(name: 'LifecycleActionToken')
125
127
  LifecycleHook = Shapes::StructureShape.new(name: 'LifecycleHook')
@@ -284,6 +286,7 @@ module Aws::AutoScaling
284
286
  AutoScalingGroup.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
285
287
  AutoScalingGroup.add_member(:auto_scaling_group_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "AutoScalingGroupARN"))
286
288
  AutoScalingGroup.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
289
+ AutoScalingGroup.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
287
290
  AutoScalingGroup.add_member(:min_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMinSize, required: true, location_name: "MinSize"))
288
291
  AutoScalingGroup.add_member(:max_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMaxSize, required: true, location_name: "MaxSize"))
289
292
  AutoScalingGroup.add_member(:desired_capacity, Shapes::ShapeRef.new(shape: AutoScalingGroupDesiredCapacity, required: true, location_name: "DesiredCapacity"))
@@ -323,7 +326,8 @@ module Aws::AutoScaling
323
326
  AutoScalingInstanceDetails.add_member(:availability_zone, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AvailabilityZone"))
324
327
  AutoScalingInstanceDetails.add_member(:lifecycle_state, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, required: true, location_name: "LifecycleState"))
325
328
  AutoScalingInstanceDetails.add_member(:health_status, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, required: true, location_name: "HealthStatus"))
326
- AutoScalingInstanceDetails.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
329
+ AutoScalingInstanceDetails.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
330
+ AutoScalingInstanceDetails.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
327
331
  AutoScalingInstanceDetails.add_member(:protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, required: true, location_name: "ProtectedFromScaleIn"))
328
332
  AutoScalingInstanceDetails.struct_class = Types::AutoScalingInstanceDetails
329
333
 
@@ -358,6 +362,7 @@ module Aws::AutoScaling
358
362
 
359
363
  CreateAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
360
364
  CreateAutoScalingGroupType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "LaunchConfigurationName"))
365
+ CreateAutoScalingGroupType.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
361
366
  CreateAutoScalingGroupType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, location_name: "InstanceId"))
362
367
  CreateAutoScalingGroupType.add_member(:min_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMinSize, required: true, location_name: "MinSize"))
363
368
  CreateAutoScalingGroupType.add_member(:max_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMaxSize, required: true, location_name: "MaxSize"))
@@ -593,7 +598,8 @@ module Aws::AutoScaling
593
598
  Instance.add_member(:availability_zone, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AvailabilityZone"))
594
599
  Instance.add_member(:lifecycle_state, Shapes::ShapeRef.new(shape: LifecycleState, required: true, location_name: "LifecycleState"))
595
600
  Instance.add_member(:health_status, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, required: true, location_name: "HealthStatus"))
596
- Instance.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
601
+ Instance.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchConfigurationName"))
602
+ Instance.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
597
603
  Instance.add_member(:protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, required: true, location_name: "ProtectedFromScaleIn"))
598
604
  Instance.struct_class = Types::Instance
599
605
 
@@ -641,6 +647,11 @@ module Aws::AutoScaling
641
647
  LaunchConfigurationsType.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
642
648
  LaunchConfigurationsType.struct_class = Types::LaunchConfigurationsType
643
649
 
650
+ LaunchTemplateSpecification.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "LaunchTemplateId"))
651
+ LaunchTemplateSpecification.add_member(:launch_template_name, Shapes::ShapeRef.new(shape: LaunchTemplateName, location_name: "LaunchTemplateName"))
652
+ LaunchTemplateSpecification.add_member(:version, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "Version"))
653
+ LaunchTemplateSpecification.struct_class = Types::LaunchTemplateSpecification
654
+
644
655
  LifecycleHook.add_member(:lifecycle_hook_name, Shapes::ShapeRef.new(shape: AsciiStringMaxLen255, location_name: "LifecycleHookName"))
645
656
  LifecycleHook.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "AutoScalingGroupName"))
646
657
  LifecycleHook.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, location_name: "LifecycleTransition"))
@@ -655,7 +666,7 @@ module Aws::AutoScaling
655
666
  LifecycleHookNames.member = Shapes::ShapeRef.new(shape: AsciiStringMaxLen255)
656
667
 
657
668
  LifecycleHookSpecification.add_member(:lifecycle_hook_name, Shapes::ShapeRef.new(shape: AsciiStringMaxLen255, required: true, location_name: "LifecycleHookName"))
658
- LifecycleHookSpecification.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, location_name: "LifecycleTransition"))
669
+ LifecycleHookSpecification.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, required: true, location_name: "LifecycleTransition"))
659
670
  LifecycleHookSpecification.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "NotificationMetadata"))
660
671
  LifecycleHookSpecification.add_member(:heartbeat_timeout, Shapes::ShapeRef.new(shape: HeartbeatTimeout, location_name: "HeartbeatTimeout"))
661
672
  LifecycleHookSpecification.add_member(:default_result, Shapes::ShapeRef.new(shape: LifecycleActionResult, location_name: "DefaultResult"))
@@ -894,6 +905,7 @@ module Aws::AutoScaling
894
905
 
895
906
  UpdateAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "AutoScalingGroupName"))
896
907
  UpdateAutoScalingGroupType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "LaunchConfigurationName"))
908
+ UpdateAutoScalingGroupType.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
897
909
  UpdateAutoScalingGroupType.add_member(:min_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMinSize, location_name: "MinSize"))
898
910
  UpdateAutoScalingGroupType.add_member(:max_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMaxSize, location_name: "MaxSize"))
899
911
  UpdateAutoScalingGroupType.add_member(:desired_capacity, Shapes::ShapeRef.new(shape: AutoScalingGroupDesiredCapacity, location_name: "DesiredCapacity"))
@@ -73,6 +73,12 @@ module Aws::AutoScaling
73
73
  data[:launch_configuration_name]
74
74
  end
75
75
 
76
+ # The launch template for the instance.
77
+ # @return [Types::LaunchTemplateSpecification]
78
+ def launch_template
79
+ data[:launch_template]
80
+ end
81
+
76
82
  # Indicates whether the instance is protected from termination by Auto
77
83
  # Scaling when scaling in.
78
84
  # @return [Boolean]
@@ -26,6 +26,11 @@ module Aws::AutoScaling
26
26
  # autoscalinggroup = auto_scaling.create_group({
27
27
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
28
28
  # launch_configuration_name: "ResourceName",
29
+ # launch_template: {
30
+ # launch_template_id: "XmlStringMaxLen255",
31
+ # launch_template_name: "LaunchTemplateName",
32
+ # version: "XmlStringMaxLen255",
33
+ # },
29
34
  # instance_id: "XmlStringMaxLen19",
30
35
  # min_size: 1, # required
31
36
  # max_size: 1, # required
@@ -43,7 +48,7 @@ module Aws::AutoScaling
43
48
  # lifecycle_hook_specification_list: [
44
49
  # {
45
50
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
46
- # lifecycle_transition: "LifecycleTransition",
51
+ # lifecycle_transition: "LifecycleTransition", # required
47
52
  # notification_metadata: "XmlStringMaxLen1023",
48
53
  # heartbeat_timeout: 1,
49
54
  # default_result: "LifecycleActionResult",
@@ -63,15 +68,20 @@ module Aws::AutoScaling
63
68
  # })
64
69
  # @param [Hash] options ({})
65
70
  # @option options [required, String] :auto_scaling_group_name
66
- # The name of the group. This name must be unique within the scope of
67
- # your AWS account.
71
+ # The name of the Auto Scaling group. This name must be unique within
72
+ # the scope of your AWS account.
68
73
  # @option options [String] :launch_configuration_name
69
- # The name of the launch configuration. Alternatively, specify an EC2
70
- # instance instead of a launch configuration.
74
+ # The name of the launch configuration. You must specify one of the
75
+ # following: a launch configuration, a launch template, or an EC2
76
+ # instance.
77
+ # @option options [Types::LaunchTemplateSpecification] :launch_template
78
+ # The launch template to use to launch instances. You must specify one
79
+ # of the following: a launch template, a launch configuration, or an EC2
80
+ # instance.
71
81
  # @option options [String] :instance_id
72
82
  # The ID of the instance used to create a launch configuration for the
73
- # group. Alternatively, specify a launch configuration instead of an EC2
74
- # instance.
83
+ # group. You must specify one of the following: an EC2 instance, a
84
+ # launch configuration, or a launch template.
75
85
  #
76
86
  # When you specify an ID of an instance, Auto Scaling creates a new
77
87
  # launch configuration and associates it with the group. This launch
@@ -446,7 +456,7 @@ module Aws::AutoScaling
446
456
  # The list of requested activities cannot contain more than 50 items. If
447
457
  # unknown activities are requested, they are ignored with no error.
448
458
  # @option options [String] :auto_scaling_group_name
449
- # The name of the group.
459
+ # The name of the Auto Scaling group.
450
460
  # @return [Activity::Collection]
451
461
  def activities(options = {})
452
462
  batches = Enumerator.new do |y|
@@ -491,8 +501,8 @@ module Aws::AutoScaling
491
501
  # })
492
502
  # @param [Hash] options ({})
493
503
  # @option options [Array<String>] :auto_scaling_group_names
494
- # The group names. If you omit this parameter, all Auto Scaling groups
495
- # are described.
504
+ # The names of the Auto Scaling groups. If you omit this parameter, all
505
+ # Auto Scaling groups are described.
496
506
  # @return [AutoScalingGroup::Collection]
497
507
  def groups(options = {})
498
508
  batches = Enumerator.new do |y|
@@ -588,13 +598,12 @@ module Aws::AutoScaling
588
598
  # })
589
599
  # @param [Hash] options ({})
590
600
  # @option options [String] :auto_scaling_group_name
591
- # The name of the group.
601
+ # The name of the Auto Scaling group.
592
602
  # @option options [Array<String>] :policy_names
593
- # One or more policy names or policy ARNs to be described. If you omit
594
- # this parameter, all policy names are described. If an group name is
595
- # provided, the results are limited to that group. This list is limited
596
- # to 50 items. If you specify an unknown policy name, it is ignored with
597
- # no error.
603
+ # The names of one or more policies. If you omit this parameter, all
604
+ # policies are described. If an group name is provided, the results are
605
+ # limited to that group. This list is limited to 50 items. If you
606
+ # specify an unknown policy name, it is ignored with no error.
598
607
  # @option options [Array<String>] :policy_types
599
608
  # One or more policy types. Valid values are `SimpleScaling` and
600
609
  # `StepScaling`.
@@ -645,7 +654,7 @@ module Aws::AutoScaling
645
654
  # })
646
655
  # @param [Hash] options ({})
647
656
  # @option options [String] :auto_scaling_group_name
648
- # The name of the group.
657
+ # The name of the Auto Scaling group.
649
658
  # @option options [Array<String>] :scheduled_action_names
650
659
  # Describes one or more scheduled actions. If you omit this parameter,
651
660
  # all scheduled actions are described. If you specify an unknown
@@ -31,8 +31,7 @@ module Aws::AutoScaling
31
31
  end
32
32
  alias :policy_name :name
33
33
 
34
- # The name of the Auto Scaling group associated with this scaling
35
- # policy.
34
+ # The name of the Auto Scaling group.
36
35
  # @return [String]
37
36
  def auto_scaling_group_name
38
37
  data[:auto_scaling_group_name]
@@ -279,7 +278,7 @@ module Aws::AutoScaling
279
278
  # })
280
279
  # @param [Hash] options ({})
281
280
  # @option options [String] :auto_scaling_group_name
282
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
281
+ # The name of the Auto Scaling group.
283
282
  # @option options [Boolean] :honor_cooldown
284
283
  # If this parameter is true, Auto Scaling waits for the cooldown period
285
284
  # to complete before executing the policy. Otherwise, Auto Scaling
@@ -31,7 +31,7 @@ module Aws::AutoScaling
31
31
  end
32
32
  alias :scheduled_action_name :name
33
33
 
34
- # The name of the group.
34
+ # The name of the Auto Scaling group.
35
35
  # @return [String]
36
36
  def auto_scaling_group_name
37
37
  data[:auto_scaling_group_name]
@@ -150,7 +150,7 @@ module Aws::AutoScaling
150
150
  # @return [Array<String>]
151
151
  #
152
152
  # @!attribute [rw] auto_scaling_group_name
153
- # The name of the group.
153
+ # The name of the Auto Scaling group.
154
154
  # @return [String]
155
155
  #
156
156
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstancesQuery AWS API Documentation
@@ -202,7 +202,7 @@ module Aws::AutoScaling
202
202
  # }
203
203
  #
204
204
  # @!attribute [rw] auto_scaling_group_name
205
- # The name of the group.
205
+ # The name of the Auto Scaling group.
206
206
  # @return [String]
207
207
  #
208
208
  # @!attribute [rw] load_balancer_names
@@ -220,17 +220,21 @@ module Aws::AutoScaling
220
220
  # Describes an Auto Scaling group.
221
221
  #
222
222
  # @!attribute [rw] auto_scaling_group_name
223
- # The name of the group.
223
+ # The name of the Auto Scaling group.
224
224
  # @return [String]
225
225
  #
226
226
  # @!attribute [rw] auto_scaling_group_arn
227
- # The Amazon Resource Name (ARN) of the group.
227
+ # The Amazon Resource Name (ARN) of the Auto Scaling group.
228
228
  # @return [String]
229
229
  #
230
230
  # @!attribute [rw] launch_configuration_name
231
231
  # The name of the associated launch configuration.
232
232
  # @return [String]
233
233
  #
234
+ # @!attribute [rw] launch_template
235
+ # The launch template for the group.
236
+ # @return [Types::LaunchTemplateSpecification]
237
+ #
234
238
  # @!attribute [rw] min_size
235
239
  # The minimum size of the group.
236
240
  # @return [Integer]
@@ -330,6 +334,7 @@ module Aws::AutoScaling
330
334
  :auto_scaling_group_name,
331
335
  :auto_scaling_group_arn,
332
336
  :launch_configuration_name,
337
+ :launch_template,
333
338
  :min_size,
334
339
  :max_size,
335
340
  :desired_capacity,
@@ -362,8 +367,8 @@ module Aws::AutoScaling
362
367
  # }
363
368
  #
364
369
  # @!attribute [rw] auto_scaling_group_names
365
- # The group names. If you omit this parameter, all Auto Scaling groups
366
- # are described.
370
+ # The names of the Auto Scaling groups. If you omit this parameter,
371
+ # all Auto Scaling groups are described.
367
372
  # @return [Array<String>]
368
373
  #
369
374
  # @!attribute [rw] next_token
@@ -409,7 +414,7 @@ module Aws::AutoScaling
409
414
  # @return [String]
410
415
  #
411
416
  # @!attribute [rw] auto_scaling_group_name
412
- # The name of the Auto Scaling group associated with the instance.
417
+ # The name of the Auto Scaling group for the instance.
413
418
  # @return [String]
414
419
  #
415
420
  # @!attribute [rw] availability_zone
@@ -438,6 +443,10 @@ module Aws::AutoScaling
438
443
  # group.
439
444
  # @return [String]
440
445
  #
446
+ # @!attribute [rw] launch_template
447
+ # The launch template for the instance.
448
+ # @return [Types::LaunchTemplateSpecification]
449
+ #
441
450
  # @!attribute [rw] protected_from_scale_in
442
451
  # Indicates whether the instance is protected from termination by Auto
443
452
  # Scaling when scaling in.
@@ -452,6 +461,7 @@ module Aws::AutoScaling
452
461
  :lifecycle_state,
453
462
  :health_status,
454
463
  :launch_configuration_name,
464
+ :launch_template,
455
465
  :protected_from_scale_in)
456
466
  include Aws::Structure
457
467
  end
@@ -543,7 +553,7 @@ module Aws::AutoScaling
543
553
  # @return [String]
544
554
  #
545
555
  # @!attribute [rw] auto_scaling_group_name
546
- # The name of the group for the lifecycle hook.
556
+ # The name of the Auto Scaling group.
547
557
  # @return [String]
548
558
  #
549
559
  # @!attribute [rw] lifecycle_action_token
@@ -579,6 +589,11 @@ module Aws::AutoScaling
579
589
  # {
580
590
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
581
591
  # launch_configuration_name: "ResourceName",
592
+ # launch_template: {
593
+ # launch_template_id: "XmlStringMaxLen255",
594
+ # launch_template_name: "LaunchTemplateName",
595
+ # version: "XmlStringMaxLen255",
596
+ # },
582
597
  # instance_id: "XmlStringMaxLen19",
583
598
  # min_size: 1, # required
584
599
  # max_size: 1, # required
@@ -596,7 +611,7 @@ module Aws::AutoScaling
596
611
  # lifecycle_hook_specification_list: [
597
612
  # {
598
613
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
599
- # lifecycle_transition: "LifecycleTransition",
614
+ # lifecycle_transition: "LifecycleTransition", # required
600
615
  # notification_metadata: "XmlStringMaxLen1023",
601
616
  # heartbeat_timeout: 1,
602
617
  # default_result: "LifecycleActionResult",
@@ -616,19 +631,26 @@ module Aws::AutoScaling
616
631
  # }
617
632
  #
618
633
  # @!attribute [rw] auto_scaling_group_name
619
- # The name of the group. This name must be unique within the scope of
620
- # your AWS account.
634
+ # The name of the Auto Scaling group. This name must be unique within
635
+ # the scope of your AWS account.
621
636
  # @return [String]
622
637
  #
623
638
  # @!attribute [rw] launch_configuration_name
624
- # The name of the launch configuration. Alternatively, specify an EC2
625
- # instance instead of a launch configuration.
639
+ # The name of the launch configuration. You must specify one of the
640
+ # following: a launch configuration, a launch template, or an EC2
641
+ # instance.
626
642
  # @return [String]
627
643
  #
644
+ # @!attribute [rw] launch_template
645
+ # The launch template to use to launch instances. You must specify one
646
+ # of the following: a launch template, a launch configuration, or an
647
+ # EC2 instance.
648
+ # @return [Types::LaunchTemplateSpecification]
649
+ #
628
650
  # @!attribute [rw] instance_id
629
651
  # The ID of the instance used to create a launch configuration for the
630
- # group. Alternatively, specify a launch configuration instead of an
631
- # EC2 instance.
652
+ # group. You must specify one of the following: an EC2 instance, a
653
+ # launch configuration, or a launch template.
632
654
  #
633
655
  # When you specify an ID of an instance, Auto Scaling creates a new
634
656
  # launch configuration and associates it with the group. This launch
@@ -785,6 +807,7 @@ module Aws::AutoScaling
785
807
  class CreateAutoScalingGroupType < Struct.new(
786
808
  :auto_scaling_group_name,
787
809
  :launch_configuration_name,
810
+ :launch_template,
788
811
  :instance_id,
789
812
  :min_size,
790
813
  :max_size,
@@ -1172,7 +1195,7 @@ module Aws::AutoScaling
1172
1195
  # }
1173
1196
  #
1174
1197
  # @!attribute [rw] auto_scaling_group_name
1175
- # The name of the group to delete.
1198
+ # The name of the Auto Scaling group.
1176
1199
  # @return [String]
1177
1200
  #
1178
1201
  # @!attribute [rw] force_delete
@@ -1207,7 +1230,7 @@ module Aws::AutoScaling
1207
1230
  # @return [String]
1208
1231
  #
1209
1232
  # @!attribute [rw] auto_scaling_group_name
1210
- # The name of the Auto Scaling group for the lifecycle hook.
1233
+ # The name of the Auto Scaling group.
1211
1234
  # @return [String]
1212
1235
  #
1213
1236
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHookType AWS API Documentation
@@ -1432,7 +1455,7 @@ module Aws::AutoScaling
1432
1455
  # }
1433
1456
  #
1434
1457
  # @!attribute [rw] auto_scaling_group_name
1435
- # The name of the group.
1458
+ # The name of the Auto Scaling group.
1436
1459
  # @return [String]
1437
1460
  #
1438
1461
  # @!attribute [rw] lifecycle_hook_names
@@ -1507,7 +1530,7 @@ module Aws::AutoScaling
1507
1530
  # }
1508
1531
  #
1509
1532
  # @!attribute [rw] auto_scaling_group_name
1510
- # The name of the group.
1533
+ # The name of the Auto Scaling group.
1511
1534
  # @return [String]
1512
1535
  #
1513
1536
  # @!attribute [rw] next_token
@@ -1589,7 +1612,7 @@ module Aws::AutoScaling
1589
1612
  # }
1590
1613
  #
1591
1614
  # @!attribute [rw] auto_scaling_group_names
1592
- # The name of the group.
1615
+ # The name of the Auto Scaling group.
1593
1616
  # @return [Array<String>]
1594
1617
  #
1595
1618
  # @!attribute [rw] next_token
@@ -1623,15 +1646,14 @@ module Aws::AutoScaling
1623
1646
  # }
1624
1647
  #
1625
1648
  # @!attribute [rw] auto_scaling_group_name
1626
- # The name of the group.
1649
+ # The name of the Auto Scaling group.
1627
1650
  # @return [String]
1628
1651
  #
1629
1652
  # @!attribute [rw] policy_names
1630
- # One or more policy names or policy ARNs to be described. If you omit
1631
- # this parameter, all policy names are described. If an group name is
1632
- # provided, the results are limited to that group. This list is
1633
- # limited to 50 items. If you specify an unknown policy name, it is
1634
- # ignored with no error.
1653
+ # The names of one or more policies. If you omit this parameter, all
1654
+ # policies are described. If an group name is provided, the results
1655
+ # are limited to that group. This list is limited to 50 items. If you
1656
+ # specify an unknown policy name, it is ignored with no error.
1635
1657
  # @return [Array<String>]
1636
1658
  #
1637
1659
  # @!attribute [rw] policy_types
@@ -1680,7 +1702,7 @@ module Aws::AutoScaling
1680
1702
  # @return [Array<String>]
1681
1703
  #
1682
1704
  # @!attribute [rw] auto_scaling_group_name
1683
- # The name of the group.
1705
+ # The name of the Auto Scaling group.
1684
1706
  # @return [String]
1685
1707
  #
1686
1708
  # @!attribute [rw] max_records
@@ -1716,7 +1738,7 @@ module Aws::AutoScaling
1716
1738
  # }
1717
1739
  #
1718
1740
  # @!attribute [rw] auto_scaling_group_name
1719
- # The name of the group.
1741
+ # The name of the Auto Scaling group.
1720
1742
  # @return [String]
1721
1743
  #
1722
1744
  # @!attribute [rw] scheduled_action_names
@@ -1837,7 +1859,7 @@ module Aws::AutoScaling
1837
1859
  # @return [Array<String>]
1838
1860
  #
1839
1861
  # @!attribute [rw] auto_scaling_group_name
1840
- # The name of the group.
1862
+ # The name of the Auto Scaling group.
1841
1863
  # @return [String]
1842
1864
  #
1843
1865
  # @!attribute [rw] should_decrement_desired_capacity
@@ -1919,7 +1941,7 @@ module Aws::AutoScaling
1919
1941
  # }
1920
1942
  #
1921
1943
  # @!attribute [rw] auto_scaling_group_name
1922
- # The name or Amazon Resource Name (ARN) of the group.
1944
+ # The name of the Auto Scaling group.
1923
1945
  # @return [String]
1924
1946
  #
1925
1947
  # @!attribute [rw] metrics
@@ -2042,7 +2064,7 @@ module Aws::AutoScaling
2042
2064
  # }
2043
2065
  #
2044
2066
  # @!attribute [rw] auto_scaling_group_name
2045
- # The name or ARN of the Auto Scaling group.
2067
+ # The name of the Auto Scaling group.
2046
2068
  # @return [String]
2047
2069
  #
2048
2070
  # @!attribute [rw] metrics
@@ -2171,7 +2193,7 @@ module Aws::AutoScaling
2171
2193
  # }
2172
2194
  #
2173
2195
  # @!attribute [rw] auto_scaling_group_name
2174
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
2196
+ # The name of the Auto Scaling group.
2175
2197
  # @return [String]
2176
2198
  #
2177
2199
  # @!attribute [rw] policy_name
@@ -2315,6 +2337,10 @@ module Aws::AutoScaling
2315
2337
  # The launch configuration associated with the instance.
2316
2338
  # @return [String]
2317
2339
  #
2340
+ # @!attribute [rw] launch_template
2341
+ # The launch template for the instance.
2342
+ # @return [Types::LaunchTemplateSpecification]
2343
+ #
2318
2344
  # @!attribute [rw] protected_from_scale_in
2319
2345
  # Indicates whether the instance is protected from termination by Auto
2320
2346
  # Scaling when scaling in.
@@ -2328,6 +2354,7 @@ module Aws::AutoScaling
2328
2354
  :lifecycle_state,
2329
2355
  :health_status,
2330
2356
  :launch_configuration_name,
2357
+ :launch_template,
2331
2358
  :protected_from_scale_in)
2332
2359
  include Aws::Structure
2333
2360
  end
@@ -2547,6 +2574,41 @@ module Aws::AutoScaling
2547
2574
  include Aws::Structure
2548
2575
  end
2549
2576
 
2577
+ # Describes a launch template.
2578
+ #
2579
+ # @note When making an API call, you may pass LaunchTemplateSpecification
2580
+ # data as a hash:
2581
+ #
2582
+ # {
2583
+ # launch_template_id: "XmlStringMaxLen255",
2584
+ # launch_template_name: "LaunchTemplateName",
2585
+ # version: "XmlStringMaxLen255",
2586
+ # }
2587
+ #
2588
+ # @!attribute [rw] launch_template_id
2589
+ # The ID of the launch template. You must specify either a template ID
2590
+ # or a template name.
2591
+ # @return [String]
2592
+ #
2593
+ # @!attribute [rw] launch_template_name
2594
+ # The name of the launch template. You must specify either a template
2595
+ # name or a template ID.
2596
+ # @return [String]
2597
+ #
2598
+ # @!attribute [rw] version
2599
+ # The version number. By default, the default version of the launch
2600
+ # template is used.
2601
+ # @return [String]
2602
+ #
2603
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateSpecification AWS API Documentation
2604
+ #
2605
+ class LaunchTemplateSpecification < Struct.new(
2606
+ :launch_template_id,
2607
+ :launch_template_name,
2608
+ :version)
2609
+ include Aws::Structure
2610
+ end
2611
+
2550
2612
  # Describes a lifecycle hook, which tells Auto Scaling that you want to
2551
2613
  # perform an action whenever it launches instances or whenever it
2552
2614
  # terminates instances.
@@ -2640,7 +2702,7 @@ module Aws::AutoScaling
2640
2702
  #
2641
2703
  # {
2642
2704
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
2643
- # lifecycle_transition: "LifecycleTransition",
2705
+ # lifecycle_transition: "LifecycleTransition", # required
2644
2706
  # notification_metadata: "XmlStringMaxLen1023",
2645
2707
  # heartbeat_timeout: 1,
2646
2708
  # default_result: "LifecycleActionResult",
@@ -2673,8 +2735,7 @@ module Aws::AutoScaling
2673
2735
  # @!attribute [rw] default_result
2674
2736
  # Defines the action the Auto Scaling group should take when the
2675
2737
  # lifecycle hook timeout elapses or if an unexpected failure occurs.
2676
- # The valid values are `CONTINUE` and `ABANDON`. The default value is
2677
- # `CONTINUE`.
2738
+ # The valid values are `CONTINUE` and `ABANDON`.
2678
2739
  # @return [String]
2679
2740
  #
2680
2741
  # @!attribute [rw] notification_target_arn
@@ -2861,7 +2922,7 @@ module Aws::AutoScaling
2861
2922
  # Describes a notification.
2862
2923
  #
2863
2924
  # @!attribute [rw] auto_scaling_group_name
2864
- # The name of the group.
2925
+ # The name of the Auto Scaling group.
2865
2926
  # @return [String]
2866
2927
  #
2867
2928
  # @!attribute [rw] topic_arn
@@ -2958,9 +3019,9 @@ module Aws::AutoScaling
2958
3019
  # target in an Application Load Balancer target group
2959
3020
  #
2960
3021
  # For predefined metric types `ASGAverageCPUUtilization`,
2961
- # `ASGAverageNetworkIn` and `ASGAverageNetworkOut`, the parameter must
2962
- # not be specified as the resource associated with the metric type is
2963
- # the Auto Scaling group. For predefined metric type
3022
+ # `ASGAverageNetworkIn`, and `ASGAverageNetworkOut`, the parameter
3023
+ # must not be specified as the resource associated with the metric
3024
+ # type is the Auto Scaling group. For predefined metric type
2964
3025
  # `ALBRequestCountPerTarget`, the parameter must be specified in the
2965
3026
  # format:
2966
3027
  # `app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id
@@ -3049,8 +3110,7 @@ module Aws::AutoScaling
3049
3110
  # @return [String]
3050
3111
  #
3051
3112
  # @!attribute [rw] auto_scaling_group_name
3052
- # The name of the Auto Scaling group to which you want to assign the
3053
- # lifecycle hook.
3113
+ # The name of the Auto Scaling group.
3054
3114
  # @return [String]
3055
3115
  #
3056
3116
  # @!attribute [rw] lifecycle_transition
@@ -3198,7 +3258,7 @@ module Aws::AutoScaling
3198
3258
  # }
3199
3259
  #
3200
3260
  # @!attribute [rw] auto_scaling_group_name
3201
- # The name or ARN of the group.
3261
+ # The name of the Auto Scaling group.
3202
3262
  # @return [String]
3203
3263
  #
3204
3264
  # @!attribute [rw] policy_name
@@ -3331,7 +3391,7 @@ module Aws::AutoScaling
3331
3391
  # }
3332
3392
  #
3333
3393
  # @!attribute [rw] auto_scaling_group_name
3334
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
3394
+ # The name of the Auto Scaling group.
3335
3395
  # @return [String]
3336
3396
  #
3337
3397
  # @!attribute [rw] scheduled_action_name
@@ -3414,7 +3474,7 @@ module Aws::AutoScaling
3414
3474
  # @return [String]
3415
3475
  #
3416
3476
  # @!attribute [rw] auto_scaling_group_name
3417
- # The name of the Auto Scaling group for the hook.
3477
+ # The name of the Auto Scaling group.
3418
3478
  # @return [String]
3419
3479
  #
3420
3480
  # @!attribute [rw] lifecycle_action_token
@@ -3441,8 +3501,7 @@ module Aws::AutoScaling
3441
3501
  # Describes a scaling policy.
3442
3502
  #
3443
3503
  # @!attribute [rw] auto_scaling_group_name
3444
- # The name of the Auto Scaling group associated with this scaling
3445
- # policy.
3504
+ # The name of the Auto Scaling group.
3446
3505
  # @return [String]
3447
3506
  #
3448
3507
  # @!attribute [rw] policy_name
@@ -3538,7 +3597,7 @@ module Aws::AutoScaling
3538
3597
  # }
3539
3598
  #
3540
3599
  # @!attribute [rw] auto_scaling_group_name
3541
- # The name or Amazon Resource Name (ARN) of the Auto Scaling group.
3600
+ # The name of the Auto Scaling group.
3542
3601
  # @return [String]
3543
3602
  #
3544
3603
  # @!attribute [rw] scaling_processes
@@ -3590,7 +3649,7 @@ module Aws::AutoScaling
3590
3649
  # Describes a scheduled update to an Auto Scaling group.
3591
3650
  #
3592
3651
  # @!attribute [rw] auto_scaling_group_name
3593
- # The name of the group.
3652
+ # The name of the Auto Scaling group.
3594
3653
  # @return [String]
3595
3654
  #
3596
3655
  # @!attribute [rw] scheduled_action_name
@@ -3744,7 +3803,7 @@ module Aws::AutoScaling
3744
3803
  # @return [Array<String>]
3745
3804
  #
3746
3805
  # @!attribute [rw] auto_scaling_group_name
3747
- # The name of the group.
3806
+ # The name of the Auto Scaling group.
3748
3807
  # @return [String]
3749
3808
  #
3750
3809
  # @!attribute [rw] protected_from_scale_in
@@ -4041,6 +4100,11 @@ module Aws::AutoScaling
4041
4100
  # {
4042
4101
  # auto_scaling_group_name: "ResourceName", # required
4043
4102
  # launch_configuration_name: "ResourceName",
4103
+ # launch_template: {
4104
+ # launch_template_id: "XmlStringMaxLen255",
4105
+ # launch_template_name: "LaunchTemplateName",
4106
+ # version: "XmlStringMaxLen255",
4107
+ # },
4044
4108
  # min_size: 1,
4045
4109
  # max_size: 1,
4046
4110
  # desired_capacity: 1,
@@ -4059,9 +4123,15 @@ module Aws::AutoScaling
4059
4123
  # @return [String]
4060
4124
  #
4061
4125
  # @!attribute [rw] launch_configuration_name
4062
- # The name of the launch configuration.
4126
+ # The name of the launch configuration. You must specify either a
4127
+ # launch configuration or a launch template.
4063
4128
  # @return [String]
4064
4129
  #
4130
+ # @!attribute [rw] launch_template
4131
+ # The launch template to use to specify the updates. You must specify
4132
+ # a launch configuration or a launch template.
4133
+ # @return [Types::LaunchTemplateSpecification]
4134
+ #
4065
4135
  # @!attribute [rw] min_size
4066
4136
  # The minimum size of the Auto Scaling group.
4067
4137
  # @return [Integer]
@@ -4160,6 +4230,7 @@ module Aws::AutoScaling
4160
4230
  class UpdateAutoScalingGroupType < Struct.new(
4161
4231
  :auto_scaling_group_name,
4162
4232
  :launch_configuration_name,
4233
+ :launch_template,
4163
4234
  :min_size,
4164
4235
  :max_size,
4165
4236
  :desired_capacity,
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.3.0
4
+ version: 1.4.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: 2017-09-14 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core