@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,37 +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 health status of the specified instance.</p>
10
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html">Health checks for Auto Scaling
11
- * instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { AutoScalingClient, SetInstanceHealthCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
16
- * // const { AutoScalingClient, SetInstanceHealthCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
17
- * const client = new AutoScalingClient(config);
18
- * const command = new SetInstanceHealthCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link SetInstanceHealthCommandInput} for command's `input` shape.
23
- * @see {@link SetInstanceHealthCommandOutput} for command's `response` shape.
24
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class SetInstanceHealthCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
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>Updates the instance protection settings of the specified instances. This operation
10
- * cannot be called on instances in a warm pool.</p>
11
- * <p>For more information about preventing instances that are part of an Auto Scaling group from
12
- * terminating on scale in, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection">Instance scale-in protection</a> in the
13
- * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
14
- * <p>If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call
15
- * fails.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { AutoScalingClient, SetInstanceProtectionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
20
- * // const { AutoScalingClient, SetInstanceProtectionCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
21
- * const client = new AutoScalingClient(config);
22
- * const command = new SetInstanceProtectionCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link SetInstanceProtectionCommandInput} for command's `input` shape.
27
- * @see {@link SetInstanceProtectionCommandOutput} for command's `response` shape.
28
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class SetInstanceProtectionCommand 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,49 +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>Starts a new instance refresh operation. An instance refresh performs a rolling
10
- * replacement of all or some instances in an Auto Scaling group. Each instance is terminated first
11
- * and then replaced, which temporarily reduces the capacity available within your Auto Scaling
12
- * group.</p>
13
- * <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
14
- * feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group.
15
- * This feature is helpful, for example, when you have a new AMI or a new user data script.
16
- * You just need to create a new launch template that specifies the new AMI or user data
17
- * script. Then start an instance refresh to immediately begin the process of updating
18
- * instances in the group. </p>
19
- * <p>If the call succeeds, it creates a new instance refresh request with a unique ID that
20
- * you can use to track its progress. To query its status, call the <a>DescribeInstanceRefreshes</a> API. To describe the instance refreshes that
21
- * have already run, call the <a>DescribeInstanceRefreshes</a> API. To cancel an
22
- * instance refresh operation in progress, use the <a>CancelInstanceRefresh</a>
23
- * API. </p>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { AutoScalingClient, StartInstanceRefreshCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
28
- * // const { AutoScalingClient, StartInstanceRefreshCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
29
- * const client = new AutoScalingClient(config);
30
- * const command = new StartInstanceRefreshCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link StartInstanceRefreshCommandInput} for command's `input` shape.
35
- * @see {@link StartInstanceRefreshCommandOutput} for command's `response` shape.
36
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
39
8
  class StartInstanceRefreshCommand extends smithy_client_1.Command {
40
- // Start section: command_properties
41
- // End section: command_properties
42
9
  constructor(input) {
43
- // Start section: command_constructor
44
10
  super();
45
11
  this.input = input;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  resolveMiddleware(clientStack, configuration, options) {
52
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
53
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>Suspends the specified auto scaling processes, or all processes, for the specified
10
- * Auto Scaling group.</p>
11
- * <p>If you suspend either the <code>Launch</code> or <code>Terminate</code> process types,
12
- * it can prevent other process types from functioning properly. For more information, see
13
- * <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html">Suspending and
14
- * resuming scaling processes</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
15
- * <p>To resume processes that have been suspended, call the <a>ResumeProcesses</a> API.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { AutoScalingClient, SuspendProcessesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
20
- * // const { AutoScalingClient, SuspendProcessesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
21
- * const client = new AutoScalingClient(config);
22
- * const command = new SuspendProcessesCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link SuspendProcessesCommandInput} for command's `input` shape.
27
- * @see {@link SuspendProcessesCommandOutput} for command's `response` shape.
28
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class SuspendProcessesCommand 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,46 +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>Terminates the specified instance and optionally adjusts the desired group size. This
10
- * operation cannot be called on instances in a warm pool.</p>
11
- * <p>This call simply makes a termination request. The instance is not terminated
12
- * immediately. When an instance is terminated, the instance status changes to
13
- * <code>terminated</code>. You can't connect to or start an instance after you've
14
- * terminated it.</p>
15
- * <p>If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto Scaling launches
16
- * instances to replace the ones that are terminated. </p>
17
- * <p>By default, Amazon EC2 Auto Scaling balances instances across all Availability Zones. If you
18
- * decrement the desired capacity, your Auto Scaling group can become unbalanced between
19
- * Availability Zones. Amazon EC2 Auto Scaling tries to rebalance the group, and rebalancing might
20
- * terminate instances in other zones. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-benefits.html#AutoScalingBehavior.InstanceUsage">Rebalancing activities</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
21
- * @example
22
- * Use a bare-bones client and the command you need to make an API call.
23
- * ```javascript
24
- * import { AutoScalingClient, TerminateInstanceInAutoScalingGroupCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
25
- * // const { AutoScalingClient, TerminateInstanceInAutoScalingGroupCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
26
- * const client = new AutoScalingClient(config);
27
- * const command = new TerminateInstanceInAutoScalingGroupCommand(input);
28
- * const response = await client.send(command);
29
- * ```
30
- *
31
- * @see {@link TerminateInstanceInAutoScalingGroupCommandInput} for command's `input` shape.
32
- * @see {@link TerminateInstanceInAutoScalingGroupCommandOutput} for command's `response` shape.
33
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
34
- *
35
- */
36
8
  class TerminateInstanceInAutoScalingGroupCommand extends smithy_client_1.Command {
37
- // Start section: command_properties
38
- // End section: command_properties
39
9
  constructor(input) {
40
- // Start section: command_constructor
41
10
  super();
42
11
  this.input = input;
43
- // End section: command_constructor
44
12
  }
45
- /**
46
- * @internal
47
- */
48
13
  resolveMiddleware(clientStack, configuration, options) {
49
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
50
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,79 +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 that all Auto Scaling groups use launch templates to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b>
11
- * </p>
12
- * <p>Updates the configuration for
13
- * the specified Auto Scaling group.</p>
14
- * <p>To update an Auto Scaling group, specify the name of the group and the parameter that you want
15
- * to change. Any parameters that you don't specify are not changed by this update request.
16
- * The new settings take effect on any scaling activities after this call returns.
17
- * </p>
18
- * <p>If you associate a new launch configuration or template with an Auto Scaling group, all new
19
- * instances will get the updated configuration. Existing instances continue to run with
20
- * the configuration that they were originally launched with. When you update a group to
21
- * specify a mixed instances policy instead of a launch configuration or template, existing
22
- * instances may be replaced to match the new purchasing options that you specified in the
23
- * policy. For example, if the group currently has 100% On-Demand capacity and the policy
24
- * specifies 50% Spot capacity, this means that half of your instances will be gradually
25
- * terminated and relaunched as Spot Instances. When replacing instances, Amazon EC2 Auto Scaling launches
26
- * new instances before terminating the old ones, so that updating your group does not
27
- * compromise the performance or availability of your application.</p>
28
- * <p>Note the following about changing <code>DesiredCapacity</code>, <code>MaxSize</code>,
29
- * or <code>MinSize</code>:</p>
30
- * <ul>
31
- * <li>
32
- * <p>If a scale-in activity occurs as a result of a new
33
- * <code>DesiredCapacity</code> value that is lower than the current size of
34
- * the group, the Auto Scaling group uses its termination policy to determine which
35
- * instances to terminate.</p>
36
- * </li>
37
- * <li>
38
- * <p>If you specify a new value for <code>MinSize</code> without specifying a value
39
- * for <code>DesiredCapacity</code>, and the new <code>MinSize</code> is larger
40
- * than the current size of the group, this sets the group's
41
- * <code>DesiredCapacity</code> to the new <code>MinSize</code> value.</p>
42
- * </li>
43
- * <li>
44
- * <p>If you specify a new value for <code>MaxSize</code> without specifying a value
45
- * for <code>DesiredCapacity</code>, and the new <code>MaxSize</code> is smaller
46
- * than the current size of the group, this sets the group's
47
- * <code>DesiredCapacity</code> to the new <code>MaxSize</code> value.</p>
48
- * </li>
49
- * </ul>
50
- * <p>To see which parameters have been set, call the <a>DescribeAutoScalingGroups</a> API. To view the scaling policies for an Auto Scaling
51
- * group, call the <a>DescribePolicies</a> API. If the group has scaling
52
- * policies, you can update them by calling the <a>PutScalingPolicy</a>
53
- * API.</p>
54
- * @example
55
- * Use a bare-bones client and the command you need to make an API call.
56
- * ```javascript
57
- * import { AutoScalingClient, UpdateAutoScalingGroupCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
58
- * // const { AutoScalingClient, UpdateAutoScalingGroupCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
59
- * const client = new AutoScalingClient(config);
60
- * const command = new UpdateAutoScalingGroupCommand(input);
61
- * const response = await client.send(command);
62
- * ```
63
- *
64
- * @see {@link UpdateAutoScalingGroupCommandInput} for command's `input` shape.
65
- * @see {@link UpdateAutoScalingGroupCommandOutput} for command's `response` shape.
66
- * @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
67
- *
68
- */
69
8
  class UpdateAutoScalingGroupCommand extends smithy_client_1.Command {
70
- // Start section: command_properties
71
- // End section: command_properties
72
9
  constructor(input) {
73
- // Start section: command_constructor
74
10
  super();
75
11
  this.input = input;
76
- // End section: command_constructor
77
12
  }
78
- /**
79
- * @internal
80
- */
81
13
  resolveMiddleware(clientStack, configuration, options) {
82
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
83
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AttachInstancesCommand"), exports);
5
+ tslib_1.__exportStar(require("./AttachLoadBalancerTargetGroupsCommand"), exports);
6
+ tslib_1.__exportStar(require("./AttachLoadBalancersCommand"), exports);
7
+ tslib_1.__exportStar(require("./BatchDeleteScheduledActionCommand"), exports);
8
+ tslib_1.__exportStar(require("./BatchPutScheduledUpdateGroupActionCommand"), exports);
9
+ tslib_1.__exportStar(require("./CancelInstanceRefreshCommand"), exports);
10
+ tslib_1.__exportStar(require("./CompleteLifecycleActionCommand"), exports);
11
+ tslib_1.__exportStar(require("./CreateAutoScalingGroupCommand"), exports);
12
+ tslib_1.__exportStar(require("./CreateLaunchConfigurationCommand"), exports);
13
+ tslib_1.__exportStar(require("./CreateOrUpdateTagsCommand"), exports);
14
+ tslib_1.__exportStar(require("./DeleteAutoScalingGroupCommand"), exports);
15
+ tslib_1.__exportStar(require("./DeleteLaunchConfigurationCommand"), exports);
16
+ tslib_1.__exportStar(require("./DeleteLifecycleHookCommand"), exports);
17
+ tslib_1.__exportStar(require("./DeleteNotificationConfigurationCommand"), exports);
18
+ tslib_1.__exportStar(require("./DeletePolicyCommand"), exports);
19
+ tslib_1.__exportStar(require("./DeleteScheduledActionCommand"), exports);
20
+ tslib_1.__exportStar(require("./DeleteTagsCommand"), exports);
21
+ tslib_1.__exportStar(require("./DeleteWarmPoolCommand"), exports);
22
+ tslib_1.__exportStar(require("./DescribeAccountLimitsCommand"), exports);
23
+ tslib_1.__exportStar(require("./DescribeAdjustmentTypesCommand"), exports);
24
+ tslib_1.__exportStar(require("./DescribeAutoScalingGroupsCommand"), exports);
25
+ tslib_1.__exportStar(require("./DescribeAutoScalingInstancesCommand"), exports);
26
+ tslib_1.__exportStar(require("./DescribeAutoScalingNotificationTypesCommand"), exports);
27
+ tslib_1.__exportStar(require("./DescribeInstanceRefreshesCommand"), exports);
28
+ tslib_1.__exportStar(require("./DescribeLaunchConfigurationsCommand"), exports);
29
+ tslib_1.__exportStar(require("./DescribeLifecycleHookTypesCommand"), exports);
30
+ tslib_1.__exportStar(require("./DescribeLifecycleHooksCommand"), exports);
31
+ tslib_1.__exportStar(require("./DescribeLoadBalancerTargetGroupsCommand"), exports);
32
+ tslib_1.__exportStar(require("./DescribeLoadBalancersCommand"), exports);
33
+ tslib_1.__exportStar(require("./DescribeMetricCollectionTypesCommand"), exports);
34
+ tslib_1.__exportStar(require("./DescribeNotificationConfigurationsCommand"), exports);
35
+ tslib_1.__exportStar(require("./DescribePoliciesCommand"), exports);
36
+ tslib_1.__exportStar(require("./DescribeScalingActivitiesCommand"), exports);
37
+ tslib_1.__exportStar(require("./DescribeScalingProcessTypesCommand"), exports);
38
+ tslib_1.__exportStar(require("./DescribeScheduledActionsCommand"), exports);
39
+ tslib_1.__exportStar(require("./DescribeTagsCommand"), exports);
40
+ tslib_1.__exportStar(require("./DescribeTerminationPolicyTypesCommand"), exports);
41
+ tslib_1.__exportStar(require("./DescribeWarmPoolCommand"), exports);
42
+ tslib_1.__exportStar(require("./DetachInstancesCommand"), exports);
43
+ tslib_1.__exportStar(require("./DetachLoadBalancerTargetGroupsCommand"), exports);
44
+ tslib_1.__exportStar(require("./DetachLoadBalancersCommand"), exports);
45
+ tslib_1.__exportStar(require("./DisableMetricsCollectionCommand"), exports);
46
+ tslib_1.__exportStar(require("./EnableMetricsCollectionCommand"), exports);
47
+ tslib_1.__exportStar(require("./EnterStandbyCommand"), exports);
48
+ tslib_1.__exportStar(require("./ExecutePolicyCommand"), exports);
49
+ tslib_1.__exportStar(require("./ExitStandbyCommand"), exports);
50
+ tslib_1.__exportStar(require("./GetPredictiveScalingForecastCommand"), exports);
51
+ tslib_1.__exportStar(require("./PutLifecycleHookCommand"), exports);
52
+ tslib_1.__exportStar(require("./PutNotificationConfigurationCommand"), exports);
53
+ tslib_1.__exportStar(require("./PutScalingPolicyCommand"), exports);
54
+ tslib_1.__exportStar(require("./PutScheduledUpdateGroupActionCommand"), exports);
55
+ tslib_1.__exportStar(require("./PutWarmPoolCommand"), exports);
56
+ tslib_1.__exportStar(require("./RecordLifecycleActionHeartbeatCommand"), exports);
57
+ tslib_1.__exportStar(require("./ResumeProcessesCommand"), exports);
58
+ tslib_1.__exportStar(require("./SetDesiredCapacityCommand"), exports);
59
+ tslib_1.__exportStar(require("./SetInstanceHealthCommand"), exports);
60
+ tslib_1.__exportStar(require("./SetInstanceProtectionCommand"), exports);
61
+ tslib_1.__exportStar(require("./StartInstanceRefreshCommand"), exports);
62
+ tslib_1.__exportStar(require("./SuspendProcessesCommand"), exports);
63
+ tslib_1.__exportStar(require("./TerminateInstanceInAutoScalingGroupCommand"), exports);
64
+ tslib_1.__exportStar(require("./UpdateAutoScalingGroupCommand"), exports);
@@ -28,22 +28,27 @@ const partitionHash = {
28
28
  "us-west-1",
29
29
  "us-west-2",
30
30
  ],
31
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
31
32
  hostname: "autoscaling.{region}.amazonaws.com",
32
33
  },
33
34
  "aws-cn": {
34
35
  regions: ["cn-north-1", "cn-northwest-1"],
36
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
35
37
  hostname: "autoscaling.{region}.amazonaws.com.cn",
36
38
  },
37
39
  "aws-iso": {
38
- regions: ["us-iso-east-1"],
40
+ regions: ["us-iso-east-1", "us-iso-west-1"],
41
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
39
42
  hostname: "autoscaling.{region}.c2s.ic.gov",
40
43
  },
41
44
  "aws-iso-b": {
42
45
  regions: ["us-isob-east-1"],
46
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
43
47
  hostname: "autoscaling.{region}.sc2s.sgov.gov",
44
48
  },
45
49
  "aws-us-gov": {
46
50
  regions: ["us-gov-east-1", "us-gov-west-1"],
51
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
47
52
  hostname: "autoscaling.{region}.amazonaws.com",
48
53
  },
49
54
  };
package/dist-cjs/index.js CHANGED
@@ -1,79 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./AutoScalingClient"), exports);
5
4
  tslib_1.__exportStar(require("./AutoScaling"), exports);
6
- tslib_1.__exportStar(require("./commands/AttachInstancesCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/AttachLoadBalancersCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/AttachLoadBalancerTargetGroupsCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/BatchDeleteScheduledActionCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/BatchPutScheduledUpdateGroupActionCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/CancelInstanceRefreshCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/CompleteLifecycleActionCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/CreateAutoScalingGroupCommand"), exports);
14
- tslib_1.__exportStar(require("./commands/CreateLaunchConfigurationCommand"), exports);
15
- tslib_1.__exportStar(require("./commands/CreateOrUpdateTagsCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DeleteAutoScalingGroupCommand"), exports);
17
- tslib_1.__exportStar(require("./commands/DeleteLaunchConfigurationCommand"), exports);
18
- tslib_1.__exportStar(require("./commands/DeleteLifecycleHookCommand"), exports);
19
- tslib_1.__exportStar(require("./commands/DeleteNotificationConfigurationCommand"), exports);
20
- tslib_1.__exportStar(require("./commands/DeletePolicyCommand"), exports);
21
- tslib_1.__exportStar(require("./commands/DeleteScheduledActionCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/DeleteTagsCommand"), exports);
23
- tslib_1.__exportStar(require("./commands/DeleteWarmPoolCommand"), exports);
24
- tslib_1.__exportStar(require("./commands/DescribeAccountLimitsCommand"), exports);
25
- tslib_1.__exportStar(require("./commands/DescribeAdjustmentTypesCommand"), exports);
26
- tslib_1.__exportStar(require("./commands/DescribeAutoScalingGroupsCommand"), exports);
27
- tslib_1.__exportStar(require("./pagination/DescribeAutoScalingGroupsPaginator"), exports);
28
- tslib_1.__exportStar(require("./waiters/waitForGroupExists"), exports);
29
- tslib_1.__exportStar(require("./waiters/waitForGroupInService"), exports);
30
- tslib_1.__exportStar(require("./waiters/waitForGroupNotExists"), exports);
31
- tslib_1.__exportStar(require("./commands/DescribeAutoScalingInstancesCommand"), exports);
32
- tslib_1.__exportStar(require("./pagination/DescribeAutoScalingInstancesPaginator"), exports);
33
- tslib_1.__exportStar(require("./commands/DescribeAutoScalingNotificationTypesCommand"), exports);
34
- tslib_1.__exportStar(require("./commands/DescribeInstanceRefreshesCommand"), exports);
35
- tslib_1.__exportStar(require("./commands/DescribeLaunchConfigurationsCommand"), exports);
36
- tslib_1.__exportStar(require("./pagination/DescribeLaunchConfigurationsPaginator"), exports);
37
- tslib_1.__exportStar(require("./commands/DescribeLifecycleHooksCommand"), exports);
38
- tslib_1.__exportStar(require("./commands/DescribeLifecycleHookTypesCommand"), exports);
39
- tslib_1.__exportStar(require("./commands/DescribeLoadBalancersCommand"), exports);
40
- tslib_1.__exportStar(require("./commands/DescribeLoadBalancerTargetGroupsCommand"), exports);
41
- tslib_1.__exportStar(require("./commands/DescribeMetricCollectionTypesCommand"), exports);
42
- tslib_1.__exportStar(require("./commands/DescribeNotificationConfigurationsCommand"), exports);
43
- tslib_1.__exportStar(require("./pagination/DescribeNotificationConfigurationsPaginator"), exports);
44
- tslib_1.__exportStar(require("./commands/DescribePoliciesCommand"), exports);
45
- tslib_1.__exportStar(require("./pagination/DescribePoliciesPaginator"), exports);
46
- tslib_1.__exportStar(require("./commands/DescribeScalingActivitiesCommand"), exports);
47
- tslib_1.__exportStar(require("./pagination/DescribeScalingActivitiesPaginator"), exports);
48
- tslib_1.__exportStar(require("./commands/DescribeScalingProcessTypesCommand"), exports);
49
- tslib_1.__exportStar(require("./commands/DescribeScheduledActionsCommand"), exports);
50
- tslib_1.__exportStar(require("./pagination/DescribeScheduledActionsPaginator"), exports);
51
- tslib_1.__exportStar(require("./commands/DescribeTagsCommand"), exports);
52
- tslib_1.__exportStar(require("./pagination/DescribeTagsPaginator"), exports);
53
- tslib_1.__exportStar(require("./commands/DescribeTerminationPolicyTypesCommand"), exports);
54
- tslib_1.__exportStar(require("./commands/DescribeWarmPoolCommand"), exports);
55
- tslib_1.__exportStar(require("./commands/DetachInstancesCommand"), exports);
56
- tslib_1.__exportStar(require("./commands/DetachLoadBalancersCommand"), exports);
57
- tslib_1.__exportStar(require("./commands/DetachLoadBalancerTargetGroupsCommand"), exports);
58
- tslib_1.__exportStar(require("./commands/DisableMetricsCollectionCommand"), exports);
59
- tslib_1.__exportStar(require("./commands/EnableMetricsCollectionCommand"), exports);
60
- tslib_1.__exportStar(require("./commands/EnterStandbyCommand"), exports);
61
- tslib_1.__exportStar(require("./commands/ExecutePolicyCommand"), exports);
62
- tslib_1.__exportStar(require("./commands/ExitStandbyCommand"), exports);
63
- tslib_1.__exportStar(require("./commands/GetPredictiveScalingForecastCommand"), exports);
64
- tslib_1.__exportStar(require("./commands/PutLifecycleHookCommand"), exports);
65
- tslib_1.__exportStar(require("./commands/PutNotificationConfigurationCommand"), exports);
66
- tslib_1.__exportStar(require("./commands/PutScalingPolicyCommand"), exports);
67
- tslib_1.__exportStar(require("./commands/PutScheduledUpdateGroupActionCommand"), exports);
68
- tslib_1.__exportStar(require("./commands/PutWarmPoolCommand"), exports);
69
- tslib_1.__exportStar(require("./commands/RecordLifecycleActionHeartbeatCommand"), exports);
70
- tslib_1.__exportStar(require("./commands/ResumeProcessesCommand"), exports);
71
- tslib_1.__exportStar(require("./commands/SetDesiredCapacityCommand"), exports);
72
- tslib_1.__exportStar(require("./commands/SetInstanceHealthCommand"), exports);
73
- tslib_1.__exportStar(require("./commands/SetInstanceProtectionCommand"), exports);
74
- tslib_1.__exportStar(require("./commands/StartInstanceRefreshCommand"), exports);
75
- tslib_1.__exportStar(require("./commands/SuspendProcessesCommand"), exports);
76
- tslib_1.__exportStar(require("./commands/TerminateInstanceInAutoScalingGroupCommand"), exports);
77
- tslib_1.__exportStar(require("./commands/UpdateAutoScalingGroupCommand"), exports);
78
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
79
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./AutoScalingClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./waiters"), exports);