aws-sdk-autoscaling 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2621a9c59c9696d09e56ab16d090574270681a78
4
- data.tar.gz: d6d88dbb459a82b1bd01d20eb558a9bfea68149d
3
+ metadata.gz: 9dad6a541c79a2c7024058da32caf859b063009f
4
+ data.tar.gz: 2f60ae724a65acbadaa1be086480c3dc15bb7fe0
5
5
  SHA512:
6
- metadata.gz: 35347f6dad830ba5b56000c7428be4fcb51f6c11a7e58b23151eea974059e384c1b97fe2971e72a99a2aab45bfd5d1821124474d1eae4dae622db5ad157e8dbd
7
- data.tar.gz: c73fcceb61837df5cddbe6c203a3006e6ca07def6587fb01b66351cd254fe654da592d8589c6c491cdab39ac3836d827443803f08d10135887f80da474a0b5c4
6
+ metadata.gz: a0e5d143782697159513d96401e4a86182399eb436bcd720f500d77fd6e1d0de83145eb20f44daa3905c3b79a0ae37e1ebc75126364747cd4753009e96d9a867
7
+ data.tar.gz: 570d57115ad3ccf5953d70db47138be7998d73a6fee9444557b0f11fc38b2cd2bf527c48396c0904112cbe6cf9fdf32d6e92b34573938d3d6782d70a4fa046d3
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
53
53
  # @service
54
54
  module Aws::AutoScaling
55
55
 
56
- GEM_VERSION = '1.11.0'
56
+ GEM_VERSION = '1.12.0'
57
57
 
58
58
  end
@@ -49,6 +49,12 @@ module Aws::AutoScaling
49
49
  data[:launch_template]
50
50
  end
51
51
 
52
+ # The mixed instances policy for the group.
53
+ # @return [Types::MixedInstancesPolicy]
54
+ def mixed_instances_policy
55
+ data[:mixed_instances_policy]
56
+ end
57
+
52
58
  # The minimum size of the group.
53
59
  # @return [Integer]
54
60
  def min_size
@@ -120,9 +126,9 @@ module Aws::AutoScaling
120
126
  data[:suspended_processes]
121
127
  end
122
128
 
123
- # The name of the placement group into which you'll launch your
124
- # instances, if any. For more information, see [Placement Groups][1] in
125
- # the *Amazon Elastic Compute Cloud User Guide*.
129
+ # The name of the placement group into which to launch your instances,
130
+ # if any. For more information, see [Placement Groups][1] in the *Amazon
131
+ # Elastic Compute Cloud User Guide*.
126
132
  #
127
133
  #
128
134
  #
@@ -394,7 +400,7 @@ module Aws::AutoScaling
394
400
  # })
395
401
  # @param [Hash] options ({})
396
402
  # @option options [Boolean] :force_delete
397
- # Specifies that the group will be deleted along with all instances
403
+ # Specifies that the group is to be deleted along with all instances
398
404
  # associated with the group, without waiting for all instances to be
399
405
  # terminated. This parameter also deletes any lifecycle actions
400
406
  # associated with the group.
@@ -774,6 +780,28 @@ module Aws::AutoScaling
774
780
  # launch_template_name: "LaunchTemplateName",
775
781
  # version: "XmlStringMaxLen255",
776
782
  # },
783
+ # mixed_instances_policy: {
784
+ # launch_template: {
785
+ # launch_template_specification: {
786
+ # launch_template_id: "XmlStringMaxLen255",
787
+ # launch_template_name: "LaunchTemplateName",
788
+ # version: "XmlStringMaxLen255",
789
+ # },
790
+ # overrides: [
791
+ # {
792
+ # instance_type: "XmlStringMaxLen255",
793
+ # },
794
+ # ],
795
+ # },
796
+ # instances_distribution: {
797
+ # on_demand_allocation_strategy: "XmlString",
798
+ # on_demand_base_capacity: 1,
799
+ # on_demand_percentage_above_base_capacity: 1,
800
+ # spot_allocation_strategy: "XmlString",
801
+ # spot_instance_pools: 1,
802
+ # spot_max_price: "SpotPrice",
803
+ # },
804
+ # },
777
805
  # min_size: 1,
778
806
  # max_size: 1,
779
807
  # desired_capacity: 1,
@@ -789,11 +817,16 @@ module Aws::AutoScaling
789
817
  # })
790
818
  # @param [Hash] options ({})
791
819
  # @option options [String] :launch_configuration_name
792
- # The name of the launch configuration. If you specify a launch
793
- # configuration, you can't specify a launch template.
820
+ # The name of the launch configuration. If you specify this parameter,
821
+ # you can't specify a launch template or a mixed instances policy.
794
822
  # @option options [Types::LaunchTemplateSpecification] :launch_template
795
- # The launch template to use to specify the updates. If you specify a
796
- # launch template, you can't specify a launch configuration.
823
+ # The launch template and version to use to specify the updates. If you
824
+ # specify this parameter, you can't specify a launch configuration or a
825
+ # mixed instances policy.
826
+ # @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
827
+ # The mixed instances policy to use to specify the updates. If you
828
+ # specify this parameter, you can't specify a launch configuration or a
829
+ # launch template.
797
830
  # @option options [Integer] :min_size
798
831
  # The minimum size of the Auto Scaling group.
799
832
  # @option options [Integer] :max_size
@@ -829,9 +862,9 @@ module Aws::AutoScaling
829
862
  #
830
863
  # [1]: http://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
831
864
  # @option options [String] :placement_group
832
- # The name of the placement group into which you'll launch your
833
- # instances, if any. For more information, see [Placement Groups][1] in
834
- # the *Amazon Elastic Compute Cloud User Guide*.
865
+ # The name of the placement group into which to launch your instances,
866
+ # if any. For more information, see [Placement Groups][1] in the *Amazon
867
+ # Elastic Compute Cloud User Guide*.
835
868
  #
836
869
  #
837
870
  #
@@ -1052,7 +1085,7 @@ module Aws::AutoScaling
1052
1085
  # @param [Hash] options ({})
1053
1086
  # @option options [Array<String>] :policy_names
1054
1087
  # The names of one or more policies. If you omit this parameter, all
1055
- # policies are described. If an group name is provided, the results are
1088
+ # policies are described. If a group name is provided, the results are
1056
1089
  # limited to that group. This list is limited to 50 items. If you
1057
1090
  # specify an unknown policy name, it is ignored with no error.
1058
1091
  # @option options [Array<String>] :policy_types
@@ -15,6 +15,7 @@ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
15
15
  require 'aws-sdk-core/plugins/retry_errors.rb'
16
16
  require 'aws-sdk-core/plugins/global_configuration.rb'
17
17
  require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
18
19
  require 'aws-sdk-core/plugins/response_paging.rb'
19
20
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
21
  require 'aws-sdk-core/plugins/idempotency_token.rb'
@@ -45,6 +46,7 @@ module Aws::AutoScaling
45
46
  add_plugin(Aws::Plugins::RetryErrors)
46
47
  add_plugin(Aws::Plugins::GlobalConfiguration)
47
48
  add_plugin(Aws::Plugins::RegionalEndpoint)
49
+ add_plugin(Aws::Plugins::EndpointDiscovery)
48
50
  add_plugin(Aws::Plugins::ResponsePaging)
49
51
  add_plugin(Aws::Plugins::StubResponses)
50
52
  add_plugin(Aws::Plugins::IdempotencyToken)
@@ -98,6 +100,10 @@ module Aws::AutoScaling
98
100
  #
99
101
  # @option options [String] :access_key_id
100
102
  #
103
+ # @option options [Boolean] :active_endpoint_cache (false)
104
+ # When set to `true`, a thread polling for endpoints will be running in
105
+ # the background every 60 secs (default). Defaults to `false`.
106
+ #
101
107
  # @option options [Boolean] :client_side_monitoring (false)
102
108
  # When `true`, client-side metrics will be collected for all API requests from
103
109
  # this client.
@@ -123,6 +129,21 @@ module Aws::AutoScaling
123
129
  # option. You should only configure an `:endpoint` when connecting
124
130
  # to test endpoints. This should be avalid HTTP(S) URI.
125
131
  #
132
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
133
+ # Used for the maximum size limit of the LRU cache storing endpoints data
134
+ # for endpoint discovery enabled operations. Defaults to 1000.
135
+ #
136
+ # @option options [Integer] :endpoint_cache_max_threads (10)
137
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
138
+ #
139
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
140
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
141
+ # Use this option to config the time interval in seconds for making
142
+ # requests fetching endpoints information. Defaults to 60 sec.
143
+ #
144
+ # @option options [Boolean] :endpoint_discovery (false)
145
+ # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
146
+ #
126
147
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
127
148
  # The log formatter.
128
149
  #
@@ -378,8 +399,8 @@ module Aws::AutoScaling
378
399
  end
379
400
 
380
401
  # Creates or updates one or more scheduled scaling actions for an Auto
381
- # Scaling group. When updating a scheduled scaling action, if you leave
382
- # a parameter unspecified, the corresponding value remains unchanged.
402
+ # Scaling group. If you leave a parameter unspecified when updating a
403
+ # scheduled scaling action, the corresponding value remains unchanged.
383
404
  #
384
405
  # @option params [required, String] :auto_scaling_group_name
385
406
  # The name of the Auto Scaling group.
@@ -528,24 +549,29 @@ module Aws::AutoScaling
528
549
  # the scope of your AWS account.
529
550
  #
530
551
  # @option params [String] :launch_configuration_name
531
- # The name of the launch configuration. You must specify one of the
532
- # following: a launch configuration, a launch template, or an EC2
533
- # instance.
552
+ # The name of the launch configuration. This parameter, a launch
553
+ # template, a mixed instances policy, or an EC2 instance must be
554
+ # specified.
534
555
  #
535
556
  # @option params [Types::LaunchTemplateSpecification] :launch_template
536
- # The launch template to use to launch instances. You must specify one
537
- # of the following: a launch template, a launch configuration, or an EC2
538
- # instance.
557
+ # The launch template to use to launch instances. This parameter, a
558
+ # launch configuration, a mixed instances policy, or an EC2 instance
559
+ # must be specified.
560
+ #
561
+ # @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
562
+ # The mixed instances policy to use to launch instances. This parameter,
563
+ # a launch template, a launch configuration, or an EC2 instance must be
564
+ # specified.
539
565
  #
540
566
  # @option params [String] :instance_id
541
567
  # The ID of the instance used to create a launch configuration for the
542
- # group. You must specify one of the following: an EC2 instance, a
543
- # launch configuration, or a launch template.
568
+ # group. This parameter, a launch configuration, a launch template, or a
569
+ # mixed instances policy must be specified.
544
570
  #
545
571
  # When you specify an ID of an instance, Amazon EC2 Auto Scaling creates
546
572
  # a new launch configuration and associates it with the group. This
547
573
  # launch configuration derives its attributes from the specified
548
- # instance, with the exception of the block device mapping.
574
+ # instance, except for the block device mapping.
549
575
  #
550
576
  # For more information, see [Create an Auto Scaling Group Using an EC2
551
577
  # Instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
@@ -624,9 +650,9 @@ module Aws::AutoScaling
624
650
  # [1]: http://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
625
651
  #
626
652
  # @option params [String] :placement_group
627
- # The name of the placement group into which you'll launch your
628
- # instances, if any. For more information, see [Placement Groups][1] in
629
- # the *Amazon Elastic Compute Cloud User Guide*.
653
+ # The name of the placement group into which to launch your instances,
654
+ # if any. For more information, see [Placement Groups][1] in the *Amazon
655
+ # Elastic Compute Cloud User Guide*.
630
656
  #
631
657
  #
632
658
  #
@@ -743,6 +769,28 @@ module Aws::AutoScaling
743
769
  # launch_template_name: "LaunchTemplateName",
744
770
  # version: "XmlStringMaxLen255",
745
771
  # },
772
+ # mixed_instances_policy: {
773
+ # launch_template: {
774
+ # launch_template_specification: {
775
+ # launch_template_id: "XmlStringMaxLen255",
776
+ # launch_template_name: "LaunchTemplateName",
777
+ # version: "XmlStringMaxLen255",
778
+ # },
779
+ # overrides: [
780
+ # {
781
+ # instance_type: "XmlStringMaxLen255",
782
+ # },
783
+ # ],
784
+ # },
785
+ # instances_distribution: {
786
+ # on_demand_allocation_strategy: "XmlString",
787
+ # on_demand_base_capacity: 1,
788
+ # on_demand_percentage_above_base_capacity: 1,
789
+ # spot_allocation_strategy: "XmlString",
790
+ # spot_instance_pools: 1,
791
+ # spot_max_price: "SpotPrice",
792
+ # },
793
+ # },
746
794
  # instance_id: "XmlStringMaxLen19",
747
795
  # min_size: 1, # required
748
796
  # max_size: 1, # required
@@ -833,9 +881,9 @@ module Aws::AutoScaling
833
881
  # One or more security groups with which to associate the instances.
834
882
  #
835
883
  # If your instances are launched in EC2-Classic, you can either specify
836
- # security group names or the security group IDs. For more information
837
- # about security groups for EC2-Classic, see [Amazon EC2 Security
838
- # Groups][1] in the *Amazon Elastic Compute Cloud User Guide*.
884
+ # security group names or the security group IDs. For more information,
885
+ # see [Amazon EC2 Security Groups][1] in the *Amazon Elastic Compute
886
+ # Cloud User Guide*.
839
887
  #
840
888
  # If your instances are launched into a VPC, specify security group IDs.
841
889
  # For more information, see [Security Groups for Your VPC][2] in the
@@ -878,8 +926,8 @@ module Aws::AutoScaling
878
926
  #
879
927
  # @option params [String] :instance_id
880
928
  # The ID of the instance to use to create the launch configuration. The
881
- # new launch configuration derives attributes from the instance, with
882
- # the exception of the block device mapping.
929
+ # new launch configuration derives attributes from the instance, except
930
+ # for the block device mapping.
883
931
  #
884
932
  # If you do not specify `InstanceId`, you must specify both `ImageId`
885
933
  # and `InstanceType`.
@@ -941,7 +989,7 @@ module Aws::AutoScaling
941
989
  # The name or the Amazon Resource Name (ARN) of the instance profile
942
990
  # associated with the IAM role for the instance.
943
991
  #
944
- # EC2 instances launched with an IAM role will automatically have AWS
992
+ # EC2 instances launched with an IAM role automatically have AWS
945
993
  # security credentials available. You can use IAM roles with Amazon EC2
946
994
  # Auto Scaling to automatically enable applications running on your EC2
947
995
  # instances to securely access other AWS resources. For more
@@ -987,9 +1035,9 @@ module Aws::AutoScaling
987
1035
  # The tenancy of the instance. An instance with a tenancy of `dedicated`
988
1036
  # runs on single-tenant hardware and can only be launched into a VPC.
989
1037
  #
990
- # You must set the value of this parameter to `dedicated` if want to
991
- # launch Dedicated Instances into a shared tenancy VPC (VPC with
992
- # instance placement tenancy attribute set to `default`).
1038
+ # To launch Dedicated Instances into a shared tenancy VPC (a VPC with
1039
+ # the instance placement tenancy attribute set to `default`), you must
1040
+ # set the value of this parameter to `dedicated`.
993
1041
  #
994
1042
  # If you specify this parameter, be sure to specify at least one subnet
995
1043
  # when you create your group.
@@ -1144,8 +1192,8 @@ module Aws::AutoScaling
1144
1192
  #
1145
1193
  # To remove instances from the Auto Scaling group before deleting it,
1146
1194
  # call DetachInstances with the list of instances and the option to
1147
- # decrement the desired capacity so that Amazon EC2 Auto Scaling does
1148
- # not launch replacement instances.
1195
+ # decrement the desired capacity. This ensures that Amazon EC2 Auto
1196
+ # Scaling does not launch replacement instances.
1149
1197
  #
1150
1198
  # To terminate all instances before deleting the Auto Scaling group,
1151
1199
  # call UpdateAutoScalingGroup and set the minimum size and desired
@@ -1155,7 +1203,7 @@ module Aws::AutoScaling
1155
1203
  # The name of the Auto Scaling group.
1156
1204
  #
1157
1205
  # @option params [Boolean] :force_delete
1158
- # Specifies that the group will be deleted along with all instances
1206
+ # Specifies that the group is to be deleted along with all instances
1159
1207
  # associated with the group, without waiting for all instances to be
1160
1208
  # terminated. This parameter also deletes any lifecycle actions
1161
1209
  # associated with the group.
@@ -1278,7 +1326,7 @@ module Aws::AutoScaling
1278
1326
  #
1279
1327
  # @option params [required, String] :topic_arn
1280
1328
  # The Amazon Resource Name (ARN) of the Amazon Simple Notification
1281
- # Service (SNS) topic.
1329
+ # Service (Amazon SNS) topic.
1282
1330
  #
1283
1331
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1284
1332
  #
@@ -1613,6 +1661,17 @@ module Aws::AutoScaling
1613
1661
  # resp.auto_scaling_groups[0].launch_template.launch_template_id #=> String
1614
1662
  # resp.auto_scaling_groups[0].launch_template.launch_template_name #=> String
1615
1663
  # resp.auto_scaling_groups[0].launch_template.version #=> String
1664
+ # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.launch_template_specification.launch_template_id #=> String
1665
+ # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.launch_template_specification.launch_template_name #=> String
1666
+ # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.launch_template_specification.version #=> String
1667
+ # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides #=> Array
1668
+ # resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_type #=> String
1669
+ # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
1670
+ # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
1671
+ # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
1672
+ # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.spot_allocation_strategy #=> String
1673
+ # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.spot_instance_pools #=> Integer
1674
+ # resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.spot_max_price #=> String
1616
1675
  # resp.auto_scaling_groups[0].min_size #=> Integer
1617
1676
  # resp.auto_scaling_groups[0].max_size #=> Integer
1618
1677
  # resp.auto_scaling_groups[0].desired_capacity #=> Integer
@@ -2061,8 +2120,8 @@ module Aws::AutoScaling
2061
2120
 
2062
2121
  # Describes the load balancers for the specified Auto Scaling group.
2063
2122
  #
2064
- # Note that this operation describes only Classic Load Balancers. If you
2065
- # have Application Load Balancers, use DescribeLoadBalancerTargetGroups
2123
+ # This operation describes only Classic Load Balancers. If you have
2124
+ # Application Load Balancers, use DescribeLoadBalancerTargetGroups
2066
2125
  # instead.
2067
2126
  #
2068
2127
  # @option params [required, String] :auto_scaling_group_name
@@ -2127,8 +2186,8 @@ module Aws::AutoScaling
2127
2186
  # Describes the available CloudWatch metrics for Amazon EC2 Auto
2128
2187
  # Scaling.
2129
2188
  #
2130
- # Note that the `GroupStandbyInstances` metric is not returned by
2131
- # default. You must explicitly request this metric when calling
2189
+ # The `GroupStandbyInstances` metric is not returned by default. You
2190
+ # must explicitly request this metric when calling
2132
2191
  # EnableMetricsCollection.
2133
2192
  #
2134
2193
  # @return [Types::DescribeMetricCollectionTypesAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2273,7 +2332,7 @@ module Aws::AutoScaling
2273
2332
  #
2274
2333
  # @option params [Array<String>] :policy_names
2275
2334
  # The names of one or more policies. If you omit this parameter, all
2276
- # policies are described. If an group name is provided, the results are
2335
+ # policies are described. If a group name is provided, the results are
2277
2336
  # limited to that group. This list is limited to 50 items. If you
2278
2337
  # specify an unknown policy name, it is ignored with no error.
2279
2338
  #
@@ -2633,7 +2692,8 @@ module Aws::AutoScaling
2633
2692
  # no match, no special message is returned.
2634
2693
  #
2635
2694
  # @option params [Array<Types::Filter>] :filters
2636
- # A filter used to scope the tags to return.
2695
+ # One or more filters to scope the tags to return. The maximum number of
2696
+ # filters per filter type (for example, `auto-scaling-group`) is 1000.
2637
2697
  #
2638
2698
  # @option params [String] :next_token
2639
2699
  # The token for the next set of items to return. (You received this
@@ -2719,6 +2779,14 @@ module Aws::AutoScaling
2719
2779
  # Describes the termination policies supported by Amazon EC2 Auto
2720
2780
  # Scaling.
2721
2781
  #
2782
+ # For more information, see [Controlling Which Auto Scaling Instances
2783
+ # Terminate During Scale In][1] in the *Amazon EC2 Auto Scaling User
2784
+ # Guide*.
2785
+ #
2786
+ #
2787
+ #
2788
+ # [1]: http://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html
2789
+ #
2722
2790
  # @return [Types::DescribeTerminationPolicyTypesAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2723
2791
  #
2724
2792
  # * {Types::DescribeTerminationPolicyTypesAnswer#termination_policy_types #termination_policy_types} => Array&lt;String&gt;
@@ -2894,14 +2962,14 @@ module Aws::AutoScaling
2894
2962
  # Detaches one or more Classic Load Balancers from the specified Auto
2895
2963
  # Scaling group.
2896
2964
  #
2897
- # Note that this operation detaches only Classic Load Balancers. If you
2898
- # have Application Load Balancers, use DetachLoadBalancerTargetGroups
2965
+ # This operation detaches only Classic Load Balancers. If you have
2966
+ # Application Load Balancers, use DetachLoadBalancerTargetGroups
2899
2967
  # instead.
2900
2968
  #
2901
2969
  # When you detach a load balancer, it enters the `Removing` state while
2902
2970
  # deregistering the instances in the group. When all instances are
2903
2971
  # deregistered, then you can no longer describe the load balancer using
2904
- # DescribeLoadBalancers. Note that the instances remain running.
2972
+ # DescribeLoadBalancers. The instances remain running.
2905
2973
  #
2906
2974
  # @option params [required, String] :auto_scaling_group_name
2907
2975
  # The name of the Auto Scaling group.
@@ -3292,12 +3360,11 @@ module Aws::AutoScaling
3292
3360
  end
3293
3361
 
3294
3362
  # Creates or updates a lifecycle hook for the specified Auto Scaling
3295
- # Group.
3363
+ # group.
3296
3364
  #
3297
- # A lifecycle hook tells Amazon EC2 Auto Scaling that you want to
3298
- # perform an action on an instance that is not actively in service; for
3299
- # example, either when the instance launches or before the instance
3300
- # terminates.
3365
+ # A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on
3366
+ # an instance that is not actively in service; for example, either when
3367
+ # the instance launches or before the instance terminates.
3301
3368
  #
3302
3369
  # This step is a part of the procedure for adding a lifecycle hook to an
3303
3370
  # Auto Scaling group:
@@ -3358,18 +3425,18 @@ module Aws::AutoScaling
3358
3425
  # updating existing hooks.
3359
3426
  #
3360
3427
  # @option params [String] :notification_target_arn
3361
- # The ARN of the notification target that Amazon EC2 Auto Scaling will
3362
- # use to notify you when an instance is in the transition state for the
3428
+ # The ARN of the notification target that Amazon EC2 Auto Scaling uses
3429
+ # to notify you when an instance is in the transition state for the
3363
3430
  # lifecycle hook. This target can be either an SQS queue or an SNS
3364
3431
  # topic. If you specify an empty string, this overrides the current ARN.
3365
3432
  #
3366
3433
  # This operation uses the JSON format when sending notifications to an
3367
- # Amazon SQS queue, and an email key/value pair format when sending
3434
+ # Amazon SQS queue, and an email key-value pair format when sending
3368
3435
  # notifications to an Amazon SNS topic.
3369
3436
  #
3370
3437
  # When you specify a notification target, Amazon EC2 Auto Scaling sends
3371
- # it a test message. Test messages contains the following additional
3372
- # key/value pair: `"Event": "autoscaling:TEST_NOTIFICATION"`.
3438
+ # it a test message. Test messages contain the following additional
3439
+ # key-value pair: `"Event": "autoscaling:TEST_NOTIFICATION"`.
3373
3440
  #
3374
3441
  # @option params [String] :notification_metadata
3375
3442
  # Contains additional information that you want to include any time
@@ -3434,7 +3501,7 @@ module Aws::AutoScaling
3434
3501
  #
3435
3502
  # This configuration overwrites any existing configuration.
3436
3503
  #
3437
- # For more information see [Getting SNS Notifications When Your Auto
3504
+ # For more information, see [Getting SNS Notifications When Your Auto
3438
3505
  # Scaling Group Scales][1] in the *Auto Scaling User Guide*.
3439
3506
  #
3440
3507
  #
@@ -3446,12 +3513,12 @@ module Aws::AutoScaling
3446
3513
  #
3447
3514
  # @option params [required, String] :topic_arn
3448
3515
  # The Amazon Resource Name (ARN) of the Amazon Simple Notification
3449
- # Service (SNS) topic.
3516
+ # Service (Amazon SNS) topic.
3450
3517
  #
3451
3518
  # @option params [required, Array<String>] :notification_types
3452
- # The type of event that will cause the notification to be sent. For
3453
- # details about notification types supported by Amazon EC2 Auto Scaling,
3454
- # see DescribeAutoScalingNotificationTypes.
3519
+ # The type of event that causes the notification to be sent. For more
3520
+ # information about notification types supported by Amazon EC2 Auto
3521
+ # Scaling, see DescribeAutoScalingNotificationTypes.
3455
3522
  #
3456
3523
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3457
3524
  #
@@ -3487,8 +3554,8 @@ module Aws::AutoScaling
3487
3554
 
3488
3555
  # Creates or updates a policy for an Auto Scaling group. To update an
3489
3556
  # existing policy, use the existing policy name and set the parameters
3490
- # you want to change. Any existing parameter not changed in an update to
3491
- # an existing policy is not changed in this update request.
3557
+ # to change. Any existing parameter not changed in an update to an
3558
+ # existing policy is not changed in this update request.
3492
3559
  #
3493
3560
  # If you exceed your maximum limit of step adjustments, which by default
3494
3561
  # is 20 per region, the call fails. For information about updating this
@@ -3668,8 +3735,8 @@ module Aws::AutoScaling
3668
3735
  end
3669
3736
 
3670
3737
  # Creates or updates a scheduled scaling action for an Auto Scaling
3671
- # group. When updating a scheduled scaling action, if you leave a
3672
- # parameter unspecified, the corresponding value remains unchanged.
3738
+ # group. If you leave a parameter unspecified when updating a scheduled
3739
+ # scaling action, the corresponding value remains unchanged.
3673
3740
  #
3674
3741
  # For more information, see [Scheduled Scaling][1] in the *Amazon EC2
3675
3742
  # Auto Scaling User Guide*.
@@ -3800,7 +3867,7 @@ module Aws::AutoScaling
3800
3867
  # @option params [String] :lifecycle_action_token
3801
3868
  # A token that uniquely identifies a specific lifecycle action
3802
3869
  # associated with an instance. Amazon EC2 Auto Scaling sends this token
3803
- # to the notification target you specified when you created the
3870
+ # to the notification target that you specified when you created the
3804
3871
  # lifecycle hook.
3805
3872
  #
3806
3873
  # @option params [String] :instance_id
@@ -3966,19 +4033,19 @@ module Aws::AutoScaling
3966
4033
  # The ID of the instance.
3967
4034
  #
3968
4035
  # @option params [required, String] :health_status
3969
- # The health status of the instance. Set to `Healthy` if you want the
3970
- # instance to remain in service. Set to `Unhealthy` if you want the
3971
- # instance to be out of service. Amazon EC2 Auto Scaling will terminate
3972
- # and replace the unhealthy instance.
4036
+ # The health status of the instance. Set to `Healthy` to have the
4037
+ # instance remain in service. Set to `Unhealthy` to have the instance be
4038
+ # out of service. Amazon EC2 Auto Scaling terminates and replaces the
4039
+ # unhealthy instance.
3973
4040
  #
3974
4041
  # @option params [Boolean] :should_respect_grace_period
3975
4042
  # If the Auto Scaling group of the specified instance has a
3976
4043
  # `HealthCheckGracePeriod` specified for the group, by default, this
3977
- # call will respect the grace period. Set this to `False`, if you do not
3978
- # want the call to respect the grace period associated with the group.
4044
+ # call respects the grace period. Set this to `False`, to have the call
4045
+ # not respect the grace period associated with the group.
3979
4046
  #
3980
- # For more information, see the description of the health check grace
3981
- # period for CreateAutoScalingGroup.
4047
+ # For more information about the health check grace period, see
4048
+ # CreateAutoScalingGroup.
3982
4049
  #
3983
4050
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3984
4051
  #
@@ -4075,8 +4142,8 @@ module Aws::AutoScaling
4075
4142
  # Suspends the specified automatic scaling processes, or all processes,
4076
4143
  # for the specified Auto Scaling group.
4077
4144
  #
4078
- # Note that if you suspend either the `Launch` or `Terminate` process
4079
- # types, it can prevent other process types from functioning properly.
4145
+ # If you suspend either the `Launch` or `Terminate` process types, it
4146
+ # can prevent other process types from functioning properly.
4080
4147
  #
4081
4148
  # To resume processes that have been suspended, use ResumeProcesses.
4082
4149
  #
@@ -4205,9 +4272,9 @@ module Aws::AutoScaling
4205
4272
  #
4206
4273
  # To update an Auto Scaling group with a launch configuration with
4207
4274
  # `InstanceMonitoring` set to `false`, you must first disable the
4208
- # collection of group metrics. Otherwise, you will get an error. If you
4209
- # have previously enabled the collection of group metrics, you can
4210
- # disable it using DisableMetricsCollection.
4275
+ # collection of group metrics. Otherwise, you get an error. If you have
4276
+ # previously enabled the collection of group metrics, you can disable it
4277
+ # using DisableMetricsCollection.
4211
4278
  #
4212
4279
  # Note the following:
4213
4280
  #
@@ -4227,12 +4294,18 @@ module Aws::AutoScaling
4227
4294
  # The name of the Auto Scaling group.
4228
4295
  #
4229
4296
  # @option params [String] :launch_configuration_name
4230
- # The name of the launch configuration. If you specify a launch
4231
- # configuration, you can't specify a launch template.
4297
+ # The name of the launch configuration. If you specify this parameter,
4298
+ # you can't specify a launch template or a mixed instances policy.
4232
4299
  #
4233
4300
  # @option params [Types::LaunchTemplateSpecification] :launch_template
4234
- # The launch template to use to specify the updates. If you specify a
4235
- # launch template, you can't specify a launch configuration.
4301
+ # The launch template and version to use to specify the updates. If you
4302
+ # specify this parameter, you can't specify a launch configuration or a
4303
+ # mixed instances policy.
4304
+ #
4305
+ # @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
4306
+ # The mixed instances policy to use to specify the updates. If you
4307
+ # specify this parameter, you can't specify a launch configuration or a
4308
+ # launch template.
4236
4309
  #
4237
4310
  # @option params [Integer] :min_size
4238
4311
  # The minimum size of the Auto Scaling group.
@@ -4276,9 +4349,9 @@ module Aws::AutoScaling
4276
4349
  # [1]: http://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
4277
4350
  #
4278
4351
  # @option params [String] :placement_group
4279
- # The name of the placement group into which you'll launch your
4280
- # instances, if any. For more information, see [Placement Groups][1] in
4281
- # the *Amazon Elastic Compute Cloud User Guide*.
4352
+ # The name of the placement group into which to launch your instances,
4353
+ # if any. For more information, see [Placement Groups][1] in the *Amazon
4354
+ # Elastic Compute Cloud User Guide*.
4282
4355
  #
4283
4356
  #
4284
4357
  #
@@ -4360,6 +4433,28 @@ module Aws::AutoScaling
4360
4433
  # launch_template_name: "LaunchTemplateName",
4361
4434
  # version: "XmlStringMaxLen255",
4362
4435
  # },
4436
+ # mixed_instances_policy: {
4437
+ # launch_template: {
4438
+ # launch_template_specification: {
4439
+ # launch_template_id: "XmlStringMaxLen255",
4440
+ # launch_template_name: "LaunchTemplateName",
4441
+ # version: "XmlStringMaxLen255",
4442
+ # },
4443
+ # overrides: [
4444
+ # {
4445
+ # instance_type: "XmlStringMaxLen255",
4446
+ # },
4447
+ # ],
4448
+ # },
4449
+ # instances_distribution: {
4450
+ # on_demand_allocation_strategy: "XmlString",
4451
+ # on_demand_base_capacity: 1,
4452
+ # on_demand_percentage_above_base_capacity: 1,
4453
+ # spot_allocation_strategy: "XmlString",
4454
+ # spot_instance_pools: 1,
4455
+ # spot_max_price: "SpotPrice",
4456
+ # },
4457
+ # },
4363
4458
  # min_size: 1,
4364
4459
  # max_size: 1,
4365
4460
  # desired_capacity: 1,
@@ -4396,7 +4491,7 @@ module Aws::AutoScaling
4396
4491
  params: params,
4397
4492
  config: config)
4398
4493
  context[:gem_name] = 'aws-sdk-autoscaling'
4399
- context[:gem_version] = '1.11.0'
4494
+ context[:gem_version] = '1.12.0'
4400
4495
  Seahorse::Client::Request.new(handlers, context)
4401
4496
  end
4402
4497