@alicloud/ess20220222 1.0.2 → 1.0.3

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.js CHANGED
@@ -287,6 +287,72 @@ class AttachLoadBalancersResponse extends $tea.Model {
287
287
  }
288
288
  }
289
289
  exports.AttachLoadBalancersResponse = AttachLoadBalancersResponse;
290
+ class AttachServerGroupsRequest extends $tea.Model {
291
+ constructor(map) {
292
+ super(map);
293
+ }
294
+ static names() {
295
+ return {
296
+ clientToken: 'ClientToken',
297
+ forceAttach: 'ForceAttach',
298
+ ownerId: 'OwnerId',
299
+ regionId: 'RegionId',
300
+ resourceOwnerAccount: 'ResourceOwnerAccount',
301
+ scalingGroupId: 'ScalingGroupId',
302
+ serverGroups: 'ServerGroups',
303
+ };
304
+ }
305
+ static types() {
306
+ return {
307
+ clientToken: 'string',
308
+ forceAttach: 'boolean',
309
+ ownerId: 'number',
310
+ regionId: 'string',
311
+ resourceOwnerAccount: 'string',
312
+ scalingGroupId: 'string',
313
+ serverGroups: { 'type': 'array', 'itemType': AttachServerGroupsRequestServerGroups },
314
+ };
315
+ }
316
+ }
317
+ exports.AttachServerGroupsRequest = AttachServerGroupsRequest;
318
+ class AttachServerGroupsResponseBody extends $tea.Model {
319
+ constructor(map) {
320
+ super(map);
321
+ }
322
+ static names() {
323
+ return {
324
+ requestId: 'RequestId',
325
+ scalingActivityId: 'ScalingActivityId',
326
+ };
327
+ }
328
+ static types() {
329
+ return {
330
+ requestId: 'string',
331
+ scalingActivityId: 'string',
332
+ };
333
+ }
334
+ }
335
+ exports.AttachServerGroupsResponseBody = AttachServerGroupsResponseBody;
336
+ class AttachServerGroupsResponse extends $tea.Model {
337
+ constructor(map) {
338
+ super(map);
339
+ }
340
+ static names() {
341
+ return {
342
+ headers: 'headers',
343
+ statusCode: 'statusCode',
344
+ body: 'body',
345
+ };
346
+ }
347
+ static types() {
348
+ return {
349
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
350
+ statusCode: 'number',
351
+ body: AttachServerGroupsResponseBody,
352
+ };
353
+ }
354
+ }
355
+ exports.AttachServerGroupsResponse = AttachServerGroupsResponse;
290
356
  class AttachVServerGroupsRequest extends $tea.Model {
291
357
  constructor(map) {
292
358
  super(map);
@@ -351,6 +417,68 @@ class AttachVServerGroupsResponse extends $tea.Model {
351
417
  }
352
418
  }
353
419
  exports.AttachVServerGroupsResponse = AttachVServerGroupsResponse;
420
+ class ChangeResourceGroupRequest extends $tea.Model {
421
+ constructor(map) {
422
+ super(map);
423
+ }
424
+ static names() {
425
+ return {
426
+ newResourceGroupId: 'NewResourceGroupId',
427
+ ownerId: 'OwnerId',
428
+ regionId: 'RegionId',
429
+ resourceId: 'ResourceId',
430
+ resourceOwnerAccount: 'ResourceOwnerAccount',
431
+ resourceType: 'ResourceType',
432
+ };
433
+ }
434
+ static types() {
435
+ return {
436
+ newResourceGroupId: 'string',
437
+ ownerId: 'number',
438
+ regionId: 'string',
439
+ resourceId: 'string',
440
+ resourceOwnerAccount: 'string',
441
+ resourceType: 'string',
442
+ };
443
+ }
444
+ }
445
+ exports.ChangeResourceGroupRequest = ChangeResourceGroupRequest;
446
+ class ChangeResourceGroupResponseBody extends $tea.Model {
447
+ constructor(map) {
448
+ super(map);
449
+ }
450
+ static names() {
451
+ return {
452
+ requestId: 'RequestId',
453
+ };
454
+ }
455
+ static types() {
456
+ return {
457
+ requestId: 'string',
458
+ };
459
+ }
460
+ }
461
+ exports.ChangeResourceGroupResponseBody = ChangeResourceGroupResponseBody;
462
+ class ChangeResourceGroupResponse extends $tea.Model {
463
+ constructor(map) {
464
+ super(map);
465
+ }
466
+ static names() {
467
+ return {
468
+ headers: 'headers',
469
+ statusCode: 'statusCode',
470
+ body: 'body',
471
+ };
472
+ }
473
+ static types() {
474
+ return {
475
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
476
+ statusCode: 'number',
477
+ body: ChangeResourceGroupResponseBody,
478
+ };
479
+ }
480
+ }
481
+ exports.ChangeResourceGroupResponse = ChangeResourceGroupResponse;
354
482
  class CompleteLifecycleActionRequest extends $tea.Model {
355
483
  constructor(map) {
356
484
  super(map);
@@ -1082,9 +1210,11 @@ class CreateScalingGroupRequest extends $tea.Model {
1082
1210
  ownerId: 'OwnerId',
1083
1211
  regionId: 'RegionId',
1084
1212
  removalPolicies: 'RemovalPolicies',
1213
+ resourceGroupId: 'ResourceGroupId',
1085
1214
  resourceOwnerAccount: 'ResourceOwnerAccount',
1086
1215
  scalingGroupName: 'ScalingGroupName',
1087
1216
  scalingPolicy: 'ScalingPolicy',
1217
+ serverGroups: 'ServerGroups',
1088
1218
  spotAllocationStrategy: 'SpotAllocationStrategy',
1089
1219
  spotInstancePools: 'SpotInstancePools',
1090
1220
  spotInstanceRemedy: 'SpotInstanceRemedy',
@@ -1126,9 +1256,11 @@ class CreateScalingGroupRequest extends $tea.Model {
1126
1256
  ownerId: 'number',
1127
1257
  regionId: 'string',
1128
1258
  removalPolicies: { 'type': 'array', 'itemType': 'string' },
1259
+ resourceGroupId: 'string',
1129
1260
  resourceOwnerAccount: 'string',
1130
1261
  scalingGroupName: 'string',
1131
1262
  scalingPolicy: 'string',
1263
+ serverGroups: { 'type': 'array', 'itemType': CreateScalingGroupRequestServerGroups },
1132
1264
  spotAllocationStrategy: 'string',
1133
1265
  spotInstancePools: 'number',
1134
1266
  spotInstanceRemedy: 'boolean',
@@ -2699,6 +2831,7 @@ class DescribeScalingGroupsRequest extends $tea.Model {
2699
2831
  pageNumber: 'PageNumber',
2700
2832
  pageSize: 'PageSize',
2701
2833
  regionId: 'RegionId',
2834
+ resourceGroupId: 'ResourceGroupId',
2702
2835
  resourceOwnerAccount: 'ResourceOwnerAccount',
2703
2836
  resourceOwnerId: 'ResourceOwnerId',
2704
2837
  scalingGroupIds: 'ScalingGroupIds',
@@ -2714,6 +2847,7 @@ class DescribeScalingGroupsRequest extends $tea.Model {
2714
2847
  pageNumber: 'number',
2715
2848
  pageSize: 'number',
2716
2849
  regionId: 'string',
2850
+ resourceGroupId: 'string',
2717
2851
  resourceOwnerAccount: 'string',
2718
2852
  resourceOwnerId: 'number',
2719
2853
  scalingGroupIds: { 'type': 'array', 'itemType': 'string' },
@@ -3287,6 +3421,72 @@ class DetachLoadBalancersResponse extends $tea.Model {
3287
3421
  }
3288
3422
  }
3289
3423
  exports.DetachLoadBalancersResponse = DetachLoadBalancersResponse;
3424
+ class DetachServerGroupsRequest extends $tea.Model {
3425
+ constructor(map) {
3426
+ super(map);
3427
+ }
3428
+ static names() {
3429
+ return {
3430
+ clientToken: 'ClientToken',
3431
+ forceDetach: 'ForceDetach',
3432
+ ownerId: 'OwnerId',
3433
+ regionId: 'RegionId',
3434
+ resourceOwnerAccount: 'ResourceOwnerAccount',
3435
+ scalingGroupId: 'ScalingGroupId',
3436
+ serverGroups: 'ServerGroups',
3437
+ };
3438
+ }
3439
+ static types() {
3440
+ return {
3441
+ clientToken: 'string',
3442
+ forceDetach: 'boolean',
3443
+ ownerId: 'number',
3444
+ regionId: 'string',
3445
+ resourceOwnerAccount: 'string',
3446
+ scalingGroupId: 'string',
3447
+ serverGroups: { 'type': 'array', 'itemType': DetachServerGroupsRequestServerGroups },
3448
+ };
3449
+ }
3450
+ }
3451
+ exports.DetachServerGroupsRequest = DetachServerGroupsRequest;
3452
+ class DetachServerGroupsResponseBody extends $tea.Model {
3453
+ constructor(map) {
3454
+ super(map);
3455
+ }
3456
+ static names() {
3457
+ return {
3458
+ requestId: 'RequestId',
3459
+ scalingActivityId: 'ScalingActivityId',
3460
+ };
3461
+ }
3462
+ static types() {
3463
+ return {
3464
+ requestId: 'string',
3465
+ scalingActivityId: 'string',
3466
+ };
3467
+ }
3468
+ }
3469
+ exports.DetachServerGroupsResponseBody = DetachServerGroupsResponseBody;
3470
+ class DetachServerGroupsResponse extends $tea.Model {
3471
+ constructor(map) {
3472
+ super(map);
3473
+ }
3474
+ static names() {
3475
+ return {
3476
+ headers: 'headers',
3477
+ statusCode: 'statusCode',
3478
+ body: 'body',
3479
+ };
3480
+ }
3481
+ static types() {
3482
+ return {
3483
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3484
+ statusCode: 'number',
3485
+ body: DetachServerGroupsResponseBody,
3486
+ };
3487
+ }
3488
+ }
3489
+ exports.DetachServerGroupsResponse = DetachServerGroupsResponse;
3290
3490
  class DetachVServerGroupsRequest extends $tea.Model {
3291
3491
  constructor(map) {
3292
3492
  super(map);
@@ -4109,6 +4309,7 @@ class ModifyEciScalingConfigurationRequest extends $tea.Model {
4109
4309
  autoMatchImageCache: 'AutoMatchImageCache',
4110
4310
  containerGroupName: 'ContainerGroupName',
4111
4311
  containers: 'Containers',
4312
+ containersUpdateType: 'ContainersUpdateType',
4112
4313
  costOptimization: 'CostOptimization',
4113
4314
  cpu: 'Cpu',
4114
4315
  cpuOptionsCore: 'CpuOptionsCore',
@@ -4157,6 +4358,7 @@ class ModifyEciScalingConfigurationRequest extends $tea.Model {
4157
4358
  autoMatchImageCache: 'boolean',
4158
4359
  containerGroupName: 'string',
4159
4360
  containers: { 'type': 'array', 'itemType': ModifyEciScalingConfigurationRequestContainers },
4361
+ containersUpdateType: 'string',
4160
4362
  costOptimization: 'boolean',
4161
4363
  cpu: 'number',
4162
4364
  cpuOptionsCore: 'number',
@@ -5205,12 +5407,14 @@ class ScaleWithAdjustmentResponseBody extends $tea.Model {
5205
5407
  }
5206
5408
  static names() {
5207
5409
  return {
5410
+ activityType: 'ActivityType',
5208
5411
  requestId: 'RequestId',
5209
5412
  scalingActivityId: 'ScalingActivityId',
5210
5413
  };
5211
5414
  }
5212
5415
  static types() {
5213
5416
  return {
5417
+ activityType: 'string',
5214
5418
  requestId: 'string',
5215
5419
  scalingActivityId: 'string',
5216
5420
  };
@@ -5739,6 +5943,28 @@ class AttachAlbServerGroupsRequestAlbServerGroups extends $tea.Model {
5739
5943
  }
5740
5944
  }
5741
5945
  exports.AttachAlbServerGroupsRequestAlbServerGroups = AttachAlbServerGroupsRequestAlbServerGroups;
5946
+ class AttachServerGroupsRequestServerGroups extends $tea.Model {
5947
+ constructor(map) {
5948
+ super(map);
5949
+ }
5950
+ static names() {
5951
+ return {
5952
+ port: 'Port',
5953
+ serverGroupId: 'ServerGroupId',
5954
+ type: 'Type',
5955
+ weight: 'Weight',
5956
+ };
5957
+ }
5958
+ static types() {
5959
+ return {
5960
+ port: 'number',
5961
+ serverGroupId: 'string',
5962
+ type: 'string',
5963
+ weight: 'number',
5964
+ };
5965
+ }
5966
+ }
5967
+ exports.AttachServerGroupsRequestServerGroups = AttachServerGroupsRequestServerGroups;
5742
5968
  class AttachVServerGroupsRequestVServerGroupsVServerGroupAttributes extends $tea.Model {
5743
5969
  constructor(map) {
5744
5970
  super(map);
@@ -6876,12 +7102,14 @@ class CreateScalingGroupRequestLaunchTemplateOverrides extends $tea.Model {
6876
7102
  static names() {
6877
7103
  return {
6878
7104
  instanceType: 'InstanceType',
7105
+ spotPriceLimit: 'SpotPriceLimit',
6879
7106
  weightedCapacity: 'WeightedCapacity',
6880
7107
  };
6881
7108
  }
6882
7109
  static types() {
6883
7110
  return {
6884
7111
  instanceType: 'string',
7112
+ spotPriceLimit: 'number',
6885
7113
  weightedCapacity: 'number',
6886
7114
  };
6887
7115
  }
@@ -6913,6 +7141,28 @@ class CreateScalingGroupRequestLifecycleHooks extends $tea.Model {
6913
7141
  }
6914
7142
  }
6915
7143
  exports.CreateScalingGroupRequestLifecycleHooks = CreateScalingGroupRequestLifecycleHooks;
7144
+ class CreateScalingGroupRequestServerGroups extends $tea.Model {
7145
+ constructor(map) {
7146
+ super(map);
7147
+ }
7148
+ static names() {
7149
+ return {
7150
+ port: 'Port',
7151
+ serverGroupId: 'ServerGroupId',
7152
+ type: 'Type',
7153
+ weight: 'Weight',
7154
+ };
7155
+ }
7156
+ static types() {
7157
+ return {
7158
+ port: 'number',
7159
+ serverGroupId: 'string',
7160
+ type: 'string',
7161
+ weight: 'number',
7162
+ };
7163
+ }
7164
+ }
7165
+ exports.CreateScalingGroupRequestServerGroups = CreateScalingGroupRequestServerGroups;
6916
7166
  class CreateScalingGroupRequestTags extends $tea.Model {
6917
7167
  constructor(map) {
6918
7168
  super(map);
@@ -7730,15 +7980,26 @@ class DescribeScalingActivitiesResponseBodyScalingActivities extends $tea.Model
7730
7980
  attachedCapacity: 'AttachedCapacity',
7731
7981
  autoCreatedCapacity: 'AutoCreatedCapacity',
7732
7982
  cause: 'Cause',
7983
+ createdCapacity: 'CreatedCapacity',
7984
+ createdInstances: 'CreatedInstances',
7733
7985
  description: 'Description',
7986
+ destroyedCapacity: 'DestroyedCapacity',
7987
+ destroyedInstances: 'DestroyedInstances',
7988
+ detail: 'Detail',
7734
7989
  endTime: 'EndTime',
7990
+ errorCode: 'ErrorCode',
7991
+ errorMessage: 'ErrorMessage',
7735
7992
  progress: 'Progress',
7736
7993
  scalingActivityId: 'ScalingActivityId',
7737
7994
  scalingGroupId: 'ScalingGroupId',
7738
7995
  scalingInstanceNumber: 'ScalingInstanceNumber',
7739
7996
  startTime: 'StartTime',
7997
+ startedCapacity: 'StartedCapacity',
7998
+ startedInstances: 'StartedInstances',
7740
7999
  statusCode: 'StatusCode',
7741
8000
  statusMessage: 'StatusMessage',
8001
+ stoppedCapacity: 'StoppedCapacity',
8002
+ stoppedInstances: 'StoppedInstances',
7742
8003
  totalCapacity: 'TotalCapacity',
7743
8004
  };
7744
8005
  }
@@ -7747,15 +8008,26 @@ class DescribeScalingActivitiesResponseBodyScalingActivities extends $tea.Model
7747
8008
  attachedCapacity: 'string',
7748
8009
  autoCreatedCapacity: 'string',
7749
8010
  cause: 'string',
8011
+ createdCapacity: 'number',
8012
+ createdInstances: { 'type': 'array', 'itemType': 'string' },
7750
8013
  description: 'string',
8014
+ destroyedCapacity: 'number',
8015
+ destroyedInstances: { 'type': 'array', 'itemType': 'string' },
8016
+ detail: 'string',
7751
8017
  endTime: 'string',
8018
+ errorCode: 'string',
8019
+ errorMessage: 'string',
7752
8020
  progress: 'number',
7753
8021
  scalingActivityId: 'string',
7754
8022
  scalingGroupId: 'string',
7755
8023
  scalingInstanceNumber: 'number',
7756
8024
  startTime: 'string',
8025
+ startedCapacity: 'number',
8026
+ startedInstances: { 'type': 'array', 'itemType': 'string' },
7757
8027
  statusCode: 'string',
7758
8028
  statusMessage: 'string',
8029
+ stoppedCapacity: 'number',
8030
+ stoppedInstances: { 'type': 'array', 'itemType': 'string' },
7759
8031
  totalCapacity: 'string',
7760
8032
  };
7761
8033
  }
@@ -7920,6 +8192,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
7920
8192
  imageFamily: 'ImageFamily',
7921
8193
  imageId: 'ImageId',
7922
8194
  imageName: 'ImageName',
8195
+ imageOwnerAlias: 'ImageOwnerAlias',
7923
8196
  instanceDescription: 'InstanceDescription',
7924
8197
  instanceGeneration: 'InstanceGeneration',
7925
8198
  instanceName: 'InstanceName',
@@ -7983,6 +8256,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
7983
8256
  imageFamily: 'string',
7984
8257
  imageId: 'string',
7985
8258
  imageName: 'string',
8259
+ imageOwnerAlias: 'string',
7986
8260
  instanceDescription: 'string',
7987
8261
  instanceGeneration: 'string',
7988
8262
  instanceName: 'string',
@@ -8060,17 +8334,41 @@ class DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides exte
8060
8334
  static names() {
8061
8335
  return {
8062
8336
  instanceType: 'InstanceType',
8337
+ spotPriceLimit: 'SpotPriceLimit',
8063
8338
  weightedCapacity: 'WeightedCapacity',
8064
8339
  };
8065
8340
  }
8066
8341
  static types() {
8067
8342
  return {
8068
8343
  instanceType: 'string',
8344
+ spotPriceLimit: 'number',
8069
8345
  weightedCapacity: 'number',
8070
8346
  };
8071
8347
  }
8072
8348
  }
8073
8349
  exports.DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides = DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides;
8350
+ class DescribeScalingGroupsResponseBodyScalingGroupsServerGroups extends $tea.Model {
8351
+ constructor(map) {
8352
+ super(map);
8353
+ }
8354
+ static names() {
8355
+ return {
8356
+ port: 'Port',
8357
+ serverGroupId: 'ServerGroupId',
8358
+ type: 'Type',
8359
+ weight: 'Weight',
8360
+ };
8361
+ }
8362
+ static types() {
8363
+ return {
8364
+ port: 'number',
8365
+ serverGroupId: 'string',
8366
+ type: 'string',
8367
+ weight: 'number',
8368
+ };
8369
+ }
8370
+ }
8371
+ exports.DescribeScalingGroupsResponseBodyScalingGroupsServerGroups = DescribeScalingGroupsResponseBodyScalingGroupsServerGroups;
8074
8372
  class DescribeScalingGroupsResponseBodyScalingGroupsVServerGroupsVServerGroupAttributes extends $tea.Model {
8075
8373
  constructor(map) {
8076
8374
  super(map);
@@ -8130,6 +8428,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8130
8428
  groupDeletionProtection: 'GroupDeletionProtection',
8131
8429
  groupType: 'GroupType',
8132
8430
  healthCheckType: 'HealthCheckType',
8431
+ initCapacity: 'InitCapacity',
8133
8432
  isElasticStrengthInAlarm: 'IsElasticStrengthInAlarm',
8134
8433
  launchTemplateId: 'LaunchTemplateId',
8135
8434
  launchTemplateOverrides: 'LaunchTemplateOverrides',
@@ -8151,9 +8450,11 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8151
8450
  removalPolicies: 'RemovalPolicies',
8152
8451
  removingCapacity: 'RemovingCapacity',
8153
8452
  removingWaitCapacity: 'RemovingWaitCapacity',
8453
+ resourceGroupId: 'ResourceGroupId',
8154
8454
  scalingGroupId: 'ScalingGroupId',
8155
8455
  scalingGroupName: 'ScalingGroupName',
8156
8456
  scalingPolicy: 'ScalingPolicy',
8457
+ serverGroups: 'ServerGroups',
8157
8458
  spotAllocationStrategy: 'SpotAllocationStrategy',
8158
8459
  spotInstancePools: 'SpotInstancePools',
8159
8460
  spotInstanceRemedy: 'SpotInstanceRemedy',
@@ -8186,6 +8487,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8186
8487
  groupDeletionProtection: 'boolean',
8187
8488
  groupType: 'string',
8188
8489
  healthCheckType: 'string',
8490
+ initCapacity: 'number',
8189
8491
  isElasticStrengthInAlarm: 'boolean',
8190
8492
  launchTemplateId: 'string',
8191
8493
  launchTemplateOverrides: { 'type': 'array', 'itemType': DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides },
@@ -8207,9 +8509,11 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8207
8509
  removalPolicies: { 'type': 'array', 'itemType': 'string' },
8208
8510
  removingCapacity: 'number',
8209
8511
  removingWaitCapacity: 'number',
8512
+ resourceGroupId: 'string',
8210
8513
  scalingGroupId: 'string',
8211
8514
  scalingGroupName: 'string',
8212
8515
  scalingPolicy: 'string',
8516
+ serverGroups: { 'type': 'array', 'itemType': DescribeScalingGroupsResponseBodyScalingGroupsServerGroups },
8213
8517
  spotAllocationStrategy: 'string',
8214
8518
  spotInstancePools: 'number',
8215
8519
  spotInstanceRemedy: 'boolean',
@@ -8467,6 +8771,26 @@ class DetachAlbServerGroupsRequestAlbServerGroups extends $tea.Model {
8467
8771
  }
8468
8772
  }
8469
8773
  exports.DetachAlbServerGroupsRequestAlbServerGroups = DetachAlbServerGroupsRequestAlbServerGroups;
8774
+ class DetachServerGroupsRequestServerGroups extends $tea.Model {
8775
+ constructor(map) {
8776
+ super(map);
8777
+ }
8778
+ static names() {
8779
+ return {
8780
+ port: 'Port',
8781
+ serverGroupId: 'ServerGroupId',
8782
+ type: 'Type',
8783
+ };
8784
+ }
8785
+ static types() {
8786
+ return {
8787
+ port: 'number',
8788
+ serverGroupId: 'string',
8789
+ type: 'string',
8790
+ };
8791
+ }
8792
+ }
8793
+ exports.DetachServerGroupsRequestServerGroups = DetachServerGroupsRequestServerGroups;
8470
8794
  class DetachVServerGroupsRequestVServerGroupsVServerGroupAttributes extends $tea.Model {
8471
8795
  constructor(map) {
8472
8796
  super(map);
@@ -9674,12 +9998,14 @@ class ModifyScalingGroupRequestLaunchTemplateOverrides extends $tea.Model {
9674
9998
  static names() {
9675
9999
  return {
9676
10000
  instanceType: 'InstanceType',
10001
+ spotPriceLimit: 'SpotPriceLimit',
9677
10002
  weightedCapacity: 'WeightedCapacity',
9678
10003
  };
9679
10004
  }
9680
10005
  static types() {
9681
10006
  return {
9682
10007
  instanceType: 'string',
10008
+ spotPriceLimit: 'number',
9683
10009
  weightedCapacity: 'number',
9684
10010
  };
9685
10011
  }
@@ -9787,6 +10113,13 @@ class Client extends openapi_client_1.default {
9787
10113
  }
9788
10114
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
9789
10115
  }
10116
+ /**
10117
+ * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
10118
+ *
10119
+ * @param request AttachAlbServerGroupsRequest
10120
+ * @param runtime runtime options for this request RuntimeOptions
10121
+ * @return AttachAlbServerGroupsResponse
10122
+ */
9790
10123
  async attachAlbServerGroupsWithOptions(request, runtime) {
9791
10124
  tea_util_1.default.validateModel(request);
9792
10125
  let query = {};
@@ -9827,10 +10160,23 @@ class Client extends openapi_client_1.default {
9827
10160
  });
9828
10161
  return $tea.cast(await this.callApi(params, req, runtime), new AttachAlbServerGroupsResponse({}));
9829
10162
  }
10163
+ /**
10164
+ * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
10165
+ *
10166
+ * @param request AttachAlbServerGroupsRequest
10167
+ * @return AttachAlbServerGroupsResponse
10168
+ */
9830
10169
  async attachAlbServerGroups(request) {
9831
10170
  let runtime = new $Util.RuntimeOptions({});
9832
10171
  return await this.attachAlbServerGroupsWithOptions(request, runtime);
9833
10172
  }
10173
+ /**
10174
+ * Associates one or more ApsaraDB RDS instances with a scaling group.
10175
+ *
10176
+ * @param request AttachDBInstancesRequest
10177
+ * @param runtime runtime options for this request RuntimeOptions
10178
+ * @return AttachDBInstancesResponse
10179
+ */
9834
10180
  async attachDBInstancesWithOptions(request, runtime) {
9835
10181
  tea_util_1.default.validateModel(request);
9836
10182
  let query = {};
@@ -9871,10 +10217,23 @@ class Client extends openapi_client_1.default {
9871
10217
  });
9872
10218
  return $tea.cast(await this.callApi(params, req, runtime), new AttachDBInstancesResponse({}));
9873
10219
  }
10220
+ /**
10221
+ * Associates one or more ApsaraDB RDS instances with a scaling group.
10222
+ *
10223
+ * @param request AttachDBInstancesRequest
10224
+ * @return AttachDBInstancesResponse
10225
+ */
9874
10226
  async attachDBInstances(request) {
9875
10227
  let runtime = new $Util.RuntimeOptions({});
9876
10228
  return await this.attachDBInstancesWithOptions(request, runtime);
9877
10229
  }
10230
+ /**
10231
+ * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
10232
+ *
10233
+ * @param request AttachInstancesRequest
10234
+ * @param runtime runtime options for this request RuntimeOptions
10235
+ * @return AttachInstancesResponse
10236
+ */
9878
10237
  async attachInstancesWithOptions(request, runtime) {
9879
10238
  tea_util_1.default.validateModel(request);
9880
10239
  let query = {};
@@ -9924,10 +10283,23 @@ class Client extends openapi_client_1.default {
9924
10283
  });
9925
10284
  return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
9926
10285
  }
10286
+ /**
10287
+ * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
10288
+ *
10289
+ * @param request AttachInstancesRequest
10290
+ * @return AttachInstancesResponse
10291
+ */
9927
10292
  async attachInstances(request) {
9928
10293
  let runtime = new $Util.RuntimeOptions({});
9929
10294
  return await this.attachInstancesWithOptions(request, runtime);
9930
10295
  }
10296
+ /**
10297
+ * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
10298
+ *
10299
+ * @param request AttachLoadBalancersRequest
10300
+ * @param runtime runtime options for this request RuntimeOptions
10301
+ * @return AttachLoadBalancersResponse
10302
+ */
9931
10303
  async attachLoadBalancersWithOptions(request, runtime) {
9932
10304
  tea_util_1.default.validateModel(request);
9933
10305
  let query = {};
@@ -9968,10 +10340,67 @@ class Client extends openapi_client_1.default {
9968
10340
  });
9969
10341
  return $tea.cast(await this.callApi(params, req, runtime), new AttachLoadBalancersResponse({}));
9970
10342
  }
10343
+ /**
10344
+ * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
10345
+ *
10346
+ * @param request AttachLoadBalancersRequest
10347
+ * @return AttachLoadBalancersResponse
10348
+ */
9971
10349
  async attachLoadBalancers(request) {
9972
10350
  let runtime = new $Util.RuntimeOptions({});
9973
10351
  return await this.attachLoadBalancersWithOptions(request, runtime);
9974
10352
  }
10353
+ async attachServerGroupsWithOptions(request, runtime) {
10354
+ tea_util_1.default.validateModel(request);
10355
+ let query = {};
10356
+ if (!tea_util_1.default.isUnset(request.clientToken)) {
10357
+ query["ClientToken"] = request.clientToken;
10358
+ }
10359
+ if (!tea_util_1.default.isUnset(request.forceAttach)) {
10360
+ query["ForceAttach"] = request.forceAttach;
10361
+ }
10362
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
10363
+ query["OwnerId"] = request.ownerId;
10364
+ }
10365
+ if (!tea_util_1.default.isUnset(request.regionId)) {
10366
+ query["RegionId"] = request.regionId;
10367
+ }
10368
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10369
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10370
+ }
10371
+ if (!tea_util_1.default.isUnset(request.scalingGroupId)) {
10372
+ query["ScalingGroupId"] = request.scalingGroupId;
10373
+ }
10374
+ if (!tea_util_1.default.isUnset(request.serverGroups)) {
10375
+ query["ServerGroups"] = request.serverGroups;
10376
+ }
10377
+ let req = new $OpenApi.OpenApiRequest({
10378
+ query: openapi_util_1.default.query(query),
10379
+ });
10380
+ let params = new $OpenApi.Params({
10381
+ action: "AttachServerGroups",
10382
+ version: "2022-02-22",
10383
+ protocol: "HTTPS",
10384
+ pathname: "/",
10385
+ method: "POST",
10386
+ authType: "AK",
10387
+ style: "RPC",
10388
+ reqBodyType: "formData",
10389
+ bodyType: "json",
10390
+ });
10391
+ return $tea.cast(await this.callApi(params, req, runtime), new AttachServerGroupsResponse({}));
10392
+ }
10393
+ async attachServerGroups(request) {
10394
+ let runtime = new $Util.RuntimeOptions({});
10395
+ return await this.attachServerGroupsWithOptions(request, runtime);
10396
+ }
10397
+ /**
10398
+ * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
10399
+ *
10400
+ * @param request AttachVServerGroupsRequest
10401
+ * @param runtime runtime options for this request RuntimeOptions
10402
+ * @return AttachVServerGroupsResponse
10403
+ */
9975
10404
  async attachVServerGroupsWithOptions(request, runtime) {
9976
10405
  tea_util_1.default.validateModel(request);
9977
10406
  let query = {};
@@ -10012,10 +10441,77 @@ class Client extends openapi_client_1.default {
10012
10441
  });
10013
10442
  return $tea.cast(await this.callApi(params, req, runtime), new AttachVServerGroupsResponse({}));
10014
10443
  }
10444
+ /**
10445
+ * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
10446
+ *
10447
+ * @param request AttachVServerGroupsRequest
10448
+ * @return AttachVServerGroupsResponse
10449
+ */
10015
10450
  async attachVServerGroups(request) {
10016
10451
  let runtime = new $Util.RuntimeOptions({});
10017
10452
  return await this.attachVServerGroupsWithOptions(request, runtime);
10018
10453
  }
10454
+ /**
10455
+ * A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources, monitor resources, and perform operations in a centralized manner. This way, you do not need to view and check your Alibaba Cloud resources in each Alibaba Cloud service.
10456
+ *
10457
+ * @param request ChangeResourceGroupRequest
10458
+ * @param runtime runtime options for this request RuntimeOptions
10459
+ * @return ChangeResourceGroupResponse
10460
+ */
10461
+ async changeResourceGroupWithOptions(request, runtime) {
10462
+ tea_util_1.default.validateModel(request);
10463
+ let query = {};
10464
+ if (!tea_util_1.default.isUnset(request.newResourceGroupId)) {
10465
+ query["NewResourceGroupId"] = request.newResourceGroupId;
10466
+ }
10467
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
10468
+ query["OwnerId"] = request.ownerId;
10469
+ }
10470
+ if (!tea_util_1.default.isUnset(request.regionId)) {
10471
+ query["RegionId"] = request.regionId;
10472
+ }
10473
+ if (!tea_util_1.default.isUnset(request.resourceId)) {
10474
+ query["ResourceId"] = request.resourceId;
10475
+ }
10476
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10477
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10478
+ }
10479
+ if (!tea_util_1.default.isUnset(request.resourceType)) {
10480
+ query["ResourceType"] = request.resourceType;
10481
+ }
10482
+ let req = new $OpenApi.OpenApiRequest({
10483
+ query: openapi_util_1.default.query(query),
10484
+ });
10485
+ let params = new $OpenApi.Params({
10486
+ action: "ChangeResourceGroup",
10487
+ version: "2022-02-22",
10488
+ protocol: "HTTPS",
10489
+ pathname: "/",
10490
+ method: "POST",
10491
+ authType: "AK",
10492
+ style: "RPC",
10493
+ reqBodyType: "formData",
10494
+ bodyType: "json",
10495
+ });
10496
+ return $tea.cast(await this.callApi(params, req, runtime), new ChangeResourceGroupResponse({}));
10497
+ }
10498
+ /**
10499
+ * A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources, monitor resources, and perform operations in a centralized manner. This way, you do not need to view and check your Alibaba Cloud resources in each Alibaba Cloud service.
10500
+ *
10501
+ * @param request ChangeResourceGroupRequest
10502
+ * @return ChangeResourceGroupResponse
10503
+ */
10504
+ async changeResourceGroup(request) {
10505
+ let runtime = new $Util.RuntimeOptions({});
10506
+ return await this.changeResourceGroupWithOptions(request, runtime);
10507
+ }
10508
+ /**
10509
+ * When you call this operation to end a lifecycle hook ahead of schedule, you can use the LifecycleActionResult parameter to specify the action that you want Auto Scaling to perform after the lifecycle hook ends. You can set the LifecycleActionResult parameter to CONTINUE or ABANDON.
10510
+ *
10511
+ * @param request CompleteLifecycleActionRequest
10512
+ * @param runtime runtime options for this request RuntimeOptions
10513
+ * @return CompleteLifecycleActionResponse
10514
+ */
10019
10515
  async completeLifecycleActionWithOptions(request, runtime) {
10020
10516
  tea_util_1.default.validateModel(request);
10021
10517
  let query = {};
@@ -10059,10 +10555,27 @@ class Client extends openapi_client_1.default {
10059
10555
  });
10060
10556
  return $tea.cast(await this.callApi(params, req, runtime), new CompleteLifecycleActionResponse({}));
10061
10557
  }
10558
+ /**
10559
+ * When you call this operation to end a lifecycle hook ahead of schedule, you can use the LifecycleActionResult parameter to specify the action that you want Auto Scaling to perform after the lifecycle hook ends. You can set the LifecycleActionResult parameter to CONTINUE or ABANDON.
10560
+ *
10561
+ * @param request CompleteLifecycleActionRequest
10562
+ * @return CompleteLifecycleActionResponse
10563
+ */
10062
10564
  async completeLifecycleAction(request) {
10063
10565
  let runtime = new $Util.RuntimeOptions({});
10064
10566
  return await this.completeLifecycleActionWithOptions(request, runtime);
10065
10567
  }
10568
+ /**
10569
+ * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
10570
+ * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
10571
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
10572
+ * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
10573
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
10574
+ *
10575
+ * @param request CreateAlarmRequest
10576
+ * @param runtime runtime options for this request RuntimeOptions
10577
+ * @return CreateAlarmResponse
10578
+ */
10066
10579
  async createAlarmWithOptions(request, runtime) {
10067
10580
  tea_util_1.default.validateModel(request);
10068
10581
  let query = {};
@@ -10139,10 +10652,28 @@ class Client extends openapi_client_1.default {
10139
10652
  });
10140
10653
  return $tea.cast(await this.callApi(params, req, runtime), new CreateAlarmResponse({}));
10141
10654
  }
10655
+ /**
10656
+ * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
10657
+ * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
10658
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
10659
+ * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
10660
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
10661
+ *
10662
+ * @param request CreateAlarmRequest
10663
+ * @return CreateAlarmResponse
10664
+ */
10142
10665
  async createAlarm(request) {
10143
10666
  let runtime = new $Util.RuntimeOptions({});
10144
10667
  return await this.createAlarmWithOptions(request, runtime);
10145
10668
  }
10669
+ /**
10670
+ * A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
10671
+ * You can specify the Cpu and Memory parameters to determine the range of instance types. If you specify the parameters, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Auto Scaling preferentially creates elastic container instances of the instance type that is provided at the lowest price. This scaling mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
10672
+ *
10673
+ * @param request CreateEciScalingConfigurationRequest
10674
+ * @param runtime runtime options for this request RuntimeOptions
10675
+ * @return CreateEciScalingConfigurationResponse
10676
+ */
10146
10677
  async createEciScalingConfigurationWithOptions(request, runtime) {
10147
10678
  tea_util_1.default.validateModel(request);
10148
10679
  let query = {};
@@ -10294,10 +10825,27 @@ class Client extends openapi_client_1.default {
10294
10825
  });
10295
10826
  return $tea.cast(await this.callApi(params, req, runtime), new CreateEciScalingConfigurationResponse({}));
10296
10827
  }
10828
+ /**
10829
+ * A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
10830
+ * You can specify the Cpu and Memory parameters to determine the range of instance types. If you specify the parameters, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Auto Scaling preferentially creates elastic container instances of the instance type that is provided at the lowest price. This scaling mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
10831
+ *
10832
+ * @param request CreateEciScalingConfigurationRequest
10833
+ * @return CreateEciScalingConfigurationResponse
10834
+ */
10297
10835
  async createEciScalingConfiguration(request) {
10298
10836
  let runtime = new $Util.RuntimeOptions({});
10299
10837
  return await this.createEciScalingConfigurationWithOptions(request, runtime);
10300
10838
  }
10839
+ /**
10840
+ * You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
10841
+ * During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
10842
+ * You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
10843
+ * > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
10844
+ *
10845
+ * @param request CreateLifecycleHookRequest
10846
+ * @param runtime runtime options for this request RuntimeOptions
10847
+ * @return CreateLifecycleHookResponse
10848
+ */
10301
10849
  async createLifecycleHookWithOptions(request, runtime) {
10302
10850
  tea_util_1.default.validateModel(request);
10303
10851
  let query = {};
@@ -10347,10 +10895,26 @@ class Client extends openapi_client_1.default {
10347
10895
  });
10348
10896
  return $tea.cast(await this.callApi(params, req, runtime), new CreateLifecycleHookResponse({}));
10349
10897
  }
10898
+ /**
10899
+ * You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
10900
+ * During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
10901
+ * You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
10902
+ * > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
10903
+ *
10904
+ * @param request CreateLifecycleHookRequest
10905
+ * @return CreateLifecycleHookResponse
10906
+ */
10350
10907
  async createLifecycleHook(request) {
10351
10908
  let runtime = new $Util.RuntimeOptions({});
10352
10909
  return await this.createLifecycleHookWithOptions(request, runtime);
10353
10910
  }
10911
+ /**
10912
+ * Creates a notification.
10913
+ *
10914
+ * @param request CreateNotificationConfigurationRequest
10915
+ * @param runtime runtime options for this request RuntimeOptions
10916
+ * @return CreateNotificationConfigurationResponse
10917
+ */
10354
10918
  async createNotificationConfigurationWithOptions(request, runtime) {
10355
10919
  tea_util_1.default.validateModel(request);
10356
10920
  let query = {};
@@ -10388,10 +10952,29 @@ class Client extends openapi_client_1.default {
10388
10952
  });
10389
10953
  return $tea.cast(await this.callApi(params, req, runtime), new CreateNotificationConfigurationResponse({}));
10390
10954
  }
10955
+ /**
10956
+ * Creates a notification.
10957
+ *
10958
+ * @param request CreateNotificationConfigurationRequest
10959
+ * @return CreateNotificationConfigurationResponse
10960
+ */
10391
10961
  async createNotificationConfiguration(request) {
10392
10962
  let runtime = new $Util.RuntimeOptions({});
10393
10963
  return await this.createNotificationConfigurationWithOptions(request, runtime);
10394
10964
  }
10965
+ /**
10966
+ * Auto Scaling automatically scales out Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be configured in the following modes:
10967
+ * * InstancePatternInfo.N: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price 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 helps reduce the failures of scale-out activities caused by insufficient inventory of instance types.
10968
+ * * InstanceType: In this mode, you must specify one instance type.
10969
+ * * InstanceTypes.N: In this mode, you must specify multiple instance types.
10970
+ * * InstanceTypeOverride.N: In this mode, you must specify multiple instance types and specify weights for the instance types.
10971
+ * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines a set of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling preferentially creates ECS instances of the instance type that is provided at the lowest price. 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.
10972
+ * > You cannot use InstanceType, InstanceTypes, InstanceTypeOverride, and Cpu and Memory at the same time. You can use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time. If you use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-out activities. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-out activities.
10973
+ *
10974
+ * @param tmpReq CreateScalingConfigurationRequest
10975
+ * @param runtime runtime options for this request RuntimeOptions
10976
+ * @return CreateScalingConfigurationResponse
10977
+ */
10395
10978
  async createScalingConfigurationWithOptions(tmpReq, runtime) {
10396
10979
  tea_util_1.default.validateModel(tmpReq);
10397
10980
  let request = new CreateScalingConfigurationShrinkRequest({});
@@ -10544,10 +11127,10 @@ class Client extends openapi_client_1.default {
10544
11127
  if (!tea_util_1.default.isUnset(request.zoneId)) {
10545
11128
  query["ZoneId"] = request.zoneId;
10546
11129
  }
10547
- if (!tea_util_1.default.isUnset($tea.toMap(request.privatePoolOptions))) {
11130
+ if (!tea_util_1.default.isUnset(request.privatePoolOptions)) {
10548
11131
  query["PrivatePoolOptions"] = request.privatePoolOptions;
10549
11132
  }
10550
- if (!tea_util_1.default.isUnset($tea.toMap(request.systemDisk))) {
11133
+ if (!tea_util_1.default.isUnset(request.systemDisk)) {
10551
11134
  query["SystemDisk"] = request.systemDisk;
10552
11135
  }
10553
11136
  let req = new $OpenApi.OpenApiRequest({
@@ -10566,10 +11149,50 @@ class Client extends openapi_client_1.default {
10566
11149
  });
10567
11150
  return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingConfigurationResponse({}));
10568
11151
  }
11152
+ /**
11153
+ * Auto Scaling automatically scales out Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be configured in the following modes:
11154
+ * * InstancePatternInfo.N: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price 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 helps reduce the failures of scale-out activities caused by insufficient inventory of instance types.
11155
+ * * InstanceType: In this mode, you must specify one instance type.
11156
+ * * InstanceTypes.N: In this mode, you must specify multiple instance types.
11157
+ * * InstanceTypeOverride.N: In this mode, you must specify multiple instance types and specify weights for the instance types.
11158
+ * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines a set of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling preferentially creates ECS instances of the instance type that is provided at the lowest price. 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.
11159
+ * > You cannot use InstanceType, InstanceTypes, InstanceTypeOverride, and Cpu and Memory at the same time. You can use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time. If you use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-out activities. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-out activities.
11160
+ *
11161
+ * @param request CreateScalingConfigurationRequest
11162
+ * @return CreateScalingConfigurationResponse
11163
+ */
10569
11164
  async createScalingConfiguration(request) {
10570
11165
  let runtime = new $Util.RuntimeOptions({});
10571
11166
  return await this.createScalingConfigurationWithOptions(request, runtime);
10572
11167
  }
11168
+ /**
11169
+ * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
11170
+ * 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 it. You must call the EnableScalingGroup operation to enable a scaling group. After you enable a scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
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 in ECS Product Introduction.
11173
+ * If you associate a CLB instance with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the 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
+ * * 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
+ * * 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
+ * > 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
+ * 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
+ * * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
11179
+ * * 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.
11181
+ * 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
+ * * 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 in ApsaraDB RDS User Guide.
11184
+ * If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
11185
+ * * 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
+ * * 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 for the scaling group to true, the following rules apply:
11188
+ * * 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, and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
11190
+ * * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group that uses the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
11191
+ *
11192
+ * @param request CreateScalingGroupRequest
11193
+ * @param runtime runtime options for this request RuntimeOptions
11194
+ * @return CreateScalingGroupResponse
11195
+ */
10573
11196
  async createScalingGroupWithOptions(request, runtime) {
10574
11197
  tea_util_1.default.validateModel(request);
10575
11198
  let query = {};
@@ -10660,6 +11283,9 @@ class Client extends openapi_client_1.default {
10660
11283
  if (!tea_util_1.default.isUnset(request.removalPolicies)) {
10661
11284
  query["RemovalPolicies"] = request.removalPolicies;
10662
11285
  }
11286
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
11287
+ query["ResourceGroupId"] = request.resourceGroupId;
11288
+ }
10663
11289
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
10664
11290
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10665
11291
  }
@@ -10669,6 +11295,9 @@ class Client extends openapi_client_1.default {
10669
11295
  if (!tea_util_1.default.isUnset(request.scalingPolicy)) {
10670
11296
  query["ScalingPolicy"] = request.scalingPolicy;
10671
11297
  }
11298
+ if (!tea_util_1.default.isUnset(request.serverGroups)) {
11299
+ query["ServerGroups"] = request.serverGroups;
11300
+ }
10672
11301
  if (!tea_util_1.default.isUnset(request.spotAllocationStrategy)) {
10673
11302
  query["SpotAllocationStrategy"] = request.spotAllocationStrategy;
10674
11303
  }
@@ -10709,10 +11338,44 @@ class Client extends openapi_client_1.default {
10709
11338
  });
10710
11339
  return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingGroupResponse({}));
10711
11340
  }
11341
+ /**
11342
+ * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
11343
+ * 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 it. You must call the EnableScalingGroup operation to enable a scaling group. After you enable a scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
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 in ECS Product Introduction.
11346
+ * If you associate a CLB instance with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the 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
+ * * 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
+ * * 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
+ * > 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
+ * 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
+ * * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
11352
+ * * 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.
11354
+ * 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
+ * * 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 in ApsaraDB RDS User Guide.
11357
+ * If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
11358
+ * * 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
+ * * 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 for the scaling group to true, the following rules apply:
11361
+ * * 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, and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
11363
+ * * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group that uses the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
11364
+ *
11365
+ * @param request CreateScalingGroupRequest
11366
+ * @return CreateScalingGroupResponse
11367
+ */
10712
11368
  async createScalingGroup(request) {
10713
11369
  let runtime = new $Util.RuntimeOptions({});
10714
11370
  return await this.createScalingGroupWithOptions(request, runtime);
10715
11371
  }
11372
+ /**
11373
+ * Creates a scaling rule.
11374
+ *
11375
+ * @param request CreateScalingRuleRequest
11376
+ * @param runtime runtime options for this request RuntimeOptions
11377
+ * @return CreateScalingRuleResponse
11378
+ */
10716
11379
  async createScalingRuleWithOptions(request, runtime) {
10717
11380
  tea_util_1.default.validateModel(request);
10718
11381
  let query = {};
@@ -10801,10 +11464,23 @@ class Client extends openapi_client_1.default {
10801
11464
  });
10802
11465
  return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingRuleResponse({}));
10803
11466
  }
11467
+ /**
11468
+ * Creates a scaling rule.
11469
+ *
11470
+ * @param request CreateScalingRuleRequest
11471
+ * @return CreateScalingRuleResponse
11472
+ */
10804
11473
  async createScalingRule(request) {
10805
11474
  let runtime = new $Util.RuntimeOptions({});
10806
11475
  return await this.createScalingRuleWithOptions(request, runtime);
10807
11476
  }
11477
+ /**
11478
+ * Creates a scheduled task.
11479
+ *
11480
+ * @param request CreateScheduledTaskRequest
11481
+ * @param runtime runtime options for this request RuntimeOptions
11482
+ * @return CreateScheduledTaskResponse
11483
+ */
10808
11484
  async createScheduledTaskWithOptions(request, runtime) {
10809
11485
  tea_util_1.default.validateModel(request);
10810
11486
  let query = {};
@@ -10875,6 +11551,12 @@ class Client extends openapi_client_1.default {
10875
11551
  });
10876
11552
  return $tea.cast(await this.callApi(params, req, runtime), new CreateScheduledTaskResponse({}));
10877
11553
  }
11554
+ /**
11555
+ * Creates a scheduled task.
11556
+ *
11557
+ * @param request CreateScheduledTaskRequest
11558
+ * @return CreateScheduledTaskResponse
11559
+ */
10878
11560
  async createScheduledTask(request) {
10879
11561
  let runtime = new $Util.RuntimeOptions({});
10880
11562
  return await this.createScheduledTaskWithOptions(request, runtime);
@@ -10949,6 +11631,13 @@ class Client extends openapi_client_1.default {
10949
11631
  let runtime = new $Util.RuntimeOptions({});
10950
11632
  return await this.deleteAlarmWithOptions(request, runtime);
10951
11633
  }
11634
+ /**
11635
+ * Deletes a scaling configuration that is used to create elastic container instances.
11636
+ *
11637
+ * @param request DeleteEciScalingConfigurationRequest
11638
+ * @param runtime runtime options for this request RuntimeOptions
11639
+ * @return DeleteEciScalingConfigurationResponse
11640
+ */
10952
11641
  async deleteEciScalingConfigurationWithOptions(request, runtime) {
10953
11642
  tea_util_1.default.validateModel(request);
10954
11643
  let query = {};
@@ -10983,10 +11672,25 @@ class Client extends openapi_client_1.default {
10983
11672
  });
10984
11673
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteEciScalingConfigurationResponse({}));
10985
11674
  }
11675
+ /**
11676
+ * Deletes a scaling configuration that is used to create elastic container instances.
11677
+ *
11678
+ * @param request DeleteEciScalingConfigurationRequest
11679
+ * @return DeleteEciScalingConfigurationResponse
11680
+ */
10986
11681
  async deleteEciScalingConfiguration(request) {
10987
11682
  let runtime = new $Util.RuntimeOptions({});
10988
11683
  return await this.deleteEciScalingConfigurationWithOptions(request, runtime);
10989
11684
  }
11685
+ /**
11686
+ * If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
11687
+ * * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
11688
+ * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
11689
+ *
11690
+ * @param request DeleteLifecycleHookRequest
11691
+ * @param runtime runtime options for this request RuntimeOptions
11692
+ * @return DeleteLifecycleHookResponse
11693
+ */
10990
11694
  async deleteLifecycleHookWithOptions(request, runtime) {
10991
11695
  tea_util_1.default.validateModel(request);
10992
11696
  let query = {};
@@ -11027,6 +11731,14 @@ class Client extends openapi_client_1.default {
11027
11731
  });
11028
11732
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteLifecycleHookResponse({}));
11029
11733
  }
11734
+ /**
11735
+ * If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
11736
+ * * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
11737
+ * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
11738
+ *
11739
+ * @param request DeleteLifecycleHookRequest
11740
+ * @return DeleteLifecycleHookResponse
11741
+ */
11030
11742
  async deleteLifecycleHook(request) {
11031
11743
  let runtime = new $Util.RuntimeOptions({});
11032
11744
  return await this.deleteLifecycleHookWithOptions(request, runtime);
@@ -11069,6 +11781,13 @@ class Client extends openapi_client_1.default {
11069
11781
  let runtime = new $Util.RuntimeOptions({});
11070
11782
  return await this.deleteNotificationConfigurationWithOptions(request, runtime);
11071
11783
  }
11784
+ /**
11785
+ * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
11786
+ *
11787
+ * @param request DeleteScalingConfigurationRequest
11788
+ * @param runtime runtime options for this request RuntimeOptions
11789
+ * @return DeleteScalingConfigurationResponse
11790
+ */
11072
11791
  async deleteScalingConfigurationWithOptions(request, runtime) {
11073
11792
  tea_util_1.default.validateModel(request);
11074
11793
  let query = {};
@@ -11100,10 +11819,23 @@ class Client extends openapi_client_1.default {
11100
11819
  });
11101
11820
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteScalingConfigurationResponse({}));
11102
11821
  }
11822
+ /**
11823
+ * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
11824
+ *
11825
+ * @param request DeleteScalingConfigurationRequest
11826
+ * @return DeleteScalingConfigurationResponse
11827
+ */
11103
11828
  async deleteScalingConfiguration(request) {
11104
11829
  let runtime = new $Util.RuntimeOptions({});
11105
11830
  return await this.deleteScalingConfigurationWithOptions(request, runtime);
11106
11831
  }
11832
+ /**
11833
+ * Deletes a scaling group.
11834
+ *
11835
+ * @param request DeleteScalingGroupRequest
11836
+ * @param runtime runtime options for this request RuntimeOptions
11837
+ * @return DeleteScalingGroupResponse
11838
+ */
11107
11839
  async deleteScalingGroupWithOptions(request, runtime) {
11108
11840
  tea_util_1.default.validateModel(request);
11109
11841
  let query = {};
@@ -11141,6 +11873,12 @@ class Client extends openapi_client_1.default {
11141
11873
  });
11142
11874
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteScalingGroupResponse({}));
11143
11875
  }
11876
+ /**
11877
+ * Deletes a scaling group.
11878
+ *
11879
+ * @param request DeleteScalingGroupRequest
11880
+ * @return DeleteScalingGroupResponse
11881
+ */
11144
11882
  async deleteScalingGroup(request) {
11145
11883
  let runtime = new $Util.RuntimeOptions({});
11146
11884
  return await this.deleteScalingGroupWithOptions(request, runtime);
@@ -11330,6 +12068,13 @@ class Client extends openapi_client_1.default {
11330
12068
  let runtime = new $Util.RuntimeOptions({});
11331
12069
  return await this.describeEciScalingConfigurationsWithOptions(request, runtime);
11332
12070
  }
12071
+ /**
12072
+ * Queries lifecycle actions.
12073
+ *
12074
+ * @param request DescribeLifecycleActionsRequest
12075
+ * @param runtime runtime options for this request RuntimeOptions
12076
+ * @return DescribeLifecycleActionsResponse
12077
+ */
11333
12078
  async describeLifecycleActionsWithOptions(request, runtime) {
11334
12079
  tea_util_1.default.validateModel(request);
11335
12080
  let query = {};
@@ -11370,10 +12115,26 @@ class Client extends openapi_client_1.default {
11370
12115
  });
11371
12116
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeLifecycleActionsResponse({}));
11372
12117
  }
12118
+ /**
12119
+ * Queries lifecycle actions.
12120
+ *
12121
+ * @param request DescribeLifecycleActionsRequest
12122
+ * @return DescribeLifecycleActionsResponse
12123
+ */
11373
12124
  async describeLifecycleActions(request) {
11374
12125
  let runtime = new $Util.RuntimeOptions({});
11375
12126
  return await this.describeLifecycleActionsWithOptions(request, runtime);
11376
12127
  }
12128
+ /**
12129
+ * You can use one of the following methods to query lifecycle hooks:
12130
+ * * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
12131
+ * * Specify the scaling group ID by using the ScalingGroupId parameter.
12132
+ * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
12133
+ *
12134
+ * @param request DescribeLifecycleHooksRequest
12135
+ * @param runtime runtime options for this request RuntimeOptions
12136
+ * @return DescribeLifecycleHooksResponse
12137
+ */
11377
12138
  async describeLifecycleHooksWithOptions(request, runtime) {
11378
12139
  tea_util_1.default.validateModel(request);
11379
12140
  let query = {};
@@ -11420,6 +12181,15 @@ class Client extends openapi_client_1.default {
11420
12181
  });
11421
12182
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeLifecycleHooksResponse({}));
11422
12183
  }
12184
+ /**
12185
+ * You can use one of the following methods to query lifecycle hooks:
12186
+ * * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
12187
+ * * Specify the scaling group ID by using the ScalingGroupId parameter.
12188
+ * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
12189
+ *
12190
+ * @param request DescribeLifecycleHooksRequest
12191
+ * @return DescribeLifecycleHooksResponse
12192
+ */
11423
12193
  async describeLifecycleHooks(request) {
11424
12194
  let runtime = new $Util.RuntimeOptions({});
11425
12195
  return await this.describeLifecycleHooksWithOptions(request, runtime);
@@ -11552,6 +12322,15 @@ class Client extends openapi_client_1.default {
11552
12322
  let runtime = new $Util.RuntimeOptions({});
11553
12323
  return await this.describeRegionsWithOptions(request, runtime);
11554
12324
  }
12325
+ /**
12326
+ * You can specify a scaling group ID to query all scaling activities in the scaling group.
12327
+ * You can filter query results based on the status of scaling activities.
12328
+ * You can query scaling activities that are executed in the previous 30 days.
12329
+ *
12330
+ * @param request DescribeScalingActivitiesRequest
12331
+ * @param runtime runtime options for this request RuntimeOptions
12332
+ * @return DescribeScalingActivitiesResponse
12333
+ */
11555
12334
  async describeScalingActivitiesWithOptions(request, runtime) {
11556
12335
  tea_util_1.default.validateModel(request);
11557
12336
  let query = {};
@@ -11601,6 +12380,14 @@ class Client extends openapi_client_1.default {
11601
12380
  });
11602
12381
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingActivitiesResponse({}));
11603
12382
  }
12383
+ /**
12384
+ * You can specify a scaling group ID to query all scaling activities in the scaling group.
12385
+ * You can filter query results based on the status of scaling activities.
12386
+ * You can query scaling activities that are executed in the previous 30 days.
12387
+ *
12388
+ * @param request DescribeScalingActivitiesRequest
12389
+ * @return DescribeScalingActivitiesResponse
12390
+ */
11604
12391
  async describeScalingActivities(request) {
11605
12392
  let runtime = new $Util.RuntimeOptions({});
11606
12393
  return await this.describeScalingActivitiesWithOptions(request, runtime);
@@ -11714,6 +12501,9 @@ class Client extends openapi_client_1.default {
11714
12501
  if (!tea_util_1.default.isUnset(request.regionId)) {
11715
12502
  query["RegionId"] = request.regionId;
11716
12503
  }
12504
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
12505
+ query["ResourceGroupId"] = request.resourceGroupId;
12506
+ }
11717
12507
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
11718
12508
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
11719
12509
  }
@@ -11749,6 +12539,13 @@ class Client extends openapi_client_1.default {
11749
12539
  let runtime = new $Util.RuntimeOptions({});
11750
12540
  return await this.describeScalingGroupsWithOptions(request, runtime);
11751
12541
  }
12542
+ /**
12543
+ * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
12544
+ *
12545
+ * @param request DescribeScalingInstancesRequest
12546
+ * @param runtime runtime options for this request RuntimeOptions
12547
+ * @return DescribeScalingInstancesResponse
12548
+ */
11752
12549
  async describeScalingInstancesWithOptions(request, runtime) {
11753
12550
  tea_util_1.default.validateModel(request);
11754
12551
  let query = {};
@@ -11810,10 +12607,23 @@ class Client extends openapi_client_1.default {
11810
12607
  });
11811
12608
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingInstancesResponse({}));
11812
12609
  }
12610
+ /**
12611
+ * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
12612
+ *
12613
+ * @param request DescribeScalingInstancesRequest
12614
+ * @return DescribeScalingInstancesResponse
12615
+ */
11813
12616
  async describeScalingInstances(request) {
11814
12617
  let runtime = new $Util.RuntimeOptions({});
11815
12618
  return await this.describeScalingInstancesWithOptions(request, runtime);
11816
12619
  }
12620
+ /**
12621
+ * Queries all scaling rules in a scaling group.
12622
+ *
12623
+ * @param request DescribeScalingRulesRequest
12624
+ * @param runtime runtime options for this request RuntimeOptions
12625
+ * @return DescribeScalingRulesResponse
12626
+ */
11817
12627
  async describeScalingRulesWithOptions(request, runtime) {
11818
12628
  tea_util_1.default.validateModel(request);
11819
12629
  let query = {};
@@ -11872,10 +12682,23 @@ class Client extends openapi_client_1.default {
11872
12682
  });
11873
12683
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingRulesResponse({}));
11874
12684
  }
12685
+ /**
12686
+ * Queries all scaling rules in a scaling group.
12687
+ *
12688
+ * @param request DescribeScalingRulesRequest
12689
+ * @return DescribeScalingRulesResponse
12690
+ */
11875
12691
  async describeScalingRules(request) {
11876
12692
  let runtime = new $Util.RuntimeOptions({});
11877
12693
  return await this.describeScalingRulesWithOptions(request, runtime);
11878
12694
  }
12695
+ /**
12696
+ * You can query scheduled tasks by scaling rule, task ID, or task name.
12697
+ *
12698
+ * @param request DescribeScheduledTasksRequest
12699
+ * @param runtime runtime options for this request RuntimeOptions
12700
+ * @return DescribeScheduledTasksResponse
12701
+ */
11879
12702
  async describeScheduledTasksWithOptions(request, runtime) {
11880
12703
  tea_util_1.default.validateModel(request);
11881
12704
  let query = {};
@@ -11928,6 +12751,12 @@ class Client extends openapi_client_1.default {
11928
12751
  });
11929
12752
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeScheduledTasksResponse({}));
11930
12753
  }
12754
+ /**
12755
+ * You can query scheduled tasks by scaling rule, task ID, or task name.
12756
+ *
12757
+ * @param request DescribeScheduledTasksRequest
12758
+ * @return DescribeScheduledTasksResponse
12759
+ */
11931
12760
  async describeScheduledTasks(request) {
11932
12761
  let runtime = new $Util.RuntimeOptions({});
11933
12762
  return await this.describeScheduledTasksWithOptions(request, runtime);
@@ -12020,6 +12849,13 @@ class Client extends openapi_client_1.default {
12020
12849
  let runtime = new $Util.RuntimeOptions({});
12021
12850
  return await this.detachDBInstancesWithOptions(request, runtime);
12022
12851
  }
12852
+ /**
12853
+ * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
12854
+ *
12855
+ * @param request DetachInstancesRequest
12856
+ * @param runtime runtime options for this request RuntimeOptions
12857
+ * @return DetachInstancesResponse
12858
+ */
12023
12859
  async detachInstancesWithOptions(request, runtime) {
12024
12860
  tea_util_1.default.validateModel(request);
12025
12861
  let query = {};
@@ -12066,6 +12902,12 @@ class Client extends openapi_client_1.default {
12066
12902
  });
12067
12903
  return $tea.cast(await this.callApi(params, req, runtime), new DetachInstancesResponse({}));
12068
12904
  }
12905
+ /**
12906
+ * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
12907
+ *
12908
+ * @param request DetachInstancesRequest
12909
+ * @return DetachInstancesResponse
12910
+ */
12069
12911
  async detachInstances(request) {
12070
12912
  let runtime = new $Util.RuntimeOptions({});
12071
12913
  return await this.detachInstancesWithOptions(request, runtime);
@@ -12117,6 +12959,57 @@ class Client extends openapi_client_1.default {
12117
12959
  let runtime = new $Util.RuntimeOptions({});
12118
12960
  return await this.detachLoadBalancersWithOptions(request, runtime);
12119
12961
  }
12962
+ async detachServerGroupsWithOptions(request, runtime) {
12963
+ tea_util_1.default.validateModel(request);
12964
+ let query = {};
12965
+ if (!tea_util_1.default.isUnset(request.clientToken)) {
12966
+ query["ClientToken"] = request.clientToken;
12967
+ }
12968
+ if (!tea_util_1.default.isUnset(request.forceDetach)) {
12969
+ query["ForceDetach"] = request.forceDetach;
12970
+ }
12971
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
12972
+ query["OwnerId"] = request.ownerId;
12973
+ }
12974
+ if (!tea_util_1.default.isUnset(request.regionId)) {
12975
+ query["RegionId"] = request.regionId;
12976
+ }
12977
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
12978
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
12979
+ }
12980
+ if (!tea_util_1.default.isUnset(request.scalingGroupId)) {
12981
+ query["ScalingGroupId"] = request.scalingGroupId;
12982
+ }
12983
+ if (!tea_util_1.default.isUnset(request.serverGroups)) {
12984
+ query["ServerGroups"] = request.serverGroups;
12985
+ }
12986
+ let req = new $OpenApi.OpenApiRequest({
12987
+ query: openapi_util_1.default.query(query),
12988
+ });
12989
+ let params = new $OpenApi.Params({
12990
+ action: "DetachServerGroups",
12991
+ version: "2022-02-22",
12992
+ protocol: "HTTPS",
12993
+ pathname: "/",
12994
+ method: "POST",
12995
+ authType: "AK",
12996
+ style: "RPC",
12997
+ reqBodyType: "formData",
12998
+ bodyType: "json",
12999
+ });
13000
+ return $tea.cast(await this.callApi(params, req, runtime), new DetachServerGroupsResponse({}));
13001
+ }
13002
+ async detachServerGroups(request) {
13003
+ let runtime = new $Util.RuntimeOptions({});
13004
+ return await this.detachServerGroupsWithOptions(request, runtime);
13005
+ }
13006
+ /**
13007
+ * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
13008
+ *
13009
+ * @param request DetachVServerGroupsRequest
13010
+ * @param runtime runtime options for this request RuntimeOptions
13011
+ * @return DetachVServerGroupsResponse
13012
+ */
12120
13013
  async detachVServerGroupsWithOptions(request, runtime) {
12121
13014
  tea_util_1.default.validateModel(request);
12122
13015
  let query = {};
@@ -12157,6 +13050,12 @@ class Client extends openapi_client_1.default {
12157
13050
  });
12158
13051
  return $tea.cast(await this.callApi(params, req, runtime), new DetachVServerGroupsResponse({}));
12159
13052
  }
13053
+ /**
13054
+ * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
13055
+ *
13056
+ * @param request DetachVServerGroupsRequest
13057
+ * @return DetachVServerGroupsResponse
13058
+ */
12160
13059
  async detachVServerGroups(request) {
12161
13060
  let runtime = new $Util.RuntimeOptions({});
12162
13061
  return await this.detachVServerGroupsWithOptions(request, runtime);
@@ -12196,6 +13095,13 @@ class Client extends openapi_client_1.default {
12196
13095
  let runtime = new $Util.RuntimeOptions({});
12197
13096
  return await this.disableAlarmWithOptions(request, runtime);
12198
13097
  }
13098
+ /**
13099
+ * Disables a scaling group.
13100
+ *
13101
+ * @param request DisableScalingGroupRequest
13102
+ * @param runtime runtime options for this request RuntimeOptions
13103
+ * @return DisableScalingGroupResponse
13104
+ */
12199
13105
  async disableScalingGroupWithOptions(request, runtime) {
12200
13106
  tea_util_1.default.validateModel(request);
12201
13107
  let query = {};
@@ -12230,6 +13136,12 @@ class Client extends openapi_client_1.default {
12230
13136
  });
12231
13137
  return $tea.cast(await this.callApi(params, req, runtime), new DisableScalingGroupResponse({}));
12232
13138
  }
13139
+ /**
13140
+ * Disables a scaling group.
13141
+ *
13142
+ * @param request DisableScalingGroupRequest
13143
+ * @return DisableScalingGroupResponse
13144
+ */
12233
13145
  async disableScalingGroup(request) {
12234
13146
  let runtime = new $Util.RuntimeOptions({});
12235
13147
  return await this.disableScalingGroupWithOptions(request, runtime);
@@ -12269,6 +13181,17 @@ class Client extends openapi_client_1.default {
12269
13181
  let runtime = new $Util.RuntimeOptions({});
12270
13182
  return await this.enableAlarmWithOptions(request, runtime);
12271
13183
  }
13184
+ /**
13185
+ * 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
+ * > 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 InstanceId 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.
13188
+ * * If the total number of ECS instances is less than the minimum number of instances allowed 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 allowed in your scaling group is five, and you specify the InstanceId parameter to add two created ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
13189
+ * * If the value of the TotalCapactiy parameter is greater than the value of the MaxSize parameter, the call fails.
13190
+ *
13191
+ * @param request EnableScalingGroupRequest
13192
+ * @param runtime runtime options for this request RuntimeOptions
13193
+ * @return EnableScalingGroupResponse
13194
+ */
12272
13195
  async enableScalingGroupWithOptions(request, runtime) {
12273
13196
  tea_util_1.default.validateModel(request);
12274
13197
  let query = {};
@@ -12324,10 +13247,30 @@ class Client extends openapi_client_1.default {
12324
13247
  });
12325
13248
  return $tea.cast(await this.callApi(params, req, runtime), new EnableScalingGroupResponse({}));
12326
13249
  }
13250
+ /**
13251
+ * 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
+ * > 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 InstanceId 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.
13254
+ * * If the total number of ECS instances is less than the minimum number of instances allowed 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 allowed in your scaling group is five, and you specify the InstanceId parameter to add two created ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
13255
+ * * If the value of the TotalCapactiy parameter is greater than the value of the MaxSize parameter, the call fails.
13256
+ *
13257
+ * @param request EnableScalingGroupRequest
13258
+ * @return EnableScalingGroupResponse
13259
+ */
12327
13260
  async enableScalingGroup(request) {
12328
13261
  let runtime = new $Util.RuntimeOptions({});
12329
13262
  return await this.enableScalingGroupWithOptions(request, runtime);
12330
13263
  }
13264
+ /**
13265
+ * * If you call the operation to set an Elastic Compute Service (ECS) instance in a scaling group that is associated with a Server Load Balancer (SLB) instance to the Standby state, the weight of the ECS instance as a backend server of the SLB instance is set to 0.
13266
+ * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
13267
+ * * When scale-in activities are triggered by changes in the number of scaling groups or by event-triggered tasks, the ECS instances that are in the Standby state are not removed from the scaling groups.
13268
+ * * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, such as in the Stopping or Restarting state, Auto Scaling does not update the health check status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health check status of the ECS instance only when the ECS instance is no longer in the Standby state.
13269
+ *
13270
+ * @param request EnterStandbyRequest
13271
+ * @param runtime runtime options for this request RuntimeOptions
13272
+ * @return EnterStandbyResponse
13273
+ */
12331
13274
  async enterStandbyWithOptions(request, runtime) {
12332
13275
  tea_util_1.default.validateModel(request);
12333
13276
  let query = {};
@@ -12365,10 +13308,26 @@ class Client extends openapi_client_1.default {
12365
13308
  });
12366
13309
  return $tea.cast(await this.callApi(params, req, runtime), new EnterStandbyResponse({}));
12367
13310
  }
13311
+ /**
13312
+ * * If you call the operation to set an Elastic Compute Service (ECS) instance in a scaling group that is associated with a Server Load Balancer (SLB) instance to the Standby state, the weight of the ECS instance as a backend server of the SLB instance is set to 0.
13313
+ * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
13314
+ * * When scale-in activities are triggered by changes in the number of scaling groups or by event-triggered tasks, the ECS instances that are in the Standby state are not removed from the scaling groups.
13315
+ * * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, such as in the Stopping or Restarting state, Auto Scaling does not update the health check status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health check status of the ECS instance only when the ECS instance is no longer in the Standby state.
13316
+ *
13317
+ * @param request EnterStandbyRequest
13318
+ * @return EnterStandbyResponse
13319
+ */
12368
13320
  async enterStandby(request) {
12369
13321
  let runtime = new $Util.RuntimeOptions({});
12370
13322
  return await this.enterStandbyWithOptions(request, runtime);
12371
13323
  }
13324
+ /**
13325
+ * Executes a scaling rule.
13326
+ *
13327
+ * @param request ExecuteScalingRuleRequest
13328
+ * @param runtime runtime options for this request RuntimeOptions
13329
+ * @return ExecuteScalingRuleResponse
13330
+ */
12372
13331
  async executeScalingRuleWithOptions(request, runtime) {
12373
13332
  tea_util_1.default.validateModel(request);
12374
13333
  let query = {};
@@ -12415,10 +13374,23 @@ class Client extends openapi_client_1.default {
12415
13374
  });
12416
13375
  return $tea.cast(await this.callApi(params, req, runtime), new ExecuteScalingRuleResponse({}));
12417
13376
  }
13377
+ /**
13378
+ * Executes a scaling rule.
13379
+ *
13380
+ * @param request ExecuteScalingRuleRequest
13381
+ * @return ExecuteScalingRuleResponse
13382
+ */
12418
13383
  async executeScalingRule(request) {
12419
13384
  let runtime = new $Util.RuntimeOptions({});
12420
13385
  return await this.executeScalingRuleWithOptions(request, runtime);
12421
13386
  }
13387
+ /**
13388
+ * If the scaling group is associated with a load balancing instance, the ECS instance weight will be set to the weight value defined in the scaling configuration.
13389
+ *
13390
+ * @param request ExitStandbyRequest
13391
+ * @param runtime runtime options for this request RuntimeOptions
13392
+ * @return ExitStandbyResponse
13393
+ */
12422
13394
  async exitStandbyWithOptions(request, runtime) {
12423
13395
  tea_util_1.default.validateModel(request);
12424
13396
  let query = {};
@@ -12459,6 +13431,12 @@ class Client extends openapi_client_1.default {
12459
13431
  });
12460
13432
  return $tea.cast(await this.callApi(params, req, runtime), new ExitStandbyResponse({}));
12461
13433
  }
13434
+ /**
13435
+ * If the scaling group is associated with a load balancing instance, the ECS instance weight will be set to the weight value defined in the scaling configuration.
13436
+ *
13437
+ * @param request ExitStandbyRequest
13438
+ * @return ExitStandbyResponse
13439
+ */
12462
13440
  async exitStandby(request) {
12463
13441
  let runtime = new $Util.RuntimeOptions({});
12464
13442
  return await this.exitStandbyWithOptions(request, runtime);
@@ -12592,6 +13570,13 @@ class Client extends openapi_client_1.default {
12592
13570
  let runtime = new $Util.RuntimeOptions({});
12593
13571
  return await this.listTagValuesWithOptions(request, runtime);
12594
13572
  }
13573
+ /**
13574
+ * Modifies an event-triggered task.
13575
+ *
13576
+ * @param request ModifyAlarmRequest
13577
+ * @param runtime runtime options for this request RuntimeOptions
13578
+ * @return ModifyAlarmResponse
13579
+ */
12595
13580
  async modifyAlarmWithOptions(request, runtime) {
12596
13581
  tea_util_1.default.validateModel(request);
12597
13582
  let query = {};
@@ -12668,10 +13653,23 @@ class Client extends openapi_client_1.default {
12668
13653
  });
12669
13654
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyAlarmResponse({}));
12670
13655
  }
13656
+ /**
13657
+ * Modifies an event-triggered task.
13658
+ *
13659
+ * @param request ModifyAlarmRequest
13660
+ * @return ModifyAlarmResponse
13661
+ */
12671
13662
  async modifyAlarm(request) {
12672
13663
  let runtime = new $Util.RuntimeOptions({});
12673
13664
  return await this.modifyAlarmWithOptions(request, runtime);
12674
13665
  }
13666
+ /**
13667
+ * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
13668
+ *
13669
+ * @param request ModifyEciScalingConfigurationRequest
13670
+ * @param runtime runtime options for this request RuntimeOptions
13671
+ * @return ModifyEciScalingConfigurationResponse
13672
+ */
12675
13673
  async modifyEciScalingConfigurationWithOptions(request, runtime) {
12676
13674
  tea_util_1.default.validateModel(request);
12677
13675
  let query = {};
@@ -12693,6 +13691,9 @@ class Client extends openapi_client_1.default {
12693
13691
  if (!tea_util_1.default.isUnset(request.containers)) {
12694
13692
  query["Containers"] = request.containers;
12695
13693
  }
13694
+ if (!tea_util_1.default.isUnset(request.containersUpdateType)) {
13695
+ query["ContainersUpdateType"] = request.containersUpdateType;
13696
+ }
12696
13697
  if (!tea_util_1.default.isUnset(request.costOptimization)) {
12697
13698
  query["CostOptimization"] = request.costOptimization;
12698
13699
  }
@@ -12823,10 +13824,23 @@ class Client extends openapi_client_1.default {
12823
13824
  });
12824
13825
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyEciScalingConfigurationResponse({}));
12825
13826
  }
13827
+ /**
13828
+ * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
13829
+ *
13830
+ * @param request ModifyEciScalingConfigurationRequest
13831
+ * @return ModifyEciScalingConfigurationResponse
13832
+ */
12826
13833
  async modifyEciScalingConfiguration(request) {
12827
13834
  let runtime = new $Util.RuntimeOptions({});
12828
13835
  return await this.modifyEciScalingConfigurationWithOptions(request, runtime);
12829
13836
  }
13837
+ /**
13838
+ * Modifies a lifecycle hook.
13839
+ *
13840
+ * @param request ModifyLifecycleHookRequest
13841
+ * @param runtime runtime options for this request RuntimeOptions
13842
+ * @return ModifyLifecycleHookResponse
13843
+ */
12830
13844
  async modifyLifecycleHookWithOptions(request, runtime) {
12831
13845
  tea_util_1.default.validateModel(request);
12832
13846
  let query = {};
@@ -12885,6 +13899,12 @@ class Client extends openapi_client_1.default {
12885
13899
  });
12886
13900
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyLifecycleHookResponse({}));
12887
13901
  }
13902
+ /**
13903
+ * Modifies a lifecycle hook.
13904
+ *
13905
+ * @param request ModifyLifecycleHookRequest
13906
+ * @return ModifyLifecycleHookResponse
13907
+ */
12888
13908
  async modifyLifecycleHook(request) {
12889
13909
  let runtime = new $Util.RuntimeOptions({});
12890
13910
  return await this.modifyLifecycleHookWithOptions(request, runtime);
@@ -12930,6 +13950,13 @@ class Client extends openapi_client_1.default {
12930
13950
  let runtime = new $Util.RuntimeOptions({});
12931
13951
  return await this.modifyNotificationConfigurationWithOptions(request, runtime);
12932
13952
  }
13953
+ /**
13954
+ * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
13955
+ *
13956
+ * @param tmpReq ModifyScalingConfigurationRequest
13957
+ * @param runtime runtime options for this request RuntimeOptions
13958
+ * @return ModifyScalingConfigurationResponse
13959
+ */
12933
13960
  async modifyScalingConfigurationWithOptions(tmpReq, runtime) {
12934
13961
  tea_util_1.default.validateModel(tmpReq);
12935
13962
  let request = new ModifyScalingConfigurationShrinkRequest({});
@@ -13070,10 +14097,10 @@ class Client extends openapi_client_1.default {
13070
14097
  if (!tea_util_1.default.isUnset(request.zoneId)) {
13071
14098
  query["ZoneId"] = request.zoneId;
13072
14099
  }
13073
- if (!tea_util_1.default.isUnset($tea.toMap(request.privatePoolOptions))) {
14100
+ if (!tea_util_1.default.isUnset(request.privatePoolOptions)) {
13074
14101
  query["PrivatePoolOptions"] = request.privatePoolOptions;
13075
14102
  }
13076
- if (!tea_util_1.default.isUnset($tea.toMap(request.systemDisk))) {
14103
+ if (!tea_util_1.default.isUnset(request.systemDisk)) {
13077
14104
  query["SystemDisk"] = request.systemDisk;
13078
14105
  }
13079
14106
  let req = new $OpenApi.OpenApiRequest({
@@ -13092,10 +14119,23 @@ class Client extends openapi_client_1.default {
13092
14119
  });
13093
14120
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingConfigurationResponse({}));
13094
14121
  }
14122
+ /**
14123
+ * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
14124
+ *
14125
+ * @param request ModifyScalingConfigurationRequest
14126
+ * @return ModifyScalingConfigurationResponse
14127
+ */
13095
14128
  async modifyScalingConfiguration(request) {
13096
14129
  let runtime = new $Util.RuntimeOptions({});
13097
14130
  return await this.modifyScalingConfigurationWithOptions(request, runtime);
13098
14131
  }
14132
+ /**
14133
+ * Modifies a scaling group.
14134
+ *
14135
+ * @param request ModifyScalingGroupRequest
14136
+ * @param runtime runtime options for this request RuntimeOptions
14137
+ * @return ModifyScalingGroupResponse
14138
+ */
13099
14139
  async modifyScalingGroupWithOptions(request, runtime) {
13100
14140
  tea_util_1.default.validateModel(request);
13101
14141
  let query = {};
@@ -13202,6 +14242,12 @@ class Client extends openapi_client_1.default {
13202
14242
  });
13203
14243
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingGroupResponse({}));
13204
14244
  }
14245
+ /**
14246
+ * Modifies a scaling group.
14247
+ *
14248
+ * @param request ModifyScalingGroupRequest
14249
+ * @return ModifyScalingGroupResponse
14250
+ */
13205
14251
  async modifyScalingGroup(request) {
13206
14252
  let runtime = new $Util.RuntimeOptions({});
13207
14253
  return await this.modifyScalingGroupWithOptions(request, runtime);
@@ -13295,6 +14341,13 @@ class Client extends openapi_client_1.default {
13295
14341
  let runtime = new $Util.RuntimeOptions({});
13296
14342
  return await this.modifyScalingRuleWithOptions(request, runtime);
13297
14343
  }
14344
+ /**
14345
+ * Modifies a scheduled task.
14346
+ *
14347
+ * @param request ModifyScheduledTaskRequest
14348
+ * @param runtime runtime options for this request RuntimeOptions
14349
+ * @return ModifyScheduledTaskResponse
14350
+ */
13298
14351
  async modifyScheduledTaskWithOptions(request, runtime) {
13299
14352
  tea_util_1.default.validateModel(request);
13300
14353
  let query = {};
@@ -13368,10 +14421,23 @@ class Client extends openapi_client_1.default {
13368
14421
  });
13369
14422
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyScheduledTaskResponse({}));
13370
14423
  }
14424
+ /**
14425
+ * Modifies a scheduled task.
14426
+ *
14427
+ * @param request ModifyScheduledTaskRequest
14428
+ * @return ModifyScheduledTaskResponse
14429
+ */
13371
14430
  async modifyScheduledTask(request) {
13372
14431
  let runtime = new $Util.RuntimeOptions({});
13373
14432
  return await this.modifyScheduledTaskWithOptions(request, runtime);
13374
14433
  }
14434
+ /**
14435
+ * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
14436
+ *
14437
+ * @param request RebalanceInstancesRequest
14438
+ * @param runtime runtime options for this request RuntimeOptions
14439
+ * @return RebalanceInstancesResponse
14440
+ */
13375
14441
  async rebalanceInstancesWithOptions(request, runtime) {
13376
14442
  tea_util_1.default.validateModel(request);
13377
14443
  let query = {};
@@ -13409,10 +14475,23 @@ class Client extends openapi_client_1.default {
13409
14475
  });
13410
14476
  return $tea.cast(await this.callApi(params, req, runtime), new RebalanceInstancesResponse({}));
13411
14477
  }
14478
+ /**
14479
+ * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
14480
+ *
14481
+ * @param request RebalanceInstancesRequest
14482
+ * @return RebalanceInstancesResponse
14483
+ */
13412
14484
  async rebalanceInstances(request) {
13413
14485
  let runtime = new $Util.RuntimeOptions({});
13414
14486
  return await this.rebalanceInstancesWithOptions(request, runtime);
13415
14487
  }
14488
+ /**
14489
+ * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
14490
+ *
14491
+ * @param request RecordLifecycleActionHeartbeatRequest
14492
+ * @param runtime runtime options for this request RuntimeOptions
14493
+ * @return RecordLifecycleActionHeartbeatResponse
14494
+ */
13416
14495
  async recordLifecycleActionHeartbeatWithOptions(request, runtime) {
13417
14496
  tea_util_1.default.validateModel(request);
13418
14497
  let query = {};
@@ -13453,10 +14532,30 @@ class Client extends openapi_client_1.default {
13453
14532
  });
13454
14533
  return $tea.cast(await this.callApi(params, req, runtime), new RecordLifecycleActionHeartbeatResponse({}));
13455
14534
  }
14535
+ /**
14536
+ * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
14537
+ *
14538
+ * @param request RecordLifecycleActionHeartbeatRequest
14539
+ * @return RecordLifecycleActionHeartbeatResponse
14540
+ */
13456
14541
  async recordLifecycleActionHeartbeat(request) {
13457
14542
  let runtime = new $Util.RuntimeOptions({});
13458
14543
  return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
13459
14544
  }
14545
+ /**
14546
+ * * Before you call this operation, make sure that the following requirements are met:
14547
+ * * The scaling group is in the Active state.
14548
+ * * No scaling activity is in progress within the scaling group.
14549
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
14550
+ * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
14551
+ * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
14552
+ * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
14553
+ * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
14554
+ *
14555
+ * @param request RemoveInstancesRequest
14556
+ * @param runtime runtime options for this request RuntimeOptions
14557
+ * @return RemoveInstancesResponse
14558
+ */
13460
14559
  async removeInstancesWithOptions(request, runtime) {
13461
14560
  tea_util_1.default.validateModel(request);
13462
14561
  let query = {};
@@ -13503,6 +14602,19 @@ class Client extends openapi_client_1.default {
13503
14602
  });
13504
14603
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveInstancesResponse({}));
13505
14604
  }
14605
+ /**
14606
+ * * Before you call this operation, make sure that the following requirements are met:
14607
+ * * The scaling group is in the Active state.
14608
+ * * No scaling activity is in progress within the scaling group.
14609
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
14610
+ * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
14611
+ * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
14612
+ * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
14613
+ * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
14614
+ *
14615
+ * @param request RemoveInstancesRequest
14616
+ * @return RemoveInstancesResponse
14617
+ */
13506
14618
  async removeInstances(request) {
13507
14619
  let runtime = new $Util.RuntimeOptions({});
13508
14620
  return await this.removeInstancesWithOptions(request, runtime);
@@ -13548,6 +14660,20 @@ class Client extends openapi_client_1.default {
13548
14660
  let runtime = new $Util.RuntimeOptions({});
13549
14661
  return await this.resumeProcessesWithOptions(request, runtime);
13550
14662
  }
14663
+ /**
14664
+ * Compared with the ExecuteScalingRule operation, the ScaleWithAdjustment operation does not require a scaling rule to be created in advance. Before you call the ScaleWithAdjustment operation, take note of the following items:
14665
+ * * The following conditions must be met:
14666
+ * * The scaling group is in the Active state.
14667
+ * * No scaling activities in the scaling group are in progress.
14668
+ * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
14669
+ * * If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
14670
+ * * If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
14671
+ * A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
14672
+ *
14673
+ * @param request ScaleWithAdjustmentRequest
14674
+ * @param runtime runtime options for this request RuntimeOptions
14675
+ * @return ScaleWithAdjustmentResponse
14676
+ */
13551
14677
  async scaleWithAdjustmentWithOptions(request, runtime) {
13552
14678
  tea_util_1.default.validateModel(request);
13553
14679
  let query = {};
@@ -13591,6 +14717,19 @@ class Client extends openapi_client_1.default {
13591
14717
  });
13592
14718
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleWithAdjustmentResponse({}));
13593
14719
  }
14720
+ /**
14721
+ * Compared with the ExecuteScalingRule operation, the ScaleWithAdjustment operation does not require a scaling rule to be created in advance. Before you call the ScaleWithAdjustment operation, take note of the following items:
14722
+ * * The following conditions must be met:
14723
+ * * The scaling group is in the Active state.
14724
+ * * No scaling activities in the scaling group are in progress.
14725
+ * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
14726
+ * * If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
14727
+ * * If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
14728
+ * A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
14729
+ *
14730
+ * @param request ScaleWithAdjustmentRequest
14731
+ * @return ScaleWithAdjustmentResponse
14732
+ */
13594
14733
  async scaleWithAdjustment(request) {
13595
14734
  let runtime = new $Util.RuntimeOptions({});
13596
14735
  return await this.scaleWithAdjustmentWithOptions(request, runtime);
@@ -13633,6 +14772,13 @@ class Client extends openapi_client_1.default {
13633
14772
  let runtime = new $Util.RuntimeOptions({});
13634
14773
  return await this.setGroupDeletionProtectionWithOptions(request, runtime);
13635
14774
  }
14775
+ /**
14776
+ * Configures the health check feature for Elastic Compute Service (ECS) instances.
14777
+ *
14778
+ * @param request SetInstanceHealthRequest
14779
+ * @param runtime runtime options for this request RuntimeOptions
14780
+ * @return SetInstanceHealthResponse
14781
+ */
13636
14782
  async setInstanceHealthWithOptions(request, runtime) {
13637
14783
  tea_util_1.default.validateModel(request);
13638
14784
  let query = {};
@@ -13664,10 +14810,23 @@ class Client extends openapi_client_1.default {
13664
14810
  });
13665
14811
  return $tea.cast(await this.callApi(params, req, runtime), new SetInstanceHealthResponse({}));
13666
14812
  }
14813
+ /**
14814
+ * Configures the health check feature for Elastic Compute Service (ECS) instances.
14815
+ *
14816
+ * @param request SetInstanceHealthRequest
14817
+ * @return SetInstanceHealthResponse
14818
+ */
13667
14819
  async setInstanceHealth(request) {
13668
14820
  let runtime = new $Util.RuntimeOptions({});
13669
14821
  return await this.setInstanceHealthWithOptions(request, runtime);
13670
14822
  }
14823
+ /**
14824
+ * Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
14825
+ *
14826
+ * @param request SetInstancesProtectionRequest
14827
+ * @param runtime runtime options for this request RuntimeOptions
14828
+ * @return SetInstancesProtectionResponse
14829
+ */
13671
14830
  async setInstancesProtectionWithOptions(request, runtime) {
13672
14831
  tea_util_1.default.validateModel(request);
13673
14832
  let query = {};
@@ -13702,6 +14861,12 @@ class Client extends openapi_client_1.default {
13702
14861
  });
13703
14862
  return $tea.cast(await this.callApi(params, req, runtime), new SetInstancesProtectionResponse({}));
13704
14863
  }
14864
+ /**
14865
+ * Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
14866
+ *
14867
+ * @param request SetInstancesProtectionRequest
14868
+ * @return SetInstancesProtectionResponse
14869
+ */
13705
14870
  async setInstancesProtection(request) {
13706
14871
  let runtime = new $Util.RuntimeOptions({});
13707
14872
  return await this.setInstancesProtectionWithOptions(request, runtime);