@alicloud/ess20220222 1.1.0 → 1.1.2

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
@@ -994,6 +994,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
994
994
  clientToken: 'ClientToken',
995
995
  cpu: 'Cpu',
996
996
  creditSpecification: 'CreditSpecification',
997
+ customPriorities: 'CustomPriorities',
997
998
  dataDisks: 'DataDisks',
998
999
  dedicatedHostId: 'DedicatedHostId',
999
1000
  deletionProtection: 'DeletionProtection',
@@ -1052,6 +1053,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
1052
1053
  clientToken: 'string',
1053
1054
  cpu: 'number',
1054
1055
  creditSpecification: 'string',
1056
+ customPriorities: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestCustomPriorities },
1055
1057
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestDataDisks },
1056
1058
  dedicatedHostId: 'string',
1057
1059
  deletionProtection: 'boolean',
@@ -1116,6 +1118,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1116
1118
  clientToken: 'ClientToken',
1117
1119
  cpu: 'Cpu',
1118
1120
  creditSpecification: 'CreditSpecification',
1121
+ customPriorities: 'CustomPriorities',
1119
1122
  dataDisks: 'DataDisks',
1120
1123
  dedicatedHostId: 'DedicatedHostId',
1121
1124
  deletionProtection: 'DeletionProtection',
@@ -1174,6 +1177,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1174
1177
  clientToken: 'string',
1175
1178
  cpu: 'number',
1176
1179
  creditSpecification: 'string',
1180
+ customPriorities: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestCustomPriorities },
1177
1181
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestDataDisks },
1178
1182
  dedicatedHostId: 'string',
1179
1183
  deletionProtection: 'boolean',
@@ -1282,6 +1286,7 @@ class CreateScalingGroupRequest extends $tea.Model {
1282
1286
  groupDeletionProtection: 'GroupDeletionProtection',
1283
1287
  groupType: 'GroupType',
1284
1288
  healthCheckType: 'HealthCheckType',
1289
+ healthCheckTypes: 'HealthCheckTypes',
1285
1290
  instanceId: 'InstanceId',
1286
1291
  launchTemplateId: 'LaunchTemplateId',
1287
1292
  launchTemplateOverrides: 'LaunchTemplateOverrides',
@@ -1329,6 +1334,7 @@ class CreateScalingGroupRequest extends $tea.Model {
1329
1334
  groupDeletionProtection: 'boolean',
1330
1335
  groupType: 'string',
1331
1336
  healthCheckType: 'string',
1337
+ healthCheckTypes: { 'type': 'array', 'itemType': 'string' },
1332
1338
  instanceId: 'string',
1333
1339
  launchTemplateId: 'string',
1334
1340
  launchTemplateOverrides: { 'type': 'array', 'itemType': CreateScalingGroupRequestLaunchTemplateOverrides },
@@ -4699,6 +4705,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
4699
4705
  affinity: 'Affinity',
4700
4706
  cpu: 'Cpu',
4701
4707
  creditSpecification: 'CreditSpecification',
4708
+ customPriorities: 'CustomPriorities',
4702
4709
  dataDisks: 'DataDisks',
4703
4710
  dedicatedHostId: 'DedicatedHostId',
4704
4711
  deletionProtection: 'DeletionProtection',
@@ -4753,6 +4760,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
4753
4760
  affinity: 'string',
4754
4761
  cpu: 'number',
4755
4762
  creditSpecification: 'string',
4763
+ customPriorities: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestCustomPriorities },
4756
4764
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestDataDisks },
4757
4765
  dedicatedHostId: 'string',
4758
4766
  deletionProtection: 'boolean',
@@ -4813,6 +4821,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
4813
4821
  affinity: 'Affinity',
4814
4822
  cpu: 'Cpu',
4815
4823
  creditSpecification: 'CreditSpecification',
4824
+ customPriorities: 'CustomPriorities',
4816
4825
  dataDisks: 'DataDisks',
4817
4826
  dedicatedHostId: 'DedicatedHostId',
4818
4827
  deletionProtection: 'DeletionProtection',
@@ -4867,6 +4876,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
4867
4876
  affinity: 'string',
4868
4877
  cpu: 'number',
4869
4878
  creditSpecification: 'string',
4879
+ customPriorities: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestCustomPriorities },
4870
4880
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestDataDisks },
4871
4881
  dedicatedHostId: 'string',
4872
4882
  deletionProtection: 'boolean',
@@ -4967,6 +4977,7 @@ class ModifyScalingGroupRequest extends $tea.Model {
4967
4977
  disableDesiredCapacity: 'DisableDesiredCapacity',
4968
4978
  groupDeletionProtection: 'GroupDeletionProtection',
4969
4979
  healthCheckType: 'HealthCheckType',
4980
+ healthCheckTypes: 'HealthCheckTypes',
4970
4981
  launchTemplateId: 'LaunchTemplateId',
4971
4982
  launchTemplateOverrides: 'LaunchTemplateOverrides',
4972
4983
  launchTemplateVersion: 'LaunchTemplateVersion',
@@ -5001,6 +5012,7 @@ class ModifyScalingGroupRequest extends $tea.Model {
5001
5012
  disableDesiredCapacity: 'boolean',
5002
5013
  groupDeletionProtection: 'boolean',
5003
5014
  healthCheckType: 'string',
5015
+ healthCheckTypes: { 'type': 'array', 'itemType': 'string' },
5004
5016
  launchTemplateId: 'string',
5005
5017
  launchTemplateOverrides: { 'type': 'array', 'itemType': ModifyScalingGroupRequestLaunchTemplateOverrides },
5006
5018
  launchTemplateVersion: 'string',
@@ -7043,6 +7055,24 @@ class CreateScalingConfigurationRequestSystemDisk extends $tea.Model {
7043
7055
  }
7044
7056
  }
7045
7057
  exports.CreateScalingConfigurationRequestSystemDisk = CreateScalingConfigurationRequestSystemDisk;
7058
+ class CreateScalingConfigurationRequestCustomPriorities extends $tea.Model {
7059
+ constructor(map) {
7060
+ super(map);
7061
+ }
7062
+ static names() {
7063
+ return {
7064
+ instanceType: 'InstanceType',
7065
+ vswitchId: 'VswitchId',
7066
+ };
7067
+ }
7068
+ static types() {
7069
+ return {
7070
+ instanceType: 'string',
7071
+ vswitchId: 'string',
7072
+ };
7073
+ }
7074
+ }
7075
+ exports.CreateScalingConfigurationRequestCustomPriorities = CreateScalingConfigurationRequestCustomPriorities;
7046
7076
  class CreateScalingConfigurationRequestDataDisks extends $tea.Model {
7047
7077
  constructor(map) {
7048
7078
  super(map);
@@ -7219,6 +7249,24 @@ class CreateScalingConfigurationShrinkRequestSystemDisk extends $tea.Model {
7219
7249
  }
7220
7250
  }
7221
7251
  exports.CreateScalingConfigurationShrinkRequestSystemDisk = CreateScalingConfigurationShrinkRequestSystemDisk;
7252
+ class CreateScalingConfigurationShrinkRequestCustomPriorities extends $tea.Model {
7253
+ constructor(map) {
7254
+ super(map);
7255
+ }
7256
+ static names() {
7257
+ return {
7258
+ instanceType: 'InstanceType',
7259
+ vswitchId: 'VswitchId',
7260
+ };
7261
+ }
7262
+ static types() {
7263
+ return {
7264
+ instanceType: 'string',
7265
+ vswitchId: 'string',
7266
+ };
7267
+ }
7268
+ }
7269
+ exports.CreateScalingConfigurationShrinkRequestCustomPriorities = CreateScalingConfigurationShrinkRequestCustomPriorities;
7222
7270
  class CreateScalingConfigurationShrinkRequestDataDisks extends $tea.Model {
7223
7271
  constructor(map) {
7224
7272
  super(map);
@@ -8365,6 +8413,24 @@ class DescribeScalingActivitiesResponseBodyScalingActivities extends $tea.Model
8365
8413
  }
8366
8414
  }
8367
8415
  exports.DescribeScalingActivitiesResponseBodyScalingActivities = DescribeScalingActivitiesResponseBodyScalingActivities;
8416
+ class DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities extends $tea.Model {
8417
+ constructor(map) {
8418
+ super(map);
8419
+ }
8420
+ static names() {
8421
+ return {
8422
+ instanceType: 'InstanceType',
8423
+ vswitchId: 'VswitchId',
8424
+ };
8425
+ }
8426
+ static types() {
8427
+ return {
8428
+ instanceType: 'string',
8429
+ vswitchId: 'string',
8430
+ };
8431
+ }
8432
+ }
8433
+ exports.DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities = DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities;
8368
8434
  class DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks extends $tea.Model {
8369
8435
  constructor(map) {
8370
8436
  super(map);
@@ -8497,6 +8563,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
8497
8563
  cpu: 'Cpu',
8498
8564
  creationTime: 'CreationTime',
8499
8565
  creditSpecification: 'CreditSpecification',
8566
+ customPriorities: 'CustomPriorities',
8500
8567
  dataDisks: 'DataDisks',
8501
8568
  dedicatedHostId: 'DedicatedHostId',
8502
8569
  deletionProtection: 'DeletionProtection',
@@ -8566,6 +8633,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
8566
8633
  cpu: 'number',
8567
8634
  creationTime: 'string',
8568
8635
  creditSpecification: 'string',
8636
+ customPriorities: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities },
8569
8637
  dataDisks: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks },
8570
8638
  dedicatedHostId: 'string',
8571
8639
  deletionProtection: 'boolean',
@@ -8809,6 +8877,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8809
8877
  groupDeletionProtection: 'GroupDeletionProtection',
8810
8878
  groupType: 'GroupType',
8811
8879
  healthCheckType: 'HealthCheckType',
8880
+ healthCheckTypes: 'HealthCheckTypes',
8812
8881
  initCapacity: 'InitCapacity',
8813
8882
  isElasticStrengthInAlarm: 'IsElasticStrengthInAlarm',
8814
8883
  launchTemplateId: 'LaunchTemplateId',
@@ -8871,6 +8940,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8871
8940
  groupDeletionProtection: 'boolean',
8872
8941
  groupType: 'string',
8873
8942
  healthCheckType: 'string',
8943
+ healthCheckTypes: { 'type': 'array', 'itemType': 'string' },
8874
8944
  initCapacity: 'number',
8875
8945
  isElasticStrengthInAlarm: 'boolean',
8876
8946
  launchTemplateId: 'string',
@@ -10181,6 +10251,24 @@ class ModifyScalingConfigurationRequestSystemDisk extends $tea.Model {
10181
10251
  }
10182
10252
  }
10183
10253
  exports.ModifyScalingConfigurationRequestSystemDisk = ModifyScalingConfigurationRequestSystemDisk;
10254
+ class ModifyScalingConfigurationRequestCustomPriorities extends $tea.Model {
10255
+ constructor(map) {
10256
+ super(map);
10257
+ }
10258
+ static names() {
10259
+ return {
10260
+ instanceType: 'InstanceType',
10261
+ vswitchId: 'VswitchId',
10262
+ };
10263
+ }
10264
+ static types() {
10265
+ return {
10266
+ instanceType: 'string',
10267
+ vswitchId: 'string',
10268
+ };
10269
+ }
10270
+ }
10271
+ exports.ModifyScalingConfigurationRequestCustomPriorities = ModifyScalingConfigurationRequestCustomPriorities;
10184
10272
  class ModifyScalingConfigurationRequestDataDisks extends $tea.Model {
10185
10273
  constructor(map) {
10186
10274
  super(map);
@@ -10357,6 +10445,24 @@ class ModifyScalingConfigurationShrinkRequestSystemDisk extends $tea.Model {
10357
10445
  }
10358
10446
  }
10359
10447
  exports.ModifyScalingConfigurationShrinkRequestSystemDisk = ModifyScalingConfigurationShrinkRequestSystemDisk;
10448
+ class ModifyScalingConfigurationShrinkRequestCustomPriorities extends $tea.Model {
10449
+ constructor(map) {
10450
+ super(map);
10451
+ }
10452
+ static names() {
10453
+ return {
10454
+ instanceType: 'InstanceType',
10455
+ vswitchId: 'VswitchId',
10456
+ };
10457
+ }
10458
+ static types() {
10459
+ return {
10460
+ instanceType: 'string',
10461
+ vswitchId: 'string',
10462
+ };
10463
+ }
10464
+ }
10465
+ exports.ModifyScalingConfigurationShrinkRequestCustomPriorities = ModifyScalingConfigurationShrinkRequestCustomPriorities;
10360
10466
  class ModifyScalingConfigurationShrinkRequestDataDisks extends $tea.Model {
10361
10467
  constructor(map) {
10362
10468
  super(map);
@@ -11650,6 +11756,9 @@ class Client extends openapi_client_1.default {
11650
11756
  if (!tea_util_1.default.isUnset(request.creditSpecification)) {
11651
11757
  query["CreditSpecification"] = request.creditSpecification;
11652
11758
  }
11759
+ if (!tea_util_1.default.isUnset(request.customPriorities)) {
11760
+ query["CustomPriorities"] = request.customPriorities;
11761
+ }
11653
11762
  if (!tea_util_1.default.isUnset(request.dataDisks)) {
11654
11763
  query["DataDisks"] = request.dataDisks;
11655
11764
  }
@@ -11902,6 +12011,9 @@ class Client extends openapi_client_1.default {
11902
12011
  if (!tea_util_1.default.isUnset(request.healthCheckType)) {
11903
12012
  query["HealthCheckType"] = request.healthCheckType;
11904
12013
  }
12014
+ if (!tea_util_1.default.isUnset(request.healthCheckTypes)) {
12015
+ query["HealthCheckTypes"] = request.healthCheckTypes;
12016
+ }
11905
12017
  if (!tea_util_1.default.isUnset(request.instanceId)) {
11906
12018
  query["InstanceId"] = request.instanceId;
11907
12019
  }
@@ -14652,6 +14764,9 @@ class Client extends openapi_client_1.default {
14652
14764
  if (!tea_util_1.default.isUnset(request.creditSpecification)) {
14653
14765
  query["CreditSpecification"] = request.creditSpecification;
14654
14766
  }
14767
+ if (!tea_util_1.default.isUnset(request.customPriorities)) {
14768
+ query["CustomPriorities"] = request.customPriorities;
14769
+ }
14655
14770
  if (!tea_util_1.default.isUnset(request.dataDisks)) {
14656
14771
  query["DataDisks"] = request.dataDisks;
14657
14772
  }
@@ -14819,6 +14934,24 @@ class Client extends openapi_client_1.default {
14819
14934
  let runtime = new $Util.RuntimeOptions({});
14820
14935
  return await this.modifyScalingConfigurationWithOptions(request, runtime);
14821
14936
  }
14937
+ /**
14938
+ * * You cannot call this operation to modify the settings of the following parameters:
14939
+ * * RegionId
14940
+ * * LoadBalancerId
14941
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
14942
+ * * DBInstanceId
14943
+ * **
14944
+ * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
14945
+ * * You can modify only scaling groups that are in the Active or Inactive state.
14946
+ * * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
14947
+ * * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
14948
+ * * If the total number of instances in the scaling group is less than the allowed minimum number after you change the value of the MinSize parameter, Auto Scaling automatically adds instances to the scaling group to ensure that the number of instances is within the new range.
14949
+ * * If the total number of instances in the scaling group does not match the expected number of instances after you change the value of the DesiredCapacity parameter, Auto Scaling automatically adds instances to or removes instances from the scaling group to ensure that the number of instances matches the value of the DesiredCapacity parameter.
14950
+ *
14951
+ * @param request ModifyScalingGroupRequest
14952
+ * @param runtime runtime options for this request RuntimeOptions
14953
+ * @return ModifyScalingGroupResponse
14954
+ */
14822
14955
  async modifyScalingGroupWithOptions(request, runtime) {
14823
14956
  tea_util_1.default.validateModel(request);
14824
14957
  let query = {};
@@ -14852,6 +14985,9 @@ class Client extends openapi_client_1.default {
14852
14985
  if (!tea_util_1.default.isUnset(request.healthCheckType)) {
14853
14986
  query["HealthCheckType"] = request.healthCheckType;
14854
14987
  }
14988
+ if (!tea_util_1.default.isUnset(request.healthCheckTypes)) {
14989
+ query["HealthCheckTypes"] = request.healthCheckTypes;
14990
+ }
14855
14991
  if (!tea_util_1.default.isUnset(request.launchTemplateId)) {
14856
14992
  query["LaunchTemplateId"] = request.launchTemplateId;
14857
14993
  }
@@ -14928,6 +15064,23 @@ class Client extends openapi_client_1.default {
14928
15064
  });
14929
15065
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingGroupResponse({}));
14930
15066
  }
15067
+ /**
15068
+ * * You cannot call this operation to modify the settings of the following parameters:
15069
+ * * RegionId
15070
+ * * LoadBalancerId
15071
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
15072
+ * * DBInstanceId
15073
+ * **
15074
+ * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
15075
+ * * You can modify only scaling groups that are in the Active or Inactive state.
15076
+ * * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
15077
+ * * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
15078
+ * * If the total number of instances in the scaling group is less than the allowed minimum number after you change the value of the MinSize parameter, Auto Scaling automatically adds instances to the scaling group to ensure that the number of instances is within the new range.
15079
+ * * If the total number of instances in the scaling group does not match the expected number of instances after you change the value of the DesiredCapacity parameter, Auto Scaling automatically adds instances to or removes instances from the scaling group to ensure that the number of instances matches the value of the DesiredCapacity parameter.
15080
+ *
15081
+ * @param request ModifyScalingGroupRequest
15082
+ * @return ModifyScalingGroupResponse
15083
+ */
14931
15084
  async modifyScalingGroup(request) {
14932
15085
  let runtime = new $Util.RuntimeOptions({});
14933
15086
  return await this.modifyScalingGroupWithOptions(request, runtime);