@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
|
@@ -213,6 +213,18 @@ export class InvalidNextToken extends __BaseException {
|
|
|
213
213
|
Object.setPrototypeOf(this, InvalidNextToken.prototype);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
+
export var ScaleInProtectedInstances;
|
|
217
|
+
(function (ScaleInProtectedInstances) {
|
|
218
|
+
ScaleInProtectedInstances["Ignore"] = "Ignore";
|
|
219
|
+
ScaleInProtectedInstances["Refresh"] = "Refresh";
|
|
220
|
+
ScaleInProtectedInstances["Wait"] = "Wait";
|
|
221
|
+
})(ScaleInProtectedInstances || (ScaleInProtectedInstances = {}));
|
|
222
|
+
export var StandbyInstances;
|
|
223
|
+
(function (StandbyInstances) {
|
|
224
|
+
StandbyInstances["Ignore"] = "Ignore";
|
|
225
|
+
StandbyInstances["Terminate"] = "Terminate";
|
|
226
|
+
StandbyInstances["Wait"] = "Wait";
|
|
227
|
+
})(StandbyInstances || (StandbyInstances = {}));
|
|
216
228
|
export var InstanceRefreshStatus;
|
|
217
229
|
(function (InstanceRefreshStatus) {
|
|
218
230
|
InstanceRefreshStatus["Cancelled"] = "Cancelled";
|
|
@@ -220,6 +232,9 @@ export var InstanceRefreshStatus;
|
|
|
220
232
|
InstanceRefreshStatus["Failed"] = "Failed";
|
|
221
233
|
InstanceRefreshStatus["InProgress"] = "InProgress";
|
|
222
234
|
InstanceRefreshStatus["Pending"] = "Pending";
|
|
235
|
+
InstanceRefreshStatus["RollbackFailed"] = "RollbackFailed";
|
|
236
|
+
InstanceRefreshStatus["RollbackInProgress"] = "RollbackInProgress";
|
|
237
|
+
InstanceRefreshStatus["RollbackSuccessful"] = "RollbackSuccessful";
|
|
223
238
|
InstanceRefreshStatus["Successful"] = "Successful";
|
|
224
239
|
})(InstanceRefreshStatus || (InstanceRefreshStatus = {}));
|
|
225
240
|
export var PredictiveScalingMaxCapacityBreachBehavior;
|
|
@@ -268,6 +283,18 @@ export var MetricType;
|
|
|
268
283
|
MetricType["ASGAverageNetworkIn"] = "ASGAverageNetworkIn";
|
|
269
284
|
MetricType["ASGAverageNetworkOut"] = "ASGAverageNetworkOut";
|
|
270
285
|
})(MetricType || (MetricType = {}));
|
|
286
|
+
export class IrreversibleInstanceRefreshFault extends __BaseException {
|
|
287
|
+
constructor(opts) {
|
|
288
|
+
super({
|
|
289
|
+
name: "IrreversibleInstanceRefreshFault",
|
|
290
|
+
$fault: "client",
|
|
291
|
+
...opts,
|
|
292
|
+
});
|
|
293
|
+
this.name = "IrreversibleInstanceRefreshFault";
|
|
294
|
+
this.$fault = "client";
|
|
295
|
+
Object.setPrototypeOf(this, IrreversibleInstanceRefreshFault.prototype);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
271
298
|
export class InstanceRefreshInProgressFault extends __BaseException {
|
|
272
299
|
constructor(opts) {
|
|
273
300
|
super({
|
|
@@ -518,6 +545,9 @@ export const InstanceRefreshWarmPoolProgressFilterSensitiveLog = (obj) => ({
|
|
|
518
545
|
export const InstanceRefreshProgressDetailsFilterSensitiveLog = (obj) => ({
|
|
519
546
|
...obj,
|
|
520
547
|
});
|
|
548
|
+
export const RollbackDetailsFilterSensitiveLog = (obj) => ({
|
|
549
|
+
...obj,
|
|
550
|
+
});
|
|
521
551
|
export const InstanceRefreshFilterSensitiveLog = (obj) => ({
|
|
522
552
|
...obj,
|
|
523
553
|
});
|
|
@@ -779,6 +809,12 @@ export const RecordLifecycleActionHeartbeatTypeFilterSensitiveLog = (obj) => ({
|
|
|
779
809
|
export const ScalingProcessQueryFilterSensitiveLog = (obj) => ({
|
|
780
810
|
...obj,
|
|
781
811
|
});
|
|
812
|
+
export const RollbackInstanceRefreshAnswerFilterSensitiveLog = (obj) => ({
|
|
813
|
+
...obj,
|
|
814
|
+
});
|
|
815
|
+
export const RollbackInstanceRefreshTypeFilterSensitiveLog = (obj) => ({
|
|
816
|
+
...obj,
|
|
817
|
+
});
|
|
782
818
|
export const SetDesiredCapacityTypeFilterSensitiveLog = (obj) => ({
|
|
783
819
|
...obj,
|
|
784
820
|
});
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { AutoScalingServiceException as __BaseException } from "../models/AutoScalingServiceException";
|
|
5
|
-
import { ActiveInstanceRefreshNotFoundFault, AlreadyExistsFault, InstanceRefreshInProgressFault, InvalidNextToken, LimitExceededFault, ResourceContentionFault, ResourceInUseFault, ScalingActivityInProgressFault, ServiceLinkedRoleFailure, } from "../models/models_0";
|
|
5
|
+
import { ActiveInstanceRefreshNotFoundFault, AlreadyExistsFault, InstanceRefreshInProgressFault, InvalidNextToken, IrreversibleInstanceRefreshFault, LimitExceededFault, ResourceContentionFault, ResourceInUseFault, ScalingActivityInProgressFault, ServiceLinkedRoleFailure, } from "../models/models_0";
|
|
6
6
|
export const serializeAws_queryAttachInstancesCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -673,6 +673,18 @@ export const serializeAws_queryResumeProcessesCommand = async (input, context) =
|
|
|
673
673
|
});
|
|
674
674
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
675
675
|
};
|
|
676
|
+
export const serializeAws_queryRollbackInstanceRefreshCommand = async (input, context) => {
|
|
677
|
+
const headers = {
|
|
678
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
679
|
+
};
|
|
680
|
+
let body;
|
|
681
|
+
body = buildFormUrlencodedString({
|
|
682
|
+
...serializeAws_queryRollbackInstanceRefreshType(input, context),
|
|
683
|
+
Action: "RollbackInstanceRefresh",
|
|
684
|
+
Version: "2011-01-01",
|
|
685
|
+
});
|
|
686
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
687
|
+
};
|
|
676
688
|
export const serializeAws_querySetDesiredCapacityCommand = async (input, context) => {
|
|
677
689
|
const headers = {
|
|
678
690
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -2737,6 +2749,48 @@ const deserializeAws_queryResumeProcessesCommandError = async (output, context)
|
|
|
2737
2749
|
});
|
|
2738
2750
|
}
|
|
2739
2751
|
};
|
|
2752
|
+
export const deserializeAws_queryRollbackInstanceRefreshCommand = async (output, context) => {
|
|
2753
|
+
if (output.statusCode >= 300) {
|
|
2754
|
+
return deserializeAws_queryRollbackInstanceRefreshCommandError(output, context);
|
|
2755
|
+
}
|
|
2756
|
+
const data = await parseBody(output.body, context);
|
|
2757
|
+
let contents = {};
|
|
2758
|
+
contents = deserializeAws_queryRollbackInstanceRefreshAnswer(data.RollbackInstanceRefreshResult, context);
|
|
2759
|
+
const response = {
|
|
2760
|
+
$metadata: deserializeMetadata(output),
|
|
2761
|
+
...contents,
|
|
2762
|
+
};
|
|
2763
|
+
return Promise.resolve(response);
|
|
2764
|
+
};
|
|
2765
|
+
const deserializeAws_queryRollbackInstanceRefreshCommandError = async (output, context) => {
|
|
2766
|
+
const parsedOutput = {
|
|
2767
|
+
...output,
|
|
2768
|
+
body: await parseErrorBody(output.body, context),
|
|
2769
|
+
};
|
|
2770
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2771
|
+
switch (errorCode) {
|
|
2772
|
+
case "ActiveInstanceRefreshNotFound":
|
|
2773
|
+
case "com.amazonaws.autoscaling#ActiveInstanceRefreshNotFoundFault":
|
|
2774
|
+
throw await deserializeAws_queryActiveInstanceRefreshNotFoundFaultResponse(parsedOutput, context);
|
|
2775
|
+
case "IrreversibleInstanceRefresh":
|
|
2776
|
+
case "com.amazonaws.autoscaling#IrreversibleInstanceRefreshFault":
|
|
2777
|
+
throw await deserializeAws_queryIrreversibleInstanceRefreshFaultResponse(parsedOutput, context);
|
|
2778
|
+
case "LimitExceeded":
|
|
2779
|
+
case "com.amazonaws.autoscaling#LimitExceededFault":
|
|
2780
|
+
throw await deserializeAws_queryLimitExceededFaultResponse(parsedOutput, context);
|
|
2781
|
+
case "ResourceContention":
|
|
2782
|
+
case "com.amazonaws.autoscaling#ResourceContentionFault":
|
|
2783
|
+
throw await deserializeAws_queryResourceContentionFaultResponse(parsedOutput, context);
|
|
2784
|
+
default:
|
|
2785
|
+
const parsedBody = parsedOutput.body;
|
|
2786
|
+
throwDefaultError({
|
|
2787
|
+
output,
|
|
2788
|
+
parsedBody: parsedBody.Error,
|
|
2789
|
+
exceptionCtor: __BaseException,
|
|
2790
|
+
errorCode,
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
};
|
|
2740
2794
|
export const deserializeAws_querySetDesiredCapacityCommand = async (output, context) => {
|
|
2741
2795
|
if (output.statusCode >= 300) {
|
|
2742
2796
|
return deserializeAws_querySetDesiredCapacityCommandError(output, context);
|
|
@@ -3016,6 +3070,15 @@ const deserializeAws_queryInvalidNextTokenResponse = async (parsedOutput, contex
|
|
|
3016
3070
|
});
|
|
3017
3071
|
return __decorateServiceException(exception, body);
|
|
3018
3072
|
};
|
|
3073
|
+
const deserializeAws_queryIrreversibleInstanceRefreshFaultResponse = async (parsedOutput, context) => {
|
|
3074
|
+
const body = parsedOutput.body;
|
|
3075
|
+
const deserialized = deserializeAws_queryIrreversibleInstanceRefreshFault(body.Error, context);
|
|
3076
|
+
const exception = new IrreversibleInstanceRefreshFault({
|
|
3077
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3078
|
+
...deserialized,
|
|
3079
|
+
});
|
|
3080
|
+
return __decorateServiceException(exception, body);
|
|
3081
|
+
};
|
|
3019
3082
|
const deserializeAws_queryLimitExceededFaultResponse = async (parsedOutput, context) => {
|
|
3020
3083
|
const body = parsedOutput.body;
|
|
3021
3084
|
const deserialized = deserializeAws_queryLimitExceededFault(body.Error, context);
|
|
@@ -5304,6 +5367,22 @@ const serializeAws_queryRefreshPreferences = (input, context) => {
|
|
|
5304
5367
|
if (input.SkipMatching != null) {
|
|
5305
5368
|
entries["SkipMatching"] = input.SkipMatching;
|
|
5306
5369
|
}
|
|
5370
|
+
if (input.AutoRollback != null) {
|
|
5371
|
+
entries["AutoRollback"] = input.AutoRollback;
|
|
5372
|
+
}
|
|
5373
|
+
if (input.ScaleInProtectedInstances != null) {
|
|
5374
|
+
entries["ScaleInProtectedInstances"] = input.ScaleInProtectedInstances;
|
|
5375
|
+
}
|
|
5376
|
+
if (input.StandbyInstances != null) {
|
|
5377
|
+
entries["StandbyInstances"] = input.StandbyInstances;
|
|
5378
|
+
}
|
|
5379
|
+
return entries;
|
|
5380
|
+
};
|
|
5381
|
+
const serializeAws_queryRollbackInstanceRefreshType = (input, context) => {
|
|
5382
|
+
const entries = {};
|
|
5383
|
+
if (input.AutoScalingGroupName != null) {
|
|
5384
|
+
entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
|
|
5385
|
+
}
|
|
5307
5386
|
return entries;
|
|
5308
5387
|
};
|
|
5309
5388
|
const serializeAws_queryScalingProcessQuery = (input, context) => {
|
|
@@ -6875,6 +6954,7 @@ const deserializeAws_queryInstanceRefresh = (output, context) => {
|
|
|
6875
6954
|
ProgressDetails: undefined,
|
|
6876
6955
|
Preferences: undefined,
|
|
6877
6956
|
DesiredConfiguration: undefined,
|
|
6957
|
+
RollbackDetails: undefined,
|
|
6878
6958
|
};
|
|
6879
6959
|
if (output["InstanceRefreshId"] !== undefined) {
|
|
6880
6960
|
contents.InstanceRefreshId = __expectString(output["InstanceRefreshId"]);
|
|
@@ -6909,6 +6989,9 @@ const deserializeAws_queryInstanceRefresh = (output, context) => {
|
|
|
6909
6989
|
if (output["DesiredConfiguration"] !== undefined) {
|
|
6910
6990
|
contents.DesiredConfiguration = deserializeAws_queryDesiredConfiguration(output["DesiredConfiguration"], context);
|
|
6911
6991
|
}
|
|
6992
|
+
if (output["RollbackDetails"] !== undefined) {
|
|
6993
|
+
contents.RollbackDetails = deserializeAws_queryRollbackDetails(output["RollbackDetails"], context);
|
|
6994
|
+
}
|
|
6912
6995
|
return contents;
|
|
6913
6996
|
};
|
|
6914
6997
|
const deserializeAws_queryInstanceRefreshes = (output, context) => {
|
|
@@ -7142,6 +7225,15 @@ const deserializeAws_queryInvalidNextToken = (output, context) => {
|
|
|
7142
7225
|
}
|
|
7143
7226
|
return contents;
|
|
7144
7227
|
};
|
|
7228
|
+
const deserializeAws_queryIrreversibleInstanceRefreshFault = (output, context) => {
|
|
7229
|
+
const contents = {
|
|
7230
|
+
message: undefined,
|
|
7231
|
+
};
|
|
7232
|
+
if (output["message"] !== undefined) {
|
|
7233
|
+
contents.message = __expectString(output["message"]);
|
|
7234
|
+
}
|
|
7235
|
+
return contents;
|
|
7236
|
+
};
|
|
7145
7237
|
const deserializeAws_queryLaunchConfiguration = (output, context) => {
|
|
7146
7238
|
const contents = {
|
|
7147
7239
|
LaunchConfigurationName: undefined,
|
|
@@ -7921,6 +8013,9 @@ const deserializeAws_queryRefreshPreferences = (output, context) => {
|
|
|
7921
8013
|
CheckpointPercentages: undefined,
|
|
7922
8014
|
CheckpointDelay: undefined,
|
|
7923
8015
|
SkipMatching: undefined,
|
|
8016
|
+
AutoRollback: undefined,
|
|
8017
|
+
ScaleInProtectedInstances: undefined,
|
|
8018
|
+
StandbyInstances: undefined,
|
|
7924
8019
|
};
|
|
7925
8020
|
if (output["MinHealthyPercentage"] !== undefined) {
|
|
7926
8021
|
contents.MinHealthyPercentage = __strictParseInt32(output["MinHealthyPercentage"]);
|
|
@@ -7940,6 +8035,15 @@ const deserializeAws_queryRefreshPreferences = (output, context) => {
|
|
|
7940
8035
|
if (output["SkipMatching"] !== undefined) {
|
|
7941
8036
|
contents.SkipMatching = __parseBoolean(output["SkipMatching"]);
|
|
7942
8037
|
}
|
|
8038
|
+
if (output["AutoRollback"] !== undefined) {
|
|
8039
|
+
contents.AutoRollback = __parseBoolean(output["AutoRollback"]);
|
|
8040
|
+
}
|
|
8041
|
+
if (output["ScaleInProtectedInstances"] !== undefined) {
|
|
8042
|
+
contents.ScaleInProtectedInstances = __expectString(output["ScaleInProtectedInstances"]);
|
|
8043
|
+
}
|
|
8044
|
+
if (output["StandbyInstances"] !== undefined) {
|
|
8045
|
+
contents.StandbyInstances = __expectString(output["StandbyInstances"]);
|
|
8046
|
+
}
|
|
7943
8047
|
return contents;
|
|
7944
8048
|
};
|
|
7945
8049
|
const deserializeAws_queryResourceContentionFault = (output, context) => {
|
|
@@ -7960,6 +8064,40 @@ const deserializeAws_queryResourceInUseFault = (output, context) => {
|
|
|
7960
8064
|
}
|
|
7961
8065
|
return contents;
|
|
7962
8066
|
};
|
|
8067
|
+
const deserializeAws_queryRollbackDetails = (output, context) => {
|
|
8068
|
+
const contents = {
|
|
8069
|
+
RollbackReason: undefined,
|
|
8070
|
+
RollbackStartTime: undefined,
|
|
8071
|
+
PercentageCompleteOnRollback: undefined,
|
|
8072
|
+
InstancesToUpdateOnRollback: undefined,
|
|
8073
|
+
ProgressDetailsOnRollback: undefined,
|
|
8074
|
+
};
|
|
8075
|
+
if (output["RollbackReason"] !== undefined) {
|
|
8076
|
+
contents.RollbackReason = __expectString(output["RollbackReason"]);
|
|
8077
|
+
}
|
|
8078
|
+
if (output["RollbackStartTime"] !== undefined) {
|
|
8079
|
+
contents.RollbackStartTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["RollbackStartTime"]));
|
|
8080
|
+
}
|
|
8081
|
+
if (output["PercentageCompleteOnRollback"] !== undefined) {
|
|
8082
|
+
contents.PercentageCompleteOnRollback = __strictParseInt32(output["PercentageCompleteOnRollback"]);
|
|
8083
|
+
}
|
|
8084
|
+
if (output["InstancesToUpdateOnRollback"] !== undefined) {
|
|
8085
|
+
contents.InstancesToUpdateOnRollback = __strictParseInt32(output["InstancesToUpdateOnRollback"]);
|
|
8086
|
+
}
|
|
8087
|
+
if (output["ProgressDetailsOnRollback"] !== undefined) {
|
|
8088
|
+
contents.ProgressDetailsOnRollback = deserializeAws_queryInstanceRefreshProgressDetails(output["ProgressDetailsOnRollback"], context);
|
|
8089
|
+
}
|
|
8090
|
+
return contents;
|
|
8091
|
+
};
|
|
8092
|
+
const deserializeAws_queryRollbackInstanceRefreshAnswer = (output, context) => {
|
|
8093
|
+
const contents = {
|
|
8094
|
+
InstanceRefreshId: undefined,
|
|
8095
|
+
};
|
|
8096
|
+
if (output["InstanceRefreshId"] !== undefined) {
|
|
8097
|
+
contents.InstanceRefreshId = __expectString(output["InstanceRefreshId"]);
|
|
8098
|
+
}
|
|
8099
|
+
return contents;
|
|
8100
|
+
};
|
|
7963
8101
|
const deserializeAws_queryScalingActivityInProgressFault = (output, context) => {
|
|
7964
8102
|
const contents = {
|
|
7965
8103
|
message: undefined,
|
|
@@ -57,6 +57,7 @@ import { PutScheduledUpdateGroupActionCommandInput, PutScheduledUpdateGroupActio
|
|
|
57
57
|
import { PutWarmPoolCommandInput, PutWarmPoolCommandOutput } from "./commands/PutWarmPoolCommand";
|
|
58
58
|
import { RecordLifecycleActionHeartbeatCommandInput, RecordLifecycleActionHeartbeatCommandOutput } from "./commands/RecordLifecycleActionHeartbeatCommand";
|
|
59
59
|
import { ResumeProcessesCommandInput, ResumeProcessesCommandOutput } from "./commands/ResumeProcessesCommand";
|
|
60
|
+
import { RollbackInstanceRefreshCommandInput, RollbackInstanceRefreshCommandOutput } from "./commands/RollbackInstanceRefreshCommand";
|
|
60
61
|
import { SetDesiredCapacityCommandInput, SetDesiredCapacityCommandOutput } from "./commands/SetDesiredCapacityCommand";
|
|
61
62
|
import { SetInstanceHealthCommandInput, SetInstanceHealthCommandOutput } from "./commands/SetInstanceHealthCommand";
|
|
62
63
|
import { SetInstanceProtectionCommandInput, SetInstanceProtectionCommandOutput } from "./commands/SetInstanceProtectionCommand";
|
|
@@ -157,12 +158,14 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
157
158
|
batchPutScheduledUpdateGroupAction(args: BatchPutScheduledUpdateGroupActionCommandInput, cb: (err: any, data?: BatchPutScheduledUpdateGroupActionCommandOutput) => void): void;
|
|
158
159
|
batchPutScheduledUpdateGroupAction(args: BatchPutScheduledUpdateGroupActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutScheduledUpdateGroupActionCommandOutput) => void): void;
|
|
159
160
|
/**
|
|
160
|
-
* <p>Cancels an instance refresh
|
|
161
|
-
*
|
|
162
|
-
*
|
|
161
|
+
* <p>Cancels an instance refresh or rollback that is in progress. If an instance refresh or
|
|
162
|
+
* rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error
|
|
163
|
+
* occurs.</p>
|
|
163
164
|
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
164
165
|
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
|
|
165
166
|
* after you make configuration changes.</p>
|
|
167
|
+
* <p>When you cancel an instance refresh, this does not roll back any changes that it made.
|
|
168
|
+
* Use the <a>RollbackInstanceRefresh</a> API to roll back instead.</p>
|
|
166
169
|
*/
|
|
167
170
|
cancelInstanceRefresh(args: CancelInstanceRefreshCommandInput, options?: __HttpHandlerOptions): Promise<CancelInstanceRefreshCommandOutput>;
|
|
168
171
|
cancelInstanceRefresh(args: CancelInstanceRefreshCommandInput, cb: (err: any, data?: CancelInstanceRefreshCommandOutput) => void): void;
|
|
@@ -399,41 +402,12 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
399
402
|
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
400
403
|
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
|
|
401
404
|
* after you make configuration changes.</p>
|
|
402
|
-
* <p>To help you determine the status of an instance refresh,
|
|
403
|
-
*
|
|
404
|
-
*
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
* <li>
|
|
409
|
-
* <p>
|
|
410
|
-
* <code>Pending</code> - The request was created, but the operation has not
|
|
411
|
-
* started.</p>
|
|
412
|
-
* </li>
|
|
413
|
-
* <li>
|
|
414
|
-
* <p>
|
|
415
|
-
* <code>InProgress</code> - The operation is in progress.</p>
|
|
416
|
-
* </li>
|
|
417
|
-
* <li>
|
|
418
|
-
* <p>
|
|
419
|
-
* <code>Successful</code> - The operation completed successfully.</p>
|
|
420
|
-
* </li>
|
|
421
|
-
* <li>
|
|
422
|
-
* <p>
|
|
423
|
-
* <code>Failed</code> - The operation failed to complete. You can troubleshoot
|
|
424
|
-
* using the status reason and the scaling activities. </p>
|
|
425
|
-
* </li>
|
|
426
|
-
* <li>
|
|
427
|
-
* <p>
|
|
428
|
-
* <code>Cancelling</code> - An ongoing operation is being cancelled.
|
|
429
|
-
* Cancellation does not roll back any replacements that have already been
|
|
430
|
-
* completed, but it prevents new replacements from being started. </p>
|
|
431
|
-
* </li>
|
|
432
|
-
* <li>
|
|
433
|
-
* <p>
|
|
434
|
-
* <code>Cancelled</code> - The operation is cancelled. </p>
|
|
435
|
-
* </li>
|
|
436
|
-
* </ul>
|
|
405
|
+
* <p>To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns information
|
|
406
|
+
* about the instance refreshes you previously initiated, including their status, start
|
|
407
|
+
* time, end time, the percentage of the instance refresh that is complete, and the number
|
|
408
|
+
* of instances remaining to update before the instance refresh is complete. If a rollback
|
|
409
|
+
* is initiated while an instance refresh is in progress, Amazon EC2 Auto Scaling also returns information
|
|
410
|
+
* about the rollback of the instance refresh.</p>
|
|
437
411
|
*/
|
|
438
412
|
describeInstanceRefreshes(args: DescribeInstanceRefreshesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeInstanceRefreshesCommandOutput>;
|
|
439
413
|
describeInstanceRefreshes(args: DescribeInstanceRefreshesCommandInput, cb: (err: any, data?: DescribeInstanceRefreshesCommandOutput) => void): void;
|
|
@@ -887,6 +861,34 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
887
861
|
resumeProcesses(args: ResumeProcessesCommandInput, options?: __HttpHandlerOptions): Promise<ResumeProcessesCommandOutput>;
|
|
888
862
|
resumeProcesses(args: ResumeProcessesCommandInput, cb: (err: any, data?: ResumeProcessesCommandOutput) => void): void;
|
|
889
863
|
resumeProcesses(args: ResumeProcessesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResumeProcessesCommandOutput) => void): void;
|
|
864
|
+
/**
|
|
865
|
+
* <p>Cancels an instance refresh that is in progress and rolls back any changes that it
|
|
866
|
+
* made. Amazon EC2 Auto Scaling replaces any instances that were replaced during the instance refresh.
|
|
867
|
+
* This restores your Auto Scaling group to the configuration that it was using before the start of
|
|
868
|
+
* the instance refresh. </p>
|
|
869
|
+
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
870
|
+
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
|
|
871
|
+
* after you make configuration changes.</p>
|
|
872
|
+
* <p>A rollback is not supported in the following situations: </p>
|
|
873
|
+
* <ul>
|
|
874
|
+
* <li>
|
|
875
|
+
* <p>There is no desired configuration specified for the instance refresh.</p>
|
|
876
|
+
* </li>
|
|
877
|
+
* <li>
|
|
878
|
+
* <p>The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager
|
|
879
|
+
* parameter instead of an AMI ID for the <code>ImageId</code> property.</p>
|
|
880
|
+
* </li>
|
|
881
|
+
* <li>
|
|
882
|
+
* <p>The Auto Scaling group uses the launch template's <code>$Latest</code> or
|
|
883
|
+
* <code>$Default</code> version.</p>
|
|
884
|
+
* </li>
|
|
885
|
+
* </ul>
|
|
886
|
+
* <p>When you receive a successful response from this operation, Amazon EC2 Auto Scaling immediately
|
|
887
|
+
* begins replacing instances. You can check the status of this operation through the <a>DescribeInstanceRefreshes</a> API operation. </p>
|
|
888
|
+
*/
|
|
889
|
+
rollbackInstanceRefresh(args: RollbackInstanceRefreshCommandInput, options?: __HttpHandlerOptions): Promise<RollbackInstanceRefreshCommandOutput>;
|
|
890
|
+
rollbackInstanceRefresh(args: RollbackInstanceRefreshCommandInput, cb: (err: any, data?: RollbackInstanceRefreshCommandOutput) => void): void;
|
|
891
|
+
rollbackInstanceRefresh(args: RollbackInstanceRefreshCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RollbackInstanceRefreshCommandOutput) => void): void;
|
|
890
892
|
/**
|
|
891
893
|
* <p>Sets the size of the specified Auto Scaling group.</p>
|
|
892
894
|
* <p>If a scale-in activity occurs as a result of a new <code>DesiredCapacity</code> value
|
|
@@ -920,21 +922,30 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
920
922
|
setInstanceProtection(args: SetInstanceProtectionCommandInput, cb: (err: any, data?: SetInstanceProtectionCommandOutput) => void): void;
|
|
921
923
|
setInstanceProtection(args: SetInstanceProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetInstanceProtectionCommandOutput) => void): void;
|
|
922
924
|
/**
|
|
923
|
-
* <p>Starts
|
|
924
|
-
*
|
|
925
|
-
*
|
|
926
|
-
* group.</p>
|
|
925
|
+
* <p>Starts an instance refresh. During an instance refresh, Amazon EC2 Auto Scaling performs a rolling
|
|
926
|
+
* update of instances in an Auto Scaling group. Instances are terminated first and then replaced,
|
|
927
|
+
* which temporarily reduces the capacity available within your Auto Scaling group.</p>
|
|
927
928
|
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
928
929
|
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group.
|
|
929
930
|
* This feature is helpful, for example, when you have a new AMI or a new user data script.
|
|
930
931
|
* You just need to create a new launch template that specifies the new AMI or user data
|
|
931
932
|
* script. Then start an instance refresh to immediately begin the process of updating
|
|
932
933
|
* instances in the group. </p>
|
|
933
|
-
* <p>If the
|
|
934
|
-
*
|
|
934
|
+
* <p>If successful, the request's response contains a unique ID that you can use to track
|
|
935
|
+
* the progress of the instance refresh. To query its status, call the <a>DescribeInstanceRefreshes</a> API. To describe the instance refreshes that
|
|
935
936
|
* have already run, call the <a>DescribeInstanceRefreshes</a> API. To cancel an
|
|
936
|
-
* instance refresh
|
|
937
|
+
* instance refresh that is in progress, use the <a>CancelInstanceRefresh</a>
|
|
937
938
|
* API. </p>
|
|
939
|
+
* <p>An instance refresh might fail for several reasons, such as EC2 launch failures,
|
|
940
|
+
* misconfigured health checks, or not ignoring or allowing the termination of instances
|
|
941
|
+
* that are in <code>Standby</code> state or protected from scale in. You can monitor for
|
|
942
|
+
* failed EC2 launches using the scaling activities. To find the scaling activities, call
|
|
943
|
+
* the <a>DescribeScalingActivities</a> API.</p>
|
|
944
|
+
* <p>If you enable auto rollback, your Auto Scaling group will be rolled back automatically when
|
|
945
|
+
* the instance refresh fails. You can enable this feature before starting an instance
|
|
946
|
+
* refresh by specifying the <code>AutoRollback</code> property in the instance refresh
|
|
947
|
+
* preferences. Otherwise, to roll back an instance refresh before it finishes, use the
|
|
948
|
+
* <a>RollbackInstanceRefresh</a> API. </p>
|
|
938
949
|
*/
|
|
939
950
|
startInstanceRefresh(args: StartInstanceRefreshCommandInput, options?: __HttpHandlerOptions): Promise<StartInstanceRefreshCommandOutput>;
|
|
940
951
|
startInstanceRefresh(args: StartInstanceRefreshCommandInput, cb: (err: any, data?: StartInstanceRefreshCommandOutput) => void): void;
|
|
@@ -64,6 +64,7 @@ import { PutScheduledUpdateGroupActionCommandInput, PutScheduledUpdateGroupActio
|
|
|
64
64
|
import { PutWarmPoolCommandInput, PutWarmPoolCommandOutput } from "./commands/PutWarmPoolCommand";
|
|
65
65
|
import { RecordLifecycleActionHeartbeatCommandInput, RecordLifecycleActionHeartbeatCommandOutput } from "./commands/RecordLifecycleActionHeartbeatCommand";
|
|
66
66
|
import { ResumeProcessesCommandInput, ResumeProcessesCommandOutput } from "./commands/ResumeProcessesCommand";
|
|
67
|
+
import { RollbackInstanceRefreshCommandInput, RollbackInstanceRefreshCommandOutput } from "./commands/RollbackInstanceRefreshCommand";
|
|
67
68
|
import { SetDesiredCapacityCommandInput, SetDesiredCapacityCommandOutput } from "./commands/SetDesiredCapacityCommand";
|
|
68
69
|
import { SetInstanceHealthCommandInput, SetInstanceHealthCommandOutput } from "./commands/SetInstanceHealthCommand";
|
|
69
70
|
import { SetInstanceProtectionCommandInput, SetInstanceProtectionCommandOutput } from "./commands/SetInstanceProtectionCommand";
|
|
@@ -72,8 +73,8 @@ import { SuspendProcessesCommandInput, SuspendProcessesCommandOutput } from "./c
|
|
|
72
73
|
import { TerminateInstanceInAutoScalingGroupCommandInput, TerminateInstanceInAutoScalingGroupCommandOutput } from "./commands/TerminateInstanceInAutoScalingGroupCommand";
|
|
73
74
|
import { UpdateAutoScalingGroupCommandInput, UpdateAutoScalingGroupCommandOutput } from "./commands/UpdateAutoScalingGroupCommand";
|
|
74
75
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
75
|
-
export declare type ServiceInputTypes = AttachInstancesCommandInput | AttachLoadBalancerTargetGroupsCommandInput | AttachLoadBalancersCommandInput | AttachTrafficSourcesCommandInput | BatchDeleteScheduledActionCommandInput | BatchPutScheduledUpdateGroupActionCommandInput | CancelInstanceRefreshCommandInput | CompleteLifecycleActionCommandInput | CreateAutoScalingGroupCommandInput | CreateLaunchConfigurationCommandInput | CreateOrUpdateTagsCommandInput | DeleteAutoScalingGroupCommandInput | DeleteLaunchConfigurationCommandInput | DeleteLifecycleHookCommandInput | DeleteNotificationConfigurationCommandInput | DeletePolicyCommandInput | DeleteScheduledActionCommandInput | DeleteTagsCommandInput | DeleteWarmPoolCommandInput | DescribeAccountLimitsCommandInput | DescribeAdjustmentTypesCommandInput | DescribeAutoScalingGroupsCommandInput | DescribeAutoScalingInstancesCommandInput | DescribeAutoScalingNotificationTypesCommandInput | DescribeInstanceRefreshesCommandInput | DescribeLaunchConfigurationsCommandInput | DescribeLifecycleHookTypesCommandInput | DescribeLifecycleHooksCommandInput | DescribeLoadBalancerTargetGroupsCommandInput | DescribeLoadBalancersCommandInput | DescribeMetricCollectionTypesCommandInput | DescribeNotificationConfigurationsCommandInput | DescribePoliciesCommandInput | DescribeScalingActivitiesCommandInput | DescribeScalingProcessTypesCommandInput | DescribeScheduledActionsCommandInput | DescribeTagsCommandInput | DescribeTerminationPolicyTypesCommandInput | DescribeTrafficSourcesCommandInput | DescribeWarmPoolCommandInput | DetachInstancesCommandInput | DetachLoadBalancerTargetGroupsCommandInput | DetachLoadBalancersCommandInput | DetachTrafficSourcesCommandInput | DisableMetricsCollectionCommandInput | EnableMetricsCollectionCommandInput | EnterStandbyCommandInput | ExecutePolicyCommandInput | ExitStandbyCommandInput | GetPredictiveScalingForecastCommandInput | PutLifecycleHookCommandInput | PutNotificationConfigurationCommandInput | PutScalingPolicyCommandInput | PutScheduledUpdateGroupActionCommandInput | PutWarmPoolCommandInput | RecordLifecycleActionHeartbeatCommandInput | ResumeProcessesCommandInput | SetDesiredCapacityCommandInput | SetInstanceHealthCommandInput | SetInstanceProtectionCommandInput | StartInstanceRefreshCommandInput | SuspendProcessesCommandInput | TerminateInstanceInAutoScalingGroupCommandInput | UpdateAutoScalingGroupCommandInput;
|
|
76
|
-
export declare type ServiceOutputTypes = AttachInstancesCommandOutput | AttachLoadBalancerTargetGroupsCommandOutput | AttachLoadBalancersCommandOutput | AttachTrafficSourcesCommandOutput | BatchDeleteScheduledActionCommandOutput | BatchPutScheduledUpdateGroupActionCommandOutput | CancelInstanceRefreshCommandOutput | CompleteLifecycleActionCommandOutput | CreateAutoScalingGroupCommandOutput | CreateLaunchConfigurationCommandOutput | CreateOrUpdateTagsCommandOutput | DeleteAutoScalingGroupCommandOutput | DeleteLaunchConfigurationCommandOutput | DeleteLifecycleHookCommandOutput | DeleteNotificationConfigurationCommandOutput | DeletePolicyCommandOutput | DeleteScheduledActionCommandOutput | DeleteTagsCommandOutput | DeleteWarmPoolCommandOutput | DescribeAccountLimitsCommandOutput | DescribeAdjustmentTypesCommandOutput | DescribeAutoScalingGroupsCommandOutput | DescribeAutoScalingInstancesCommandOutput | DescribeAutoScalingNotificationTypesCommandOutput | DescribeInstanceRefreshesCommandOutput | DescribeLaunchConfigurationsCommandOutput | DescribeLifecycleHookTypesCommandOutput | DescribeLifecycleHooksCommandOutput | DescribeLoadBalancerTargetGroupsCommandOutput | DescribeLoadBalancersCommandOutput | DescribeMetricCollectionTypesCommandOutput | DescribeNotificationConfigurationsCommandOutput | DescribePoliciesCommandOutput | DescribeScalingActivitiesCommandOutput | DescribeScalingProcessTypesCommandOutput | DescribeScheduledActionsCommandOutput | DescribeTagsCommandOutput | DescribeTerminationPolicyTypesCommandOutput | DescribeTrafficSourcesCommandOutput | DescribeWarmPoolCommandOutput | DetachInstancesCommandOutput | DetachLoadBalancerTargetGroupsCommandOutput | DetachLoadBalancersCommandOutput | DetachTrafficSourcesCommandOutput | DisableMetricsCollectionCommandOutput | EnableMetricsCollectionCommandOutput | EnterStandbyCommandOutput | ExecutePolicyCommandOutput | ExitStandbyCommandOutput | GetPredictiveScalingForecastCommandOutput | PutLifecycleHookCommandOutput | PutNotificationConfigurationCommandOutput | PutScalingPolicyCommandOutput | PutScheduledUpdateGroupActionCommandOutput | PutWarmPoolCommandOutput | RecordLifecycleActionHeartbeatCommandOutput | ResumeProcessesCommandOutput | SetDesiredCapacityCommandOutput | SetInstanceHealthCommandOutput | SetInstanceProtectionCommandOutput | StartInstanceRefreshCommandOutput | SuspendProcessesCommandOutput | TerminateInstanceInAutoScalingGroupCommandOutput | UpdateAutoScalingGroupCommandOutput;
|
|
76
|
+
export declare type ServiceInputTypes = AttachInstancesCommandInput | AttachLoadBalancerTargetGroupsCommandInput | AttachLoadBalancersCommandInput | AttachTrafficSourcesCommandInput | BatchDeleteScheduledActionCommandInput | BatchPutScheduledUpdateGroupActionCommandInput | CancelInstanceRefreshCommandInput | CompleteLifecycleActionCommandInput | CreateAutoScalingGroupCommandInput | CreateLaunchConfigurationCommandInput | CreateOrUpdateTagsCommandInput | DeleteAutoScalingGroupCommandInput | DeleteLaunchConfigurationCommandInput | DeleteLifecycleHookCommandInput | DeleteNotificationConfigurationCommandInput | DeletePolicyCommandInput | DeleteScheduledActionCommandInput | DeleteTagsCommandInput | DeleteWarmPoolCommandInput | DescribeAccountLimitsCommandInput | DescribeAdjustmentTypesCommandInput | DescribeAutoScalingGroupsCommandInput | DescribeAutoScalingInstancesCommandInput | DescribeAutoScalingNotificationTypesCommandInput | DescribeInstanceRefreshesCommandInput | DescribeLaunchConfigurationsCommandInput | DescribeLifecycleHookTypesCommandInput | DescribeLifecycleHooksCommandInput | DescribeLoadBalancerTargetGroupsCommandInput | DescribeLoadBalancersCommandInput | DescribeMetricCollectionTypesCommandInput | DescribeNotificationConfigurationsCommandInput | DescribePoliciesCommandInput | DescribeScalingActivitiesCommandInput | DescribeScalingProcessTypesCommandInput | DescribeScheduledActionsCommandInput | DescribeTagsCommandInput | DescribeTerminationPolicyTypesCommandInput | DescribeTrafficSourcesCommandInput | DescribeWarmPoolCommandInput | DetachInstancesCommandInput | DetachLoadBalancerTargetGroupsCommandInput | DetachLoadBalancersCommandInput | DetachTrafficSourcesCommandInput | DisableMetricsCollectionCommandInput | EnableMetricsCollectionCommandInput | EnterStandbyCommandInput | ExecutePolicyCommandInput | ExitStandbyCommandInput | GetPredictiveScalingForecastCommandInput | PutLifecycleHookCommandInput | PutNotificationConfigurationCommandInput | PutScalingPolicyCommandInput | PutScheduledUpdateGroupActionCommandInput | PutWarmPoolCommandInput | RecordLifecycleActionHeartbeatCommandInput | ResumeProcessesCommandInput | RollbackInstanceRefreshCommandInput | SetDesiredCapacityCommandInput | SetInstanceHealthCommandInput | SetInstanceProtectionCommandInput | StartInstanceRefreshCommandInput | SuspendProcessesCommandInput | TerminateInstanceInAutoScalingGroupCommandInput | UpdateAutoScalingGroupCommandInput;
|
|
77
|
+
export declare type ServiceOutputTypes = AttachInstancesCommandOutput | AttachLoadBalancerTargetGroupsCommandOutput | AttachLoadBalancersCommandOutput | AttachTrafficSourcesCommandOutput | BatchDeleteScheduledActionCommandOutput | BatchPutScheduledUpdateGroupActionCommandOutput | CancelInstanceRefreshCommandOutput | CompleteLifecycleActionCommandOutput | CreateAutoScalingGroupCommandOutput | CreateLaunchConfigurationCommandOutput | CreateOrUpdateTagsCommandOutput | DeleteAutoScalingGroupCommandOutput | DeleteLaunchConfigurationCommandOutput | DeleteLifecycleHookCommandOutput | DeleteNotificationConfigurationCommandOutput | DeletePolicyCommandOutput | DeleteScheduledActionCommandOutput | DeleteTagsCommandOutput | DeleteWarmPoolCommandOutput | DescribeAccountLimitsCommandOutput | DescribeAdjustmentTypesCommandOutput | DescribeAutoScalingGroupsCommandOutput | DescribeAutoScalingInstancesCommandOutput | DescribeAutoScalingNotificationTypesCommandOutput | DescribeInstanceRefreshesCommandOutput | DescribeLaunchConfigurationsCommandOutput | DescribeLifecycleHookTypesCommandOutput | DescribeLifecycleHooksCommandOutput | DescribeLoadBalancerTargetGroupsCommandOutput | DescribeLoadBalancersCommandOutput | DescribeMetricCollectionTypesCommandOutput | DescribeNotificationConfigurationsCommandOutput | DescribePoliciesCommandOutput | DescribeScalingActivitiesCommandOutput | DescribeScalingProcessTypesCommandOutput | DescribeScheduledActionsCommandOutput | DescribeTagsCommandOutput | DescribeTerminationPolicyTypesCommandOutput | DescribeTrafficSourcesCommandOutput | DescribeWarmPoolCommandOutput | DetachInstancesCommandOutput | DetachLoadBalancerTargetGroupsCommandOutput | DetachLoadBalancersCommandOutput | DetachTrafficSourcesCommandOutput | DisableMetricsCollectionCommandOutput | EnableMetricsCollectionCommandOutput | EnterStandbyCommandOutput | ExecutePolicyCommandOutput | ExitStandbyCommandOutput | GetPredictiveScalingForecastCommandOutput | PutLifecycleHookCommandOutput | PutNotificationConfigurationCommandOutput | PutScalingPolicyCommandOutput | PutScheduledUpdateGroupActionCommandOutput | PutWarmPoolCommandOutput | RecordLifecycleActionHeartbeatCommandOutput | ResumeProcessesCommandOutput | RollbackInstanceRefreshCommandOutput | SetDesiredCapacityCommandOutput | SetInstanceHealthCommandOutput | SetInstanceProtectionCommandOutput | StartInstanceRefreshCommandOutput | SuspendProcessesCommandOutput | TerminateInstanceInAutoScalingGroupCommandOutput | UpdateAutoScalingGroupCommandOutput;
|
|
77
78
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
78
79
|
/**
|
|
79
80
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -131,17 +132,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
131
132
|
*/
|
|
132
133
|
disableHostPrefix?: boolean;
|
|
133
134
|
/**
|
|
134
|
-
*
|
|
135
|
-
|
|
136
|
-
maxAttempts?: number | __Provider<number>;
|
|
137
|
-
/**
|
|
138
|
-
* Specifies which retry algorithm to use.
|
|
139
|
-
*/
|
|
140
|
-
retryMode?: string | __Provider<string>;
|
|
141
|
-
/**
|
|
142
|
-
* Optional logger for logging debug/info/warn/error.
|
|
135
|
+
* Unique service identifier.
|
|
136
|
+
* @internal
|
|
143
137
|
*/
|
|
144
|
-
|
|
138
|
+
serviceId?: string;
|
|
145
139
|
/**
|
|
146
140
|
* Enables IPv6/IPv4 dualstack endpoint.
|
|
147
141
|
*/
|
|
@@ -150,11 +144,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
150
144
|
* Enables FIPS compatible endpoints.
|
|
151
145
|
*/
|
|
152
146
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
153
|
-
/**
|
|
154
|
-
* Unique service identifier.
|
|
155
|
-
* @internal
|
|
156
|
-
*/
|
|
157
|
-
serviceId?: string;
|
|
158
147
|
/**
|
|
159
148
|
* The AWS region to which this client will send requests
|
|
160
149
|
*/
|
|
@@ -169,6 +158,18 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
169
158
|
* @internal
|
|
170
159
|
*/
|
|
171
160
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
161
|
+
/**
|
|
162
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
163
|
+
*/
|
|
164
|
+
maxAttempts?: number | __Provider<number>;
|
|
165
|
+
/**
|
|
166
|
+
* Specifies which retry algorithm to use.
|
|
167
|
+
*/
|
|
168
|
+
retryMode?: string | __Provider<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Optional logger for logging debug/info/warn/error.
|
|
171
|
+
*/
|
|
172
|
+
logger?: __Logger;
|
|
172
173
|
/**
|
|
173
174
|
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
174
175
|
*/
|
|
@@ -8,12 +8,14 @@ export interface CancelInstanceRefreshCommandInput extends CancelInstanceRefresh
|
|
|
8
8
|
export interface CancelInstanceRefreshCommandOutput extends CancelInstanceRefreshAnswer, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Cancels an instance refresh
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* <p>Cancels an instance refresh or rollback that is in progress. If an instance refresh or
|
|
12
|
+
* rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error
|
|
13
|
+
* occurs.</p>
|
|
14
14
|
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
15
15
|
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
|
|
16
16
|
* after you make configuration changes.</p>
|
|
17
|
+
* <p>When you cancel an instance refresh, this does not roll back any changes that it made.
|
|
18
|
+
* Use the <a>RollbackInstanceRefresh</a> API to roll back instead.</p>
|
|
17
19
|
* @example
|
|
18
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
19
21
|
* ```javascript
|
|
@@ -12,41 +12,12 @@ export interface DescribeInstanceRefreshesCommandOutput extends DescribeInstance
|
|
|
12
12
|
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
|
|
13
13
|
* feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
|
|
14
14
|
* after you make configuration changes.</p>
|
|
15
|
-
* <p>To help you determine the status of an instance refresh,
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>
|
|
23
|
-
* <code>Pending</code> - The request was created, but the operation has not
|
|
24
|
-
* started.</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>
|
|
28
|
-
* <code>InProgress</code> - The operation is in progress.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>
|
|
32
|
-
* <code>Successful</code> - The operation completed successfully.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>
|
|
36
|
-
* <code>Failed</code> - The operation failed to complete. You can troubleshoot
|
|
37
|
-
* using the status reason and the scaling activities. </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>
|
|
41
|
-
* <code>Cancelling</code> - An ongoing operation is being cancelled.
|
|
42
|
-
* Cancellation does not roll back any replacements that have already been
|
|
43
|
-
* completed, but it prevents new replacements from being started. </p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>
|
|
47
|
-
* <code>Cancelled</code> - The operation is cancelled. </p>
|
|
48
|
-
* </li>
|
|
49
|
-
* </ul>
|
|
15
|
+
* <p>To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns information
|
|
16
|
+
* about the instance refreshes you previously initiated, including their status, start
|
|
17
|
+
* time, end time, the percentage of the instance refresh that is complete, and the number
|
|
18
|
+
* of instances remaining to update before the instance refresh is complete. If a rollback
|
|
19
|
+
* is initiated while an instance refresh is in progress, Amazon EC2 Auto Scaling also returns information
|
|
20
|
+
* about the rollback of the instance refresh.</p>
|
|
50
21
|
* @example
|
|
51
22
|
* Use a bare-bones client and the command you need to make an API call.
|
|
52
23
|
* ```javascript
|