Skip to content

Commit 2db2334

Browse files
awsmobilesdkpalpatim
authored andcommitted
[aws-android-sdk-autoscaling] Update models to latest (#1075)
1 parent cdc45b8 commit 2db2334

20 files changed

+1913
-1012
lines changed

aws-android-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AmazonAutoScaling.java

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,15 @@ void deleteNotificationConfiguration(
536536
* Deletes the specified scaling policy.
537537
* </p>
538538
* <p>
539-
* Deleting a policy deletes the underlying alarm action, but does not
540-
* delete the alarm, even if it no longer has an associated action.
539+
* Deleting either a step scaling policy or a simple scaling policy deletes
540+
* the underlying alarm action, but does not delete the alarm, even if it no
541+
* longer has an associated action.
542+
* </p>
543+
* <p>
544+
* For more information, see <a href=
545+
* "https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html"
546+
* >Deleting a Scaling Policy</a> in the <i>Amazon EC2 Auto Scaling User
547+
* Guide</i>.
541548
* </p>
542549
*
543550
* @param deletePolicyRequest
@@ -967,8 +974,8 @@ DescribeScalingProcessTypesResult describeScalingProcessTypes(
967974
/**
968975
* <p>
969976
* Describes the actions scheduled for your Auto Scaling group that haven't
970-
* run. To describe the actions that have already run, use
971-
* <a>DescribeScalingActivities</a>.
977+
* run or that have not reached their end time. To describe the actions that
978+
* have already run, use <a>DescribeScalingActivities</a>.
972979
* </p>
973980
*
974981
* @param describeScheduledActionsRequest
@@ -1662,45 +1669,63 @@ TerminateInstanceInAutoScalingGroupResult terminateInstanceInAutoScalingGroup(
16621669
* Updates the configuration for the specified Auto Scaling group.
16631670
* </p>
16641671
* <p>
1665-
* The new settings take effect on any scaling activities after this call
1666-
* returns. Scaling activities that are currently in progress aren't
1667-
* affected.
1672+
* To update an Auto Scaling group, specify the name of the group and the
1673+
* parameter that you want to change. Any parameters that you don't specify
1674+
* are not changed by this update request. The new settings take effect on
1675+
* any scaling activities after this call returns. Scaling activities that
1676+
* are currently in progress aren't affected.
16681677
* </p>
16691678
* <p>
1670-
* To update an Auto Scaling group with a launch configuration with
1671-
* <code>InstanceMonitoring</code> set to <code>false</code>, you must first
1672-
* disable the collection of group metrics. Otherwise, you get an error. If
1673-
* you have previously enabled the collection of group metrics, you can
1674-
* disable it using <a>DisableMetricsCollection</a>.
1679+
* If you associate a new launch configuration or template with an Auto
1680+
* Scaling group, all new instances will get the updated configuration, but
1681+
* existing instances continue to run with the configuration that they were
1682+
* originally launched with. When you update a group to specify a mixed
1683+
* instances policy instead of a launch configuration or template, existing
1684+
* instances may be replaced to match the new purchasing options that you
1685+
* specified in the policy. For example, if the group currently has 100%
1686+
* On-Demand capacity and the policy specifies 50% Spot capacity, this means
1687+
* that half of your instances will be gradually terminated and relaunched
1688+
* as Spot Instances. When replacing instances, Amazon EC2 Auto Scaling
1689+
* launches new instances before terminating the old ones, so that updating
1690+
* your group does not compromise the performance or availability of your
1691+
* application.
16751692
* </p>
16761693
* <p>
1677-
* Note the following:
1694+
* Note the following about changing <code>DesiredCapacity</code>,
1695+
* <code>MaxSize</code>, or <code>MinSize</code>:
16781696
* </p>
16791697
* <ul>
16801698
* <li>
16811699
* <p>
1700+
* If a scale-in event occurs as a result of a new
1701+
* <code>DesiredCapacity</code> value that is lower than the current size of
1702+
* the group, the Auto Scaling group uses its termination policy to
1703+
* determine which instances to terminate.
1704+
* </p>
1705+
* </li>
1706+
* <li>
1707+
* <p>
16821708
* If you specify a new value for <code>MinSize</code> without specifying a
16831709
* value for <code>DesiredCapacity</code>, and the new <code>MinSize</code>
1684-
* is larger than the current size of the group, we implicitly call
1685-
* <a>SetDesiredCapacity</a> to set the size of the group to the new value
1686-
* of <code>MinSize</code>.
1710+
* is larger than the current size of the group, this sets the group's
1711+
* <code>DesiredCapacity</code> to the new <code>MinSize</code> value.
16871712
* </p>
16881713
* </li>
16891714
* <li>
16901715
* <p>
16911716
* If you specify a new value for <code>MaxSize</code> without specifying a
16921717
* value for <code>DesiredCapacity</code>, and the new <code>MaxSize</code>
1693-
* is smaller than the current size of the group, we implicitly call
1694-
* <a>SetDesiredCapacity</a> to set the size of the group to the new value
1695-
* of <code>MaxSize</code>.
1718+
* is smaller than the current size of the group, this sets the group's
1719+
* <code>DesiredCapacity</code> to the new <code>MaxSize</code> value.
16961720
* </p>
16971721
* </li>
1698-
* <li>
1722+
* </ul>
16991723
* <p>
1700-
* All other optional parameters are left unchanged if not specified.
1724+
* To see which parameters have been set, use
1725+
* <a>DescribeAutoScalingGroups</a>. You can also view the scaling policies
1726+
* for an Auto Scaling group using <a>DescribePolicies</a>. If the group has
1727+
* scaling policies, you can update them using <a>PutScalingPolicy</a>.
17011728
* </p>
1702-
* </li>
1703-
* </ul>
17041729
*
17051730
* @param updateAutoScalingGroupRequest
17061731
* @throws ScalingActivityInProgressException
@@ -2098,8 +2123,8 @@ DescribeAdjustmentTypesResult describeAdjustmentTypes() throws AmazonClientExcep
20982123
/**
20992124
* <p>
21002125
* Describes the actions scheduled for your Auto Scaling group that haven't
2101-
* run. To describe the actions that have already run, use
2102-
* <a>DescribeScalingActivities</a>.
2126+
* run or that have not reached their end time. To describe the actions that
2127+
* have already run, use <a>DescribeScalingActivities</a>.
21032128
* </p>
21042129
*
21052130
* @return describeScheduledActionsResult The response from the

aws-android-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AmazonAutoScalingAsync.java

Lines changed: 96 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,8 +1031,15 @@ Future<Void> deleteNotificationConfigurationAsync(
10311031
* Deletes the specified scaling policy.
10321032
* </p>
10331033
* <p>
1034-
* Deleting a policy deletes the underlying alarm action, but does not
1035-
* delete the alarm, even if it no longer has an associated action.
1034+
* Deleting either a step scaling policy or a simple scaling policy deletes
1035+
* the underlying alarm action, but does not delete the alarm, even if it no
1036+
* longer has an associated action.
1037+
* </p>
1038+
* <p>
1039+
* For more information, see <a href=
1040+
* "https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html"
1041+
* >Deleting a Scaling Policy</a> in the <i>Amazon EC2 Auto Scaling User
1042+
* Guide</i>.
10361043
* </p>
10371044
*
10381045
* @param deletePolicyRequest
@@ -1056,8 +1063,15 @@ Future<Void> deletePolicyAsync(DeletePolicyRequest deletePolicyRequest)
10561063
* Deletes the specified scaling policy.
10571064
* </p>
10581065
* <p>
1059-
* Deleting a policy deletes the underlying alarm action, but does not
1060-
* delete the alarm, even if it no longer has an associated action.
1066+
* Deleting either a step scaling policy or a simple scaling policy deletes
1067+
* the underlying alarm action, but does not delete the alarm, even if it no
1068+
* longer has an associated action.
1069+
* </p>
1070+
* <p>
1071+
* For more information, see <a href=
1072+
* "https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html"
1073+
* >Deleting a Scaling Policy</a> in the <i>Amazon EC2 Auto Scaling User
1074+
* Guide</i>.
10611075
* </p>
10621076
*
10631077
* @param deletePolicyRequest
@@ -2005,8 +2019,8 @@ Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(
20052019
/**
20062020
* <p>
20072021
* Describes the actions scheduled for your Auto Scaling group that haven't
2008-
* run. To describe the actions that have already run, use
2009-
* <a>DescribeScalingActivities</a>.
2022+
* run or that have not reached their end time. To describe the actions that
2023+
* have already run, use <a>DescribeScalingActivities</a>.
20102024
* </p>
20112025
*
20122026
* @param describeScheduledActionsRequest
@@ -2030,8 +2044,8 @@ Future<DescribeScheduledActionsResult> describeScheduledActionsAsync(
20302044
/**
20312045
* <p>
20322046
* Describes the actions scheduled for your Auto Scaling group that haven't
2033-
* run. To describe the actions that have already run, use
2034-
* <a>DescribeScalingActivities</a>.
2047+
* run or that have not reached their end time. To describe the actions that
2048+
* have already run, use <a>DescribeScalingActivities</a>.
20352049
* </p>
20362050
*
20372051
* @param describeScheduledActionsRequest
@@ -3570,45 +3584,63 @@ Future<TerminateInstanceInAutoScalingGroupResult> terminateInstanceInAutoScaling
35703584
* Updates the configuration for the specified Auto Scaling group.
35713585
* </p>
35723586
* <p>
3573-
* The new settings take effect on any scaling activities after this call
3574-
* returns. Scaling activities that are currently in progress aren't
3575-
* affected.
3587+
* To update an Auto Scaling group, specify the name of the group and the
3588+
* parameter that you want to change. Any parameters that you don't specify
3589+
* are not changed by this update request. The new settings take effect on
3590+
* any scaling activities after this call returns. Scaling activities that
3591+
* are currently in progress aren't affected.
35763592
* </p>
35773593
* <p>
3578-
* To update an Auto Scaling group with a launch configuration with
3579-
* <code>InstanceMonitoring</code> set to <code>false</code>, you must first
3580-
* disable the collection of group metrics. Otherwise, you get an error. If
3581-
* you have previously enabled the collection of group metrics, you can
3582-
* disable it using <a>DisableMetricsCollection</a>.
3594+
* If you associate a new launch configuration or template with an Auto
3595+
* Scaling group, all new instances will get the updated configuration, but
3596+
* existing instances continue to run with the configuration that they were
3597+
* originally launched with. When you update a group to specify a mixed
3598+
* instances policy instead of a launch configuration or template, existing
3599+
* instances may be replaced to match the new purchasing options that you
3600+
* specified in the policy. For example, if the group currently has 100%
3601+
* On-Demand capacity and the policy specifies 50% Spot capacity, this means
3602+
* that half of your instances will be gradually terminated and relaunched
3603+
* as Spot Instances. When replacing instances, Amazon EC2 Auto Scaling
3604+
* launches new instances before terminating the old ones, so that updating
3605+
* your group does not compromise the performance or availability of your
3606+
* application.
35833607
* </p>
35843608
* <p>
3585-
* Note the following:
3609+
* Note the following about changing <code>DesiredCapacity</code>,
3610+
* <code>MaxSize</code>, or <code>MinSize</code>:
35863611
* </p>
35873612
* <ul>
35883613
* <li>
35893614
* <p>
3615+
* If a scale-in event occurs as a result of a new
3616+
* <code>DesiredCapacity</code> value that is lower than the current size of
3617+
* the group, the Auto Scaling group uses its termination policy to
3618+
* determine which instances to terminate.
3619+
* </p>
3620+
* </li>
3621+
* <li>
3622+
* <p>
35903623
* If you specify a new value for <code>MinSize</code> without specifying a
35913624
* value for <code>DesiredCapacity</code>, and the new <code>MinSize</code>
3592-
* is larger than the current size of the group, we implicitly call
3593-
* <a>SetDesiredCapacity</a> to set the size of the group to the new value
3594-
* of <code>MinSize</code>.
3625+
* is larger than the current size of the group, this sets the group's
3626+
* <code>DesiredCapacity</code> to the new <code>MinSize</code> value.
35953627
* </p>
35963628
* </li>
35973629
* <li>
35983630
* <p>
35993631
* If you specify a new value for <code>MaxSize</code> without specifying a
36003632
* value for <code>DesiredCapacity</code>, and the new <code>MaxSize</code>
3601-
* is smaller than the current size of the group, we implicitly call
3602-
* <a>SetDesiredCapacity</a> to set the size of the group to the new value
3603-
* of <code>MaxSize</code>.
3633+
* is smaller than the current size of the group, this sets the group's
3634+
* <code>DesiredCapacity</code> to the new <code>MaxSize</code> value.
36043635
* </p>
36053636
* </li>
3606-
* <li>
3637+
* </ul>
36073638
* <p>
3608-
* All other optional parameters are left unchanged if not specified.
3639+
* To see which parameters have been set, use
3640+
* <a>DescribeAutoScalingGroups</a>. You can also view the scaling policies
3641+
* for an Auto Scaling group using <a>DescribePolicies</a>. If the group has
3642+
* scaling policies, you can update them using <a>PutScalingPolicy</a>.
36093643
* </p>
3610-
* </li>
3611-
* </ul>
36123644
*
36133645
* @param updateAutoScalingGroupRequest
36143646
* @return A Java Future object containing the response from the
@@ -3634,45 +3666,63 @@ Future<Void> updateAutoScalingGroupAsync(
36343666
* Updates the configuration for the specified Auto Scaling group.
36353667
* </p>
36363668
* <p>
3637-
* The new settings take effect on any scaling activities after this call
3638-
* returns. Scaling activities that are currently in progress aren't
3639-
* affected.
3669+
* To update an Auto Scaling group, specify the name of the group and the
3670+
* parameter that you want to change. Any parameters that you don't specify
3671+
* are not changed by this update request. The new settings take effect on
3672+
* any scaling activities after this call returns. Scaling activities that
3673+
* are currently in progress aren't affected.
36403674
* </p>
36413675
* <p>
3642-
* To update an Auto Scaling group with a launch configuration with
3643-
* <code>InstanceMonitoring</code> set to <code>false</code>, you must first
3644-
* disable the collection of group metrics. Otherwise, you get an error. If
3645-
* you have previously enabled the collection of group metrics, you can
3646-
* disable it using <a>DisableMetricsCollection</a>.
3676+
* If you associate a new launch configuration or template with an Auto
3677+
* Scaling group, all new instances will get the updated configuration, but
3678+
* existing instances continue to run with the configuration that they were
3679+
* originally launched with. When you update a group to specify a mixed
3680+
* instances policy instead of a launch configuration or template, existing
3681+
* instances may be replaced to match the new purchasing options that you
3682+
* specified in the policy. For example, if the group currently has 100%
3683+
* On-Demand capacity and the policy specifies 50% Spot capacity, this means
3684+
* that half of your instances will be gradually terminated and relaunched
3685+
* as Spot Instances. When replacing instances, Amazon EC2 Auto Scaling
3686+
* launches new instances before terminating the old ones, so that updating
3687+
* your group does not compromise the performance or availability of your
3688+
* application.
36473689
* </p>
36483690
* <p>
3649-
* Note the following:
3691+
* Note the following about changing <code>DesiredCapacity</code>,
3692+
* <code>MaxSize</code>, or <code>MinSize</code>:
36503693
* </p>
36513694
* <ul>
36523695
* <li>
36533696
* <p>
3697+
* If a scale-in event occurs as a result of a new
3698+
* <code>DesiredCapacity</code> value that is lower than the current size of
3699+
* the group, the Auto Scaling group uses its termination policy to
3700+
* determine which instances to terminate.
3701+
* </p>
3702+
* </li>
3703+
* <li>
3704+
* <p>
36543705
* If you specify a new value for <code>MinSize</code> without specifying a
36553706
* value for <code>DesiredCapacity</code>, and the new <code>MinSize</code>
3656-
* is larger than the current size of the group, we implicitly call
3657-
* <a>SetDesiredCapacity</a> to set the size of the group to the new value
3658-
* of <code>MinSize</code>.
3707+
* is larger than the current size of the group, this sets the group's
3708+
* <code>DesiredCapacity</code> to the new <code>MinSize</code> value.
36593709
* </p>
36603710
* </li>
36613711
* <li>
36623712
* <p>
36633713
* If you specify a new value for <code>MaxSize</code> without specifying a
36643714
* value for <code>DesiredCapacity</code>, and the new <code>MaxSize</code>
3665-
* is smaller than the current size of the group, we implicitly call
3666-
* <a>SetDesiredCapacity</a> to set the size of the group to the new value
3667-
* of <code>MaxSize</code>.
3715+
* is smaller than the current size of the group, this sets the group's
3716+
* <code>DesiredCapacity</code> to the new <code>MaxSize</code> value.
36683717
* </p>
36693718
* </li>
3670-
* <li>
3719+
* </ul>
36713720
* <p>
3672-
* All other optional parameters are left unchanged if not specified.
3721+
* To see which parameters have been set, use
3722+
* <a>DescribeAutoScalingGroups</a>. You can also view the scaling policies
3723+
* for an Auto Scaling group using <a>DescribePolicies</a>. If the group has
3724+
* scaling policies, you can update them using <a>PutScalingPolicy</a>.
36733725
* </p>
3674-
* </li>
3675-
* </ul>
36763726
*
36773727
* @param updateAutoScalingGroupRequest
36783728
* @param asyncHandler Asynchronous callback handler for events in the

0 commit comments

Comments
 (0)