@aws-sdk/client-auto-scaling 3.41.0 → 3.46.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.
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
15
  export var getRuntimeConfig = function (config) {
17
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
17
  var clientSharedValues = getSharedRuntimeConfig(config);
20
18
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
19
  };
@@ -105,6 +105,8 @@ export declare class AutoScaling extends AutoScalingClient {
105
105
  * registers the running instances with these Classic Load Balancers.</p>
106
106
  * <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
107
107
  * group, call the <a>DetachLoadBalancers</a> API.</p>
108
+ * <p>This operation is additive and does not detach existing Classic Load Balancers or
109
+ * target groups from the Auto Scaling group.</p>
108
110
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
109
111
  * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
110
112
  */
@@ -129,6 +131,8 @@ export declare class AutoScaling extends AutoScalingClient {
129
131
  * </ul>
130
132
  * <p>To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> API. To detach the target group from
131
133
  * the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> API.</p>
134
+ * <p>This operation is additive and does not detach existing target groups or Classic Load
135
+ * Balancers from the Auto Scaling group.</p>
132
136
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
133
137
  * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
134
138
  */
@@ -165,14 +169,14 @@ export declare class AutoScaling extends AutoScalingClient {
165
169
  * group:</p>
166
170
  * <ol>
167
171
  * <li>
168
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
172
+ * <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to
169
173
  * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
170
174
  * instances.</p>
171
175
  * </li>
172
176
  * <li>
173
177
  * <p>(Optional) Create a notification target and an IAM role. The target can be
174
- * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to
175
- * publish lifecycle notifications to the target.</p>
178
+ * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish
179
+ * lifecycle notifications to the target.</p>
176
180
  * </li>
177
181
  * <li>
178
182
  * <p>Create the lifecycle hook. Specify whether the hook is used when the instances
@@ -184,8 +188,9 @@ export declare class AutoScaling extends AutoScalingClient {
184
188
  * </li>
185
189
  * <li>
186
190
  * <p>
187
- * <b>If you finish before the timeout period ends, complete the
188
- * lifecycle action.</b>
191
+ * <b>If you finish before the timeout period ends, send a
192
+ * callback by using the <a>CompleteLifecycleAction</a> API
193
+ * call.</b>
189
194
  * </p>
190
195
  * </li>
191
196
  * </ol>
@@ -672,21 +677,21 @@ export declare class AutoScaling extends AutoScalingClient {
672
677
  getPredictiveScalingForecast(args: GetPredictiveScalingForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPredictiveScalingForecastCommandOutput) => void): void;
673
678
  /**
674
679
  * <p>Creates or updates a lifecycle hook for the specified Auto Scaling group.</p>
675
- * <p>A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance
676
- * launches (before it is put into service) or as the instance terminates (before it is
677
- * fully terminated).</p>
680
+ * <p>A lifecycle hook enables an Auto Scaling group to be aware of events in the Auto Scaling instance
681
+ * lifecycle, and then perform a custom action when the corresponding lifecycle event
682
+ * occurs.</p>
678
683
  * <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
679
684
  * group:</p>
680
685
  * <ol>
681
686
  * <li>
682
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
687
+ * <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to
683
688
  * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
684
689
  * instances.</p>
685
690
  * </li>
686
691
  * <li>
687
692
  * <p>(Optional) Create a notification target and an IAM role. The target can be
688
- * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to
689
- * publish lifecycle notifications to the target.</p>
693
+ * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish
694
+ * lifecycle notifications to the target.</p>
690
695
  * </li>
691
696
  * <li>
692
697
  * <p>
@@ -699,8 +704,8 @@ export declare class AutoScaling extends AutoScalingClient {
699
704
  * instance in a pending state using the <a>RecordLifecycleActionHeartbeat</a> API call.</p>
700
705
  * </li>
701
706
  * <li>
702
- * <p>If you finish before the timeout period ends, complete the lifecycle action
703
- * using the <a>CompleteLifecycleAction</a> API call.</p>
707
+ * <p>If you finish before the timeout period ends, send a callback by using the
708
+ * <a>CompleteLifecycleAction</a> API call.</p>
704
709
  * </li>
705
710
  * </ol>
706
711
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
@@ -770,19 +775,18 @@ export declare class AutoScaling extends AutoScalingClient {
770
775
  /**
771
776
  * <p>Records a heartbeat for the lifecycle action associated with the specified token or
772
777
  * instance. This extends the timeout by the length of time defined using the <a>PutLifecycleHook</a> API call.</p>
773
- *
774
778
  * <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
775
779
  * group:</p>
776
780
  * <ol>
777
781
  * <li>
778
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
782
+ * <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to
779
783
  * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
780
784
  * instances.</p>
781
785
  * </li>
782
786
  * <li>
783
787
  * <p>(Optional) Create a notification target and an IAM role. The target can be
784
- * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to
785
- * publish lifecycle notifications to the target.</p>
788
+ * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish
789
+ * lifecycle notifications to the target.</p>
786
790
  * </li>
787
791
  * <li>
788
792
  * <p>Create the lifecycle hook. Specify whether the hook is used when the instances
@@ -795,8 +799,8 @@ export declare class AutoScaling extends AutoScalingClient {
795
799
  * </p>
796
800
  * </li>
797
801
  * <li>
798
- * <p>If you finish before the timeout period ends, complete the lifecycle
799
- * action.</p>
802
+ * <p>If you finish before the timeout period ends, send a callback by using the
803
+ * <a>CompleteLifecycleAction</a> API call.</p>
800
804
  * </li>
801
805
  * </ol>
802
806
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
@@ -837,7 +841,8 @@ export declare class AutoScaling extends AutoScalingClient {
837
841
  * <p>Updates the instance protection settings of the specified instances. This operation
838
842
  * cannot be called on instances in a warm pool.</p>
839
843
  * <p>For more information about preventing instances that are part of an Auto Scaling group from
840
- * 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
844
+ * terminating on scale in, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html">Using
845
+ * instance scale-in protection</a> in the
841
846
  * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
842
847
  * <p>If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call
843
848
  * fails.</p>
@@ -24,6 +24,8 @@ export interface AttachLoadBalancerTargetGroupsCommandOutput extends AttachLoadB
24
24
  * </ul>
25
25
  * <p>To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> API. To detach the target group from
26
26
  * the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> API.</p>
27
+ * <p>This operation is additive and does not detach existing target groups or Classic Load
28
+ * Balancers from the Auto Scaling group.</p>
27
29
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
28
30
  * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
29
31
  * @example
@@ -16,6 +16,8 @@ export interface AttachLoadBalancersCommandOutput extends AttachLoadBalancersRes
16
16
  * registers the running instances with these Classic Load Balancers.</p>
17
17
  * <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
18
18
  * group, call the <a>DetachLoadBalancers</a> API.</p>
19
+ * <p>This operation is additive and does not detach existing Classic Load Balancers or
20
+ * target groups from the Auto Scaling group.</p>
19
21
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
20
22
  * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
21
23
  * @example
@@ -13,14 +13,14 @@ export interface CompleteLifecycleActionCommandOutput extends CompleteLifecycleA
13
13
  * group:</p>
14
14
  * <ol>
15
15
  * <li>
16
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
16
+ * <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to
17
17
  * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
18
18
  * instances.</p>
19
19
  * </li>
20
20
  * <li>
21
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>
22
+ * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish
23
+ * lifecycle notifications to the target.</p>
24
24
  * </li>
25
25
  * <li>
26
26
  * <p>Create the lifecycle hook. Specify whether the hook is used when the instances
@@ -32,8 +32,9 @@ export interface CompleteLifecycleActionCommandOutput extends CompleteLifecycleA
32
32
  * </li>
33
33
  * <li>
34
34
  * <p>
35
- * <b>If you finish before the timeout period ends, complete the
36
- * lifecycle action.</b>
35
+ * <b>If you finish before the timeout period ends, send a
36
+ * callback by using the <a>CompleteLifecycleAction</a> API
37
+ * call.</b>
37
38
  * </p>
38
39
  * </li>
39
40
  * </ol>
@@ -8,21 +8,21 @@ export interface PutLifecycleHookCommandOutput extends PutLifecycleHookAnswer, _
8
8
  }
9
9
  /**
10
10
  * <p>Creates or updates a lifecycle hook for the specified Auto Scaling group.</p>
11
- * <p>A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance
12
- * launches (before it is put into service) or as the instance terminates (before it is
13
- * fully terminated).</p>
11
+ * <p>A lifecycle hook enables an Auto Scaling group to be aware of events in the Auto Scaling instance
12
+ * lifecycle, and then perform a custom action when the corresponding lifecycle event
13
+ * occurs.</p>
14
14
  * <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
15
15
  * group:</p>
16
16
  * <ol>
17
17
  * <li>
18
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
18
+ * <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to
19
19
  * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
20
20
  * instances.</p>
21
21
  * </li>
22
22
  * <li>
23
23
  * <p>(Optional) Create a notification target and an IAM role. The target can be
24
- * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to
25
- * publish lifecycle notifications to the target.</p>
24
+ * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish
25
+ * lifecycle notifications to the target.</p>
26
26
  * </li>
27
27
  * <li>
28
28
  * <p>
@@ -35,8 +35,8 @@ export interface PutLifecycleHookCommandOutput extends PutLifecycleHookAnswer, _
35
35
  * instance in a pending state using the <a>RecordLifecycleActionHeartbeat</a> API call.</p>
36
36
  * </li>
37
37
  * <li>
38
- * <p>If you finish before the timeout period ends, complete the lifecycle action
39
- * using the <a>CompleteLifecycleAction</a> API call.</p>
38
+ * <p>If you finish before the timeout period ends, send a callback by using the
39
+ * <a>CompleteLifecycleAction</a> API call.</p>
40
40
  * </li>
41
41
  * </ol>
42
42
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
@@ -9,19 +9,18 @@ export interface RecordLifecycleActionHeartbeatCommandOutput extends RecordLifec
9
9
  /**
10
10
  * <p>Records a heartbeat for the lifecycle action associated with the specified token or
11
11
  * instance. This extends the timeout by the length of time defined using the <a>PutLifecycleHook</a> API call.</p>
12
- *
13
12
  * <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
14
13
  * group:</p>
15
14
  * <ol>
16
15
  * <li>
17
- * <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to
16
+ * <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to
18
17
  * invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates
19
18
  * instances.</p>
20
19
  * </li>
21
20
  * <li>
22
21
  * <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>
22
+ * either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish
23
+ * lifecycle notifications to the target.</p>
25
24
  * </li>
26
25
  * <li>
27
26
  * <p>Create the lifecycle hook. Specify whether the hook is used when the instances
@@ -34,8 +33,8 @@ export interface RecordLifecycleActionHeartbeatCommandOutput extends RecordLifec
34
33
  * </p>
35
34
  * </li>
36
35
  * <li>
37
- * <p>If you finish before the timeout period ends, complete the lifecycle
38
- * action.</p>
36
+ * <p>If you finish before the timeout period ends, send a callback by using the
37
+ * <a>CompleteLifecycleAction</a> API call.</p>
39
38
  * </li>
40
39
  * </ol>
41
40
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
@@ -10,7 +10,8 @@ export interface SetInstanceProtectionCommandOutput extends SetInstanceProtectio
10
10
  * <p>Updates the instance protection settings of the specified instances. This operation
11
11
  * cannot be called on instances in a warm pool.</p>
12
12
  * <p>For more information about preventing instances that are part of an Auto Scaling group from
13
- * 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
+ * terminating on scale in, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html">Using
14
+ * instance scale-in protection</a> in the
14
15
  * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
15
16
  * <p>If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call
16
17
  * fails.</p>