@aws-sdk/client-auto-scaling 3.267.0 → 3.271.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/dist-cjs/AutoScaling.js +15 -0
- package/dist-cjs/commands/RollbackInstanceRefreshCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +45 -5
- package/dist-cjs/protocols/Aws_query.js +142 -2
- package/dist-es/AutoScaling.js +15 -0
- package/dist-es/commands/RollbackInstanceRefreshCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +36 -0
- package/dist-es/protocols/Aws_query.js +139 -1
- package/dist-types/AutoScaling.d.ts +56 -45
- package/dist-types/AutoScalingClient.d.ts +18 -17
- package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +5 -3
- package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +6 -35
- package/dist-types/commands/RollbackInstanceRefreshCommand.d.ts +59 -0
- package/dist-types/commands/StartInstanceRefreshCommand.d.ts +16 -7
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +280 -89
- package/dist-types/protocols/Aws_query.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +4 -4
- package/dist-types/ts3.4/AutoScaling.d.ts +17 -0
- package/dist-types/ts3.4/AutoScalingClient.d.ts +10 -4
- package/dist-types/ts3.4/commands/RollbackInstanceRefreshCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +49 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- 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 +4 -4
- package/package.json +30 -30
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AutoScalingClient";
|
|
5
|
+
import { RollbackInstanceRefreshAnswer, RollbackInstanceRefreshType } from "../models/models_0";
|
|
6
|
+
export interface RollbackInstanceRefreshCommandInput extends RollbackInstanceRefreshType {
|
|
7
|
+
}
|
|
8
|
+
export interface RollbackInstanceRefreshCommandOutput extends RollbackInstanceRefreshAnswer, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Cancels an instance refresh that is in progress and rolls back any changes that it
|
|
12
|
+
* made. Amazon EC2 Auto Scaling replaces any instances that were replaced during the instance refresh.
|
|
13
|
+
* This restores your Auto Scaling group to the configuration that it was using before the start of
|
|
14
|
+
* the instance refresh. </p>
|
|
15
|
+
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
16
|
+
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
|
|
17
|
+
* after you make configuration changes.</p>
|
|
18
|
+
* <p>A rollback is not supported in the following situations: </p>
|
|
19
|
+
* <ul>
|
|
20
|
+
* <li>
|
|
21
|
+
* <p>There is no desired configuration specified for the instance refresh.</p>
|
|
22
|
+
* </li>
|
|
23
|
+
* <li>
|
|
24
|
+
* <p>The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager
|
|
25
|
+
* parameter instead of an AMI ID for the <code>ImageId</code> property.</p>
|
|
26
|
+
* </li>
|
|
27
|
+
* <li>
|
|
28
|
+
* <p>The Auto Scaling group uses the launch template's <code>$Latest</code> or
|
|
29
|
+
* <code>$Default</code> version.</p>
|
|
30
|
+
* </li>
|
|
31
|
+
* </ul>
|
|
32
|
+
* <p>When you receive a successful response from this operation, Amazon EC2 Auto Scaling immediately
|
|
33
|
+
* begins replacing instances. You can check the status of this operation through the <a>DescribeInstanceRefreshes</a> API operation. </p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { AutoScalingClient, RollbackInstanceRefreshCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
38
|
+
* // const { AutoScalingClient, RollbackInstanceRefreshCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
39
|
+
* const client = new AutoScalingClient(config);
|
|
40
|
+
* const command = new RollbackInstanceRefreshCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @see {@link RollbackInstanceRefreshCommandInput} for command's `input` shape.
|
|
45
|
+
* @see {@link RollbackInstanceRefreshCommandOutput} for command's `response` shape.
|
|
46
|
+
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export declare class RollbackInstanceRefreshCommand extends $Command<RollbackInstanceRefreshCommandInput, RollbackInstanceRefreshCommandOutput, AutoScalingClientResolvedConfig> {
|
|
50
|
+
readonly input: RollbackInstanceRefreshCommandInput;
|
|
51
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
52
|
+
constructor(input: RollbackInstanceRefreshCommandInput);
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RollbackInstanceRefreshCommandInput, RollbackInstanceRefreshCommandOutput>;
|
|
57
|
+
private serialize;
|
|
58
|
+
private deserialize;
|
|
59
|
+
}
|
|
@@ -8,21 +8,30 @@ export interface StartInstanceRefreshCommandInput extends StartInstanceRefreshTy
|
|
|
8
8
|
export interface StartInstanceRefreshCommandOutput extends StartInstanceRefreshAnswer, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Starts
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* group.</p>
|
|
11
|
+
* <p>Starts an instance refresh. During an instance refresh, Amazon EC2 Auto Scaling performs a rolling
|
|
12
|
+
* update of instances in an Auto Scaling group. Instances are terminated first and then replaced,
|
|
13
|
+
* which temporarily reduces the capacity available within your Auto Scaling group.</p>
|
|
15
14
|
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
16
15
|
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group.
|
|
17
16
|
* This feature is helpful, for example, when you have a new AMI or a new user data script.
|
|
18
17
|
* You just need to create a new launch template that specifies the new AMI or user data
|
|
19
18
|
* script. Then start an instance refresh to immediately begin the process of updating
|
|
20
19
|
* instances in the group. </p>
|
|
21
|
-
* <p>If the
|
|
22
|
-
*
|
|
20
|
+
* <p>If successful, the request's response contains a unique ID that you can use to track
|
|
21
|
+
* the progress of the instance refresh. To query its status, call the <a>DescribeInstanceRefreshes</a> API. To describe the instance refreshes that
|
|
23
22
|
* have already run, call the <a>DescribeInstanceRefreshes</a> API. To cancel an
|
|
24
|
-
* instance refresh
|
|
23
|
+
* instance refresh that is in progress, use the <a>CancelInstanceRefresh</a>
|
|
25
24
|
* API. </p>
|
|
25
|
+
* <p>An instance refresh might fail for several reasons, such as EC2 launch failures,
|
|
26
|
+
* misconfigured health checks, or not ignoring or allowing the termination of instances
|
|
27
|
+
* that are in <code>Standby</code> state or protected from scale in. You can monitor for
|
|
28
|
+
* failed EC2 launches using the scaling activities. To find the scaling activities, call
|
|
29
|
+
* the <a>DescribeScalingActivities</a> API.</p>
|
|
30
|
+
* <p>If you enable auto rollback, your Auto Scaling group will be rolled back automatically when
|
|
31
|
+
* the instance refresh fails. You can enable this feature before starting an instance
|
|
32
|
+
* refresh by specifying the <code>AutoRollback</code> property in the instance refresh
|
|
33
|
+
* preferences. Otherwise, to roll back an instance refresh before it finishes, use the
|
|
34
|
+
* <a>RollbackInstanceRefresh</a> API. </p>
|
|
26
35
|
* @example
|
|
27
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
28
37
|
* ```javascript
|
|
@@ -55,6 +55,7 @@ export * from "./PutScheduledUpdateGroupActionCommand";
|
|
|
55
55
|
export * from "./PutWarmPoolCommand";
|
|
56
56
|
export * from "./RecordLifecycleActionHeartbeatCommand";
|
|
57
57
|
export * from "./ResumeProcessesCommand";
|
|
58
|
+
export * from "./RollbackInstanceRefreshCommand";
|
|
58
59
|
export * from "./SetDesiredCapacityCommand";
|
|
59
60
|
export * from "./SetInstanceHealthCommand";
|
|
60
61
|
export * from "./SetInstanceProtectionCommand";
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|