@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,51 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2021/10/28 ([#2955](https://github.com/aws/aws-sdk-js-v3/issues/2955)) ([378d161](https://github.com/aws/aws-sdk-js-v3/commit/378d16166de49b06263291001986715d9533cadf))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
18
+
19
+
20
+ ### Features
21
+
22
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
23
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
24
+
25
+
26
+
27
+
28
+
29
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
30
+
31
+
32
+ ### Features
33
+
34
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
35
+
36
+
37
+
38
+
39
+
40
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
46
+
47
+
48
+
49
+
50
+
6
51
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
52
 
8
53
 
@@ -63,22 +63,6 @@ const StartInstanceRefreshCommand_1 = require("./commands/StartInstanceRefreshCo
63
63
  const SuspendProcessesCommand_1 = require("./commands/SuspendProcessesCommand");
64
64
  const TerminateInstanceInAutoScalingGroupCommand_1 = require("./commands/TerminateInstanceInAutoScalingGroupCommand");
65
65
  const UpdateAutoScalingGroupCommand_1 = require("./commands/UpdateAutoScalingGroupCommand");
66
- /**
67
- * <fullname>Amazon EC2 Auto Scaling</fullname>
68
- *
69
- *
70
- *
71
- *
72
- *
73
- *
74
- *
75
- * <p>Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances
76
- * based on user-defined scaling policies, scheduled actions, and health checks.</p>
77
- * <p>For more information about Amazon EC2 Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html">Amazon EC2 Auto Scaling User Guide</a>. For information about granting IAM users required
78
- * permissions for calls to Amazon EC2 Auto Scaling, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/ec2-auto-scaling-api-permissions.html">Granting
79
- * IAM users required permissions for Amazon EC2 Auto Scaling resources</a> in the
80
- * <i>Amazon EC2 Auto Scaling API Reference</i>.</p>
81
- */
82
66
  class AutoScaling extends AutoScalingClient_1.AutoScalingClient {
83
67
  attachInstances(args, optionsOrCb, cb) {
84
68
  const command = new AttachInstancesCommand_1.AttachInstancesCommand(args);
@@ -10,22 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <fullname>Amazon EC2 Auto Scaling</fullname>
15
- *
16
- *
17
- *
18
- *
19
- *
20
- *
21
- *
22
- * <p>Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances
23
- * based on user-defined scaling policies, scheduled actions, and health checks.</p>
24
- * <p>For more information about Amazon EC2 Auto Scaling, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html">Amazon EC2 Auto Scaling User Guide</a>. For information about granting IAM users required
25
- * permissions for calls to Amazon EC2 Auto Scaling, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/ec2-auto-scaling-api-permissions.html">Granting
26
- * IAM users required permissions for Amazon EC2 Auto Scaling resources</a> in the
27
- * <i>Amazon EC2 Auto Scaling API Reference</i>.</p>
28
- */
29
13
  class AutoScalingClient extends smithy_client_1.Client {
30
14
  constructor(configuration) {
31
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -44,11 +28,6 @@ class AutoScalingClient extends smithy_client_1.Client {
44
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
45
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
46
30
  }
47
- /**
48
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
49
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
50
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
51
- */
52
31
  destroy() {
53
32
  super.destroy();
54
33
  }
@@ -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>Attaches one or more EC2 instances to the specified Auto Scaling group.</p>
10
- * <p>When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity of the group by the
11
- * number of instances being attached. If the number of instances being attached plus the
12
- * desired capacity of the group exceeds the maximum size of the group, the operation
13
- * fails.</p>
14
- * <p>If there is a Classic Load Balancer attached to your Auto Scaling group, the instances are
15
- * also registered with the load balancer. If there are target groups attached to your Auto Scaling
16
- * group, the instances are also registered with the target groups.</p>
17
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach EC2 instances to
18
- * your Auto Scaling group</a> in the <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, AttachInstancesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
23
- * // const { AutoScalingClient, AttachInstancesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
24
- * const client = new AutoScalingClient(config);
25
- * const command = new AttachInstancesCommand(input);
26
- * const response = await client.send(command);
27
- * ```
28
- *
29
- * @see {@link AttachInstancesCommandInput} for command's `input` shape.
30
- * @see {@link AttachInstancesCommandOutput} for command's `response` shape.
31
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
32
- *
33
- */
34
8
  class AttachInstancesCommand 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,53 +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>Attaches one or more target groups to the specified Auto Scaling group.</p>
10
- * <p>This operation is used with the following load balancer types: </p>
11
- * <ul>
12
- * <li>
13
- * <p> Application Load Balancer - Operates at the application layer (layer 7) and
14
- * supports HTTP and HTTPS. </p>
15
- * </li>
16
- * <li>
17
- * <p> Network Load Balancer - Operates at the transport layer (layer 4) and
18
- * supports TCP, TLS, and UDP. </p>
19
- * </li>
20
- * <li>
21
- * <p> Gateway Load Balancer - Operates at the network layer (layer 3).</p>
22
- * </li>
23
- * </ul>
24
- * <p>To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> API. To detach the target group from
25
- * the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> API.</p>
26
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
27
- * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { AutoScalingClient, AttachLoadBalancerTargetGroupsCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
32
- * // const { AutoScalingClient, AttachLoadBalancerTargetGroupsCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
33
- * const client = new AutoScalingClient(config);
34
- * const command = new AttachLoadBalancerTargetGroupsCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link AttachLoadBalancerTargetGroupsCommandInput} for command's `input` shape.
39
- * @see {@link AttachLoadBalancerTargetGroupsCommandOutput} for command's `response` shape.
40
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
8
  class AttachLoadBalancerTargetGroupsCommand extends smithy_client_1.Command {
44
- // Start section: command_properties
45
- // End section: command_properties
46
9
  constructor(input) {
47
- // Start section: command_constructor
48
10
  super();
49
11
  this.input = input;
50
- // End section: command_constructor
51
12
  }
52
- /**
53
- * @internal
54
- */
55
13
  resolveMiddleware(clientStack, configuration, options) {
56
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
57
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,45 +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
- * <note>
10
- * <p>To attach an Application Load Balancer, Network Load Balancer, or Gateway Load
11
- * Balancer, use the <a>AttachLoadBalancerTargetGroups</a> API operation
12
- * instead.</p>
13
- * </note>
14
- * <p>Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2 Auto Scaling
15
- * registers the running instances with these Classic Load Balancers.</p>
16
- * <p>To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> API. To detach the load balancer from the Auto Scaling
17
- * group, call the <a>DetachLoadBalancers</a> API.</p>
18
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
19
- * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
20
- * @example
21
- * Use a bare-bones client and the command you need to make an API call.
22
- * ```javascript
23
- * import { AutoScalingClient, AttachLoadBalancersCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
24
- * // const { AutoScalingClient, AttachLoadBalancersCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
25
- * const client = new AutoScalingClient(config);
26
- * const command = new AttachLoadBalancersCommand(input);
27
- * const response = await client.send(command);
28
- * ```
29
- *
30
- * @see {@link AttachLoadBalancersCommandInput} for command's `input` shape.
31
- * @see {@link AttachLoadBalancersCommandOutput} for command's `response` shape.
32
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
33
- *
34
- */
35
8
  class AttachLoadBalancersCommand extends smithy_client_1.Command {
36
- // Start section: command_properties
37
- // End section: command_properties
38
9
  constructor(input) {
39
- // Start section: command_constructor
40
10
  super();
41
11
  this.input = input;
42
- // End section: command_constructor
43
12
  }
44
- /**
45
- * @internal
46
- */
47
13
  resolveMiddleware(clientStack, configuration, options) {
48
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
49
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -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>Deletes one or more scheduled actions 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, BatchDeleteScheduledActionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
14
- * // const { AutoScalingClient, BatchDeleteScheduledActionCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
15
- * const client = new AutoScalingClient(config);
16
- * const command = new BatchDeleteScheduledActionCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link BatchDeleteScheduledActionCommandInput} for command's `input` shape.
21
- * @see {@link BatchDeleteScheduledActionCommandOutput} for command's `response` shape.
22
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class BatchDeleteScheduledActionCommand 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,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>Creates or updates one or more scheduled scaling actions for an 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, BatchPutScheduledUpdateGroupActionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
14
- * // const { AutoScalingClient, BatchPutScheduledUpdateGroupActionCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
15
- * const client = new AutoScalingClient(config);
16
- * const command = new BatchPutScheduledUpdateGroupActionCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link BatchPutScheduledUpdateGroupActionCommandInput} for command's `input` shape.
21
- * @see {@link BatchPutScheduledUpdateGroupActionCommandOutput} for command's `response` shape.
22
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class BatchPutScheduledUpdateGroupActionCommand 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,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>Cancels an instance refresh operation in progress. Cancellation does not roll back any
10
- * replacements that have already been completed, but it prevents new replacements from
11
- * being started. </p>
12
- * <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
13
- * feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
14
- * after you make configuration changes.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { AutoScalingClient, CancelInstanceRefreshCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
19
- * // const { AutoScalingClient, CancelInstanceRefreshCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
20
- * const client = new AutoScalingClient(config);
21
- * const command = new CancelInstanceRefreshCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link CancelInstanceRefreshCommandInput} for command's `input` shape.
26
- * @see {@link CancelInstanceRefreshCommandOutput} for command's `response` shape.
27
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class CancelInstanceRefreshCommand 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,66 +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>Completes the lifecycle action for the specified token or instance with the specified
10
- * result.</p>
11
- * <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
12
- * group:</p>
13
- * <ol>
14
- * <li>
15
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
16
- * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
17
- * instances.</p>
18
- * </li>
19
- * <li>
20
- * <p>(Optional) Create a notification target and an IAM role. The target can be
21
- * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to
22
- * publish lifecycle notifications to the target.</p>
23
- * </li>
24
- * <li>
25
- * <p>Create the lifecycle hook. Specify whether the hook is used when the instances
26
- * launch or terminate.</p>
27
- * </li>
28
- * <li>
29
- * <p>If you need more time, record the lifecycle action heartbeat to keep the
30
- * instance in a pending state.</p>
31
- * </li>
32
- * <li>
33
- * <p>
34
- * <b>If you finish before the timeout period ends, complete the
35
- * lifecycle action.</b>
36
- * </p>
37
- * </li>
38
- * </ol>
39
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
40
- * hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { AutoScalingClient, CompleteLifecycleActionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
45
- * // const { AutoScalingClient, CompleteLifecycleActionCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
46
- * const client = new AutoScalingClient(config);
47
- * const command = new CompleteLifecycleActionCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link CompleteLifecycleActionCommandInput} for command's `input` shape.
52
- * @see {@link CompleteLifecycleActionCommandOutput} for command's `response` shape.
53
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
8
  class CompleteLifecycleActionCommand extends smithy_client_1.Command {
57
- // Start section: command_properties
58
- // End section: command_properties
59
9
  constructor(input) {
60
- // Start section: command_constructor
61
10
  super();
62
11
  this.input = input;
63
- // End section: command_constructor
64
12
  }
65
- /**
66
- * @internal
67
- */
68
13
  resolveMiddleware(clientStack, configuration, options) {
69
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
70
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,53 +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>
10
- * <b>We strongly recommend using a launch template when calling this operation to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b>
11
- * </p>
12
- * <p>Creates an Auto Scaling group with
13
- * the specified name and attributes. </p>
14
- * <p>If you exceed your maximum limit of Auto Scaling groups, the call fails. To query this limit,
15
- * call the <a>DescribeAccountLimits</a> API. For information about updating
16
- * this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html">Amazon EC2 Auto Scaling service
17
- * quotas</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
18
- * <p>For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting started with
19
- * Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: Set up a
20
- * scaled and load-balanced application</a> in the
21
- * <i>Amazon EC2 Auto Scaling User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto Scaling
22
- * groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
23
- * <p>Every Auto Scaling group has three size parameters (<code>DesiredCapacity</code>,
24
- * <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based
25
- * on a specific number of instances. However, if you configure a mixed instances policy
26
- * that defines weights for the instance types, you must specify these sizes with the same
27
- * units that you use for weighting instances.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { AutoScalingClient, CreateAutoScalingGroupCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
32
- * // const { AutoScalingClient, CreateAutoScalingGroupCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
33
- * const client = new AutoScalingClient(config);
34
- * const command = new CreateAutoScalingGroupCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link CreateAutoScalingGroupCommandInput} for command's `input` shape.
39
- * @see {@link CreateAutoScalingGroupCommandOutput} for command's `response` shape.
40
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
8
  class CreateAutoScalingGroupCommand extends smithy_client_1.Command {
44
- // Start section: command_properties
45
- // End section: command_properties
46
9
  constructor(input) {
47
- // Start section: command_constructor
48
10
  super();
49
11
  this.input = input;
50
- // End section: command_constructor
51
12
  }
52
- /**
53
- * @internal
54
- */
55
13
  resolveMiddleware(clientStack, configuration, options) {
56
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
57
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,41 +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 a launch configuration.</p>
10
- * <p>If you exceed your maximum limit of launch configurations, the call fails. To query
11
- * this limit, call the <a>DescribeAccountLimits</a> API. For information about
12
- * updating this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html">Amazon EC2 Auto Scaling service
13
- * quotas</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
14
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch
15
- * configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { AutoScalingClient, CreateLaunchConfigurationCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
20
- * // const { AutoScalingClient, CreateLaunchConfigurationCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
21
- * const client = new AutoScalingClient(config);
22
- * const command = new CreateLaunchConfigurationCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link CreateLaunchConfigurationCommandInput} for command's `input` shape.
27
- * @see {@link CreateLaunchConfigurationCommandOutput} for command's `response` shape.
28
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class CreateLaunchConfigurationCommand extends smithy_client_1.Command {
32
- // Start section: command_properties
33
- // End section: command_properties
34
9
  constructor(input) {
35
- // Start section: command_constructor
36
10
  super();
37
11
  this.input = input;
38
- // End section: command_constructor
39
12
  }
40
- /**
41
- * @internal
42
- */
43
13
  resolveMiddleware(clientStack, configuration, options) {
44
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
45
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 tags for the specified Auto Scaling group.</p>
10
- * <p>When you specify a tag with a key that already exists, the operation overwrites the
11
- * previous tag definition, and you do not get an error message.</p>
12
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-tagging.html">Tagging Auto Scaling groups and
13
- * instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { AutoScalingClient, CreateOrUpdateTagsCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
18
- * // const { AutoScalingClient, CreateOrUpdateTagsCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
19
- * const client = new AutoScalingClient(config);
20
- * const command = new CreateOrUpdateTagsCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link CreateOrUpdateTagsCommandInput} for command's `input` shape.
25
- * @see {@link CreateOrUpdateTagsCommandOutput} for command's `response` shape.
26
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class CreateOrUpdateTagsCommand 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>Deletes the specified Auto Scaling group.</p>
10
- * <p>If the group has instances or scaling activities in progress, you must specify the
11
- * option to force the deletion in order for it to succeed.</p>
12
- * <p>If the group has policies, deleting the group deletes the policies, the underlying
13
- * alarm actions, and any alarm that no longer has an associated action.</p>
14
- * <p>To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> API with the list of instances and the option to
15
- * decrement the desired capacity. This ensures that Amazon EC2 Auto Scaling does not launch replacement
16
- * instances.</p>
17
- * <p>To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> API and set the minimum size and desired capacity
18
- * of the Auto Scaling group to zero.</p>
19
- * @example
20
- * Use a bare-bones client and the command you need to make an API call.
21
- * ```javascript
22
- * import { AutoScalingClient, DeleteAutoScalingGroupCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
23
- * // const { AutoScalingClient, DeleteAutoScalingGroupCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
24
- * const client = new AutoScalingClient(config);
25
- * const command = new DeleteAutoScalingGroupCommand(input);
26
- * const response = await client.send(command);
27
- * ```
28
- *
29
- * @see {@link DeleteAutoScalingGroupCommandInput} for command's `input` shape.
30
- * @see {@link DeleteAutoScalingGroupCommandOutput} for command's `response` shape.
31
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
32
- *
33
- */
34
8
  class DeleteAutoScalingGroupCommand 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);