@alicloud/ess20220222 1.3.0 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ess20220222",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -12,11 +12,11 @@
12
12
  "author": "Alibaba Cloud SDK",
13
13
  "license": "Apache-2.0",
14
14
  "devDependencies": {
15
- "@types/node": "^12.12.26",
15
+ "@types/node": "^16.0.0",
16
16
  "nyc": "^15.0.0",
17
17
  "source-map-support": "^0.5.16",
18
- "ts-node": "^8.6.2",
19
- "typescript": "^3.7.5"
18
+ "ts-node": "^10.0.0",
19
+ "typescript": "^5"
20
20
  },
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
package/src/client.ts CHANGED
@@ -243,6 +243,7 @@ export class AttachAlbServerGroupsResponse extends $tea.Model {
243
243
  }
244
244
 
245
245
  export class AttachDBInstancesRequest extends $tea.Model {
246
+ attachMode?: string;
246
247
  clientToken?: string;
247
248
  DBInstances?: string[];
248
249
  forceAttach?: boolean;
@@ -250,8 +251,10 @@ export class AttachDBInstancesRequest extends $tea.Model {
250
251
  regionId?: string;
251
252
  resourceOwnerAccount?: string;
252
253
  scalingGroupId?: string;
254
+ type?: string;
253
255
  static names(): { [key: string]: string } {
254
256
  return {
257
+ attachMode: 'AttachMode',
255
258
  clientToken: 'ClientToken',
256
259
  DBInstances: 'DBInstances',
257
260
  forceAttach: 'ForceAttach',
@@ -259,11 +262,13 @@ export class AttachDBInstancesRequest extends $tea.Model {
259
262
  regionId: 'RegionId',
260
263
  resourceOwnerAccount: 'ResourceOwnerAccount',
261
264
  scalingGroupId: 'ScalingGroupId',
265
+ type: 'Type',
262
266
  };
263
267
  }
264
268
 
265
269
  static types(): { [key: string]: any } {
266
270
  return {
271
+ attachMode: 'string',
267
272
  clientToken: 'string',
268
273
  DBInstances: { 'type': 'array', 'itemType': 'string' },
269
274
  forceAttach: 'boolean',
@@ -271,6 +276,7 @@ export class AttachDBInstancesRequest extends $tea.Model {
271
276
  regionId: 'string',
272
277
  resourceOwnerAccount: 'string',
273
278
  scalingGroupId: 'string',
279
+ type: 'string',
274
280
  };
275
281
  }
276
282
 
@@ -1344,6 +1350,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1344
1350
  creditSpecification?: string;
1345
1351
  customPriorities?: CreateScalingConfigurationRequestCustomPriorities[];
1346
1352
  dataDisks?: CreateScalingConfigurationRequestDataDisks[];
1353
+ dedicatedHostClusterId?: string;
1347
1354
  dedicatedHostId?: string;
1348
1355
  deletionProtection?: boolean;
1349
1356
  deploymentSetId?: string;
@@ -1402,6 +1409,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1402
1409
  creditSpecification: 'CreditSpecification',
1403
1410
  customPriorities: 'CustomPriorities',
1404
1411
  dataDisks: 'DataDisks',
1412
+ dedicatedHostClusterId: 'DedicatedHostClusterId',
1405
1413
  dedicatedHostId: 'DedicatedHostId',
1406
1414
  deletionProtection: 'DeletionProtection',
1407
1415
  deploymentSetId: 'DeploymentSetId',
@@ -1463,6 +1471,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1463
1471
  creditSpecification: 'string',
1464
1472
  customPriorities: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestCustomPriorities },
1465
1473
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestDataDisks },
1474
+ dedicatedHostClusterId: 'string',
1466
1475
  dedicatedHostId: 'string',
1467
1476
  deletionProtection: 'boolean',
1468
1477
  deploymentSetId: 'string',
@@ -1528,6 +1537,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1528
1537
  creditSpecification?: string;
1529
1538
  customPriorities?: CreateScalingConfigurationShrinkRequestCustomPriorities[];
1530
1539
  dataDisks?: CreateScalingConfigurationShrinkRequestDataDisks[];
1540
+ dedicatedHostClusterId?: string;
1531
1541
  dedicatedHostId?: string;
1532
1542
  deletionProtection?: boolean;
1533
1543
  deploymentSetId?: string;
@@ -1586,6 +1596,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1586
1596
  creditSpecification: 'CreditSpecification',
1587
1597
  customPriorities: 'CustomPriorities',
1588
1598
  dataDisks: 'DataDisks',
1599
+ dedicatedHostClusterId: 'DedicatedHostClusterId',
1589
1600
  dedicatedHostId: 'DedicatedHostId',
1590
1601
  deletionProtection: 'DeletionProtection',
1591
1602
  deploymentSetId: 'DeploymentSetId',
@@ -1647,6 +1658,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1647
1658
  creditSpecification: 'string',
1648
1659
  customPriorities: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestCustomPriorities },
1649
1660
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestDataDisks },
1661
+ dedicatedHostClusterId: 'string',
1650
1662
  dedicatedHostId: 'string',
1651
1663
  deletionProtection: 'boolean',
1652
1664
  deploymentSetId: 'string',
@@ -1758,6 +1770,7 @@ export class CreateScalingGroupRequest extends $tea.Model {
1758
1770
  containerGroupId?: string;
1759
1771
  customPolicyARN?: string;
1760
1772
  DBInstanceIds?: string;
1773
+ DBInstances?: CreateScalingGroupRequestDBInstances[];
1761
1774
  defaultCooldown?: number;
1762
1775
  desiredCapacity?: number;
1763
1776
  groupDeletionProtection?: boolean;
@@ -1804,6 +1817,7 @@ export class CreateScalingGroupRequest extends $tea.Model {
1804
1817
  containerGroupId: 'ContainerGroupId',
1805
1818
  customPolicyARN: 'CustomPolicyARN',
1806
1819
  DBInstanceIds: 'DBInstanceIds',
1820
+ DBInstances: 'DBInstances',
1807
1821
  defaultCooldown: 'DefaultCooldown',
1808
1822
  desiredCapacity: 'DesiredCapacity',
1809
1823
  groupDeletionProtection: 'GroupDeletionProtection',
@@ -1853,6 +1867,7 @@ export class CreateScalingGroupRequest extends $tea.Model {
1853
1867
  containerGroupId: 'string',
1854
1868
  customPolicyARN: 'string',
1855
1869
  DBInstanceIds: 'string',
1870
+ DBInstances: { 'type': 'array', 'itemType': CreateScalingGroupRequestDBInstances },
1856
1871
  defaultCooldown: 'number',
1857
1872
  desiredCapacity: 'number',
1858
1873
  groupDeletionProtection: 'boolean',
@@ -4578,6 +4593,7 @@ export class DetachDBInstancesRequest extends $tea.Model {
4578
4593
  forceDetach?: boolean;
4579
4594
  ownerId?: number;
4580
4595
  regionId?: string;
4596
+ removeSecurityGroup?: boolean;
4581
4597
  resourceOwnerAccount?: string;
4582
4598
  scalingGroupId?: string;
4583
4599
  static names(): { [key: string]: string } {
@@ -4587,6 +4603,7 @@ export class DetachDBInstancesRequest extends $tea.Model {
4587
4603
  forceDetach: 'ForceDetach',
4588
4604
  ownerId: 'OwnerId',
4589
4605
  regionId: 'RegionId',
4606
+ removeSecurityGroup: 'RemoveSecurityGroup',
4590
4607
  resourceOwnerAccount: 'ResourceOwnerAccount',
4591
4608
  scalingGroupId: 'ScalingGroupId',
4592
4609
  };
@@ -4599,6 +4616,7 @@ export class DetachDBInstancesRequest extends $tea.Model {
4599
4616
  forceDetach: 'boolean',
4600
4617
  ownerId: 'number',
4601
4618
  regionId: 'string',
4619
+ removeSecurityGroup: 'boolean',
4602
4620
  resourceOwnerAccount: 'string',
4603
4621
  scalingGroupId: 'string',
4604
4622
  };
@@ -6426,6 +6444,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6426
6444
  creditSpecification?: string;
6427
6445
  customPriorities?: ModifyScalingConfigurationRequestCustomPriorities[];
6428
6446
  dataDisks?: ModifyScalingConfigurationRequestDataDisks[];
6447
+ dedicatedHostClusterId?: string;
6429
6448
  dedicatedHostId?: string;
6430
6449
  deletionProtection?: boolean;
6431
6450
  deploymentSetId?: string;
@@ -6480,6 +6499,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6480
6499
  creditSpecification: 'CreditSpecification',
6481
6500
  customPriorities: 'CustomPriorities',
6482
6501
  dataDisks: 'DataDisks',
6502
+ dedicatedHostClusterId: 'DedicatedHostClusterId',
6483
6503
  dedicatedHostId: 'DedicatedHostId',
6484
6504
  deletionProtection: 'DeletionProtection',
6485
6505
  deploymentSetId: 'DeploymentSetId',
@@ -6537,6 +6557,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6537
6557
  creditSpecification: 'string',
6538
6558
  customPriorities: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestCustomPriorities },
6539
6559
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestDataDisks },
6560
+ dedicatedHostClusterId: 'string',
6540
6561
  dedicatedHostId: 'string',
6541
6562
  deletionProtection: 'boolean',
6542
6563
  deploymentSetId: 'string',
@@ -6598,6 +6619,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6598
6619
  creditSpecification?: string;
6599
6620
  customPriorities?: ModifyScalingConfigurationShrinkRequestCustomPriorities[];
6600
6621
  dataDisks?: ModifyScalingConfigurationShrinkRequestDataDisks[];
6622
+ dedicatedHostClusterId?: string;
6601
6623
  dedicatedHostId?: string;
6602
6624
  deletionProtection?: boolean;
6603
6625
  deploymentSetId?: string;
@@ -6652,6 +6674,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6652
6674
  creditSpecification: 'CreditSpecification',
6653
6675
  customPriorities: 'CustomPriorities',
6654
6676
  dataDisks: 'DataDisks',
6677
+ dedicatedHostClusterId: 'DedicatedHostClusterId',
6655
6678
  dedicatedHostId: 'DedicatedHostId',
6656
6679
  deletionProtection: 'DeletionProtection',
6657
6680
  deploymentSetId: 'DeploymentSetId',
@@ -6709,6 +6732,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6709
6732
  creditSpecification: 'string',
6710
6733
  customPriorities: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestCustomPriorities },
6711
6734
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestDataDisks },
6735
+ dedicatedHostClusterId: 'string',
6712
6736
  dedicatedHostId: 'string',
6713
6737
  deletionProtection: 'boolean',
6714
6738
  deploymentSetId: 'string',
@@ -9994,6 +10018,31 @@ export class CreateScalingGroupRequestAlbServerGroups extends $tea.Model {
9994
10018
  }
9995
10019
  }
9996
10020
 
10021
+ export class CreateScalingGroupRequestDBInstances extends $tea.Model {
10022
+ attachMode?: string;
10023
+ DBInstanceId?: string;
10024
+ type?: string;
10025
+ static names(): { [key: string]: string } {
10026
+ return {
10027
+ attachMode: 'AttachMode',
10028
+ DBInstanceId: 'DBInstanceId',
10029
+ type: 'Type',
10030
+ };
10031
+ }
10032
+
10033
+ static types(): { [key: string]: any } {
10034
+ return {
10035
+ attachMode: 'string',
10036
+ DBInstanceId: 'string',
10037
+ type: 'string',
10038
+ };
10039
+ }
10040
+
10041
+ constructor(map?: { [key: string]: any }) {
10042
+ super(map);
10043
+ }
10044
+ }
10045
+
9997
10046
  export class CreateScalingGroupRequestLaunchTemplateOverrides extends $tea.Model {
9998
10047
  instanceType?: string;
9999
10048
  spotPriceLimit?: number;
@@ -12406,6 +12455,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
12406
12455
  creditSpecification?: string;
12407
12456
  customPriorities?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities[];
12408
12457
  dataDisks?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks[];
12458
+ dedicatedHostClusterId?: string;
12409
12459
  dedicatedHostId?: string;
12410
12460
  deletionProtection?: boolean;
12411
12461
  deploymentSetId?: string;
@@ -12475,6 +12525,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
12475
12525
  creditSpecification: 'CreditSpecification',
12476
12526
  customPriorities: 'CustomPriorities',
12477
12527
  dataDisks: 'DataDisks',
12528
+ dedicatedHostClusterId: 'DedicatedHostClusterId',
12478
12529
  dedicatedHostId: 'DedicatedHostId',
12479
12530
  deletionProtection: 'DeletionProtection',
12480
12531
  deploymentSetId: 'DeploymentSetId',
@@ -12547,6 +12598,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
12547
12598
  creditSpecification: 'string',
12548
12599
  customPriorities: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities },
12549
12600
  dataDisks: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks },
12601
+ dedicatedHostClusterId: 'string',
12550
12602
  dedicatedHostId: 'string',
12551
12603
  deletionProtection: 'boolean',
12552
12604
  deploymentSetId: 'string',
@@ -13028,6 +13080,31 @@ export class DescribeScalingGroupsResponseBodyScalingGroupsAlbServerGroups exten
13028
13080
  }
13029
13081
  }
13030
13082
 
13083
+ export class DescribeScalingGroupsResponseBodyScalingGroupsDBInstances extends $tea.Model {
13084
+ DBInstanceId?: string;
13085
+ securityGroupIds?: string[];
13086
+ type?: string;
13087
+ static names(): { [key: string]: string } {
13088
+ return {
13089
+ DBInstanceId: 'DBInstanceId',
13090
+ securityGroupIds: 'SecurityGroupIds',
13091
+ type: 'Type',
13092
+ };
13093
+ }
13094
+
13095
+ static types(): { [key: string]: any } {
13096
+ return {
13097
+ DBInstanceId: 'string',
13098
+ securityGroupIds: { 'type': 'array', 'itemType': 'string' },
13099
+ type: 'string',
13100
+ };
13101
+ }
13102
+
13103
+ constructor(map?: { [key: string]: any }) {
13104
+ super(map);
13105
+ }
13106
+ }
13107
+
13031
13108
  export class DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides extends $tea.Model {
13032
13109
  instanceType?: string;
13033
13110
  spotPriceLimit?: number;
@@ -13186,6 +13263,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
13186
13263
  currentHostName?: string;
13187
13264
  customPolicyARN?: string;
13188
13265
  DBInstanceIds?: string[];
13266
+ DBInstances?: DescribeScalingGroupsResponseBodyScalingGroupsDBInstances[];
13189
13267
  defaultCooldown?: number;
13190
13268
  desiredCapacity?: number;
13191
13269
  enableDesiredCapacity?: boolean;
@@ -13247,6 +13325,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
13247
13325
  currentHostName: 'CurrentHostName',
13248
13326
  customPolicyARN: 'CustomPolicyARN',
13249
13327
  DBInstanceIds: 'DBInstanceIds',
13328
+ DBInstances: 'DBInstances',
13250
13329
  defaultCooldown: 'DefaultCooldown',
13251
13330
  desiredCapacity: 'DesiredCapacity',
13252
13331
  enableDesiredCapacity: 'EnableDesiredCapacity',
@@ -13311,6 +13390,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
13311
13390
  currentHostName: 'string',
13312
13391
  customPolicyARN: 'string',
13313
13392
  DBInstanceIds: { 'type': 'array', 'itemType': 'string' },
13393
+ DBInstances: { 'type': 'array', 'itemType': DescribeScalingGroupsResponseBodyScalingGroupsDBInstances },
13314
13394
  defaultCooldown: 'number',
13315
13395
  desiredCapacity: 'number',
13316
13396
  enableDesiredCapacity: 'boolean',
@@ -15899,6 +15979,10 @@ export default class Client extends OpenApi {
15899
15979
  async attachDBInstancesWithOptions(request: AttachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachDBInstancesResponse> {
15900
15980
  Util.validateModel(request);
15901
15981
  let query = { };
15982
+ if (!Util.isUnset(request.attachMode)) {
15983
+ query["AttachMode"] = request.attachMode;
15984
+ }
15985
+
15902
15986
  if (!Util.isUnset(request.clientToken)) {
15903
15987
  query["ClientToken"] = request.clientToken;
15904
15988
  }
@@ -15927,6 +16011,10 @@ export default class Client extends OpenApi {
15927
16011
  query["ScalingGroupId"] = request.scalingGroupId;
15928
16012
  }
15929
16013
 
16014
+ if (!Util.isUnset(request.type)) {
16015
+ query["Type"] = request.type;
16016
+ }
16017
+
15930
16018
  let req = new $OpenApi.OpenApiRequest({
15931
16019
  query: OpenApiUtil.query(query),
15932
16020
  });
@@ -16946,6 +17034,10 @@ export default class Client extends OpenApi {
16946
17034
  query["DataDisks"] = request.dataDisks;
16947
17035
  }
16948
17036
 
17037
+ if (!Util.isUnset(request.dedicatedHostClusterId)) {
17038
+ query["DedicatedHostClusterId"] = request.dedicatedHostClusterId;
17039
+ }
17040
+
16949
17041
  if (!Util.isUnset(request.dedicatedHostId)) {
16950
17042
  query["DedicatedHostId"] = request.dedicatedHostId;
16951
17043
  }
@@ -17184,7 +17276,7 @@ export default class Client extends OpenApi {
17184
17276
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
17185
17277
  * 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.
17186
17278
  * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
17187
- * 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.
17279
+ * 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](~~40654~~) topic.
17188
17280
  * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
17189
17281
  * * 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.
17190
17282
  * * 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.
@@ -17243,6 +17335,10 @@ export default class Client extends OpenApi {
17243
17335
  query["DBInstanceIds"] = request.DBInstanceIds;
17244
17336
  }
17245
17337
 
17338
+ if (!Util.isUnset(request.DBInstances)) {
17339
+ query["DBInstances"] = request.DBInstances;
17340
+ }
17341
+
17246
17342
  if (!Util.isUnset(request.defaultCooldown)) {
17247
17343
  query["DefaultCooldown"] = request.defaultCooldown;
17248
17344
  }
@@ -17408,7 +17504,7 @@ export default class Client extends OpenApi {
17408
17504
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
17409
17505
  * 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.
17410
17506
  * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
17411
- * 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.
17507
+ * 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](~~40654~~) topic.
17412
17508
  * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
17413
17509
  * * 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.
17414
17510
  * * 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.
@@ -19237,6 +19333,10 @@ export default class Client extends OpenApi {
19237
19333
  query["RegionId"] = request.regionId;
19238
19334
  }
19239
19335
 
19336
+ if (!Util.isUnset(request.removeSecurityGroup)) {
19337
+ query["RemoveSecurityGroup"] = request.removeSecurityGroup;
19338
+ }
19339
+
19240
19340
  if (!Util.isUnset(request.resourceOwnerAccount)) {
19241
19341
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
19242
19342
  }
@@ -20110,11 +20210,11 @@ export default class Client extends OpenApi {
20110
20210
  }
20111
20211
 
20112
20212
  /**
20113
- * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20114
- * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue 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 in a scaling group within an Alibaba Cloud account.
20115
- * * If you set MetricType to custom, the valid values are your custom metrics.
20116
- * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
20117
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
20213
+ * * 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 the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20214
+ * * 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.
20215
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
20216
+ * * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
20217
+ * > 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.
20118
20218
  *
20119
20219
  * @param request ModifyAlarmRequest
20120
20220
  * @param runtime runtime options for this request RuntimeOptions
@@ -20217,11 +20317,11 @@ export default class Client extends OpenApi {
20217
20317
  }
20218
20318
 
20219
20319
  /**
20220
- * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20221
- * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue 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 in a scaling group within an Alibaba Cloud account.
20222
- * * If you set MetricType to custom, the valid values are your custom metrics.
20223
- * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
20224
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
20320
+ * * 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 the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
20321
+ * * 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.
20322
+ * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
20323
+ * * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
20324
+ * > 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.
20225
20325
  *
20226
20326
  * @param request ModifyAlarmRequest
20227
20327
  * @return ModifyAlarmResponse
@@ -20697,6 +20797,10 @@ export default class Client extends OpenApi {
20697
20797
  query["DataDisks"] = request.dataDisks;
20698
20798
  }
20699
20799
 
20800
+ if (!Util.isUnset(request.dedicatedHostClusterId)) {
20801
+ query["DedicatedHostClusterId"] = request.dedicatedHostClusterId;
20802
+ }
20803
+
20700
20804
  if (!Util.isUnset(request.dedicatedHostId)) {
20701
20805
  query["DedicatedHostId"] = request.dedicatedHostId;
20702
20806
  }
@@ -20917,10 +21021,9 @@ export default class Client extends OpenApi {
20917
21021
  * * You cannot call this operation to modify the settings of the following parameters:
20918
21022
  * * RegionId
20919
21023
  * * LoadBalancerId
20920
- * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
21024
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
20921
21025
  * * DBInstanceId
20922
- * **
20923
- * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
21026
+ * > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
20924
21027
  * * You can modify only scaling groups that are in the Active or Inactive state.
20925
21028
  * * 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.
20926
21029
  * * 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.
@@ -21083,10 +21186,9 @@ export default class Client extends OpenApi {
21083
21186
  * * You cannot call this operation to modify the settings of the following parameters:
21084
21187
  * * RegionId
21085
21188
  * * LoadBalancerId
21086
- * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
21189
+ * > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
21087
21190
  * * DBInstanceId
21088
- * **
21089
- * **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
21191
+ * > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
21090
21192
  * * You can modify only scaling groups that are in the Active or Inactive state.
21091
21193
  * * 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.
21092
21194
  * * 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.
@@ -21449,6 +21551,20 @@ export default class Client extends OpenApi {
21449
21551
  return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
21450
21552
  }
21451
21553
 
21554
+ /**
21555
+ * * Before you call this operation, make sure that the following requirements are met:
21556
+ * * The scaling group is in the Active state.
21557
+ * * No scaling activity is in progress within the scaling group.
21558
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
21559
+ * * 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.
21560
+ * * 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.
21561
+ * * 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.
21562
+ * 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.
21563
+ *
21564
+ * @param request RemoveInstancesRequest
21565
+ * @param runtime runtime options for this request RuntimeOptions
21566
+ * @return RemoveInstancesResponse
21567
+ */
21452
21568
  async removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse> {
21453
21569
  Util.validateModel(request);
21454
21570
  let query = { };
@@ -21509,6 +21625,19 @@ export default class Client extends OpenApi {
21509
21625
  return $tea.cast<RemoveInstancesResponse>(await this.callApi(params, req, runtime), new RemoveInstancesResponse({}));
21510
21626
  }
21511
21627
 
21628
+ /**
21629
+ * * Before you call this operation, make sure that the following requirements are met:
21630
+ * * The scaling group is in the Active state.
21631
+ * * No scaling activity is in progress within the scaling group.
21632
+ * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
21633
+ * * 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.
21634
+ * * 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.
21635
+ * * 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.
21636
+ * 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.
21637
+ *
21638
+ * @param request RemoveInstancesRequest
21639
+ * @return RemoveInstancesResponse
21640
+ */
21512
21641
  async removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse> {
21513
21642
  let runtime = new $Util.RuntimeOptions({ });
21514
21643
  return await this.removeInstancesWithOptions(request, runtime);