@aws-sdk/client-auto-scaling 3.933.0 → 3.935.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/README.md +8 -0
- package/dist-cjs/index.js +290 -182
- package/dist-es/AutoScaling.js +2 -0
- package/dist-es/commands/LaunchInstancesCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +187 -0
- package/dist-es/models/errors.js +135 -0
- package/dist-es/models/models_0.js +1 -304
- package/dist-es/schemas/schemas_0.js +77 -1
- package/dist-types/AutoScaling.d.ts +7 -0
- package/dist-types/AutoScalingClient.d.ts +3 -2
- package/dist-types/commands/LaunchInstancesCommand.d.ts +120 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +427 -0
- package/dist-types/models/errors.d.ts +147 -0
- package/dist-types/models/models_0.d.ts +196 -549
- package/dist-types/schemas/schemas_0.d.ts +11 -0
- package/dist-types/ts3.4/AutoScaling.d.ts +17 -0
- package/dist-types/ts3.4/AutoScalingClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/LaunchInstancesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +242 -0
- package/dist-types/ts3.4/models/errors.d.ts +81 -0
- package/dist-types/ts3.4/models/models_0.d.ts +64 -307
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -45,7 +45,9 @@ const _ATd = "AdjustmentType";
|
|
|
45
45
|
const _ATdj = "AdjustmentTypes";
|
|
46
46
|
const _AZ = "AvailabilityZones";
|
|
47
47
|
const _AZD = "AvailabilityZoneDistribution";
|
|
48
|
+
const _AZI = "AvailabilityZoneId";
|
|
48
49
|
const _AZIP = "AvailabilityZoneImpairmentPolicy";
|
|
50
|
+
const _AZIv = "AvailabilityZoneIds";
|
|
49
51
|
const _AZv = "AvailabilityZone";
|
|
50
52
|
const _Ac = "Activity";
|
|
51
53
|
const _Al = "Alarm";
|
|
@@ -98,6 +100,7 @@ const _CRS = "CapacityReservationSpecification";
|
|
|
98
100
|
const _CRT = "CapacityReservationTarget";
|
|
99
101
|
const _CSMS = "CustomizedScalingMetricSpecification";
|
|
100
102
|
const _CT = "CreatedTime";
|
|
103
|
+
const _CTl = "ClientToken";
|
|
101
104
|
const _Co = "Context";
|
|
102
105
|
const _Coo = "Cooldown";
|
|
103
106
|
const _Cp = "Cpu";
|
|
@@ -211,6 +214,7 @@ const _ESx = "ExitStandby";
|
|
|
211
214
|
const _ET = "EndTime";
|
|
212
215
|
const _En = "Encrypted";
|
|
213
216
|
const _Ena = "Enabled";
|
|
217
|
+
const _Er = "Errors";
|
|
214
218
|
const _Ex = "Expression";
|
|
215
219
|
const _F = "Filters";
|
|
216
220
|
const _FD = "ForceDelete";
|
|
@@ -234,6 +238,8 @@ const _HS = "HealthStatus";
|
|
|
234
238
|
const _HT = "HttpTokens";
|
|
235
239
|
const _HTe = "HeartbeatTimeout";
|
|
236
240
|
const _I = "Instances";
|
|
241
|
+
const _IC = "InstanceCollection";
|
|
242
|
+
const _ICn = "InstanceCollections";
|
|
237
243
|
const _ID = "InstancesDistribution";
|
|
238
244
|
const _IDG = "IncludeDeletedGroups";
|
|
239
245
|
const _IF = "InstanceFamily";
|
|
@@ -248,6 +254,7 @@ const _IM = "InstanceMonitoring";
|
|
|
248
254
|
const _IMO = "InstanceMetadataOptions";
|
|
249
255
|
const _IMP = "InstanceMaintenancePolicy";
|
|
250
256
|
const _INT = "InvalidNextToken";
|
|
257
|
+
const _IPME = "IdempotentParameterMismatchError";
|
|
251
258
|
const _IR = "InstanceRefreshes";
|
|
252
259
|
const _IRI = "InstanceRefreshId";
|
|
253
260
|
const _IRIPF = "InstanceRefreshInProgressFault";
|
|
@@ -301,6 +308,11 @@ const _LHSL = "LifecycleHookSpecificationList";
|
|
|
301
308
|
const _LHSi = "LifecycleHookSpecifications";
|
|
302
309
|
const _LHT = "LifecycleHookTypes";
|
|
303
310
|
const _LHi = "LifecycleHook";
|
|
311
|
+
const _LI = "LaunchInstances";
|
|
312
|
+
const _LIE = "LaunchInstancesError";
|
|
313
|
+
const _LIEa = "LaunchInstancesErrors";
|
|
314
|
+
const _LIR = "LaunchInstancesRequest";
|
|
315
|
+
const _LIRa = "LaunchInstancesResult";
|
|
304
316
|
const _LPP = "LivePoolProgress";
|
|
305
317
|
const _LS = "LifecycleState";
|
|
306
318
|
const _LST = "LocalStorageTypes";
|
|
@@ -347,9 +359,11 @@ const _MSa = "MaxSize";
|
|
|
347
359
|
const _MSe = "MetricSpecification";
|
|
348
360
|
const _MSet = "MetricStat";
|
|
349
361
|
const _MSetr = "MetricSpecifications";
|
|
362
|
+
const _MT = "MarketType";
|
|
350
363
|
const _MV = "MetricValue";
|
|
351
364
|
const _Ma = "Max";
|
|
352
365
|
const _Me = "Metrics";
|
|
366
|
+
const _Mes = "Message";
|
|
353
367
|
const _Met = "Metric";
|
|
354
368
|
const _Mo = "Mode";
|
|
355
369
|
const _N = "Namespace";
|
|
@@ -428,6 +442,7 @@ const _Pr = "Preferences";
|
|
|
428
442
|
const _Pro = "Processes";
|
|
429
443
|
const _R = "References";
|
|
430
444
|
const _RARN = "RoleARN";
|
|
445
|
+
const _RC = "RequestedCapacity";
|
|
431
446
|
const _RCF = "ResourceContentionFault";
|
|
432
447
|
const _RD = "RollbackDetails";
|
|
433
448
|
const _RDe = "ReturnData";
|
|
@@ -446,6 +461,7 @@ const _ROSI = "ReuseOnScaleIn";
|
|
|
446
461
|
const _RP = "RefreshPreferences";
|
|
447
462
|
const _RPe = "ResumeProcesses";
|
|
448
463
|
const _RR = "RollbackReason";
|
|
464
|
+
const _RS = "RetryStrategy";
|
|
449
465
|
const _RST = "RollbackStartTime";
|
|
450
466
|
const _RT = "ResourceType";
|
|
451
467
|
const _Re = "Reference";
|
|
@@ -478,6 +494,8 @@ const _SIR = "StartInstanceRefresh";
|
|
|
478
494
|
const _SIRA = "StartInstanceRefreshAnswer";
|
|
479
495
|
const _SIRT = "StartInstanceRefreshType";
|
|
480
496
|
const _SIt = "StandbyInstances";
|
|
497
|
+
const _SIu = "SubnetId";
|
|
498
|
+
const _SIub = "SubnetIds";
|
|
481
499
|
const _SLRARN = "ServiceLinkedRoleARN";
|
|
482
500
|
const _SLRF = "ServiceLinkedRoleFailure";
|
|
483
501
|
const _SM = "StatusMessage";
|
|
@@ -566,7 +584,7 @@ const _xN = "xmlName";
|
|
|
566
584
|
const n0 = "com.amazonaws.autoscaling";
|
|
567
585
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
568
586
|
import { AutoScalingServiceException as __AutoScalingServiceException } from "../models/AutoScalingServiceException";
|
|
569
|
-
import { ActiveInstanceRefreshNotFoundFault as __ActiveInstanceRefreshNotFoundFault, AlreadyExistsFault as __AlreadyExistsFault, InstanceRefreshInProgressFault as __InstanceRefreshInProgressFault, InvalidNextToken as __InvalidNextToken, IrreversibleInstanceRefreshFault as __IrreversibleInstanceRefreshFault, LimitExceededFault as __LimitExceededFault, ResourceContentionFault as __ResourceContentionFault, ResourceInUseFault as __ResourceInUseFault, ScalingActivityInProgressFault as __ScalingActivityInProgressFault, ServiceLinkedRoleFailure as __ServiceLinkedRoleFailure, } from "../models/
|
|
587
|
+
import { ActiveInstanceRefreshNotFoundFault as __ActiveInstanceRefreshNotFoundFault, AlreadyExistsFault as __AlreadyExistsFault, IdempotentParameterMismatchError as __IdempotentParameterMismatchError, InstanceRefreshInProgressFault as __InstanceRefreshInProgressFault, InvalidNextToken as __InvalidNextToken, IrreversibleInstanceRefreshFault as __IrreversibleInstanceRefreshFault, LimitExceededFault as __LimitExceededFault, ResourceContentionFault as __ResourceContentionFault, ResourceInUseFault as __ResourceInUseFault, ScalingActivityInProgressFault as __ScalingActivityInProgressFault, ServiceLinkedRoleFailure as __ServiceLinkedRoleFailure, } from "../models/errors";
|
|
570
588
|
export var AcceleratorCountRequest = [3, n0, _ACR, 0, [_M, _Ma], [1, 1]];
|
|
571
589
|
export var AcceleratorTotalMemoryMiBRequest = [3, n0, _ATMMBR, 0, [_M, _Ma], [1, 1]];
|
|
572
590
|
export var ActiveInstanceRefreshNotFoundFault = [
|
|
@@ -1134,6 +1152,19 @@ export var GetPredictiveScalingForecastType = [
|
|
|
1134
1152
|
[_ASGN, _PN, _ST, _ET],
|
|
1135
1153
|
[0, 0, 4, 4],
|
|
1136
1154
|
];
|
|
1155
|
+
export var IdempotentParameterMismatchError = [
|
|
1156
|
+
-3,
|
|
1157
|
+
n0,
|
|
1158
|
+
_IPME,
|
|
1159
|
+
{
|
|
1160
|
+
[_e]: _c,
|
|
1161
|
+
[_hE]: 400,
|
|
1162
|
+
[_aQE]: [`IdempotentParameterMismatch`, 400],
|
|
1163
|
+
},
|
|
1164
|
+
[_Mes],
|
|
1165
|
+
[0],
|
|
1166
|
+
];
|
|
1167
|
+
TypeRegistry.for(n0).registerError(IdempotentParameterMismatchError, __IdempotentParameterMismatchError);
|
|
1137
1168
|
export var Instance = [
|
|
1138
1169
|
3,
|
|
1139
1170
|
n0,
|
|
@@ -1142,6 +1173,14 @@ export var Instance = [
|
|
|
1142
1173
|
[_IIns, _IT, _AZv, _LS, _HS, _LCN, _LT, _PFSI, _WC],
|
|
1143
1174
|
[0, 0, 0, 0, 0, 0, () => LaunchTemplateSpecification, 2, 0],
|
|
1144
1175
|
];
|
|
1176
|
+
export var InstanceCollection = [
|
|
1177
|
+
3,
|
|
1178
|
+
n0,
|
|
1179
|
+
_IC,
|
|
1180
|
+
0,
|
|
1181
|
+
[_IT, _MT, _SIu, _AZv, _AZI, _II],
|
|
1182
|
+
[0, 0, 0, 0, 0, 64 | 0],
|
|
1183
|
+
];
|
|
1145
1184
|
export var InstanceMaintenancePolicy = [3, n0, _IMP, 0, [_MHP, _MHPa], [1, 1]];
|
|
1146
1185
|
export var InstanceMetadataOptions = [3, n0, _IMO, 0, [_HT, _HPRHL, _HE], [0, 1, 0]];
|
|
1147
1186
|
export var InstanceMonitoring = [3, n0, _IM, 0, [_Ena], [2]];
|
|
@@ -1344,6 +1383,30 @@ export var LaunchConfigurationsType = [
|
|
|
1344
1383
|
[_LCa, _NT],
|
|
1345
1384
|
[() => LaunchConfigurations, 0],
|
|
1346
1385
|
];
|
|
1386
|
+
export var LaunchInstancesError = [
|
|
1387
|
+
3,
|
|
1388
|
+
n0,
|
|
1389
|
+
_LIE,
|
|
1390
|
+
0,
|
|
1391
|
+
[_IT, _MT, _SIu, _AZv, _AZI, _EC, _EMr],
|
|
1392
|
+
[0, 0, 0, 0, 0, 0, 0],
|
|
1393
|
+
];
|
|
1394
|
+
export var LaunchInstancesRequest = [
|
|
1395
|
+
3,
|
|
1396
|
+
n0,
|
|
1397
|
+
_LIR,
|
|
1398
|
+
0,
|
|
1399
|
+
[_ASGN, _RC, _CTl, _AZ, _AZIv, _SIub, _RS],
|
|
1400
|
+
[0, 1, [0, 4], 64 | 0, 64 | 0, 64 | 0, 0],
|
|
1401
|
+
];
|
|
1402
|
+
export var LaunchInstancesResult = [
|
|
1403
|
+
3,
|
|
1404
|
+
n0,
|
|
1405
|
+
_LIRa,
|
|
1406
|
+
0,
|
|
1407
|
+
[_ASGN, _CTl, _I, _Er],
|
|
1408
|
+
[0, 0, () => InstanceCollections, () => LaunchInstancesErrors],
|
|
1409
|
+
];
|
|
1347
1410
|
export var LaunchTemplate = [
|
|
1348
1411
|
3,
|
|
1349
1412
|
n0,
|
|
@@ -1809,7 +1872,9 @@ export var AutoScalingGroupNames = 64 | 0;
|
|
|
1809
1872
|
export var AutoScalingGroups = [1, n0, _ASGu, 0, [() => AutoScalingGroup, 0]];
|
|
1810
1873
|
export var AutoScalingInstances = [1, n0, _ASI, 0, () => AutoScalingInstanceDetails];
|
|
1811
1874
|
export var AutoScalingNotificationTypes = 64 | 0;
|
|
1875
|
+
export var AvailabilityZoneIdsLimit1 = 64 | 0;
|
|
1812
1876
|
export var AvailabilityZones = 64 | 0;
|
|
1877
|
+
export var AvailabilityZonesLimit1 = 64 | 0;
|
|
1813
1878
|
export var BlockDeviceMappings = [1, n0, _BDMl, 0, () => BlockDeviceMapping];
|
|
1814
1879
|
export var CapacityReservationIds = 64 | 0;
|
|
1815
1880
|
export var CapacityReservationResourceGroupArns = 64 | 0;
|
|
@@ -1826,6 +1891,7 @@ export var FailedScheduledUpdateGroupActionRequests = [
|
|
|
1826
1891
|
() => FailedScheduledUpdateGroupActionRequest,
|
|
1827
1892
|
];
|
|
1828
1893
|
export var Filters = [1, n0, _F, 0, () => Filter];
|
|
1894
|
+
export var InstanceCollections = [1, n0, _ICn, 0, () => InstanceCollection];
|
|
1829
1895
|
export var InstanceGenerations = 64 | 0;
|
|
1830
1896
|
export var InstanceIds = 64 | 0;
|
|
1831
1897
|
export var InstanceRefreshes = [1, n0, _IR, 0, [() => InstanceRefresh, 0]];
|
|
@@ -1833,6 +1899,7 @@ export var InstanceRefreshIds = 64 | 0;
|
|
|
1833
1899
|
export var Instances = [1, n0, _I, 0, () => Instance];
|
|
1834
1900
|
export var LaunchConfigurationNames = 64 | 0;
|
|
1835
1901
|
export var LaunchConfigurations = [1, n0, _LCa, 0, () => LaunchConfiguration];
|
|
1902
|
+
export var LaunchInstancesErrors = [1, n0, _LIEa, 0, () => LaunchInstancesError];
|
|
1836
1903
|
export var LifecycleHookNames = 64 | 0;
|
|
1837
1904
|
export var LifecycleHooks = [1, n0, _LH, 0, () => LifecycleHook];
|
|
1838
1905
|
export var LifecycleHookSpecifications = [1, n0, _LHSi, 0, () => LifecycleHookSpecification];
|
|
@@ -1885,6 +1952,7 @@ export var ScheduledUpdateGroupActionRequests = [
|
|
|
1885
1952
|
export var ScheduledUpdateGroupActions = [1, n0, _SUGA, 0, () => ScheduledUpdateGroupAction];
|
|
1886
1953
|
export var SecurityGroups = 64 | 0;
|
|
1887
1954
|
export var StepAdjustments = [1, n0, _SAt, 0, () => StepAdjustment];
|
|
1955
|
+
export var SubnetIdsLimit1 = 64 | 0;
|
|
1888
1956
|
export var SuspendedProcesses = [1, n0, _SP, 0, () => SuspendedProcess];
|
|
1889
1957
|
export var TagDescriptionList = [1, n0, _TDL, 0, () => TagDescription];
|
|
1890
1958
|
export var Tags = [1, n0, _T, 0, () => Tag];
|
|
@@ -2224,6 +2292,14 @@ export var GetPredictiveScalingForecast = [
|
|
|
2224
2292
|
() => GetPredictiveScalingForecastType,
|
|
2225
2293
|
() => GetPredictiveScalingForecastAnswer,
|
|
2226
2294
|
];
|
|
2295
|
+
export var LaunchInstances = [
|
|
2296
|
+
9,
|
|
2297
|
+
n0,
|
|
2298
|
+
_LI,
|
|
2299
|
+
0,
|
|
2300
|
+
() => LaunchInstancesRequest,
|
|
2301
|
+
() => LaunchInstancesResult,
|
|
2302
|
+
];
|
|
2227
2303
|
export var PutLifecycleHook = [
|
|
2228
2304
|
9,
|
|
2229
2305
|
n0,
|
|
@@ -50,6 +50,7 @@ import { EnterStandbyCommandInput, EnterStandbyCommandOutput } from "./commands/
|
|
|
50
50
|
import { ExecutePolicyCommandInput, ExecutePolicyCommandOutput } from "./commands/ExecutePolicyCommand";
|
|
51
51
|
import { ExitStandbyCommandInput, ExitStandbyCommandOutput } from "./commands/ExitStandbyCommand";
|
|
52
52
|
import { GetPredictiveScalingForecastCommandInput, GetPredictiveScalingForecastCommandOutput } from "./commands/GetPredictiveScalingForecastCommand";
|
|
53
|
+
import { LaunchInstancesCommandInput, LaunchInstancesCommandOutput } from "./commands/LaunchInstancesCommand";
|
|
53
54
|
import { PutLifecycleHookCommandInput, PutLifecycleHookCommandOutput } from "./commands/PutLifecycleHookCommand";
|
|
54
55
|
import { PutNotificationConfigurationCommandInput, PutNotificationConfigurationCommandOutput } from "./commands/PutNotificationConfigurationCommand";
|
|
55
56
|
import { PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput } from "./commands/PutScalingPolicyCommand";
|
|
@@ -381,6 +382,12 @@ export interface AutoScaling {
|
|
|
381
382
|
getPredictiveScalingForecast(args: GetPredictiveScalingForecastCommandInput, options?: __HttpHandlerOptions): Promise<GetPredictiveScalingForecastCommandOutput>;
|
|
382
383
|
getPredictiveScalingForecast(args: GetPredictiveScalingForecastCommandInput, cb: (err: any, data?: GetPredictiveScalingForecastCommandOutput) => void): void;
|
|
383
384
|
getPredictiveScalingForecast(args: GetPredictiveScalingForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPredictiveScalingForecastCommandOutput) => void): void;
|
|
385
|
+
/**
|
|
386
|
+
* @see {@link LaunchInstancesCommand}
|
|
387
|
+
*/
|
|
388
|
+
launchInstances(args: LaunchInstancesCommandInput, options?: __HttpHandlerOptions): Promise<LaunchInstancesCommandOutput>;
|
|
389
|
+
launchInstances(args: LaunchInstancesCommandInput, cb: (err: any, data?: LaunchInstancesCommandOutput) => void): void;
|
|
390
|
+
launchInstances(args: LaunchInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LaunchInstancesCommandOutput) => void): void;
|
|
384
391
|
/**
|
|
385
392
|
* @see {@link PutLifecycleHookCommand}
|
|
386
393
|
*/
|
|
@@ -57,6 +57,7 @@ import { EnterStandbyCommandInput, EnterStandbyCommandOutput } from "./commands/
|
|
|
57
57
|
import { ExecutePolicyCommandInput, ExecutePolicyCommandOutput } from "./commands/ExecutePolicyCommand";
|
|
58
58
|
import { ExitStandbyCommandInput, ExitStandbyCommandOutput } from "./commands/ExitStandbyCommand";
|
|
59
59
|
import { GetPredictiveScalingForecastCommandInput, GetPredictiveScalingForecastCommandOutput } from "./commands/GetPredictiveScalingForecastCommand";
|
|
60
|
+
import { LaunchInstancesCommandInput, LaunchInstancesCommandOutput } from "./commands/LaunchInstancesCommand";
|
|
60
61
|
import { PutLifecycleHookCommandInput, PutLifecycleHookCommandOutput } from "./commands/PutLifecycleHookCommand";
|
|
61
62
|
import { PutNotificationConfigurationCommandInput, PutNotificationConfigurationCommandOutput } from "./commands/PutNotificationConfigurationCommand";
|
|
62
63
|
import { PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput } from "./commands/PutScalingPolicyCommand";
|
|
@@ -78,11 +79,11 @@ export { __Client };
|
|
|
78
79
|
/**
|
|
79
80
|
* @public
|
|
80
81
|
*/
|
|
81
|
-
export 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;
|
|
82
|
+
export 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 | LaunchInstancesCommandInput | PutLifecycleHookCommandInput | PutNotificationConfigurationCommandInput | PutScalingPolicyCommandInput | PutScheduledUpdateGroupActionCommandInput | PutWarmPoolCommandInput | RecordLifecycleActionHeartbeatCommandInput | ResumeProcessesCommandInput | RollbackInstanceRefreshCommandInput | SetDesiredCapacityCommandInput | SetInstanceHealthCommandInput | SetInstanceProtectionCommandInput | StartInstanceRefreshCommandInput | SuspendProcessesCommandInput | TerminateInstanceInAutoScalingGroupCommandInput | UpdateAutoScalingGroupCommandInput;
|
|
82
83
|
/**
|
|
83
84
|
* @public
|
|
84
85
|
*/
|
|
85
|
-
export 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;
|
|
86
|
+
export 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 | LaunchInstancesCommandOutput | PutLifecycleHookCommandOutput | PutNotificationConfigurationCommandOutput | PutScalingPolicyCommandOutput | PutScheduledUpdateGroupActionCommandOutput | PutWarmPoolCommandOutput | RecordLifecycleActionHeartbeatCommandOutput | ResumeProcessesCommandOutput | RollbackInstanceRefreshCommandOutput | SetDesiredCapacityCommandOutput | SetInstanceHealthCommandOutput | SetInstanceProtectionCommandOutput | StartInstanceRefreshCommandOutput | SuspendProcessesCommandOutput | TerminateInstanceInAutoScalingGroupCommandOutput | UpdateAutoScalingGroupCommandOutput;
|
|
86
87
|
/**
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AutoScalingClient";
|
|
4
|
+
import { LaunchInstancesRequest, LaunchInstancesResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link LaunchInstancesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface LaunchInstancesCommandInput extends LaunchInstancesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link LaunchInstancesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface LaunchInstancesCommandOutput extends LaunchInstancesResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const LaunchInstancesCommand_base: {
|
|
25
|
+
new (input: LaunchInstancesCommandInput): import("@smithy/smithy-client").CommandImpl<LaunchInstancesCommandInput, LaunchInstancesCommandOutput, AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: LaunchInstancesCommandInput): import("@smithy/smithy-client").CommandImpl<LaunchInstancesCommandInput, LaunchInstancesCommandOutput, AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Launches a specified number of instances in an Auto Scaling group. Returns instance IDs and
|
|
31
|
+
* other details if launch is successful or error details if launch is unsuccessful. </p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { AutoScalingClient, LaunchInstancesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
36
|
+
* // const { AutoScalingClient, LaunchInstancesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
37
|
+
* // import type { AutoScalingClientConfig } from "@aws-sdk/client-auto-scaling";
|
|
38
|
+
* const config = {}; // type is AutoScalingClientConfig
|
|
39
|
+
* const client = new AutoScalingClient(config);
|
|
40
|
+
* const input = { // LaunchInstancesRequest
|
|
41
|
+
* AutoScalingGroupName: "STRING_VALUE", // required
|
|
42
|
+
* RequestedCapacity: Number("int"), // required
|
|
43
|
+
* ClientToken: "STRING_VALUE", // required
|
|
44
|
+
* AvailabilityZones: [ // AvailabilityZonesLimit1
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* AvailabilityZoneIds: [ // AvailabilityZoneIdsLimit1
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* SubnetIds: [ // SubnetIdsLimit1
|
|
51
|
+
* "STRING_VALUE",
|
|
52
|
+
* ],
|
|
53
|
+
* RetryStrategy: "retry-with-group-configuration" || "none",
|
|
54
|
+
* };
|
|
55
|
+
* const command = new LaunchInstancesCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // LaunchInstancesResult
|
|
58
|
+
* // AutoScalingGroupName: "STRING_VALUE",
|
|
59
|
+
* // ClientToken: "STRING_VALUE",
|
|
60
|
+
* // Instances: [ // InstanceCollections
|
|
61
|
+
* // { // InstanceCollection
|
|
62
|
+
* // InstanceType: "STRING_VALUE",
|
|
63
|
+
* // MarketType: "STRING_VALUE",
|
|
64
|
+
* // SubnetId: "STRING_VALUE",
|
|
65
|
+
* // AvailabilityZone: "STRING_VALUE",
|
|
66
|
+
* // AvailabilityZoneId: "STRING_VALUE",
|
|
67
|
+
* // InstanceIds: [ // InstanceIds
|
|
68
|
+
* // "STRING_VALUE",
|
|
69
|
+
* // ],
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // Errors: [ // LaunchInstancesErrors
|
|
73
|
+
* // { // LaunchInstancesError
|
|
74
|
+
* // InstanceType: "STRING_VALUE",
|
|
75
|
+
* // MarketType: "STRING_VALUE",
|
|
76
|
+
* // SubnetId: "STRING_VALUE",
|
|
77
|
+
* // AvailabilityZone: "STRING_VALUE",
|
|
78
|
+
* // AvailabilityZoneId: "STRING_VALUE",
|
|
79
|
+
* // ErrorCode: "STRING_VALUE",
|
|
80
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // };
|
|
84
|
+
*
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @param LaunchInstancesCommandInput - {@link LaunchInstancesCommandInput}
|
|
88
|
+
* @returns {@link LaunchInstancesCommandOutput}
|
|
89
|
+
* @see {@link LaunchInstancesCommandInput} for command's `input` shape.
|
|
90
|
+
* @see {@link LaunchInstancesCommandOutput} for command's `response` shape.
|
|
91
|
+
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link IdempotentParameterMismatchError} (client fault)
|
|
94
|
+
* <p>
|
|
95
|
+
* Indicates that the parameters in the current request do not match the parameters from a previous request with the same client token within the idempotency window.
|
|
96
|
+
* </p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ResourceContentionFault} (server fault)
|
|
99
|
+
* <p>You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group,
|
|
100
|
+
* instance, or load balancer).</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link AutoScalingServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export declare class LaunchInstancesCommand extends LaunchInstancesCommand_base {
|
|
109
|
+
/** @internal type navigation helper, not in runtime. */
|
|
110
|
+
protected static __types: {
|
|
111
|
+
api: {
|
|
112
|
+
input: LaunchInstancesRequest;
|
|
113
|
+
output: LaunchInstancesResult;
|
|
114
|
+
};
|
|
115
|
+
sdk: {
|
|
116
|
+
input: LaunchInstancesCommandInput;
|
|
117
|
+
output: LaunchInstancesCommandOutput;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
}
|
|
@@ -48,6 +48,7 @@ export * from "./EnterStandbyCommand";
|
|
|
48
48
|
export * from "./ExecutePolicyCommand";
|
|
49
49
|
export * from "./ExitStandbyCommand";
|
|
50
50
|
export * from "./GetPredictiveScalingForecastCommand";
|
|
51
|
+
export * from "./LaunchInstancesCommand";
|
|
51
52
|
export * from "./PutLifecycleHookCommand";
|
|
52
53
|
export * from "./PutNotificationConfigurationCommand";
|
|
53
54
|
export * from "./PutScalingPolicyCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -16,5 +16,7 @@ export type { AutoScalingExtensionConfiguration } from "./extensionConfiguration
|
|
|
16
16
|
export * from "./commands";
|
|
17
17
|
export * from "./pagination";
|
|
18
18
|
export * from "./waiters";
|
|
19
|
-
export * from "./models";
|
|
19
|
+
export * from "./models/enums";
|
|
20
|
+
export * from "./models/errors";
|
|
21
|
+
export type * from "./models/models_0";
|
|
20
22
|
export { AutoScalingServiceException } from "./models/AutoScalingServiceException";
|