@alicloud/ess20220222 1.0.3 → 1.0.4
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/client.d.ts +225 -83
- package/dist/client.js +264 -46
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +355 -83
package/dist/client.js
CHANGED
|
@@ -230,6 +230,7 @@ class AttachLoadBalancersRequest extends $tea.Model {
|
|
|
230
230
|
async: 'Async',
|
|
231
231
|
clientToken: 'ClientToken',
|
|
232
232
|
forceAttach: 'ForceAttach',
|
|
233
|
+
loadBalancerConfigs: 'LoadBalancerConfigs',
|
|
233
234
|
loadBalancers: 'LoadBalancers',
|
|
234
235
|
ownerId: 'OwnerId',
|
|
235
236
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
@@ -241,6 +242,7 @@ class AttachLoadBalancersRequest extends $tea.Model {
|
|
|
241
242
|
async: 'boolean',
|
|
242
243
|
clientToken: 'string',
|
|
243
244
|
forceAttach: 'boolean',
|
|
245
|
+
loadBalancerConfigs: { 'type': 'array', 'itemType': AttachLoadBalancersRequestLoadBalancerConfigs },
|
|
244
246
|
loadBalancers: { 'type': 'array', 'itemType': 'string' },
|
|
245
247
|
ownerId: 'number',
|
|
246
248
|
resourceOwnerAccount: 'string',
|
|
@@ -915,6 +917,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
|
|
|
915
917
|
}
|
|
916
918
|
static names() {
|
|
917
919
|
return {
|
|
920
|
+
imageOptions: 'ImageOptions',
|
|
918
921
|
privatePoolOptions: 'PrivatePoolOptions',
|
|
919
922
|
systemDisk: 'SystemDisk',
|
|
920
923
|
affinity: 'Affinity',
|
|
@@ -969,6 +972,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
|
|
|
969
972
|
}
|
|
970
973
|
static types() {
|
|
971
974
|
return {
|
|
975
|
+
imageOptions: CreateScalingConfigurationRequestImageOptions,
|
|
972
976
|
privatePoolOptions: CreateScalingConfigurationRequestPrivatePoolOptions,
|
|
973
977
|
systemDisk: CreateScalingConfigurationRequestSystemDisk,
|
|
974
978
|
affinity: 'string',
|
|
@@ -1029,6 +1033,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
1029
1033
|
}
|
|
1030
1034
|
static names() {
|
|
1031
1035
|
return {
|
|
1036
|
+
imageOptions: 'ImageOptions',
|
|
1032
1037
|
privatePoolOptions: 'PrivatePoolOptions',
|
|
1033
1038
|
systemDisk: 'SystemDisk',
|
|
1034
1039
|
affinity: 'Affinity',
|
|
@@ -1083,6 +1088,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
1083
1088
|
}
|
|
1084
1089
|
static types() {
|
|
1085
1090
|
return {
|
|
1091
|
+
imageOptions: CreateScalingConfigurationShrinkRequestImageOptions,
|
|
1086
1092
|
privatePoolOptions: CreateScalingConfigurationShrinkRequestPrivatePoolOptions,
|
|
1087
1093
|
systemDisk: CreateScalingConfigurationShrinkRequestSystemDisk,
|
|
1088
1094
|
affinity: 'string',
|
|
@@ -1199,6 +1205,7 @@ class CreateScalingGroupRequest extends $tea.Model {
|
|
|
1199
1205
|
launchTemplateOverrides: 'LaunchTemplateOverrides',
|
|
1200
1206
|
launchTemplateVersion: 'LaunchTemplateVersion',
|
|
1201
1207
|
lifecycleHooks: 'LifecycleHooks',
|
|
1208
|
+
loadBalancerConfigs: 'LoadBalancerConfigs',
|
|
1202
1209
|
loadBalancerIds: 'LoadBalancerIds',
|
|
1203
1210
|
maxInstanceLifetime: 'MaxInstanceLifetime',
|
|
1204
1211
|
maxSize: 'MaxSize',
|
|
@@ -1245,6 +1252,7 @@ class CreateScalingGroupRequest extends $tea.Model {
|
|
|
1245
1252
|
launchTemplateOverrides: { 'type': 'array', 'itemType': CreateScalingGroupRequestLaunchTemplateOverrides },
|
|
1246
1253
|
launchTemplateVersion: 'string',
|
|
1247
1254
|
lifecycleHooks: { 'type': 'array', 'itemType': CreateScalingGroupRequestLifecycleHooks },
|
|
1255
|
+
loadBalancerConfigs: { 'type': 'array', 'itemType': CreateScalingGroupRequestLoadBalancerConfigs },
|
|
1248
1256
|
loadBalancerIds: 'string',
|
|
1249
1257
|
maxInstanceLifetime: 'number',
|
|
1250
1258
|
maxSize: 'number',
|
|
@@ -1319,6 +1327,7 @@ class CreateScalingRuleRequest extends $tea.Model {
|
|
|
1319
1327
|
return {
|
|
1320
1328
|
adjustmentType: 'AdjustmentType',
|
|
1321
1329
|
adjustmentValue: 'AdjustmentValue',
|
|
1330
|
+
alarmDimensions: 'AlarmDimensions',
|
|
1322
1331
|
cooldown: 'Cooldown',
|
|
1323
1332
|
disableScaleIn: 'DisableScaleIn',
|
|
1324
1333
|
estimatedInstanceWarmup: 'EstimatedInstanceWarmup',
|
|
@@ -1346,6 +1355,7 @@ class CreateScalingRuleRequest extends $tea.Model {
|
|
|
1346
1355
|
return {
|
|
1347
1356
|
adjustmentType: 'string',
|
|
1348
1357
|
adjustmentValue: 'number',
|
|
1358
|
+
alarmDimensions: { 'type': 'array', 'itemType': CreateScalingRuleRequestAlarmDimensions },
|
|
1349
1359
|
cooldown: 'number',
|
|
1350
1360
|
disableScaleIn: 'boolean',
|
|
1351
1361
|
estimatedInstanceWarmup: 'number',
|
|
@@ -2375,6 +2385,7 @@ class DescribeLimitationResponseBody extends $tea.Model {
|
|
|
2375
2385
|
maxNumberOfLoadBalancers: 'MaxNumberOfLoadBalancers',
|
|
2376
2386
|
maxNumberOfMaxSize: 'MaxNumberOfMaxSize',
|
|
2377
2387
|
maxNumberOfMinSize: 'MaxNumberOfMinSize',
|
|
2388
|
+
maxNumberOfNlbServerGroup: 'MaxNumberOfNlbServerGroup',
|
|
2378
2389
|
maxNumberOfNotificationConfigurations: 'MaxNumberOfNotificationConfigurations',
|
|
2379
2390
|
maxNumberOfScalingConfigurations: 'MaxNumberOfScalingConfigurations',
|
|
2380
2391
|
maxNumberOfScalingGroups: 'MaxNumberOfScalingGroups',
|
|
@@ -2393,6 +2404,7 @@ class DescribeLimitationResponseBody extends $tea.Model {
|
|
|
2393
2404
|
maxNumberOfLoadBalancers: 'number',
|
|
2394
2405
|
maxNumberOfMaxSize: 'number',
|
|
2395
2406
|
maxNumberOfMinSize: 'number',
|
|
2407
|
+
maxNumberOfNlbServerGroup: 'number',
|
|
2396
2408
|
maxNumberOfNotificationConfigurations: 'number',
|
|
2397
2409
|
maxNumberOfScalingConfigurations: 'number',
|
|
2398
2410
|
maxNumberOfScalingGroups: 'number',
|
|
@@ -4581,6 +4593,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
4581
4593
|
}
|
|
4582
4594
|
static names() {
|
|
4583
4595
|
return {
|
|
4596
|
+
imageOptions: 'ImageOptions',
|
|
4584
4597
|
privatePoolOptions: 'PrivatePoolOptions',
|
|
4585
4598
|
systemDisk: 'SystemDisk',
|
|
4586
4599
|
affinity: 'Affinity',
|
|
@@ -4631,6 +4644,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
4631
4644
|
}
|
|
4632
4645
|
static types() {
|
|
4633
4646
|
return {
|
|
4647
|
+
imageOptions: ModifyScalingConfigurationRequestImageOptions,
|
|
4634
4648
|
privatePoolOptions: ModifyScalingConfigurationRequestPrivatePoolOptions,
|
|
4635
4649
|
systemDisk: ModifyScalingConfigurationRequestSystemDisk,
|
|
4636
4650
|
affinity: 'string',
|
|
@@ -4687,6 +4701,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
4687
4701
|
}
|
|
4688
4702
|
static names() {
|
|
4689
4703
|
return {
|
|
4704
|
+
imageOptions: 'ImageOptions',
|
|
4690
4705
|
privatePoolOptions: 'PrivatePoolOptions',
|
|
4691
4706
|
systemDisk: 'SystemDisk',
|
|
4692
4707
|
affinity: 'Affinity',
|
|
@@ -4737,6 +4752,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
|
|
|
4737
4752
|
}
|
|
4738
4753
|
static types() {
|
|
4739
4754
|
return {
|
|
4755
|
+
imageOptions: ModifyScalingConfigurationShrinkRequestImageOptions,
|
|
4740
4756
|
privatePoolOptions: ModifyScalingConfigurationShrinkRequestPrivatePoolOptions,
|
|
4741
4757
|
systemDisk: ModifyScalingConfigurationShrinkRequestSystemDisk,
|
|
4742
4758
|
affinity: 'string',
|
|
@@ -4939,6 +4955,7 @@ class ModifyScalingRuleRequest extends $tea.Model {
|
|
|
4939
4955
|
return {
|
|
4940
4956
|
adjustmentType: 'AdjustmentType',
|
|
4941
4957
|
adjustmentValue: 'AdjustmentValue',
|
|
4958
|
+
alarmDimensions: 'AlarmDimensions',
|
|
4942
4959
|
cooldown: 'Cooldown',
|
|
4943
4960
|
disableScaleIn: 'DisableScaleIn',
|
|
4944
4961
|
estimatedInstanceWarmup: 'EstimatedInstanceWarmup',
|
|
@@ -4965,6 +4982,7 @@ class ModifyScalingRuleRequest extends $tea.Model {
|
|
|
4965
4982
|
return {
|
|
4966
4983
|
adjustmentType: 'string',
|
|
4967
4984
|
adjustmentValue: 'number',
|
|
4985
|
+
alarmDimensions: { 'type': 'array', 'itemType': ModifyScalingRuleRequestAlarmDimensions },
|
|
4968
4986
|
cooldown: 'number',
|
|
4969
4987
|
disableScaleIn: 'boolean',
|
|
4970
4988
|
estimatedInstanceWarmup: 'number',
|
|
@@ -5943,6 +5961,24 @@ class AttachAlbServerGroupsRequestAlbServerGroups extends $tea.Model {
|
|
|
5943
5961
|
}
|
|
5944
5962
|
}
|
|
5945
5963
|
exports.AttachAlbServerGroupsRequestAlbServerGroups = AttachAlbServerGroupsRequestAlbServerGroups;
|
|
5964
|
+
class AttachLoadBalancersRequestLoadBalancerConfigs extends $tea.Model {
|
|
5965
|
+
constructor(map) {
|
|
5966
|
+
super(map);
|
|
5967
|
+
}
|
|
5968
|
+
static names() {
|
|
5969
|
+
return {
|
|
5970
|
+
loadBalancerId: 'LoadBalancerId',
|
|
5971
|
+
weight: 'Weight',
|
|
5972
|
+
};
|
|
5973
|
+
}
|
|
5974
|
+
static types() {
|
|
5975
|
+
return {
|
|
5976
|
+
loadBalancerId: 'string',
|
|
5977
|
+
weight: 'number',
|
|
5978
|
+
};
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
exports.AttachLoadBalancersRequestLoadBalancerConfigs = AttachLoadBalancersRequestLoadBalancerConfigs;
|
|
5946
5982
|
class AttachServerGroupsRequestServerGroups extends $tea.Model {
|
|
5947
5983
|
constructor(map) {
|
|
5948
5984
|
super(map);
|
|
@@ -6755,6 +6791,22 @@ class CreateEciScalingConfigurationRequestVolumes extends $tea.Model {
|
|
|
6755
6791
|
}
|
|
6756
6792
|
}
|
|
6757
6793
|
exports.CreateEciScalingConfigurationRequestVolumes = CreateEciScalingConfigurationRequestVolumes;
|
|
6794
|
+
class CreateScalingConfigurationRequestImageOptions extends $tea.Model {
|
|
6795
|
+
constructor(map) {
|
|
6796
|
+
super(map);
|
|
6797
|
+
}
|
|
6798
|
+
static names() {
|
|
6799
|
+
return {
|
|
6800
|
+
loginAsNonRoot: 'LoginAsNonRoot',
|
|
6801
|
+
};
|
|
6802
|
+
}
|
|
6803
|
+
static types() {
|
|
6804
|
+
return {
|
|
6805
|
+
loginAsNonRoot: 'boolean',
|
|
6806
|
+
};
|
|
6807
|
+
}
|
|
6808
|
+
}
|
|
6809
|
+
exports.CreateScalingConfigurationRequestImageOptions = CreateScalingConfigurationRequestImageOptions;
|
|
6758
6810
|
class CreateScalingConfigurationRequestPrivatePoolOptions extends $tea.Model {
|
|
6759
6811
|
constructor(map) {
|
|
6760
6812
|
super(map);
|
|
@@ -6915,6 +6967,22 @@ class CreateScalingConfigurationRequestSpotPriceLimits extends $tea.Model {
|
|
|
6915
6967
|
}
|
|
6916
6968
|
}
|
|
6917
6969
|
exports.CreateScalingConfigurationRequestSpotPriceLimits = CreateScalingConfigurationRequestSpotPriceLimits;
|
|
6970
|
+
class CreateScalingConfigurationShrinkRequestImageOptions extends $tea.Model {
|
|
6971
|
+
constructor(map) {
|
|
6972
|
+
super(map);
|
|
6973
|
+
}
|
|
6974
|
+
static names() {
|
|
6975
|
+
return {
|
|
6976
|
+
loginAsNonRoot: 'LoginAsNonRoot',
|
|
6977
|
+
};
|
|
6978
|
+
}
|
|
6979
|
+
static types() {
|
|
6980
|
+
return {
|
|
6981
|
+
loginAsNonRoot: 'boolean',
|
|
6982
|
+
};
|
|
6983
|
+
}
|
|
6984
|
+
}
|
|
6985
|
+
exports.CreateScalingConfigurationShrinkRequestImageOptions = CreateScalingConfigurationShrinkRequestImageOptions;
|
|
6918
6986
|
class CreateScalingConfigurationShrinkRequestPrivatePoolOptions extends $tea.Model {
|
|
6919
6987
|
constructor(map) {
|
|
6920
6988
|
super(map);
|
|
@@ -7141,6 +7209,24 @@ class CreateScalingGroupRequestLifecycleHooks extends $tea.Model {
|
|
|
7141
7209
|
}
|
|
7142
7210
|
}
|
|
7143
7211
|
exports.CreateScalingGroupRequestLifecycleHooks = CreateScalingGroupRequestLifecycleHooks;
|
|
7212
|
+
class CreateScalingGroupRequestLoadBalancerConfigs extends $tea.Model {
|
|
7213
|
+
constructor(map) {
|
|
7214
|
+
super(map);
|
|
7215
|
+
}
|
|
7216
|
+
static names() {
|
|
7217
|
+
return {
|
|
7218
|
+
loadBalancerId: 'LoadBalancerId',
|
|
7219
|
+
weight: 'Weight',
|
|
7220
|
+
};
|
|
7221
|
+
}
|
|
7222
|
+
static types() {
|
|
7223
|
+
return {
|
|
7224
|
+
loadBalancerId: 'string',
|
|
7225
|
+
weight: 'number',
|
|
7226
|
+
};
|
|
7227
|
+
}
|
|
7228
|
+
}
|
|
7229
|
+
exports.CreateScalingGroupRequestLoadBalancerConfigs = CreateScalingGroupRequestLoadBalancerConfigs;
|
|
7144
7230
|
class CreateScalingGroupRequestServerGroups extends $tea.Model {
|
|
7145
7231
|
constructor(map) {
|
|
7146
7232
|
super(map);
|
|
@@ -7219,6 +7305,24 @@ class CreateScalingGroupRequestVServerGroups extends $tea.Model {
|
|
|
7219
7305
|
}
|
|
7220
7306
|
}
|
|
7221
7307
|
exports.CreateScalingGroupRequestVServerGroups = CreateScalingGroupRequestVServerGroups;
|
|
7308
|
+
class CreateScalingRuleRequestAlarmDimensions extends $tea.Model {
|
|
7309
|
+
constructor(map) {
|
|
7310
|
+
super(map);
|
|
7311
|
+
}
|
|
7312
|
+
static names() {
|
|
7313
|
+
return {
|
|
7314
|
+
dimensionKey: 'DimensionKey',
|
|
7315
|
+
dimensionValue: 'DimensionValue',
|
|
7316
|
+
};
|
|
7317
|
+
}
|
|
7318
|
+
static types() {
|
|
7319
|
+
return {
|
|
7320
|
+
dimensionKey: 'string',
|
|
7321
|
+
dimensionValue: 'string',
|
|
7322
|
+
};
|
|
7323
|
+
}
|
|
7324
|
+
}
|
|
7325
|
+
exports.CreateScalingRuleRequestAlarmDimensions = CreateScalingRuleRequestAlarmDimensions;
|
|
7222
7326
|
class CreateScalingRuleRequestStepAdjustments extends $tea.Model {
|
|
7223
7327
|
constructor(map) {
|
|
7224
7328
|
super(map);
|
|
@@ -8192,6 +8296,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
|
|
|
8192
8296
|
imageFamily: 'ImageFamily',
|
|
8193
8297
|
imageId: 'ImageId',
|
|
8194
8298
|
imageName: 'ImageName',
|
|
8299
|
+
imageOptionsLoginAsNonRoot: 'ImageOptionsLoginAsNonRoot',
|
|
8195
8300
|
imageOwnerAlias: 'ImageOwnerAlias',
|
|
8196
8301
|
instanceDescription: 'InstanceDescription',
|
|
8197
8302
|
instanceGeneration: 'InstanceGeneration',
|
|
@@ -8256,6 +8361,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
|
|
|
8256
8361
|
imageFamily: 'string',
|
|
8257
8362
|
imageId: 'string',
|
|
8258
8363
|
imageName: 'string',
|
|
8364
|
+
imageOptionsLoginAsNonRoot: 'boolean',
|
|
8259
8365
|
imageOwnerAlias: 'string',
|
|
8260
8366
|
instanceDescription: 'string',
|
|
8261
8367
|
instanceGeneration: 'string',
|
|
@@ -8347,6 +8453,24 @@ class DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides exte
|
|
|
8347
8453
|
}
|
|
8348
8454
|
}
|
|
8349
8455
|
exports.DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides = DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides;
|
|
8456
|
+
class DescribeScalingGroupsResponseBodyScalingGroupsLoadBalancerConfigs extends $tea.Model {
|
|
8457
|
+
constructor(map) {
|
|
8458
|
+
super(map);
|
|
8459
|
+
}
|
|
8460
|
+
static names() {
|
|
8461
|
+
return {
|
|
8462
|
+
loadBalancerId: 'LoadBalancerId',
|
|
8463
|
+
weight: 'Weight',
|
|
8464
|
+
};
|
|
8465
|
+
}
|
|
8466
|
+
static types() {
|
|
8467
|
+
return {
|
|
8468
|
+
loadBalancerId: 'string',
|
|
8469
|
+
weight: 'number',
|
|
8470
|
+
};
|
|
8471
|
+
}
|
|
8472
|
+
}
|
|
8473
|
+
exports.DescribeScalingGroupsResponseBodyScalingGroupsLoadBalancerConfigs = DescribeScalingGroupsResponseBodyScalingGroupsLoadBalancerConfigs;
|
|
8350
8474
|
class DescribeScalingGroupsResponseBodyScalingGroupsServerGroups extends $tea.Model {
|
|
8351
8475
|
constructor(map) {
|
|
8352
8476
|
super(map);
|
|
@@ -8434,6 +8558,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
|
|
|
8434
8558
|
launchTemplateOverrides: 'LaunchTemplateOverrides',
|
|
8435
8559
|
launchTemplateVersion: 'LaunchTemplateVersion',
|
|
8436
8560
|
lifecycleState: 'LifecycleState',
|
|
8561
|
+
loadBalancerConfigs: 'LoadBalancerConfigs',
|
|
8437
8562
|
loadBalancerIds: 'LoadBalancerIds',
|
|
8438
8563
|
maxInstanceLifetime: 'MaxInstanceLifetime',
|
|
8439
8564
|
maxSize: 'MaxSize',
|
|
@@ -8493,6 +8618,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
|
|
|
8493
8618
|
launchTemplateOverrides: { 'type': 'array', 'itemType': DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides },
|
|
8494
8619
|
launchTemplateVersion: 'string',
|
|
8495
8620
|
lifecycleState: 'string',
|
|
8621
|
+
loadBalancerConfigs: { 'type': 'array', 'itemType': DescribeScalingGroupsResponseBodyScalingGroupsLoadBalancerConfigs },
|
|
8496
8622
|
loadBalancerIds: { 'type': 'array', 'itemType': 'string' },
|
|
8497
8623
|
maxInstanceLifetime: 'number',
|
|
8498
8624
|
maxSize: 'number',
|
|
@@ -8579,6 +8705,24 @@ class DescribeScalingInstancesResponseBodyScalingInstances extends $tea.Model {
|
|
|
8579
8705
|
}
|
|
8580
8706
|
}
|
|
8581
8707
|
exports.DescribeScalingInstancesResponseBodyScalingInstances = DescribeScalingInstancesResponseBodyScalingInstances;
|
|
8708
|
+
class DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions extends $tea.Model {
|
|
8709
|
+
constructor(map) {
|
|
8710
|
+
super(map);
|
|
8711
|
+
}
|
|
8712
|
+
static names() {
|
|
8713
|
+
return {
|
|
8714
|
+
dimensionKey: 'DimensionKey',
|
|
8715
|
+
dimensionValue: 'DimensionValue',
|
|
8716
|
+
};
|
|
8717
|
+
}
|
|
8718
|
+
static types() {
|
|
8719
|
+
return {
|
|
8720
|
+
dimensionKey: 'string',
|
|
8721
|
+
dimensionValue: 'string',
|
|
8722
|
+
};
|
|
8723
|
+
}
|
|
8724
|
+
}
|
|
8725
|
+
exports.DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions = DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions;
|
|
8582
8726
|
class DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions extends $tea.Model {
|
|
8583
8727
|
constructor(map) {
|
|
8584
8728
|
super(map);
|
|
@@ -8657,6 +8801,7 @@ class DescribeScalingRulesResponseBodyScalingRules extends $tea.Model {
|
|
|
8657
8801
|
return {
|
|
8658
8802
|
adjustmentType: 'AdjustmentType',
|
|
8659
8803
|
adjustmentValue: 'AdjustmentValue',
|
|
8804
|
+
alarmDimensions: 'AlarmDimensions',
|
|
8660
8805
|
alarms: 'Alarms',
|
|
8661
8806
|
cooldown: 'Cooldown',
|
|
8662
8807
|
disableScaleIn: 'DisableScaleIn',
|
|
@@ -8685,6 +8830,7 @@ class DescribeScalingRulesResponseBodyScalingRules extends $tea.Model {
|
|
|
8685
8830
|
return {
|
|
8686
8831
|
adjustmentType: 'string',
|
|
8687
8832
|
adjustmentValue: 'number',
|
|
8833
|
+
alarmDimensions: { 'type': 'array', 'itemType': DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions },
|
|
8688
8834
|
alarms: { 'type': 'array', 'itemType': DescribeScalingRulesResponseBodyScalingRulesAlarms },
|
|
8689
8835
|
cooldown: 'number',
|
|
8690
8836
|
disableScaleIn: 'boolean',
|
|
@@ -9671,6 +9817,22 @@ class ModifyEciScalingConfigurationRequestVolumes extends $tea.Model {
|
|
|
9671
9817
|
}
|
|
9672
9818
|
}
|
|
9673
9819
|
exports.ModifyEciScalingConfigurationRequestVolumes = ModifyEciScalingConfigurationRequestVolumes;
|
|
9820
|
+
class ModifyScalingConfigurationRequestImageOptions extends $tea.Model {
|
|
9821
|
+
constructor(map) {
|
|
9822
|
+
super(map);
|
|
9823
|
+
}
|
|
9824
|
+
static names() {
|
|
9825
|
+
return {
|
|
9826
|
+
loginAsNonRoot: 'LoginAsNonRoot',
|
|
9827
|
+
};
|
|
9828
|
+
}
|
|
9829
|
+
static types() {
|
|
9830
|
+
return {
|
|
9831
|
+
loginAsNonRoot: 'boolean',
|
|
9832
|
+
};
|
|
9833
|
+
}
|
|
9834
|
+
}
|
|
9835
|
+
exports.ModifyScalingConfigurationRequestImageOptions = ModifyScalingConfigurationRequestImageOptions;
|
|
9674
9836
|
class ModifyScalingConfigurationRequestPrivatePoolOptions extends $tea.Model {
|
|
9675
9837
|
constructor(map) {
|
|
9676
9838
|
super(map);
|
|
@@ -9831,6 +9993,22 @@ class ModifyScalingConfigurationRequestSpotPriceLimits extends $tea.Model {
|
|
|
9831
9993
|
}
|
|
9832
9994
|
}
|
|
9833
9995
|
exports.ModifyScalingConfigurationRequestSpotPriceLimits = ModifyScalingConfigurationRequestSpotPriceLimits;
|
|
9996
|
+
class ModifyScalingConfigurationShrinkRequestImageOptions extends $tea.Model {
|
|
9997
|
+
constructor(map) {
|
|
9998
|
+
super(map);
|
|
9999
|
+
}
|
|
10000
|
+
static names() {
|
|
10001
|
+
return {
|
|
10002
|
+
loginAsNonRoot: 'LoginAsNonRoot',
|
|
10003
|
+
};
|
|
10004
|
+
}
|
|
10005
|
+
static types() {
|
|
10006
|
+
return {
|
|
10007
|
+
loginAsNonRoot: 'boolean',
|
|
10008
|
+
};
|
|
10009
|
+
}
|
|
10010
|
+
}
|
|
10011
|
+
exports.ModifyScalingConfigurationShrinkRequestImageOptions = ModifyScalingConfigurationShrinkRequestImageOptions;
|
|
9834
10012
|
class ModifyScalingConfigurationShrinkRequestPrivatePoolOptions extends $tea.Model {
|
|
9835
10013
|
constructor(map) {
|
|
9836
10014
|
super(map);
|
|
@@ -10011,6 +10189,24 @@ class ModifyScalingGroupRequestLaunchTemplateOverrides extends $tea.Model {
|
|
|
10011
10189
|
}
|
|
10012
10190
|
}
|
|
10013
10191
|
exports.ModifyScalingGroupRequestLaunchTemplateOverrides = ModifyScalingGroupRequestLaunchTemplateOverrides;
|
|
10192
|
+
class ModifyScalingRuleRequestAlarmDimensions extends $tea.Model {
|
|
10193
|
+
constructor(map) {
|
|
10194
|
+
super(map);
|
|
10195
|
+
}
|
|
10196
|
+
static names() {
|
|
10197
|
+
return {
|
|
10198
|
+
dimensionKey: 'DimensionKey',
|
|
10199
|
+
dimensionValue: 'DimensionValue',
|
|
10200
|
+
};
|
|
10201
|
+
}
|
|
10202
|
+
static types() {
|
|
10203
|
+
return {
|
|
10204
|
+
dimensionKey: 'string',
|
|
10205
|
+
dimensionValue: 'string',
|
|
10206
|
+
};
|
|
10207
|
+
}
|
|
10208
|
+
}
|
|
10209
|
+
exports.ModifyScalingRuleRequestAlarmDimensions = ModifyScalingRuleRequestAlarmDimensions;
|
|
10014
10210
|
class ModifyScalingRuleRequestStepAdjustments extends $tea.Model {
|
|
10015
10211
|
constructor(map) {
|
|
10016
10212
|
super(map);
|
|
@@ -10312,6 +10508,9 @@ class Client extends openapi_client_1.default {
|
|
|
10312
10508
|
if (!tea_util_1.default.isUnset(request.forceAttach)) {
|
|
10313
10509
|
query["ForceAttach"] = request.forceAttach;
|
|
10314
10510
|
}
|
|
10511
|
+
if (!tea_util_1.default.isUnset(request.loadBalancerConfigs)) {
|
|
10512
|
+
query["LoadBalancerConfigs"] = request.loadBalancerConfigs;
|
|
10513
|
+
}
|
|
10315
10514
|
if (!tea_util_1.default.isUnset(request.loadBalancers)) {
|
|
10316
10515
|
query["LoadBalancers"] = request.loadBalancers;
|
|
10317
10516
|
}
|
|
@@ -10506,7 +10705,7 @@ class Client extends openapi_client_1.default {
|
|
|
10506
10705
|
return await this.changeResourceGroupWithOptions(request, runtime);
|
|
10507
10706
|
}
|
|
10508
10707
|
/**
|
|
10509
|
-
*
|
|
10708
|
+
* If you set the LifecycleActionResult parameter for a lifecycle hook of a scaling group to CONTINUE in the operation, Auto Scaling continues to complete the scaling activity in the scaling group after the lifecycle hook times out. If you set the LifecycleActionResult parameter to ABANDON, Auto Scaling stops the scaling activity in the scaling group after the lifecycle hook times out.
|
|
10510
10709
|
*
|
|
10511
10710
|
* @param request CompleteLifecycleActionRequest
|
|
10512
10711
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -10556,7 +10755,7 @@ class Client extends openapi_client_1.default {
|
|
|
10556
10755
|
return $tea.cast(await this.callApi(params, req, runtime), new CompleteLifecycleActionResponse({}));
|
|
10557
10756
|
}
|
|
10558
10757
|
/**
|
|
10559
|
-
*
|
|
10758
|
+
* If you set the LifecycleActionResult parameter for a lifecycle hook of a scaling group to CONTINUE in the operation, Auto Scaling continues to complete the scaling activity in the scaling group after the lifecycle hook times out. If you set the LifecycleActionResult parameter to ABANDON, Auto Scaling stops the scaling activity in the scaling group after the lifecycle hook times out.
|
|
10560
10759
|
*
|
|
10561
10760
|
* @param request CompleteLifecycleActionRequest
|
|
10562
10761
|
* @return CompleteLifecycleActionResponse
|
|
@@ -10837,10 +11036,10 @@ class Client extends openapi_client_1.default {
|
|
|
10837
11036
|
return await this.createEciScalingConfigurationWithOptions(request, runtime);
|
|
10838
11037
|
}
|
|
10839
11038
|
/**
|
|
10840
|
-
* You can create up to six lifecycle hooks for each scaling group.
|
|
10841
|
-
*
|
|
10842
|
-
* You can configure a notification method for a lifecycle hook. When the lifecycle hook
|
|
10843
|
-
* > If your scaling group
|
|
11039
|
+
* You can create up to six lifecycle hooks for each scaling group. Elastic Compute Service (ECS) instances are not immediately added to or removed from scaling groups that have effective lifecycle hooks during scaling activities. The ECS instances are added to or removed from the scaling groups only after the lifecycle hooks time out. The period of time before the lifecycle hooks time out is specified by the HeartbeatTimeout parameter. Before lifecycle hooks time out, you can initialize the configurations of ECS instances and query data on the ECS instances.
|
|
11040
|
+
* If lifecycle hooks take effect for scale-out activities, the private IP addresses of ECS instances are added to the IP address whitelists of the associated ApsaraDB RDS instances and the ECS instances are added to the backend server groups of the associated Server Load Balancer (SLB) instances only after the lifecycle hooks time out. If lifecycle hooks take effect for scale-in activities, the private IP addresses of ECS instances are removed from the IP address whitelists of the disassociated ApsaraDB RDS instances and the ECS instances are removed from the backend server groups of the disassociated SLB instances only after the lifecycle hooks time out.
|
|
11041
|
+
* You can configure a notification method for a lifecycle hook. When the lifecycle hook takes effect, a notification can be sent by using a Message Service (MNS) topic, an MNS queue, or an Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a RAM role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
|
|
11042
|
+
* > If your scaling group contains ECS instances and you configure an OOS template to add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the IP address whitelists of cloud databases other than ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to the IP address whitelists of the cloud databases.
|
|
10844
11043
|
*
|
|
10845
11044
|
* @param request CreateLifecycleHookRequest
|
|
10846
11045
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -10896,10 +11095,10 @@ class Client extends openapi_client_1.default {
|
|
|
10896
11095
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateLifecycleHookResponse({}));
|
|
10897
11096
|
}
|
|
10898
11097
|
/**
|
|
10899
|
-
* You can create up to six lifecycle hooks for each scaling group.
|
|
10900
|
-
*
|
|
10901
|
-
* You can configure a notification method for a lifecycle hook. When the lifecycle hook
|
|
10902
|
-
* > If your scaling group
|
|
11098
|
+
* You can create up to six lifecycle hooks for each scaling group. Elastic Compute Service (ECS) instances are not immediately added to or removed from scaling groups that have effective lifecycle hooks during scaling activities. The ECS instances are added to or removed from the scaling groups only after the lifecycle hooks time out. The period of time before the lifecycle hooks time out is specified by the HeartbeatTimeout parameter. Before lifecycle hooks time out, you can initialize the configurations of ECS instances and query data on the ECS instances.
|
|
11099
|
+
* If lifecycle hooks take effect for scale-out activities, the private IP addresses of ECS instances are added to the IP address whitelists of the associated ApsaraDB RDS instances and the ECS instances are added to the backend server groups of the associated Server Load Balancer (SLB) instances only after the lifecycle hooks time out. If lifecycle hooks take effect for scale-in activities, the private IP addresses of ECS instances are removed from the IP address whitelists of the disassociated ApsaraDB RDS instances and the ECS instances are removed from the backend server groups of the disassociated SLB instances only after the lifecycle hooks time out.
|
|
11100
|
+
* You can configure a notification method for a lifecycle hook. When the lifecycle hook takes effect, a notification can be sent by using a Message Service (MNS) topic, an MNS queue, or an Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a RAM role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
|
|
11101
|
+
* > If your scaling group contains ECS instances and you configure an OOS template to add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the IP address whitelists of cloud databases other than ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to the IP address whitelists of the cloud databases.
|
|
10903
11102
|
*
|
|
10904
11103
|
* @param request CreateLifecycleHookRequest
|
|
10905
11104
|
* @return CreateLifecycleHookResponse
|
|
@@ -10963,13 +11162,13 @@ class Client extends openapi_client_1.default {
|
|
|
10963
11162
|
return await this.createNotificationConfigurationWithOptions(request, runtime);
|
|
10964
11163
|
}
|
|
10965
11164
|
/**
|
|
10966
|
-
* Auto Scaling automatically
|
|
10967
|
-
* *
|
|
11165
|
+
* Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
11166
|
+
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the lowest-priced instance type based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces the failures of scale-outs caused by insufficient inventory of instance types.
|
|
10968
11167
|
* * InstanceType: In this mode, you must specify one instance type.
|
|
10969
|
-
* * InstanceTypes
|
|
10970
|
-
* *
|
|
10971
|
-
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines
|
|
10972
|
-
* > You cannot
|
|
11168
|
+
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
11169
|
+
* * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
|
|
11170
|
+
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances of the lowest-priced instance type. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
11171
|
+
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory parameters at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify the InstanceType and InstancePatternInfos parameters or specify the InstanceTypes and InstancePatternInfos parameters at the same time, Auto Scaling preferentially uses the instance types that are specified by the InstanceType or InstanceTypes parameter for scale-outs. If the instance types that are specified by the InstanceType or InstanceTypes parameter do not have sufficient inventory, Auto Scaling uses the instance types that are specified by the InstancePatternInfos parameter for scale-outs.
|
|
10973
11172
|
*
|
|
10974
11173
|
* @param tmpReq CreateScalingConfigurationRequest
|
|
10975
11174
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -11127,6 +11326,9 @@ class Client extends openapi_client_1.default {
|
|
|
11127
11326
|
if (!tea_util_1.default.isUnset(request.zoneId)) {
|
|
11128
11327
|
query["ZoneId"] = request.zoneId;
|
|
11129
11328
|
}
|
|
11329
|
+
if (!tea_util_1.default.isUnset(request.imageOptions)) {
|
|
11330
|
+
query["ImageOptions"] = request.imageOptions;
|
|
11331
|
+
}
|
|
11130
11332
|
if (!tea_util_1.default.isUnset(request.privatePoolOptions)) {
|
|
11131
11333
|
query["PrivatePoolOptions"] = request.privatePoolOptions;
|
|
11132
11334
|
}
|
|
@@ -11150,13 +11352,13 @@ class Client extends openapi_client_1.default {
|
|
|
11150
11352
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingConfigurationResponse({}));
|
|
11151
11353
|
}
|
|
11152
11354
|
/**
|
|
11153
|
-
* Auto Scaling automatically
|
|
11154
|
-
* *
|
|
11355
|
+
* Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
11356
|
+
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the lowest-priced instance type based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces the failures of scale-outs caused by insufficient inventory of instance types.
|
|
11155
11357
|
* * InstanceType: In this mode, you must specify one instance type.
|
|
11156
|
-
* * InstanceTypes
|
|
11157
|
-
* *
|
|
11158
|
-
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines
|
|
11159
|
-
* > You cannot
|
|
11358
|
+
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
11359
|
+
* * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
|
|
11360
|
+
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances of the lowest-priced instance type. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
11361
|
+
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory parameters at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify the InstanceType and InstancePatternInfos parameters or specify the InstanceTypes and InstancePatternInfos parameters at the same time, Auto Scaling preferentially uses the instance types that are specified by the InstanceType or InstanceTypes parameter for scale-outs. If the instance types that are specified by the InstanceType or InstanceTypes parameter do not have sufficient inventory, Auto Scaling uses the instance types that are specified by the InstancePatternInfos parameter for scale-outs.
|
|
11160
11362
|
*
|
|
11161
11363
|
* @param request CreateScalingConfigurationRequest
|
|
11162
11364
|
* @return CreateScalingConfigurationResponse
|
|
@@ -11168,26 +11370,26 @@ class Client extends openapi_client_1.default {
|
|
|
11168
11370
|
/**
|
|
11169
11371
|
* A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
|
|
11170
11372
|
* You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
|
|
11171
|
-
* A scaling group does not immediately take effect after you create
|
|
11172
|
-
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic
|
|
11173
|
-
* If you associate a CLB instance
|
|
11373
|
+
* A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
|
|
11374
|
+
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
|
|
11375
|
+
* If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
|
|
11174
11376
|
* * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
|
|
11175
11377
|
* * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
|
|
11176
11378
|
* > If you specify the default server group and multiple vServer groups at the same time, ECS instances are added to all specified server groups.
|
|
11177
11379
|
* The default weight of an ECS instance that is added as a backend server of a CLB instance is 50. The CLB instance that you want to associate with your scaling group must meet the following requirements:
|
|
11178
11380
|
* * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
|
|
11179
11381
|
* * The health check feature must be enabled on all listener ports that are configured for the CLB instance. Otherwise, the scaling group fails to be created.
|
|
11180
|
-
* If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
|
|
11382
|
+
* If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances that are in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
|
|
11181
11383
|
* If you associate an ApsaraDB RDS instance with a scaling group, Auto Scaling automatically adds the private IP addresses of the ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance. The ApsaraDB RDS instance that you want to associate with your scaling group must meet the following requirements:
|
|
11182
11384
|
* * The ApsaraDB RDS instance must be in the Running state. You can call the DescribeDBInstances operation to query the state of the ApsaraDB RDS instance.
|
|
11183
|
-
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic
|
|
11385
|
+
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic.
|
|
11184
11386
|
* If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
|
|
11185
11387
|
* * You can use the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools parameters to specify the instance allocation method based on the cost optimization policy. This instance allocation method is prioritized during scaling.
|
|
11186
11388
|
* * If you do not specify the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools parameter, the instance types that are provided at the lowest price are used to create instances based on the cost optimization policy.
|
|
11187
|
-
* If you set the `Tags.Propagate` parameter
|
|
11389
|
+
* If you set the `Tags.Propagate` parameter of the scaling group to true, the following rules apply:
|
|
11188
11390
|
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
11189
|
-
* * If you specify instance tags in the scaling configuration that is used to create instances
|
|
11190
|
-
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group
|
|
11391
|
+
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
11392
|
+
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
11191
11393
|
*
|
|
11192
11394
|
* @param request CreateScalingGroupRequest
|
|
11193
11395
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -11250,6 +11452,9 @@ class Client extends openapi_client_1.default {
|
|
|
11250
11452
|
if (!tea_util_1.default.isUnset(request.lifecycleHooks)) {
|
|
11251
11453
|
query["LifecycleHooks"] = request.lifecycleHooks;
|
|
11252
11454
|
}
|
|
11455
|
+
if (!tea_util_1.default.isUnset(request.loadBalancerConfigs)) {
|
|
11456
|
+
query["LoadBalancerConfigs"] = request.loadBalancerConfigs;
|
|
11457
|
+
}
|
|
11253
11458
|
if (!tea_util_1.default.isUnset(request.loadBalancerIds)) {
|
|
11254
11459
|
query["LoadBalancerIds"] = request.loadBalancerIds;
|
|
11255
11460
|
}
|
|
@@ -11341,26 +11546,26 @@ class Client extends openapi_client_1.default {
|
|
|
11341
11546
|
/**
|
|
11342
11547
|
* A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
|
|
11343
11548
|
* You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
|
|
11344
|
-
* A scaling group does not immediately take effect after you create
|
|
11345
|
-
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic
|
|
11346
|
-
* If you associate a CLB instance
|
|
11549
|
+
* A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
|
|
11550
|
+
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
|
|
11551
|
+
* If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
|
|
11347
11552
|
* * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
|
|
11348
11553
|
* * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
|
|
11349
11554
|
* > If you specify the default server group and multiple vServer groups at the same time, ECS instances are added to all specified server groups.
|
|
11350
11555
|
* The default weight of an ECS instance that is added as a backend server of a CLB instance is 50. The CLB instance that you want to associate with your scaling group must meet the following requirements:
|
|
11351
11556
|
* * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
|
|
11352
11557
|
* * The health check feature must be enabled on all listener ports that are configured for the CLB instance. Otherwise, the scaling group fails to be created.
|
|
11353
|
-
* If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
|
|
11558
|
+
* If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances that are in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
|
|
11354
11559
|
* If you associate an ApsaraDB RDS instance with a scaling group, Auto Scaling automatically adds the private IP addresses of the ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance. The ApsaraDB RDS instance that you want to associate with your scaling group must meet the following requirements:
|
|
11355
11560
|
* * The ApsaraDB RDS instance must be in the Running state. You can call the DescribeDBInstances operation to query the state of the ApsaraDB RDS instance.
|
|
11356
|
-
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic
|
|
11561
|
+
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic.
|
|
11357
11562
|
* If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
|
|
11358
11563
|
* * You can use the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools parameters to specify the instance allocation method based on the cost optimization policy. This instance allocation method is prioritized during scaling.
|
|
11359
11564
|
* * If you do not specify the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools parameter, the instance types that are provided at the lowest price are used to create instances based on the cost optimization policy.
|
|
11360
|
-
* If you set the `Tags.Propagate` parameter
|
|
11565
|
+
* If you set the `Tags.Propagate` parameter of the scaling group to true, the following rules apply:
|
|
11361
11566
|
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
11362
|
-
* * If you specify instance tags in the scaling configuration that is used to create instances
|
|
11363
|
-
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group
|
|
11567
|
+
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
11568
|
+
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
11364
11569
|
*
|
|
11365
11570
|
* @param request CreateScalingGroupRequest
|
|
11366
11571
|
* @return CreateScalingGroupResponse
|
|
@@ -11385,6 +11590,9 @@ class Client extends openapi_client_1.default {
|
|
|
11385
11590
|
if (!tea_util_1.default.isUnset(request.adjustmentValue)) {
|
|
11386
11591
|
query["AdjustmentValue"] = request.adjustmentValue;
|
|
11387
11592
|
}
|
|
11593
|
+
if (!tea_util_1.default.isUnset(request.alarmDimensions)) {
|
|
11594
|
+
query["AlarmDimensions"] = request.alarmDimensions;
|
|
11595
|
+
}
|
|
11388
11596
|
if (!tea_util_1.default.isUnset(request.cooldown)) {
|
|
11389
11597
|
query["Cooldown"] = request.cooldown;
|
|
11390
11598
|
}
|
|
@@ -13184,9 +13392,9 @@ class Client extends openapi_client_1.default {
|
|
|
13184
13392
|
/**
|
|
13185
13393
|
* You can call this operation to enable a scaling group that is in the Inactive state and has an instance configuration source. The instance configuration source can be a scaling configuration, a launch template, or an Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If a scaling group is not in the Inactive state or does not have an active instance configuration source, you cannot call this operation to enable the scaling group.
|
|
13186
13394
|
* > A scaling group can have only one active instance configuration source. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If an instance configuration source has been configured for the scaling group before you call this operation, the scaling configuration or launch template that you specify in the request overwrites the original scaling configuration or launch template.
|
|
13187
|
-
* If you specify a value for the
|
|
13188
|
-
* * If the total number of ECS instances is less than the minimum number of instances
|
|
13189
|
-
* * If the value of the
|
|
13395
|
+
* If you specify a value for the InstanceIds parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
|
|
13396
|
+
* * If the total number of ECS instances is less than the minimum number of instances required in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances required in your scaling group is five, and you specify the InstanceIds parameter to add two ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
|
|
13397
|
+
* * If the value of the TotalCapacity parameter is greater than the value of the MaxSize parameter, the call fails.
|
|
13190
13398
|
*
|
|
13191
13399
|
* @param request EnableScalingGroupRequest
|
|
13192
13400
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -13250,9 +13458,9 @@ class Client extends openapi_client_1.default {
|
|
|
13250
13458
|
/**
|
|
13251
13459
|
* You can call this operation to enable a scaling group that is in the Inactive state and has an instance configuration source. The instance configuration source can be a scaling configuration, a launch template, or an Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If a scaling group is not in the Inactive state or does not have an active instance configuration source, you cannot call this operation to enable the scaling group.
|
|
13252
13460
|
* > A scaling group can have only one active instance configuration source. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If an instance configuration source has been configured for the scaling group before you call this operation, the scaling configuration or launch template that you specify in the request overwrites the original scaling configuration or launch template.
|
|
13253
|
-
* If you specify a value for the
|
|
13254
|
-
* * If the total number of ECS instances is less than the minimum number of instances
|
|
13255
|
-
* * If the value of the
|
|
13461
|
+
* If you specify a value for the InstanceIds parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
|
|
13462
|
+
* * If the total number of ECS instances is less than the minimum number of instances required in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances required in your scaling group is five, and you specify the InstanceIds parameter to add two ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
|
|
13463
|
+
* * If the value of the TotalCapacity parameter is greater than the value of the MaxSize parameter, the call fails.
|
|
13256
13464
|
*
|
|
13257
13465
|
* @param request EnableScalingGroupRequest
|
|
13258
13466
|
* @return EnableScalingGroupResponse
|
|
@@ -13835,7 +14043,9 @@ class Client extends openapi_client_1.default {
|
|
|
13835
14043
|
return await this.modifyEciScalingConfigurationWithOptions(request, runtime);
|
|
13836
14044
|
}
|
|
13837
14045
|
/**
|
|
13838
|
-
*
|
|
14046
|
+
* You can use one of the following methods to specify the lifecycle hook that you want to modify:
|
|
14047
|
+
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. When you use this method, the ScalingGroupId and LifecycleHookName parameters are ignored.
|
|
14048
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter and specify the lifecycle hook name by using the LifecycleHookName parameter.
|
|
13839
14049
|
*
|
|
13840
14050
|
* @param request ModifyLifecycleHookRequest
|
|
13841
14051
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -13900,7 +14110,9 @@ class Client extends openapi_client_1.default {
|
|
|
13900
14110
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyLifecycleHookResponse({}));
|
|
13901
14111
|
}
|
|
13902
14112
|
/**
|
|
13903
|
-
*
|
|
14113
|
+
* You can use one of the following methods to specify the lifecycle hook that you want to modify:
|
|
14114
|
+
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. When you use this method, the ScalingGroupId and LifecycleHookName parameters are ignored.
|
|
14115
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter and specify the lifecycle hook name by using the LifecycleHookName parameter.
|
|
13904
14116
|
*
|
|
13905
14117
|
* @param request ModifyLifecycleHookRequest
|
|
13906
14118
|
* @return ModifyLifecycleHookResponse
|
|
@@ -14097,6 +14309,9 @@ class Client extends openapi_client_1.default {
|
|
|
14097
14309
|
if (!tea_util_1.default.isUnset(request.zoneId)) {
|
|
14098
14310
|
query["ZoneId"] = request.zoneId;
|
|
14099
14311
|
}
|
|
14312
|
+
if (!tea_util_1.default.isUnset(request.imageOptions)) {
|
|
14313
|
+
query["ImageOptions"] = request.imageOptions;
|
|
14314
|
+
}
|
|
14100
14315
|
if (!tea_util_1.default.isUnset(request.privatePoolOptions)) {
|
|
14101
14316
|
query["PrivatePoolOptions"] = request.privatePoolOptions;
|
|
14102
14317
|
}
|
|
@@ -14261,6 +14476,9 @@ class Client extends openapi_client_1.default {
|
|
|
14261
14476
|
if (!tea_util_1.default.isUnset(request.adjustmentValue)) {
|
|
14262
14477
|
query["AdjustmentValue"] = request.adjustmentValue;
|
|
14263
14478
|
}
|
|
14479
|
+
if (!tea_util_1.default.isUnset(request.alarmDimensions)) {
|
|
14480
|
+
query["AlarmDimensions"] = request.alarmDimensions;
|
|
14481
|
+
}
|
|
14264
14482
|
if (!tea_util_1.default.isUnset(request.cooldown)) {
|
|
14265
14483
|
query["Cooldown"] = request.cooldown;
|
|
14266
14484
|
}
|