@aws-sdk/client-auto-scaling 3.377.0 → 3.379.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.
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeWarmPool = void 0;
4
+ const AutoScalingClient_1 = require("../AutoScalingClient");
5
+ const DescribeWarmPoolCommand_1 = require("../commands/DescribeWarmPoolCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeWarmPoolCommand_1.DescribeWarmPoolCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeWarmPool(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxRecords"] = config.pageSize;
16
+ if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeWarmPool = paginateDescribeWarmPool;
@@ -10,4 +10,5 @@ tslib_1.__exportStar(require("./DescribeScalingActivitiesPaginator"), exports);
10
10
  tslib_1.__exportStar(require("./DescribeScheduledActionsPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./DescribeTagsPaginator"), exports);
12
12
  tslib_1.__exportStar(require("./DescribeTrafficSourcesPaginator"), exports);
13
+ tslib_1.__exportStar(require("./DescribeWarmPoolPaginator"), exports);
13
14
  tslib_1.__exportStar(require("./Interfaces"), exports);
@@ -0,0 +1,25 @@
1
+ import { AutoScalingClient } from "../AutoScalingClient";
2
+ import { DescribeWarmPoolCommand, } from "../commands/DescribeWarmPoolCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeWarmPoolCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeWarmPool(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxRecords"] = config.pageSize;
13
+ if (config.client instanceof AutoScalingClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -7,4 +7,5 @@ export * from "./DescribeScalingActivitiesPaginator";
7
7
  export * from "./DescribeScheduledActionsPaginator";
8
8
  export * from "./DescribeTagsPaginator";
9
9
  export * from "./DescribeTrafficSourcesPaginator";
10
+ export * from "./DescribeWarmPoolPaginator";
10
11
  export * from "./Interfaces";
@@ -59,8 +59,8 @@ export interface CompleteLifecycleActionCommandOutput extends CompleteLifecycleA
59
59
  * </p>
60
60
  * </li>
61
61
  * </ol>
62
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon EC2 Auto Scaling lifecycle
63
- * hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
62
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/completing-lifecycle-hooks.html">Complete a lifecycle
63
+ * action</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
64
64
  * @example
65
65
  * Use a bare-bones client and the command you need to make an API call.
66
66
  * ```javascript
@@ -273,14 +273,16 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
273
273
  * {
274
274
  * "AutoScalingGroups": [
275
275
  * {
276
- * "AutoScalingGroupARN": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:930d940e-891e-4781-a11a-7b0acd480f03:autoScalingGroupName/my-auto-scaling-group",
276
+ * "AutoScalingGroupARN": "arn:aws:autoscaling:us-west-1:123456789012:autoScalingGroup:12345678-1234-1234-1234-123456789012:autoScalingGroupName/my-auto-scaling-group",
277
277
  * "AutoScalingGroupName": "my-auto-scaling-group",
278
278
  * "AvailabilityZones": [
279
+ * "us-west-2a",
280
+ * "us-west-2b",
279
281
  * "us-west-2c"
280
282
  * ],
281
- * "CreatedTime": "2013-08-19T20:53:25.584Z",
283
+ * "CreatedTime": "2023-03-09T22:15:11.611Z",
282
284
  * "DefaultCooldown": 300,
283
- * "DesiredCapacity": 1,
285
+ * "DesiredCapacity": 2,
284
286
  * "EnabledMetrics": [],
285
287
  * "HealthCheckGracePeriod": 300,
286
288
  * "HealthCheckType": "EC2",
@@ -288,7 +290,17 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
288
290
  * {
289
291
  * "AvailabilityZone": "us-west-2c",
290
292
  * "HealthStatus": "Healthy",
291
- * "InstanceId": "i-4ba0837f",
293
+ * "InstanceId": "i-05b4f7d5be44822a6",
294
+ * "InstanceType": "t3.micro",
295
+ * "LaunchConfigurationName": "my-launch-config",
296
+ * "LifecycleState": "InService",
297
+ * "ProtectedFromScaleIn": false
298
+ * },
299
+ * {
300
+ * "AvailabilityZone": "us-west-2b",
301
+ * "HealthStatus": "Healthy",
302
+ * "InstanceId": "i-0c20ac468fa3049e8",
303
+ * "InstanceType": "t3.micro",
292
304
  * "LaunchConfigurationName": "my-launch-config",
293
305
  * "LifecycleState": "InService",
294
306
  * "ProtectedFromScaleIn": false
@@ -296,15 +308,18 @@ export interface DescribeAutoScalingGroupsCommandOutput extends AutoScalingGroup
296
308
  * ],
297
309
  * "LaunchConfigurationName": "my-launch-config",
298
310
  * "LoadBalancerNames": [],
299
- * "MaxSize": 1,
300
- * "MinSize": 0,
311
+ * "MaxSize": 5,
312
+ * "MinSize": 1,
301
313
  * "NewInstancesProtectedFromScaleIn": false,
314
+ * "ServiceLinkedRoleARN": "arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling",
302
315
  * "SuspendedProcesses": [],
303
316
  * "Tags": [],
317
+ * "TargetGroupARNs": [],
304
318
  * "TerminationPolicies": [
305
319
  * "Default"
306
320
  * ],
307
- * "VPCZoneIdentifier": "subnet-12345678"
321
+ * "TrafficSources": [],
322
+ * "VPCZoneIdentifier": "subnet-5ea0c127,subnet-6194ea3b,subnet-c934b782"
308
323
  * }
309
324
  * ]
310
325
  * }
@@ -84,7 +84,7 @@ export interface DescribeAutoScalingInstancesCommandOutput extends AutoScalingIn
84
84
  * // This example describes the specified Auto Scaling instance.
85
85
  * const input = {
86
86
  * "InstanceIds": [
87
- * "i-4ba0837f"
87
+ * "i-05b4f7d5be44822a6"
88
88
  * ]
89
89
  * };
90
90
  * const command = new DescribeAutoScalingInstancesCommand(input);
@@ -96,7 +96,8 @@ export interface DescribeAutoScalingInstancesCommandOutput extends AutoScalingIn
96
96
  * "AutoScalingGroupName": "my-auto-scaling-group",
97
97
  * "AvailabilityZone": "us-west-2c",
98
98
  * "HealthStatus": "HEALTHY",
99
- * "InstanceId": "i-4ba0837f",
99
+ * "InstanceId": "i-05b4f7d5be44822a6",
100
+ * "InstanceType": "t3.micro",
100
101
  * "LaunchConfigurationName": "my-launch-config",
101
102
  * "LifecycleState": "InService",
102
103
  * "ProtectedFromScaleIn": false
@@ -234,18 +234,35 @@ export interface DescribeInstanceRefreshesCommandOutput extends DescribeInstance
234
234
  * {
235
235
  * "AutoScalingGroupName": "my-auto-scaling-group",
236
236
  * "InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
237
- * "InstancesToUpdate": 5,
238
- * "PercentageComplete": 0,
239
- * "StartTime": "2020-06-02T18:11:27Z",
240
- * "Status": "InProgress"
237
+ * "InstancesToUpdate": 0,
238
+ * "PercentageComplete": 50,
239
+ * "Preferences": {
240
+ * "AutoRollback": true,
241
+ * "InstanceWarmup": 60,
242
+ * "MinHealthyPercentage": 90,
243
+ * "ScaleInProtectedInstances": "Ignore",
244
+ * "SkipMatching": false,
245
+ * "StandbyInstances": "Ignore"
246
+ * },
247
+ * "StartTime": "2023-06-13T16:46:52+00:00",
248
+ * "Status": "InProgress",
249
+ * "StatusReason": "Waiting for instances to warm up before continuing. For example: i-0645704820a8e83ff is warming up."
241
250
  * },
242
251
  * {
243
252
  * "AutoScalingGroupName": "my-auto-scaling-group",
244
- * "EndTime": "2020-06-02T16:53:37Z",
245
- * "InstanceRefreshId": "dd7728d0-5bc4-4575-96a3-1b2c52bf8bb1",
253
+ * "EndTime": "2023-06-02T13:59:45+00:00",
254
+ * "InstanceRefreshId": "0e151305-1e57-4a32-a256-1fd14157c5ec",
246
255
  * "InstancesToUpdate": 0,
247
256
  * "PercentageComplete": 100,
248
- * "StartTime": "2020-06-02T16:43:19Z",
257
+ * "Preferences": {
258
+ * "AutoRollback": true,
259
+ * "InstanceWarmup": 60,
260
+ * "MinHealthyPercentage": 90,
261
+ * "ScaleInProtectedInstances": "Ignore",
262
+ * "SkipMatching": false,
263
+ * "StandbyInstances": "Ignore"
264
+ * },
265
+ * "StartTime": "2023-06-02T13:53:37+00:00",
249
266
  * "Status": "Successful"
250
267
  * }
251
268
  * ]
@@ -100,6 +100,7 @@ export interface DescribeScalingActivitiesCommandOutput extends ActivitiesType,
100
100
  * "Activities": [
101
101
  * {
102
102
  * "ActivityId": "f9f2d65b-f1f2-43e7-b46d-d86756459699",
103
+ * "AutoScalingGroupARN": "arn:aws:autoscaling:us-east-1:123456789012:autoScalingGroup:12345678-1234-1234-1234-123456789012:autoScalingGroupName/my-auto-scaling-group",
103
104
  * "AutoScalingGroupName": "my-auto-scaling-group",
104
105
  * "Cause": "At 2013-08-19T20:53:25Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2013-08-19T20:53:29Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.",
105
106
  * "Description": "Launching a new EC2 instance: i-4ba0837f",
@@ -24,7 +24,7 @@ export interface DetachTrafficSourcesCommandOutput extends DetachTrafficSourcesR
24
24
  /**
25
25
  * @public
26
26
  * <p>Detaches one or more traffic sources from the specified Auto Scaling group.</p>
27
- * <p>When you detach a taffic, it enters the <code>Removing</code> state while
27
+ * <p>When you detach a traffic source, it enters the <code>Removing</code> state while
28
28
  * deregistering the instances in the group. When all instances are deregistered, then you
29
29
  * can no longer describe the traffic source using the <a>DescribeTrafficSources</a> API call. The instances continue to run.</p>
30
30
  * @example
@@ -53,7 +53,7 @@ export interface RollbackInstanceRefreshCommandOutput extends RollbackInstanceRe
53
53
  * // const { AutoScalingClient, RollbackInstanceRefreshCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
54
54
  * const client = new AutoScalingClient(config);
55
55
  * const input = { // RollbackInstanceRefreshType
56
- * AutoScalingGroupName: "STRING_VALUE",
56
+ * AutoScalingGroupName: "STRING_VALUE", // required
57
57
  * };
58
58
  * const command = new RollbackInstanceRefreshCommand(input);
59
59
  * const response = await client.send(command);
@@ -4518,11 +4518,7 @@ export interface StepAdjustment {
4518
4518
  /**
4519
4519
  * <p>The amount by which to scale, based on the specified adjustment type. A positive value
4520
4520
  * adds to the current capacity while a negative number removes from the current
4521
- * capacity.</p>
4522
- * <p>The amount by which to scale. The adjustment is based on the value that you specified
4523
- * in the <code>AdjustmentType</code> property (either an absolute number or a percentage).
4524
- * A positive value adds to the current capacity and a negative number subtracts from the
4525
- * current capacity. </p>
4521
+ * capacity. For exact capacity, you must specify a non-negative value.</p>
4526
4522
  */
4527
4523
  ScalingAdjustment: number | undefined;
4528
4524
  }
@@ -5993,7 +5989,7 @@ export interface PutScalingPolicyType {
5993
5989
  /**
5994
5990
  * <p>The amount by which to scale, based on the specified adjustment type. A positive value
5995
5991
  * adds to the current capacity while a negative number removes from the current capacity.
5996
- * For exact capacity, you must specify a positive value.</p>
5992
+ * For exact capacity, you must specify a non-negative value.</p>
5997
5993
  * <p>Required if the policy type is <code>SimpleScaling</code>. (Not used with any other
5998
5994
  * policy type.) </p>
5999
5995
  */
@@ -6331,7 +6327,7 @@ export interface RollbackInstanceRefreshType {
6331
6327
  /**
6332
6328
  * <p>The name of the Auto Scaling group.</p>
6333
6329
  */
6334
- AutoScalingGroupName?: string;
6330
+ AutoScalingGroupName: string | undefined;
6335
6331
  }
6336
6332
  /**
6337
6333
  * @public
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { DescribeWarmPoolCommandInput, DescribeWarmPoolCommandOutput } from "../commands/DescribeWarmPoolCommand";
3
+ import { AutoScalingPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateDescribeWarmPool(config: AutoScalingPaginationConfiguration, input: DescribeWarmPoolCommandInput, ...additionalArguments: any): Paginator<DescribeWarmPoolCommandOutput>;
@@ -7,4 +7,5 @@ export * from "./DescribeScalingActivitiesPaginator";
7
7
  export * from "./DescribeScheduledActionsPaginator";
8
8
  export * from "./DescribeTagsPaginator";
9
9
  export * from "./DescribeTrafficSourcesPaginator";
10
+ export * from "./DescribeWarmPoolPaginator";
10
11
  export * from "./Interfaces";
@@ -1200,7 +1200,7 @@ export interface RollbackInstanceRefreshAnswer {
1200
1200
  InstanceRefreshId?: string;
1201
1201
  }
1202
1202
  export interface RollbackInstanceRefreshType {
1203
- AutoScalingGroupName?: string;
1203
+ AutoScalingGroupName: string | undefined;
1204
1204
  }
1205
1205
  export interface SetDesiredCapacityType {
1206
1206
  AutoScalingGroupName: string | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ DescribeWarmPoolCommandInput,
4
+ DescribeWarmPoolCommandOutput,
5
+ } from "../commands/DescribeWarmPoolCommand";
6
+ import { AutoScalingPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateDescribeWarmPool(
8
+ config: AutoScalingPaginationConfiguration,
9
+ input: DescribeWarmPoolCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<DescribeWarmPoolCommandOutput>;
@@ -7,4 +7,5 @@ export * from "./DescribeScalingActivitiesPaginator";
7
7
  export * from "./DescribeScheduledActionsPaginator";
8
8
  export * from "./DescribeTagsPaginator";
9
9
  export * from "./DescribeTrafficSourcesPaginator";
10
+ export * from "./DescribeWarmPoolPaginator";
10
11
  export * from "./Interfaces";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
4
- "version": "3.377.0",
4
+ "version": "3.379.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,45 +21,45 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.377.0",
25
- "@aws-sdk/credential-provider-node": "3.370.0",
26
- "@aws-sdk/middleware-host-header": "3.370.0",
27
- "@aws-sdk/middleware-logger": "3.370.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.370.0",
29
- "@aws-sdk/middleware-signing": "3.370.0",
30
- "@aws-sdk/middleware-user-agent": "3.370.0",
31
- "@aws-sdk/types": "3.370.0",
32
- "@aws-sdk/util-endpoints": "3.370.0",
33
- "@aws-sdk/util-user-agent-browser": "3.370.0",
34
- "@aws-sdk/util-user-agent-node": "3.370.0",
35
- "@smithy/config-resolver": "^1.0.1",
36
- "@smithy/fetch-http-handler": "^1.0.1",
37
- "@smithy/hash-node": "^1.0.1",
38
- "@smithy/invalid-dependency": "^1.0.1",
39
- "@smithy/middleware-content-length": "^1.0.1",
40
- "@smithy/middleware-endpoint": "^1.0.2",
41
- "@smithy/middleware-retry": "^1.0.3",
42
- "@smithy/middleware-serde": "^1.0.1",
43
- "@smithy/middleware-stack": "^1.0.1",
44
- "@smithy/node-config-provider": "^1.0.1",
45
- "@smithy/node-http-handler": "^1.0.2",
46
- "@smithy/protocol-http": "^1.1.0",
47
- "@smithy/smithy-client": "^1.0.3",
48
- "@smithy/types": "^1.1.0",
49
- "@smithy/url-parser": "^1.0.1",
50
- "@smithy/util-base64": "^1.0.1",
51
- "@smithy/util-body-length-browser": "^1.0.1",
52
- "@smithy/util-body-length-node": "^1.0.1",
53
- "@smithy/util-defaults-mode-browser": "^1.0.1",
54
- "@smithy/util-defaults-mode-node": "^1.0.1",
55
- "@smithy/util-retry": "^1.0.3",
56
- "@smithy/util-utf8": "^1.0.1",
57
- "@smithy/util-waiter": "^1.0.1",
24
+ "@aws-sdk/client-sts": "3.378.0",
25
+ "@aws-sdk/credential-provider-node": "3.378.0",
26
+ "@aws-sdk/middleware-host-header": "3.378.0",
27
+ "@aws-sdk/middleware-logger": "3.378.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.378.0",
29
+ "@aws-sdk/middleware-signing": "3.378.0",
30
+ "@aws-sdk/middleware-user-agent": "3.378.0",
31
+ "@aws-sdk/types": "3.378.0",
32
+ "@aws-sdk/util-endpoints": "3.378.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.378.0",
34
+ "@aws-sdk/util-user-agent-node": "3.378.0",
35
+ "@smithy/config-resolver": "^2.0.1",
36
+ "@smithy/fetch-http-handler": "^2.0.1",
37
+ "@smithy/hash-node": "^2.0.1",
38
+ "@smithy/invalid-dependency": "^2.0.1",
39
+ "@smithy/middleware-content-length": "^2.0.1",
40
+ "@smithy/middleware-endpoint": "^2.0.1",
41
+ "@smithy/middleware-retry": "^2.0.1",
42
+ "@smithy/middleware-serde": "^2.0.1",
43
+ "@smithy/middleware-stack": "^2.0.0",
44
+ "@smithy/node-config-provider": "^2.0.1",
45
+ "@smithy/node-http-handler": "^2.0.1",
46
+ "@smithy/protocol-http": "^2.0.1",
47
+ "@smithy/smithy-client": "^2.0.1",
48
+ "@smithy/types": "^2.0.2",
49
+ "@smithy/url-parser": "^2.0.1",
50
+ "@smithy/util-base64": "^2.0.0",
51
+ "@smithy/util-body-length-browser": "^2.0.0",
52
+ "@smithy/util-body-length-node": "^2.0.0",
53
+ "@smithy/util-defaults-mode-browser": "^2.0.1",
54
+ "@smithy/util-defaults-mode-node": "^2.0.1",
55
+ "@smithy/util-retry": "^2.0.0",
56
+ "@smithy/util-utf8": "^2.0.0",
57
+ "@smithy/util-waiter": "^2.0.1",
58
58
  "fast-xml-parser": "4.2.5",
59
59
  "tslib": "^2.5.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@smithy/service-client-documentation-generator": "^1.0.1",
62
+ "@smithy/service-client-documentation-generator": "^2.0.0",
63
63
  "@tsconfig/node14": "1.0.3",
64
64
  "@types/node": "^14.14.31",
65
65
  "concurrently": "7.0.0",