@aws-sdk/client-auto-scaling 3.51.0 → 3.54.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.
- package/CHANGELOG.md +31 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AutoScalingServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +130 -4
- package/dist-cjs/protocols/Aws_query.js +416 -1351
- package/dist-es/endpoints.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/AutoScalingServiceException.js +12 -0
- package/dist-es/models/models_0.js +116 -1
- package/dist-es/protocols/Aws_query.js +1022 -1578
- package/dist-types/AutoScaling.d.ts +33 -20
- package/dist-types/AutoScalingClient.d.ts +2 -2
- package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +9 -4
- package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +1 -2
- package/dist-types/commands/DescribeWarmPoolCommand.d.ts +1 -1
- package/dist-types/commands/PutLifecycleHookCommand.d.ts +12 -7
- package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +9 -4
- package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +1 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AutoScalingServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +129 -76
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/AutoScalingClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AutoScalingServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +56 -37
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -169,9 +169,14 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
169
169
|
* group:</p>
|
|
170
170
|
* <ol>
|
|
171
171
|
* <li>
|
|
172
|
-
* <p>(Optional) Create a
|
|
173
|
-
*
|
|
174
|
-
*
|
|
172
|
+
* <p>(Optional) Create a launch template or launch configuration with a user data
|
|
173
|
+
* script that runs while an instance is in a wait state due to a lifecycle
|
|
174
|
+
* hook.</p>
|
|
175
|
+
* </li>
|
|
176
|
+
* <li>
|
|
177
|
+
* <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
|
|
178
|
+
* your Lambda function when an instance is put into a wait state due to a
|
|
179
|
+
* lifecycle hook.</p>
|
|
175
180
|
* </li>
|
|
176
181
|
* <li>
|
|
177
182
|
* <p>(Optional) Create a notification target and an IAM role. The target can be
|
|
@@ -184,7 +189,7 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
184
189
|
* </li>
|
|
185
190
|
* <li>
|
|
186
191
|
* <p>If you need more time, record the lifecycle action heartbeat to keep the
|
|
187
|
-
* instance in a
|
|
192
|
+
* instance in a wait state.</p>
|
|
188
193
|
* </li>
|
|
189
194
|
* <li>
|
|
190
195
|
* <p>
|
|
@@ -204,8 +209,7 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
204
209
|
* <p>
|
|
205
210
|
* <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>
|
|
206
211
|
* </p>
|
|
207
|
-
*
|
|
208
|
-
* the specified name and attributes. </p>
|
|
212
|
+
* <p>Creates an Auto Scaling group with the specified name and attributes. </p>
|
|
209
213
|
* <p>If you exceed your maximum limit of Auto Scaling groups, the call fails. To query this limit,
|
|
210
214
|
* call the <a>DescribeAccountLimits</a> API. For information about updating
|
|
211
215
|
* this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html">Amazon EC2 Auto Scaling service
|
|
@@ -578,7 +582,7 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
578
582
|
/**
|
|
579
583
|
* <p>Gets information about a warm pool and its instances.</p>
|
|
580
584
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm pools for
|
|
581
|
-
*
|
|
585
|
+
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
582
586
|
*/
|
|
583
587
|
describeWarmPool(args: DescribeWarmPoolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWarmPoolCommandOutput>;
|
|
584
588
|
describeWarmPool(args: DescribeWarmPoolCommandInput, cb: (err: any, data?: DescribeWarmPoolCommandOutput) => void): void;
|
|
@@ -677,16 +681,21 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
677
681
|
getPredictiveScalingForecast(args: GetPredictiveScalingForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPredictiveScalingForecastCommandOutput) => void): void;
|
|
678
682
|
/**
|
|
679
683
|
* <p>Creates or updates a lifecycle hook for the specified Auto Scaling group.</p>
|
|
680
|
-
* <p>
|
|
681
|
-
* lifecycle, and then perform a custom action when the corresponding
|
|
682
|
-
* occurs.</p>
|
|
684
|
+
* <p>Lifecycle hooks let you create solutions that are aware of events in the Auto Scaling instance
|
|
685
|
+
* lifecycle, and then perform a custom action on instances when the corresponding
|
|
686
|
+
* lifecycle event occurs.</p>
|
|
683
687
|
* <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
|
|
684
688
|
* group:</p>
|
|
685
689
|
* <ol>
|
|
686
690
|
* <li>
|
|
687
|
-
* <p>(Optional) Create a
|
|
688
|
-
*
|
|
689
|
-
*
|
|
691
|
+
* <p>(Optional) Create a launch template or launch configuration with a user data
|
|
692
|
+
* script that runs while an instance is in a wait state due to a lifecycle
|
|
693
|
+
* hook.</p>
|
|
694
|
+
* </li>
|
|
695
|
+
* <li>
|
|
696
|
+
* <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
|
|
697
|
+
* your Lambda function when an instance is put into a wait state due to a
|
|
698
|
+
* lifecycle hook.</p>
|
|
690
699
|
* </li>
|
|
691
700
|
* <li>
|
|
692
701
|
* <p>(Optional) Create a notification target and an IAM role. The target can be
|
|
@@ -701,7 +710,7 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
701
710
|
* </li>
|
|
702
711
|
* <li>
|
|
703
712
|
* <p>If you need more time, record the lifecycle action heartbeat to keep the
|
|
704
|
-
* instance in a
|
|
713
|
+
* instance in a wait state using the <a>RecordLifecycleActionHeartbeat</a> API call.</p>
|
|
705
714
|
* </li>
|
|
706
715
|
* <li>
|
|
707
716
|
* <p>If you finish before the timeout period ends, send a callback by using the
|
|
@@ -779,9 +788,14 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
779
788
|
* group:</p>
|
|
780
789
|
* <ol>
|
|
781
790
|
* <li>
|
|
782
|
-
* <p>(Optional) Create a
|
|
783
|
-
*
|
|
784
|
-
*
|
|
791
|
+
* <p>(Optional) Create a launch template or launch configuration with a user data
|
|
792
|
+
* script that runs while an instance is in a wait state due to a lifecycle
|
|
793
|
+
* hook.</p>
|
|
794
|
+
* </li>
|
|
795
|
+
* <li>
|
|
796
|
+
* <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
|
|
797
|
+
* your Lambda function when an instance is put into a wait state due to a
|
|
798
|
+
* lifecycle hook.</p>
|
|
785
799
|
* </li>
|
|
786
800
|
* <li>
|
|
787
801
|
* <p>(Optional) Create a notification target and an IAM role. The target can be
|
|
@@ -795,7 +809,7 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
795
809
|
* <li>
|
|
796
810
|
* <p>
|
|
797
811
|
* <b>If you need more time, record the lifecycle action
|
|
798
|
-
* heartbeat to keep the instance in a
|
|
812
|
+
* heartbeat to keep the instance in a wait state.</b>
|
|
799
813
|
* </p>
|
|
800
814
|
* </li>
|
|
801
815
|
* <li>
|
|
@@ -903,8 +917,7 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
903
917
|
* <p>
|
|
904
918
|
* <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>
|
|
905
919
|
* </p>
|
|
906
|
-
*
|
|
907
|
-
* the specified Auto Scaling group.</p>
|
|
920
|
+
* <p>Updates the configuration for the specified Auto Scaling group.</p>
|
|
908
921
|
* <p>To update an Auto Scaling group, specify the name of the group and the parameter that you want
|
|
909
922
|
* to change. Any parameters that you don't specify are not changed by this update request.
|
|
910
923
|
* The new settings take effect on any scaling activities after this call returns.
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AttachInstancesCommandInput, AttachInstancesCommandOutput } from "./commands/AttachInstancesCommand";
|
|
10
10
|
import { AttachLoadBalancersCommandInput, AttachLoadBalancersCommandOutput } from "./commands/AttachLoadBalancersCommand";
|
|
11
11
|
import { AttachLoadBalancerTargetGroupsCommandInput, AttachLoadBalancerTargetGroupsCommandOutput } from "./commands/AttachLoadBalancerTargetGroupsCommand";
|
|
@@ -89,7 +89,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
89
89
|
* A function that can calculate the length of a request body.
|
|
90
90
|
* @internal
|
|
91
91
|
*/
|
|
92
|
-
bodyLengthChecker?:
|
|
92
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
93
93
|
/**
|
|
94
94
|
* A function that converts a stream into an array of bytes.
|
|
95
95
|
* @internal
|
|
@@ -13,9 +13,14 @@ export interface CompleteLifecycleActionCommandOutput extends CompleteLifecycleA
|
|
|
13
13
|
* group:</p>
|
|
14
14
|
* <ol>
|
|
15
15
|
* <li>
|
|
16
|
-
* <p>(Optional) Create a
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* <p>(Optional) Create a launch template or launch configuration with a user data
|
|
17
|
+
* script that runs while an instance is in a wait state due to a lifecycle
|
|
18
|
+
* hook.</p>
|
|
19
|
+
* </li>
|
|
20
|
+
* <li>
|
|
21
|
+
* <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
|
|
22
|
+
* your Lambda function when an instance is put into a wait state due to a
|
|
23
|
+
* lifecycle hook.</p>
|
|
19
24
|
* </li>
|
|
20
25
|
* <li>
|
|
21
26
|
* <p>(Optional) Create a notification target and an IAM role. The target can be
|
|
@@ -28,7 +33,7 @@ export interface CompleteLifecycleActionCommandOutput extends CompleteLifecycleA
|
|
|
28
33
|
* </li>
|
|
29
34
|
* <li>
|
|
30
35
|
* <p>If you need more time, record the lifecycle action heartbeat to keep the
|
|
31
|
-
* instance in a
|
|
36
|
+
* instance in a wait state.</p>
|
|
32
37
|
* </li>
|
|
33
38
|
* <li>
|
|
34
39
|
* <p>
|
|
@@ -10,8 +10,7 @@ export interface CreateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
10
10
|
* <p>
|
|
11
11
|
* <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>
|
|
12
12
|
* </p>
|
|
13
|
-
*
|
|
14
|
-
* the specified name and attributes. </p>
|
|
13
|
+
* <p>Creates an Auto Scaling group with the specified name and attributes. </p>
|
|
15
14
|
* <p>If you exceed your maximum limit of Auto Scaling groups, the call fails. To query this limit,
|
|
16
15
|
* call the <a>DescribeAccountLimits</a> API. For information about updating
|
|
17
16
|
* this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html">Amazon EC2 Auto Scaling service
|
|
@@ -9,7 +9,7 @@ export interface DescribeWarmPoolCommandOutput extends DescribeWarmPoolAnswer, _
|
|
|
9
9
|
/**
|
|
10
10
|
* <p>Gets information about a warm pool and its instances.</p>
|
|
11
11
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm pools for
|
|
12
|
-
*
|
|
12
|
+
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
13
13
|
* @example
|
|
14
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
15
|
* ```javascript
|
|
@@ -8,16 +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>
|
|
12
|
-
* lifecycle, and then perform a custom action when the corresponding
|
|
13
|
-
* occurs.</p>
|
|
11
|
+
* <p>Lifecycle hooks let you create solutions that are aware of events in the Auto Scaling instance
|
|
12
|
+
* lifecycle, and then perform a custom action on instances when the corresponding
|
|
13
|
+
* lifecycle event 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
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* <p>(Optional) Create a launch template or launch configuration with a user data
|
|
19
|
+
* script that runs while an instance is in a wait state due to a lifecycle
|
|
20
|
+
* hook.</p>
|
|
21
|
+
* </li>
|
|
22
|
+
* <li>
|
|
23
|
+
* <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
|
|
24
|
+
* your Lambda function when an instance is put into a wait state due to a
|
|
25
|
+
* lifecycle hook.</p>
|
|
21
26
|
* </li>
|
|
22
27
|
* <li>
|
|
23
28
|
* <p>(Optional) Create a notification target and an IAM role. The target can be
|
|
@@ -32,7 +37,7 @@ export interface PutLifecycleHookCommandOutput extends PutLifecycleHookAnswer, _
|
|
|
32
37
|
* </li>
|
|
33
38
|
* <li>
|
|
34
39
|
* <p>If you need more time, record the lifecycle action heartbeat to keep the
|
|
35
|
-
* instance in a
|
|
40
|
+
* instance in a wait state using the <a>RecordLifecycleActionHeartbeat</a> API call.</p>
|
|
36
41
|
* </li>
|
|
37
42
|
* <li>
|
|
38
43
|
* <p>If you finish before the timeout period ends, send a callback by using the
|
|
@@ -13,9 +13,14 @@ export interface RecordLifecycleActionHeartbeatCommandOutput extends RecordLifec
|
|
|
13
13
|
* group:</p>
|
|
14
14
|
* <ol>
|
|
15
15
|
* <li>
|
|
16
|
-
* <p>(Optional) Create a
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* <p>(Optional) Create a launch template or launch configuration with a user data
|
|
17
|
+
* script that runs while an instance is in a wait state due to a lifecycle
|
|
18
|
+
* hook.</p>
|
|
19
|
+
* </li>
|
|
20
|
+
* <li>
|
|
21
|
+
* <p>(Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
|
|
22
|
+
* your Lambda function when an instance is put into a wait state due to a
|
|
23
|
+
* lifecycle hook.</p>
|
|
19
24
|
* </li>
|
|
20
25
|
* <li>
|
|
21
26
|
* <p>(Optional) Create a notification target and an IAM role. The target can be
|
|
@@ -29,7 +34,7 @@ export interface RecordLifecycleActionHeartbeatCommandOutput extends RecordLifec
|
|
|
29
34
|
* <li>
|
|
30
35
|
* <p>
|
|
31
36
|
* <b>If you need more time, record the lifecycle action
|
|
32
|
-
* heartbeat to keep the instance in a
|
|
37
|
+
* heartbeat to keep the instance in a wait state.</b>
|
|
33
38
|
* </p>
|
|
34
39
|
* </li>
|
|
35
40
|
* <li>
|
|
@@ -10,8 +10,7 @@ export interface UpdateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
10
10
|
* <p>
|
|
11
11
|
* <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>
|
|
12
12
|
* </p>
|
|
13
|
-
*
|
|
14
|
-
* the specified Auto Scaling group.</p>
|
|
13
|
+
* <p>Updates the configuration for the specified Auto Scaling group.</p>
|
|
15
14
|
* <p>To update an Auto Scaling group, specify the name of the group and the parameter that you want
|
|
16
15
|
* to change. Any parameters that you don't specify are not changed by this update request.
|
|
17
16
|
* The new settings take effect on any scaling activities after this call returns.
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from AutoScaling service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AutoScalingServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|