@aws-sdk/client-auto-scaling 3.36.0 → 3.39.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.
Files changed (178) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist-cjs/AutoScaling.js +0 -16
  3. package/dist-cjs/AutoScalingClient.js +0 -21
  4. package/dist-cjs/commands/AttachInstancesCommand.js +0 -33
  5. package/dist-cjs/commands/AttachLoadBalancerTargetGroupsCommand.js +0 -42
  6. package/dist-cjs/commands/AttachLoadBalancersCommand.js +0 -34
  7. package/dist-cjs/commands/BatchDeleteScheduledActionCommand.js +0 -24
  8. package/dist-cjs/commands/BatchPutScheduledUpdateGroupActionCommand.js +0 -24
  9. package/dist-cjs/commands/CancelInstanceRefreshCommand.js +0 -29
  10. package/dist-cjs/commands/CompleteLifecycleActionCommand.js +0 -55
  11. package/dist-cjs/commands/CreateAutoScalingGroupCommand.js +0 -42
  12. package/dist-cjs/commands/CreateLaunchConfigurationCommand.js +0 -30
  13. package/dist-cjs/commands/CreateOrUpdateTagsCommand.js +0 -28
  14. package/dist-cjs/commands/DeleteAutoScalingGroupCommand.js +0 -33
  15. package/dist-cjs/commands/DeleteLaunchConfigurationCommand.js +0 -26
  16. package/dist-cjs/commands/DeleteLifecycleHookCommand.js +0 -27
  17. package/dist-cjs/commands/DeleteNotificationConfigurationCommand.js +0 -24
  18. package/dist-cjs/commands/DeletePolicyCommand.js +0 -29
  19. package/dist-cjs/commands/DeleteScheduledActionCommand.js +0 -24
  20. package/dist-cjs/commands/DeleteTagsCommand.js +0 -24
  21. package/dist-cjs/commands/DeleteWarmPoolCommand.js +0 -26
  22. package/dist-cjs/commands/DescribeAccountLimitsCommand.js +0 -28
  23. package/dist-cjs/commands/DescribeAdjustmentTypesCommand.js +0 -43
  24. package/dist-cjs/commands/DescribeAutoScalingGroupsCommand.js +0 -26
  25. package/dist-cjs/commands/DescribeAutoScalingInstancesCommand.js +0 -24
  26. package/dist-cjs/commands/DescribeAutoScalingNotificationTypesCommand.js +0 -24
  27. package/dist-cjs/commands/DescribeInstanceRefreshesCommand.js +0 -62
  28. package/dist-cjs/commands/DescribeLaunchConfigurationsCommand.js +0 -24
  29. package/dist-cjs/commands/DescribeLifecycleHookTypesCommand.js +0 -37
  30. package/dist-cjs/commands/DescribeLifecycleHooksCommand.js +0 -24
  31. package/dist-cjs/commands/DescribeLoadBalancerTargetGroupsCommand.js +0 -43
  32. package/dist-cjs/commands/DescribeLoadBalancersCommand.js +0 -45
  33. package/dist-cjs/commands/DescribeMetricCollectionTypesCommand.js +0 -26
  34. package/dist-cjs/commands/DescribeNotificationConfigurationsCommand.js +0 -25
  35. package/dist-cjs/commands/DescribePoliciesCommand.js +0 -24
  36. package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +0 -32
  37. package/dist-cjs/commands/DescribeScalingProcessTypesCommand.js +0 -25
  38. package/dist-cjs/commands/DescribeScheduledActionsCommand.js +0 -27
  39. package/dist-cjs/commands/DescribeTagsCommand.js +0 -32
  40. package/dist-cjs/commands/DescribeTerminationPolicyTypesCommand.js +0 -27
  41. package/dist-cjs/commands/DescribeWarmPoolCommand.js +0 -26
  42. package/dist-cjs/commands/DetachInstancesCommand.js +0 -33
  43. package/dist-cjs/commands/DetachLoadBalancerTargetGroupsCommand.js +0 -24
  44. package/dist-cjs/commands/DetachLoadBalancersCommand.js +0 -29
  45. package/dist-cjs/commands/DisableMetricsCollectionCommand.js +0 -24
  46. package/dist-cjs/commands/EnableMetricsCollectionCommand.js +0 -25
  47. package/dist-cjs/commands/EnterStandbyCommand.js +0 -33
  48. package/dist-cjs/commands/ExecutePolicyCommand.js +0 -25
  49. package/dist-cjs/commands/ExitStandbyCommand.js +0 -29
  50. package/dist-cjs/commands/GetPredictiveScalingForecastCommand.js +0 -32
  51. package/dist-cjs/commands/PutLifecycleHookCommand.js +0 -61
  52. package/dist-cjs/commands/PutNotificationConfigurationCommand.js +0 -32
  53. package/dist-cjs/commands/PutScalingPolicyCommand.js +0 -33
  54. package/dist-cjs/commands/PutScheduledUpdateGroupActionCommand.js +0 -28
  55. package/dist-cjs/commands/PutWarmPoolCommand.js +0 -33
  56. package/dist-cjs/commands/RecordLifecycleActionHeartbeatCommand.js +0 -56
  57. package/dist-cjs/commands/ResumeProcessesCommand.js +0 -27
  58. package/dist-cjs/commands/SetDesiredCapacityCommand.js +0 -29
  59. package/dist-cjs/commands/SetInstanceHealthCommand.js +0 -26
  60. package/dist-cjs/commands/SetInstanceProtectionCommand.js +0 -30
  61. package/dist-cjs/commands/StartInstanceRefreshCommand.js +0 -38
  62. package/dist-cjs/commands/SuspendProcessesCommand.js +0 -30
  63. package/dist-cjs/commands/TerminateInstanceInAutoScalingGroupCommand.js +0 -35
  64. package/dist-cjs/commands/UpdateAutoScalingGroupCommand.js +0 -68
  65. package/dist-cjs/commands/index.js +64 -0
  66. package/dist-cjs/endpoints.js +6 -1
  67. package/dist-cjs/index.js +5 -75
  68. package/dist-cjs/models/models_0.js +121 -475
  69. package/dist-cjs/pagination/DescribeAutoScalingGroupsPaginator.js +0 -10
  70. package/dist-cjs/pagination/DescribeAutoScalingInstancesPaginator.js +0 -10
  71. package/dist-cjs/pagination/DescribeLaunchConfigurationsPaginator.js +0 -10
  72. package/dist-cjs/pagination/DescribeNotificationConfigurationsPaginator.js +0 -10
  73. package/dist-cjs/pagination/DescribePoliciesPaginator.js +0 -10
  74. package/dist-cjs/pagination/DescribeScalingActivitiesPaginator.js +0 -10
  75. package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +0 -10
  76. package/dist-cjs/pagination/DescribeTagsPaginator.js +0 -10
  77. package/dist-cjs/pagination/index.js +12 -0
  78. package/dist-cjs/protocols/Aws_query.js +621 -2
  79. package/dist-cjs/runtimeConfig.browser.js +1 -5
  80. package/dist-cjs/runtimeConfig.js +1 -5
  81. package/dist-cjs/runtimeConfig.native.js +0 -3
  82. package/dist-cjs/runtimeConfig.shared.js +0 -3
  83. package/dist-cjs/waiters/index.js +6 -0
  84. package/dist-cjs/waiters/waitForGroupExists.js +0 -9
  85. package/dist-cjs/waiters/waitForGroupInService.js +0 -9
  86. package/dist-cjs/waiters/waitForGroupNotExists.js +0 -9
  87. package/dist-es/commands/index.js +61 -0
  88. package/dist-es/endpoints.js +6 -1
  89. package/dist-es/index.js +5 -75
  90. package/dist-es/models/models_0.js +97 -4
  91. package/dist-es/pagination/index.js +9 -0
  92. package/dist-es/protocols/Aws_query.js +922 -207
  93. package/dist-es/waiters/index.js +3 -0
  94. package/dist-types/AutoScaling.d.ts +8 -2
  95. package/dist-types/AutoScalingClient.d.ts +2 -0
  96. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +1 -1
  97. package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +5 -1
  98. package/dist-types/commands/index.d.ts +61 -0
  99. package/dist-types/index.d.ts +5 -75
  100. package/dist-types/models/models_0.d.ts +672 -125
  101. package/dist-types/pagination/index.d.ts +9 -0
  102. package/dist-types/ts3.4/AutoScaling.d.ts +62 -693
  103. package/dist-types/ts3.4/AutoScalingClient.d.ts +24 -102
  104. package/dist-types/ts3.4/commands/AttachInstancesCommand.d.ts +2 -29
  105. package/dist-types/ts3.4/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +2 -38
  106. package/dist-types/ts3.4/commands/AttachLoadBalancersCommand.d.ts +2 -30
  107. package/dist-types/ts3.4/commands/BatchDeleteScheduledActionCommand.d.ts +2 -20
  108. package/dist-types/ts3.4/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +2 -20
  109. package/dist-types/ts3.4/commands/CancelInstanceRefreshCommand.d.ts +2 -25
  110. package/dist-types/ts3.4/commands/CompleteLifecycleActionCommand.d.ts +2 -51
  111. package/dist-types/ts3.4/commands/CreateAutoScalingGroupCommand.d.ts +2 -38
  112. package/dist-types/ts3.4/commands/CreateLaunchConfigurationCommand.d.ts +2 -26
  113. package/dist-types/ts3.4/commands/CreateOrUpdateTagsCommand.d.ts +2 -24
  114. package/dist-types/ts3.4/commands/DeleteAutoScalingGroupCommand.d.ts +2 -29
  115. package/dist-types/ts3.4/commands/DeleteLaunchConfigurationCommand.d.ts +2 -22
  116. package/dist-types/ts3.4/commands/DeleteLifecycleHookCommand.d.ts +2 -23
  117. package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +2 -25
  119. package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +2 -20
  121. package/dist-types/ts3.4/commands/DeleteWarmPoolCommand.d.ts +2 -22
  122. package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +2 -24
  123. package/dist-types/ts3.4/commands/DescribeAdjustmentTypesCommand.d.ts +2 -39
  124. package/dist-types/ts3.4/commands/DescribeAutoScalingGroupsCommand.d.ts +2 -22
  125. package/dist-types/ts3.4/commands/DescribeAutoScalingInstancesCommand.d.ts +2 -20
  126. package/dist-types/ts3.4/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/DescribeInstanceRefreshesCommand.d.ts +2 -58
  128. package/dist-types/ts3.4/commands/DescribeLaunchConfigurationsCommand.d.ts +2 -20
  129. package/dist-types/ts3.4/commands/DescribeLifecycleHookTypesCommand.d.ts +2 -33
  130. package/dist-types/ts3.4/commands/DescribeLifecycleHooksCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +2 -39
  132. package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +2 -41
  133. package/dist-types/ts3.4/commands/DescribeMetricCollectionTypesCommand.d.ts +2 -22
  134. package/dist-types/ts3.4/commands/DescribeNotificationConfigurationsCommand.d.ts +2 -21
  135. package/dist-types/ts3.4/commands/DescribePoliciesCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/DescribeScalingActivitiesCommand.d.ts +2 -28
  137. package/dist-types/ts3.4/commands/DescribeScalingProcessTypesCommand.d.ts +2 -21
  138. package/dist-types/ts3.4/commands/DescribeScheduledActionsCommand.d.ts +2 -23
  139. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +2 -28
  140. package/dist-types/ts3.4/commands/DescribeTerminationPolicyTypesCommand.d.ts +2 -23
  141. package/dist-types/ts3.4/commands/DescribeWarmPoolCommand.d.ts +2 -22
  142. package/dist-types/ts3.4/commands/DetachInstancesCommand.d.ts +2 -29
  143. package/dist-types/ts3.4/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +2 -20
  144. package/dist-types/ts3.4/commands/DetachLoadBalancersCommand.d.ts +2 -25
  145. package/dist-types/ts3.4/commands/DisableMetricsCollectionCommand.d.ts +2 -20
  146. package/dist-types/ts3.4/commands/EnableMetricsCollectionCommand.d.ts +2 -21
  147. package/dist-types/ts3.4/commands/EnterStandbyCommand.d.ts +2 -29
  148. package/dist-types/ts3.4/commands/ExecutePolicyCommand.d.ts +2 -21
  149. package/dist-types/ts3.4/commands/ExitStandbyCommand.d.ts +2 -25
  150. package/dist-types/ts3.4/commands/GetPredictiveScalingForecastCommand.d.ts +2 -28
  151. package/dist-types/ts3.4/commands/PutLifecycleHookCommand.d.ts +2 -57
  152. package/dist-types/ts3.4/commands/PutNotificationConfigurationCommand.d.ts +2 -28
  153. package/dist-types/ts3.4/commands/PutScalingPolicyCommand.d.ts +2 -29
  154. package/dist-types/ts3.4/commands/PutScheduledUpdateGroupActionCommand.d.ts +2 -24
  155. package/dist-types/ts3.4/commands/PutWarmPoolCommand.d.ts +2 -29
  156. package/dist-types/ts3.4/commands/RecordLifecycleActionHeartbeatCommand.d.ts +2 -52
  157. package/dist-types/ts3.4/commands/ResumeProcessesCommand.d.ts +2 -23
  158. package/dist-types/ts3.4/commands/SetDesiredCapacityCommand.d.ts +2 -25
  159. package/dist-types/ts3.4/commands/SetInstanceHealthCommand.d.ts +2 -22
  160. package/dist-types/ts3.4/commands/SetInstanceProtectionCommand.d.ts +2 -26
  161. package/dist-types/ts3.4/commands/StartInstanceRefreshCommand.d.ts +2 -34
  162. package/dist-types/ts3.4/commands/SuspendProcessesCommand.d.ts +2 -26
  163. package/dist-types/ts3.4/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +2 -31
  164. package/dist-types/ts3.4/commands/UpdateAutoScalingGroupCommand.d.ts +2 -64
  165. package/dist-types/ts3.4/commands/index.d.ts +61 -0
  166. package/dist-types/ts3.4/index.d.ts +5 -75
  167. package/dist-types/ts3.4/models/models_0.d.ts +960 -4205
  168. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  169. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  170. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  171. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  172. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  173. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  174. package/dist-types/ts3.4/waiters/waitForGroupExists.d.ts +2 -9
  175. package/dist-types/ts3.4/waiters/waitForGroupInService.d.ts +2 -9
  176. package/dist-types/ts3.4/waiters/waitForGroupNotExists.d.ts +2 -9
  177. package/dist-types/waiters/index.d.ts +3 -0
  178. package/package.json +33 -33
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Disables group metrics for the specified Auto Scaling group.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { AutoScalingClient, DisableMetricsCollectionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
14
- * // const { AutoScalingClient, DisableMetricsCollectionCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
15
- * const client = new AutoScalingClient(config);
16
- * const command = new DisableMetricsCollectionCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DisableMetricsCollectionCommandInput} for command's `input` shape.
21
- * @see {@link DisableMetricsCollectionCommandOutput} for command's `response` shape.
22
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DisableMetricsCollectionCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Enables group metrics for the specified Auto Scaling group. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-monitoring.html">Monitoring CloudWatch metrics for your Auto Scaling groups and instances</a> in the
10
- * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { AutoScalingClient, EnableMetricsCollectionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
15
- * // const { AutoScalingClient, EnableMetricsCollectionCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
16
- * const client = new AutoScalingClient(config);
17
- * const command = new EnableMetricsCollectionCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link EnableMetricsCollectionCommandInput} for command's `input` shape.
22
- * @see {@link EnableMetricsCollectionCommandOutput} for command's `response` shape.
23
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class EnableMetricsCollectionCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,44 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Moves the specified instances into the standby state.</p>
10
- * <p>If you choose to decrement the desired capacity of the Auto Scaling group, the instances can
11
- * enter standby as long as the desired capacity of the Auto Scaling group after the instances are
12
- * placed into standby is equal to or greater than the minimum capacity of the
13
- * group.</p>
14
- * <p>If you choose not to decrement the desired capacity of the Auto Scaling group, the Auto Scaling group
15
- * launches new instances to replace the instances on standby.</p>
16
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily removing
17
- * instances from your Auto Scaling group</a> in the
18
- * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
19
- * @example
20
- * Use a bare-bones client and the command you need to make an API call.
21
- * ```javascript
22
- * import { AutoScalingClient, EnterStandbyCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
23
- * // const { AutoScalingClient, EnterStandbyCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
24
- * const client = new AutoScalingClient(config);
25
- * const command = new EnterStandbyCommand(input);
26
- * const response = await client.send(command);
27
- * ```
28
- *
29
- * @see {@link EnterStandbyCommandInput} for command's `input` shape.
30
- * @see {@link EnterStandbyCommandOutput} for command's `response` shape.
31
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
32
- *
33
- */
34
8
  class EnterStandbyCommand extends smithy_client_1.Command {
35
- // Start section: command_properties
36
- // End section: command_properties
37
9
  constructor(input) {
38
- // Start section: command_constructor
39
10
  super();
40
11
  this.input = input;
41
- // End section: command_constructor
42
12
  }
43
- /**
44
- * @internal
45
- */
46
13
  resolveMiddleware(clientStack, configuration, options) {
47
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
48
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Executes the specified policy. This can be useful for testing the design of your
10
- * scaling policy.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { AutoScalingClient, ExecutePolicyCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
15
- * // const { AutoScalingClient, ExecutePolicyCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
16
- * const client = new AutoScalingClient(config);
17
- * const command = new ExecutePolicyCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ExecutePolicyCommandInput} for command's `input` shape.
22
- * @see {@link ExecutePolicyCommandOutput} for command's `response` shape.
23
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ExecutePolicyCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Moves the specified instances out of the standby state.</p>
10
- * <p>After you put the instances back in service, the desired capacity is
11
- * incremented.</p>
12
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily removing
13
- * instances from your Auto Scaling group</a> in the
14
- * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { AutoScalingClient, ExitStandbyCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
19
- * // const { AutoScalingClient, ExitStandbyCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
20
- * const client = new AutoScalingClient(config);
21
- * const command = new ExitStandbyCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link ExitStandbyCommandInput} for command's `input` shape.
26
- * @see {@link ExitStandbyCommandOutput} for command's `response` shape.
27
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class ExitStandbyCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Retrieves the forecast data for a predictive scaling policy.</p>
10
- * <p>Load forecasts are predictions of the hourly load values using historical load data
11
- * from CloudWatch and an analysis of historical trends. Capacity forecasts are represented as
12
- * predicted values for the minimum capacity that is needed on an hourly basis, based on
13
- * the hourly load forecast.</p>
14
- * <p>A minimum of 24 hours of data is required to create the initial forecasts. However,
15
- * having a full 14 days of historical data results in more accurate forecasts.</p>
16
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html">Predictive
17
- * scaling for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
18
- * @example
19
- * Use a bare-bones client and the command you need to make an API call.
20
- * ```javascript
21
- * import { AutoScalingClient, GetPredictiveScalingForecastCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
22
- * // const { AutoScalingClient, GetPredictiveScalingForecastCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
23
- * const client = new AutoScalingClient(config);
24
- * const command = new GetPredictiveScalingForecastCommand(input);
25
- * const response = await client.send(command);
26
- * ```
27
- *
28
- * @see {@link GetPredictiveScalingForecastCommandInput} for command's `input` shape.
29
- * @see {@link GetPredictiveScalingForecastCommandOutput} for command's `response` shape.
30
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
31
- *
32
- */
33
8
  class GetPredictiveScalingForecastCommand extends smithy_client_1.Command {
34
- // Start section: command_properties
35
- // End section: command_properties
36
9
  constructor(input) {
37
- // Start section: command_constructor
38
10
  super();
39
11
  this.input = input;
40
- // End section: command_constructor
41
12
  }
42
- /**
43
- * @internal
44
- */
45
13
  resolveMiddleware(clientStack, configuration, options) {
46
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
47
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,72 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Creates or updates a lifecycle hook for the specified Auto Scaling group.</p>
10
- * <p>A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance
11
- * launches (before it is put into service) or as the instance terminates (before it is
12
- * fully terminated).</p>
13
- * <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
14
- * group:</p>
15
- * <ol>
16
- * <li>
17
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
18
- * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
19
- * instances.</p>
20
- * </li>
21
- * <li>
22
- * <p>(Optional) Create a notification target and an IAM role. The target can be
23
- * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to
24
- * publish lifecycle notifications to the target.</p>
25
- * </li>
26
- * <li>
27
- * <p>
28
- * <b>Create the lifecycle hook. Specify whether the hook is
29
- * used when the instances launch or terminate.</b>
30
- * </p>
31
- * </li>
32
- * <li>
33
- * <p>If you need more time, record the lifecycle action heartbeat to keep the
34
- * instance in a pending state using the <a>RecordLifecycleActionHeartbeat</a> API call.</p>
35
- * </li>
36
- * <li>
37
- * <p>If you finish before the timeout period ends, complete the lifecycle action
38
- * using the <a>CompleteLifecycleAction</a> API call.</p>
39
- * </li>
40
- * </ol>
41
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
42
- * hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
43
- * <p>If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling
44
- * group, the call fails.</p>
45
- * <p>You can view the lifecycle hooks for an Auto Scaling group using the <a>DescribeLifecycleHooks</a> API call. If you are no longer using a lifecycle
46
- * hook, you can delete it by calling the <a>DeleteLifecycleHook</a> API.</p>
47
- * @example
48
- * Use a bare-bones client and the command you need to make an API call.
49
- * ```javascript
50
- * import { AutoScalingClient, PutLifecycleHookCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
51
- * // const { AutoScalingClient, PutLifecycleHookCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
52
- * const client = new AutoScalingClient(config);
53
- * const command = new PutLifecycleHookCommand(input);
54
- * const response = await client.send(command);
55
- * ```
56
- *
57
- * @see {@link PutLifecycleHookCommandInput} for command's `input` shape.
58
- * @see {@link PutLifecycleHookCommandOutput} for command's `response` shape.
59
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
60
- *
61
- */
62
8
  class PutLifecycleHookCommand extends smithy_client_1.Command {
63
- // Start section: command_properties
64
- // End section: command_properties
65
9
  constructor(input) {
66
- // Start section: command_constructor
67
10
  super();
68
11
  this.input = input;
69
- // End section: command_constructor
70
12
  }
71
- /**
72
- * @internal
73
- */
74
13
  resolveMiddleware(clientStack, configuration, options) {
75
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
76
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Configures an Auto Scaling group to send notifications when specified events take place.
10
- * Subscribers to the specified topic can have messages delivered to an endpoint such as a
11
- * web server or an email address.</p>
12
- * <p>This configuration overwrites any existing configuration.</p>
13
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html">Getting Amazon SNS
14
- * notifications when your Auto Scaling group scales</a> in the
15
- * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
16
- * <p>If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group, the call
17
- * fails.</p>
18
- * @example
19
- * Use a bare-bones client and the command you need to make an API call.
20
- * ```javascript
21
- * import { AutoScalingClient, PutNotificationConfigurationCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
22
- * // const { AutoScalingClient, PutNotificationConfigurationCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
23
- * const client = new AutoScalingClient(config);
24
- * const command = new PutNotificationConfigurationCommand(input);
25
- * const response = await client.send(command);
26
- * ```
27
- *
28
- * @see {@link PutNotificationConfigurationCommandInput} for command's `input` shape.
29
- * @see {@link PutNotificationConfigurationCommandOutput} for command's `response` shape.
30
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
31
- *
32
- */
33
8
  class PutNotificationConfigurationCommand extends smithy_client_1.Command {
34
- // Start section: command_properties
35
- // End section: command_properties
36
9
  constructor(input) {
37
- // Start section: command_constructor
38
10
  super();
39
11
  this.input = input;
40
- // End section: command_constructor
41
12
  }
42
- /**
43
- * @internal
44
- */
45
13
  resolveMiddleware(clientStack, configuration, options) {
46
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
47
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,44 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Creates or updates a scaling policy for an Auto Scaling group. Scaling policies are used to
10
- * scale an Auto Scaling group based on configurable metrics. If no policies are defined, the
11
- * dynamic scaling and predictive scaling features are not used. </p>
12
- * <p>For more information about using dynamic scaling, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html">Target tracking
13
- * scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html">Step and simple scaling
14
- * policies</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
15
- * <p>For more information about using predictive scaling, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html">Predictive
16
- * scaling for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
17
- * <p>You can view the scaling policies for an Auto Scaling group using the <a>DescribePolicies</a> API call. If you are no longer using a scaling policy,
18
- * you can delete it by calling the <a>DeletePolicy</a> API.</p>
19
- * @example
20
- * Use a bare-bones client and the command you need to make an API call.
21
- * ```javascript
22
- * import { AutoScalingClient, PutScalingPolicyCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
23
- * // const { AutoScalingClient, PutScalingPolicyCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
24
- * const client = new AutoScalingClient(config);
25
- * const command = new PutScalingPolicyCommand(input);
26
- * const response = await client.send(command);
27
- * ```
28
- *
29
- * @see {@link PutScalingPolicyCommandInput} for command's `input` shape.
30
- * @see {@link PutScalingPolicyCommandOutput} for command's `response` shape.
31
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
32
- *
33
- */
34
8
  class PutScalingPolicyCommand extends smithy_client_1.Command {
35
- // Start section: command_properties
36
- // End section: command_properties
37
9
  constructor(input) {
38
- // Start section: command_constructor
39
10
  super();
40
11
  this.input = input;
41
- // End section: command_constructor
42
12
  }
43
- /**
44
- * @internal
45
- */
46
13
  resolveMiddleware(clientStack, configuration, options) {
47
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
48
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Creates or updates a scheduled scaling action for an Auto Scaling group.</p>
10
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html">Scheduled scaling</a> in the
11
- * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
12
- * <p>You can view the scheduled actions for an Auto Scaling group using the <a>DescribeScheduledActions</a> API call. If you are no longer using a
13
- * scheduled action, you can delete it by calling the <a>DeleteScheduledAction</a> API.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { AutoScalingClient, PutScheduledUpdateGroupActionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
18
- * // const { AutoScalingClient, PutScheduledUpdateGroupActionCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
19
- * const client = new AutoScalingClient(config);
20
- * const command = new PutScheduledUpdateGroupActionCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link PutScheduledUpdateGroupActionCommandInput} for command's `input` shape.
25
- * @see {@link PutScheduledUpdateGroupActionCommandOutput} for command's `response` shape.
26
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class PutScheduledUpdateGroupActionCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,44 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Creates or updates a warm pool for the specified Auto Scaling group. A warm pool is a pool of
10
- * pre-initialized EC2 instances that sits alongside the Auto Scaling group. Whenever your
11
- * application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new
12
- * desired capacity. For more information and example configurations, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm pools for
13
- * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
14
- * <p>This operation must be called from the Region in which the Auto Scaling group was created.
15
- * This operation cannot be called on an Auto Scaling group that has a mixed instances policy or a
16
- * launch template or launch configuration that requests Spot Instances.</p>
17
- * <p>You can view the instances in the warm pool using the <a>DescribeWarmPool</a> API call. If you are no longer using a warm pool, you can delete it by calling the
18
- * <a>DeleteWarmPool</a> API.</p>
19
- * @example
20
- * Use a bare-bones client and the command you need to make an API call.
21
- * ```javascript
22
- * import { AutoScalingClient, PutWarmPoolCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
23
- * // const { AutoScalingClient, PutWarmPoolCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
24
- * const client = new AutoScalingClient(config);
25
- * const command = new PutWarmPoolCommand(input);
26
- * const response = await client.send(command);
27
- * ```
28
- *
29
- * @see {@link PutWarmPoolCommandInput} for command's `input` shape.
30
- * @see {@link PutWarmPoolCommandOutput} for command's `response` shape.
31
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
32
- *
33
- */
34
8
  class PutWarmPoolCommand extends smithy_client_1.Command {
35
- // Start section: command_properties
36
- // End section: command_properties
37
9
  constructor(input) {
38
- // Start section: command_constructor
39
10
  super();
40
11
  this.input = input;
41
- // End section: command_constructor
42
12
  }
43
- /**
44
- * @internal
45
- */
46
13
  resolveMiddleware(clientStack, configuration, options) {
47
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
48
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,67 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Records a heartbeat for the lifecycle action associated with the specified token or
10
- * instance. This extends the timeout by the length of time defined using the <a>PutLifecycleHook</a> API call.</p>
11
- *
12
- * <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
13
- * group:</p>
14
- * <ol>
15
- * <li>
16
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
17
- * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
18
- * instances.</p>
19
- * </li>
20
- * <li>
21
- * <p>(Optional) Create a notification target and an IAM role. The target can be
22
- * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to
23
- * publish lifecycle notifications to the target.</p>
24
- * </li>
25
- * <li>
26
- * <p>Create the lifecycle hook. Specify whether the hook is used when the instances
27
- * launch or terminate.</p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <b>If you need more time, record the lifecycle action
32
- * heartbeat to keep the instance in a pending state.</b>
33
- * </p>
34
- * </li>
35
- * <li>
36
- * <p>If you finish before the timeout period ends, complete the lifecycle
37
- * action.</p>
38
- * </li>
39
- * </ol>
40
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
41
- * hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
42
- * @example
43
- * Use a bare-bones client and the command you need to make an API call.
44
- * ```javascript
45
- * import { AutoScalingClient, RecordLifecycleActionHeartbeatCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
46
- * // const { AutoScalingClient, RecordLifecycleActionHeartbeatCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
47
- * const client = new AutoScalingClient(config);
48
- * const command = new RecordLifecycleActionHeartbeatCommand(input);
49
- * const response = await client.send(command);
50
- * ```
51
- *
52
- * @see {@link RecordLifecycleActionHeartbeatCommandInput} for command's `input` shape.
53
- * @see {@link RecordLifecycleActionHeartbeatCommandOutput} for command's `response` shape.
54
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
55
- *
56
- */
57
8
  class RecordLifecycleActionHeartbeatCommand extends smithy_client_1.Command {
58
- // Start section: command_properties
59
- // End section: command_properties
60
9
  constructor(input) {
61
- // Start section: command_constructor
62
10
  super();
63
11
  this.input = input;
64
- // End section: command_constructor
65
12
  }
66
- /**
67
- * @internal
68
- */
69
13
  resolveMiddleware(clientStack, configuration, options) {
70
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
71
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Resumes the specified suspended auto scaling processes, or all suspended process, for
10
- * the specified Auto Scaling group.</p>
11
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html">Suspending and
12
- * resuming scaling processes</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { AutoScalingClient, ResumeProcessesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
17
- * // const { AutoScalingClient, ResumeProcessesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
18
- * const client = new AutoScalingClient(config);
19
- * const command = new ResumeProcessesCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link ResumeProcessesCommandInput} for command's `input` shape.
24
- * @see {@link ResumeProcessesCommandOutput} for command's `response` shape.
25
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class ResumeProcessesCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Sets the size of the specified Auto Scaling group.</p>
10
- * <p>If a scale-in activity occurs as a result of a new <code>DesiredCapacity</code> value
11
- * that is lower than the current size of the group, the Auto Scaling group uses its termination
12
- * policy to determine which instances to terminate. </p>
13
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-manual-scaling.html">Manual scaling</a> in the
14
- * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { AutoScalingClient, SetDesiredCapacityCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
19
- * // const { AutoScalingClient, SetDesiredCapacityCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
20
- * const client = new AutoScalingClient(config);
21
- * const command = new SetDesiredCapacityCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link SetDesiredCapacityCommandInput} for command's `input` shape.
26
- * @see {@link SetDesiredCapacityCommandOutput} for command's `response` shape.
27
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class SetDesiredCapacityCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);