@alicloud/ess20220222 1.0.4 → 1.0.6

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
@@ -926,6 +926,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
926
926
  creditSpecification: 'CreditSpecification',
927
927
  dataDisks: 'DataDisks',
928
928
  dedicatedHostId: 'DedicatedHostId',
929
+ deletionProtection: 'DeletionProtection',
929
930
  deploymentSetId: 'DeploymentSetId',
930
931
  hostName: 'HostName',
931
932
  hpcClusterId: 'HpcClusterId',
@@ -981,6 +982,7 @@ class CreateScalingConfigurationRequest extends $tea.Model {
981
982
  creditSpecification: 'string',
982
983
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestDataDisks },
983
984
  dedicatedHostId: 'string',
985
+ deletionProtection: 'boolean',
984
986
  deploymentSetId: 'string',
985
987
  hostName: 'string',
986
988
  hpcClusterId: 'string',
@@ -1042,6 +1044,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1042
1044
  creditSpecification: 'CreditSpecification',
1043
1045
  dataDisks: 'DataDisks',
1044
1046
  dedicatedHostId: 'DedicatedHostId',
1047
+ deletionProtection: 'DeletionProtection',
1045
1048
  deploymentSetId: 'DeploymentSetId',
1046
1049
  hostName: 'HostName',
1047
1050
  hpcClusterId: 'HpcClusterId',
@@ -1097,6 +1100,7 @@ class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1097
1100
  creditSpecification: 'string',
1098
1101
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestDataDisks },
1099
1102
  dedicatedHostId: 'string',
1103
+ deletionProtection: 'boolean',
1100
1104
  deploymentSetId: 'string',
1101
1105
  hostName: 'string',
1102
1106
  hpcClusterId: 'string',
@@ -2920,6 +2924,7 @@ class DescribeScalingInstancesRequest extends $tea.Model {
2920
2924
  static names() {
2921
2925
  return {
2922
2926
  creationType: 'CreationType',
2927
+ creationTypes: 'CreationTypes',
2923
2928
  healthStatus: 'HealthStatus',
2924
2929
  instanceIds: 'InstanceIds',
2925
2930
  lifecycleState: 'LifecycleState',
@@ -2938,6 +2943,7 @@ class DescribeScalingInstancesRequest extends $tea.Model {
2938
2943
  static types() {
2939
2944
  return {
2940
2945
  creationType: 'string',
2946
+ creationTypes: { 'type': 'array', 'itemType': 'string' },
2941
2947
  healthStatus: 'string',
2942
2948
  instanceIds: { 'type': 'array', 'itemType': 'string' },
2943
2949
  lifecycleState: 'string',
@@ -4601,6 +4607,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
4601
4607
  creditSpecification: 'CreditSpecification',
4602
4608
  dataDisks: 'DataDisks',
4603
4609
  dedicatedHostId: 'DedicatedHostId',
4610
+ deletionProtection: 'DeletionProtection',
4604
4611
  deploymentSetId: 'DeploymentSetId',
4605
4612
  hostName: 'HostName',
4606
4613
  hpcClusterId: 'HpcClusterId',
@@ -4652,6 +4659,7 @@ class ModifyScalingConfigurationRequest extends $tea.Model {
4652
4659
  creditSpecification: 'string',
4653
4660
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestDataDisks },
4654
4661
  dedicatedHostId: 'string',
4662
+ deletionProtection: 'boolean',
4655
4663
  deploymentSetId: 'string',
4656
4664
  hostName: 'string',
4657
4665
  hpcClusterId: 'string',
@@ -4709,6 +4717,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
4709
4717
  creditSpecification: 'CreditSpecification',
4710
4718
  dataDisks: 'DataDisks',
4711
4719
  dedicatedHostId: 'DedicatedHostId',
4720
+ deletionProtection: 'DeletionProtection',
4712
4721
  deploymentSetId: 'DeploymentSetId',
4713
4722
  hostName: 'HostName',
4714
4723
  hpcClusterId: 'HpcClusterId',
@@ -4760,6 +4769,7 @@ class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
4760
4769
  creditSpecification: 'string',
4761
4770
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestDataDisks },
4762
4771
  dedicatedHostId: 'string',
4772
+ deletionProtection: 'boolean',
4763
4773
  deploymentSetId: 'string',
4764
4774
  hostName: 'string',
4765
4775
  hpcClusterId: 'string',
@@ -5892,6 +5902,7 @@ class VerifyUserRequest extends $tea.Model {
5892
5902
  static names() {
5893
5903
  return {
5894
5904
  ownerId: 'OwnerId',
5905
+ regionId: 'RegionId',
5895
5906
  resourceOwnerAccount: 'ResourceOwnerAccount',
5896
5907
  resourceOwnerId: 'ResourceOwnerId',
5897
5908
  };
@@ -5899,6 +5910,7 @@ class VerifyUserRequest extends $tea.Model {
5899
5910
  static types() {
5900
5911
  return {
5901
5912
  ownerId: 'number',
5913
+ regionId: 'string',
5902
5914
  resourceOwnerAccount: 'string',
5903
5915
  resourceOwnerId: 'number',
5904
5916
  };
@@ -6672,11 +6684,13 @@ class CreateEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Mod
6672
6684
  static names() {
6673
6685
  return {
6674
6686
  medium: 'Medium',
6687
+ sizeLimit: 'SizeLimit',
6675
6688
  };
6676
6689
  }
6677
6690
  static types() {
6678
6691
  return {
6679
6692
  medium: 'string',
6693
+ sizeLimit: 'string',
6680
6694
  };
6681
6695
  }
6682
6696
  }
@@ -7839,6 +7853,7 @@ class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsVolumes e
7839
7853
  diskVolumeDiskSize: 'DiskVolumeDiskSize',
7840
7854
  diskVolumeFsType: 'DiskVolumeFsType',
7841
7855
  emptyDirVolumeMedium: 'EmptyDirVolumeMedium',
7856
+ emptyDirVolumeSizeLimit: 'EmptyDirVolumeSizeLimit',
7842
7857
  flexVolumeDriver: 'FlexVolumeDriver',
7843
7858
  flexVolumeFsType: 'FlexVolumeFsType',
7844
7859
  flexVolumeOptions: 'FlexVolumeOptions',
@@ -7857,6 +7872,7 @@ class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsVolumes e
7857
7872
  diskVolumeDiskSize: 'number',
7858
7873
  diskVolumeFsType: 'string',
7859
7874
  emptyDirVolumeMedium: 'string',
7875
+ emptyDirVolumeSizeLimit: 'string',
7860
7876
  flexVolumeDriver: 'string',
7861
7877
  flexVolumeFsType: 'string',
7862
7878
  flexVolumeOptions: 'string',
@@ -8290,6 +8306,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
8290
8306
  creditSpecification: 'CreditSpecification',
8291
8307
  dataDisks: 'DataDisks',
8292
8308
  dedicatedHostId: 'DedicatedHostId',
8309
+ deletionProtection: 'DeletionProtection',
8293
8310
  deploymentSetId: 'DeploymentSetId',
8294
8311
  hostName: 'HostName',
8295
8312
  hpcClusterId: 'HpcClusterId',
@@ -8355,6 +8372,7 @@ class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $te
8355
8372
  creditSpecification: 'string',
8356
8373
  dataDisks: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks },
8357
8374
  dedicatedHostId: 'string',
8375
+ deletionProtection: 'boolean',
8358
8376
  deploymentSetId: 'string',
8359
8377
  hostName: 'string',
8360
8378
  hpcClusterId: 'string',
@@ -8549,6 +8567,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8549
8567
  DBInstanceIds: 'DBInstanceIds',
8550
8568
  defaultCooldown: 'DefaultCooldown',
8551
8569
  desiredCapacity: 'DesiredCapacity',
8570
+ enableDesiredCapacity: 'EnableDesiredCapacity',
8552
8571
  groupDeletionProtection: 'GroupDeletionProtection',
8553
8572
  groupType: 'GroupType',
8554
8573
  healthCheckType: 'HealthCheckType',
@@ -8609,6 +8628,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
8609
8628
  DBInstanceIds: { 'type': 'array', 'itemType': 'string' },
8610
8629
  defaultCooldown: 'number',
8611
8630
  desiredCapacity: 'number',
8631
+ enableDesiredCapacity: 'boolean',
8612
8632
  groupDeletionProtection: 'boolean',
8613
8633
  groupType: 'string',
8614
8634
  healthCheckType: 'string',
@@ -9698,11 +9718,13 @@ class ModifyEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Mod
9698
9718
  static names() {
9699
9719
  return {
9700
9720
  medium: 'Medium',
9721
+ sizeLimit: 'SizeLimit',
9701
9722
  };
9702
9723
  }
9703
9724
  static types() {
9704
9725
  return {
9705
9726
  medium: 'string',
9727
+ sizeLimit: 'string',
9706
9728
  };
9707
9729
  }
9708
9730
  }
@@ -10309,13 +10331,6 @@ class Client extends openapi_client_1.default {
10309
10331
  }
10310
10332
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
10311
10333
  }
10312
- /**
10313
- * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
10314
- *
10315
- * @param request AttachAlbServerGroupsRequest
10316
- * @param runtime runtime options for this request RuntimeOptions
10317
- * @return AttachAlbServerGroupsResponse
10318
- */
10319
10334
  async attachAlbServerGroupsWithOptions(request, runtime) {
10320
10335
  tea_util_1.default.validateModel(request);
10321
10336
  let query = {};
@@ -10356,23 +10371,10 @@ class Client extends openapi_client_1.default {
10356
10371
  });
10357
10372
  return $tea.cast(await this.callApi(params, req, runtime), new AttachAlbServerGroupsResponse({}));
10358
10373
  }
10359
- /**
10360
- * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
10361
- *
10362
- * @param request AttachAlbServerGroupsRequest
10363
- * @return AttachAlbServerGroupsResponse
10364
- */
10365
10374
  async attachAlbServerGroups(request) {
10366
10375
  let runtime = new $Util.RuntimeOptions({});
10367
10376
  return await this.attachAlbServerGroupsWithOptions(request, runtime);
10368
10377
  }
10369
- /**
10370
- * Associates one or more ApsaraDB RDS instances with a scaling group.
10371
- *
10372
- * @param request AttachDBInstancesRequest
10373
- * @param runtime runtime options for this request RuntimeOptions
10374
- * @return AttachDBInstancesResponse
10375
- */
10376
10378
  async attachDBInstancesWithOptions(request, runtime) {
10377
10379
  tea_util_1.default.validateModel(request);
10378
10380
  let query = {};
@@ -10413,23 +10415,10 @@ class Client extends openapi_client_1.default {
10413
10415
  });
10414
10416
  return $tea.cast(await this.callApi(params, req, runtime), new AttachDBInstancesResponse({}));
10415
10417
  }
10416
- /**
10417
- * Associates one or more ApsaraDB RDS instances with a scaling group.
10418
- *
10419
- * @param request AttachDBInstancesRequest
10420
- * @return AttachDBInstancesResponse
10421
- */
10422
10418
  async attachDBInstances(request) {
10423
10419
  let runtime = new $Util.RuntimeOptions({});
10424
10420
  return await this.attachDBInstancesWithOptions(request, runtime);
10425
10421
  }
10426
- /**
10427
- * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
10428
- *
10429
- * @param request AttachInstancesRequest
10430
- * @param runtime runtime options for this request RuntimeOptions
10431
- * @return AttachInstancesResponse
10432
- */
10433
10422
  async attachInstancesWithOptions(request, runtime) {
10434
10423
  tea_util_1.default.validateModel(request);
10435
10424
  let query = {};
@@ -10479,23 +10468,10 @@ class Client extends openapi_client_1.default {
10479
10468
  });
10480
10469
  return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
10481
10470
  }
10482
- /**
10483
- * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
10484
- *
10485
- * @param request AttachInstancesRequest
10486
- * @return AttachInstancesResponse
10487
- */
10488
10471
  async attachInstances(request) {
10489
10472
  let runtime = new $Util.RuntimeOptions({});
10490
10473
  return await this.attachInstancesWithOptions(request, runtime);
10491
10474
  }
10492
- /**
10493
- * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
10494
- *
10495
- * @param request AttachLoadBalancersRequest
10496
- * @param runtime runtime options for this request RuntimeOptions
10497
- * @return AttachLoadBalancersResponse
10498
- */
10499
10475
  async attachLoadBalancersWithOptions(request, runtime) {
10500
10476
  tea_util_1.default.validateModel(request);
10501
10477
  let query = {};
@@ -10539,12 +10515,6 @@ class Client extends openapi_client_1.default {
10539
10515
  });
10540
10516
  return $tea.cast(await this.callApi(params, req, runtime), new AttachLoadBalancersResponse({}));
10541
10517
  }
10542
- /**
10543
- * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
10544
- *
10545
- * @param request AttachLoadBalancersRequest
10546
- * @return AttachLoadBalancersResponse
10547
- */
10548
10518
  async attachLoadBalancers(request) {
10549
10519
  let runtime = new $Util.RuntimeOptions({});
10550
10520
  return await this.attachLoadBalancersWithOptions(request, runtime);
@@ -10593,13 +10563,6 @@ class Client extends openapi_client_1.default {
10593
10563
  let runtime = new $Util.RuntimeOptions({});
10594
10564
  return await this.attachServerGroupsWithOptions(request, runtime);
10595
10565
  }
10596
- /**
10597
- * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
10598
- *
10599
- * @param request AttachVServerGroupsRequest
10600
- * @param runtime runtime options for this request RuntimeOptions
10601
- * @return AttachVServerGroupsResponse
10602
- */
10603
10566
  async attachVServerGroupsWithOptions(request, runtime) {
10604
10567
  tea_util_1.default.validateModel(request);
10605
10568
  let query = {};
@@ -10640,23 +10603,10 @@ class Client extends openapi_client_1.default {
10640
10603
  });
10641
10604
  return $tea.cast(await this.callApi(params, req, runtime), new AttachVServerGroupsResponse({}));
10642
10605
  }
10643
- /**
10644
- * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
10645
- *
10646
- * @param request AttachVServerGroupsRequest
10647
- * @return AttachVServerGroupsResponse
10648
- */
10649
10606
  async attachVServerGroups(request) {
10650
10607
  let runtime = new $Util.RuntimeOptions({});
10651
10608
  return await this.attachVServerGroupsWithOptions(request, runtime);
10652
10609
  }
10653
- /**
10654
- * 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.
10655
- *
10656
- * @param request ChangeResourceGroupRequest
10657
- * @param runtime runtime options for this request RuntimeOptions
10658
- * @return ChangeResourceGroupResponse
10659
- */
10660
10610
  async changeResourceGroupWithOptions(request, runtime) {
10661
10611
  tea_util_1.default.validateModel(request);
10662
10612
  let query = {};
@@ -10694,12 +10644,6 @@ class Client extends openapi_client_1.default {
10694
10644
  });
10695
10645
  return $tea.cast(await this.callApi(params, req, runtime), new ChangeResourceGroupResponse({}));
10696
10646
  }
10697
- /**
10698
- * 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.
10699
- *
10700
- * @param request ChangeResourceGroupRequest
10701
- * @return ChangeResourceGroupResponse
10702
- */
10703
10647
  async changeResourceGroup(request) {
10704
10648
  let runtime = new $Util.RuntimeOptions({});
10705
10649
  return await this.changeResourceGroupWithOptions(request, runtime);
@@ -10764,17 +10708,6 @@ class Client extends openapi_client_1.default {
10764
10708
  let runtime = new $Util.RuntimeOptions({});
10765
10709
  return await this.completeLifecycleActionWithOptions(request, runtime);
10766
10710
  }
10767
- /**
10768
- * * 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~~).
10769
- * * 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.
10770
- * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
10771
- * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
10772
- * > 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.
10773
- *
10774
- * @param request CreateAlarmRequest
10775
- * @param runtime runtime options for this request RuntimeOptions
10776
- * @return CreateAlarmResponse
10777
- */
10778
10711
  async createAlarmWithOptions(request, runtime) {
10779
10712
  tea_util_1.default.validateModel(request);
10780
10713
  let query = {};
@@ -10851,16 +10784,6 @@ class Client extends openapi_client_1.default {
10851
10784
  });
10852
10785
  return $tea.cast(await this.callApi(params, req, runtime), new CreateAlarmResponse({}));
10853
10786
  }
10854
- /**
10855
- * * 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~~).
10856
- * * 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.
10857
- * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
10858
- * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
10859
- * > 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.
10860
- *
10861
- * @param request CreateAlarmRequest
10862
- * @return CreateAlarmResponse
10863
- */
10864
10787
  async createAlarm(request) {
10865
10788
  let runtime = new $Util.RuntimeOptions({});
10866
10789
  return await this.createAlarmWithOptions(request, runtime);
@@ -11107,13 +11030,6 @@ class Client extends openapi_client_1.default {
11107
11030
  let runtime = new $Util.RuntimeOptions({});
11108
11031
  return await this.createLifecycleHookWithOptions(request, runtime);
11109
11032
  }
11110
- /**
11111
- * Creates a notification.
11112
- *
11113
- * @param request CreateNotificationConfigurationRequest
11114
- * @param runtime runtime options for this request RuntimeOptions
11115
- * @return CreateNotificationConfigurationResponse
11116
- */
11117
11033
  async createNotificationConfigurationWithOptions(request, runtime) {
11118
11034
  tea_util_1.default.validateModel(request);
11119
11035
  let query = {};
@@ -11151,24 +11067,18 @@ class Client extends openapi_client_1.default {
11151
11067
  });
11152
11068
  return $tea.cast(await this.callApi(params, req, runtime), new CreateNotificationConfigurationResponse({}));
11153
11069
  }
11154
- /**
11155
- * Creates a notification.
11156
- *
11157
- * @param request CreateNotificationConfigurationRequest
11158
- * @return CreateNotificationConfigurationResponse
11159
- */
11160
11070
  async createNotificationConfiguration(request) {
11161
11071
  let runtime = new $Util.RuntimeOptions({});
11162
11072
  return await this.createNotificationConfigurationWithOptions(request, runtime);
11163
11073
  }
11164
11074
  /**
11165
11075
  * Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
11166
- * * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the lowest-priced instance type based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces the failures of scale-outs caused by insufficient inventory of instance types.
11076
+ * * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
11167
11077
  * * InstanceType: In this mode, you must specify one instance type.
11168
11078
  * * InstanceTypes: In this mode, you can specify more than one instance type.
11169
11079
  * * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
11170
- * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances of the lowest-priced instance type. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
11171
- * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory parameters at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify the InstanceType and InstancePatternInfos parameters or specify the InstanceTypes and InstancePatternInfos parameters at the same time, Auto Scaling preferentially uses the instance types that are specified by the InstanceType or InstanceTypes parameter for scale-outs. If the instance types that are specified by the InstanceType or InstanceTypes parameter do not have sufficient inventory, Auto Scaling uses the instance types that are specified by the InstancePatternInfos parameter for scale-outs.
11080
+ * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
11081
+ * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. 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-outs.
11172
11082
  *
11173
11083
  * @param tmpReq CreateScalingConfigurationRequest
11174
11084
  * @param runtime runtime options for this request RuntimeOptions
@@ -11200,6 +11110,9 @@ class Client extends openapi_client_1.default {
11200
11110
  if (!tea_util_1.default.isUnset(request.dedicatedHostId)) {
11201
11111
  query["DedicatedHostId"] = request.dedicatedHostId;
11202
11112
  }
11113
+ if (!tea_util_1.default.isUnset(request.deletionProtection)) {
11114
+ query["DeletionProtection"] = request.deletionProtection;
11115
+ }
11203
11116
  if (!tea_util_1.default.isUnset(request.deploymentSetId)) {
11204
11117
  query["DeploymentSetId"] = request.deploymentSetId;
11205
11118
  }
@@ -11353,12 +11266,12 @@ class Client extends openapi_client_1.default {
11353
11266
  }
11354
11267
  /**
11355
11268
  * Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
11356
- * * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the lowest-priced instance type based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces the failures of scale-outs caused by insufficient inventory of instance types.
11269
+ * * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
11357
11270
  * * InstanceType: In this mode, you must specify one instance type.
11358
11271
  * * InstanceTypes: In this mode, you can specify more than one instance type.
11359
11272
  * * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
11360
- * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances of the lowest-priced instance type. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
11361
- * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory parameters at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify the InstanceType and InstancePatternInfos parameters or specify the InstanceTypes and InstancePatternInfos parameters at the same time, Auto Scaling preferentially uses the instance types that are specified by the InstanceType or InstanceTypes parameter for scale-outs. If the instance types that are specified by the InstanceType or InstanceTypes parameter do not have sufficient inventory, Auto Scaling uses the instance types that are specified by the InstancePatternInfos parameter for scale-outs.
11273
+ * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
11274
+ * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. 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-outs.
11362
11275
  *
11363
11276
  * @param request CreateScalingConfigurationRequest
11364
11277
  * @return CreateScalingConfigurationResponse
@@ -11575,7 +11488,18 @@ class Client extends openapi_client_1.default {
11575
11488
  return await this.createScalingGroupWithOptions(request, runtime);
11576
11489
  }
11577
11490
  /**
11578
- * Creates a scaling rule.
11491
+ * A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling calculates the number of ECS instances that need to be added or removed. This ensures that the number of ECS instances can be maintained within the valid range after the scaling rule is executed. Examples:
11492
+ * * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified.
11493
+ * * If your scaling group contains three ECS instances and requires at least two ECS instances, only one ECS instance is removed from your scaling group after you execute a scale-in rule in which five ECS instances are specified.
11494
+ * Before you call this operation, take note of the following items:
11495
+ * * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
11496
+ * * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
11497
+ * * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
11498
+ * * If you specify a cooldown period for the scaling rule, the specified cooldown period takes effect after the rule is executed. Otherwise, the value of DefaultCooldown of the scaling group takes effect.
11499
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
11500
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
11501
+ * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
11502
+ * * CreateScheduledTask: You can call this operation to create a scheduled task. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to associate with the scheduled task.
11579
11503
  *
11580
11504
  * @param request CreateScalingRuleRequest
11581
11505
  * @param runtime runtime options for this request RuntimeOptions
@@ -11673,7 +11597,18 @@ class Client extends openapi_client_1.default {
11673
11597
  return $tea.cast(await this.callApi(params, req, runtime), new CreateScalingRuleResponse({}));
11674
11598
  }
11675
11599
  /**
11676
- * Creates a scaling rule.
11600
+ * A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling calculates the number of ECS instances that need to be added or removed. This ensures that the number of ECS instances can be maintained within the valid range after the scaling rule is executed. Examples:
11601
+ * * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified.
11602
+ * * If your scaling group contains three ECS instances and requires at least two ECS instances, only one ECS instance is removed from your scaling group after you execute a scale-in rule in which five ECS instances are specified.
11603
+ * Before you call this operation, take note of the following items:
11604
+ * * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
11605
+ * * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
11606
+ * * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
11607
+ * * If you specify a cooldown period for the scaling rule, the specified cooldown period takes effect after the rule is executed. Otherwise, the value of DefaultCooldown of the scaling group takes effect.
11608
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
11609
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
11610
+ * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
11611
+ * * CreateScheduledTask: You can call this operation to create a scheduled task. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to associate with the scheduled task.
11677
11612
  *
11678
11613
  * @param request CreateScalingRuleRequest
11679
11614
  * @return CreateScalingRuleResponse
@@ -11682,13 +11617,6 @@ class Client extends openapi_client_1.default {
11682
11617
  let runtime = new $Util.RuntimeOptions({});
11683
11618
  return await this.createScalingRuleWithOptions(request, runtime);
11684
11619
  }
11685
- /**
11686
- * Creates a scheduled task.
11687
- *
11688
- * @param request CreateScheduledTaskRequest
11689
- * @param runtime runtime options for this request RuntimeOptions
11690
- * @return CreateScheduledTaskResponse
11691
- */
11692
11620
  async createScheduledTaskWithOptions(request, runtime) {
11693
11621
  tea_util_1.default.validateModel(request);
11694
11622
  let query = {};
@@ -11759,12 +11687,6 @@ class Client extends openapi_client_1.default {
11759
11687
  });
11760
11688
  return $tea.cast(await this.callApi(params, req, runtime), new CreateScheduledTaskResponse({}));
11761
11689
  }
11762
- /**
11763
- * Creates a scheduled task.
11764
- *
11765
- * @param request CreateScheduledTaskRequest
11766
- * @return CreateScheduledTaskResponse
11767
- */
11768
11690
  async createScheduledTask(request) {
11769
11691
  let runtime = new $Util.RuntimeOptions({});
11770
11692
  return await this.createScheduledTaskWithOptions(request, runtime);
@@ -11839,13 +11761,6 @@ class Client extends openapi_client_1.default {
11839
11761
  let runtime = new $Util.RuntimeOptions({});
11840
11762
  return await this.deleteAlarmWithOptions(request, runtime);
11841
11763
  }
11842
- /**
11843
- * Deletes a scaling configuration that is used to create elastic container instances.
11844
- *
11845
- * @param request DeleteEciScalingConfigurationRequest
11846
- * @param runtime runtime options for this request RuntimeOptions
11847
- * @return DeleteEciScalingConfigurationResponse
11848
- */
11849
11764
  async deleteEciScalingConfigurationWithOptions(request, runtime) {
11850
11765
  tea_util_1.default.validateModel(request);
11851
11766
  let query = {};
@@ -11880,25 +11795,10 @@ class Client extends openapi_client_1.default {
11880
11795
  });
11881
11796
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteEciScalingConfigurationResponse({}));
11882
11797
  }
11883
- /**
11884
- * Deletes a scaling configuration that is used to create elastic container instances.
11885
- *
11886
- * @param request DeleteEciScalingConfigurationRequest
11887
- * @return DeleteEciScalingConfigurationResponse
11888
- */
11889
11798
  async deleteEciScalingConfiguration(request) {
11890
11799
  let runtime = new $Util.RuntimeOptions({});
11891
11800
  return await this.deleteEciScalingConfigurationWithOptions(request, runtime);
11892
11801
  }
11893
- /**
11894
- * 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:
11895
- * * 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.
11896
- * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
11897
- *
11898
- * @param request DeleteLifecycleHookRequest
11899
- * @param runtime runtime options for this request RuntimeOptions
11900
- * @return DeleteLifecycleHookResponse
11901
- */
11902
11802
  async deleteLifecycleHookWithOptions(request, runtime) {
11903
11803
  tea_util_1.default.validateModel(request);
11904
11804
  let query = {};
@@ -11939,14 +11839,6 @@ class Client extends openapi_client_1.default {
11939
11839
  });
11940
11840
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteLifecycleHookResponse({}));
11941
11841
  }
11942
- /**
11943
- * 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:
11944
- * * 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.
11945
- * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
11946
- *
11947
- * @param request DeleteLifecycleHookRequest
11948
- * @return DeleteLifecycleHookResponse
11949
- */
11950
11842
  async deleteLifecycleHook(request) {
11951
11843
  let runtime = new $Util.RuntimeOptions({});
11952
11844
  return await this.deleteLifecycleHookWithOptions(request, runtime);
@@ -11989,13 +11881,6 @@ class Client extends openapi_client_1.default {
11989
11881
  let runtime = new $Util.RuntimeOptions({});
11990
11882
  return await this.deleteNotificationConfigurationWithOptions(request, runtime);
11991
11883
  }
11992
- /**
11993
- * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
11994
- *
11995
- * @param request DeleteScalingConfigurationRequest
11996
- * @param runtime runtime options for this request RuntimeOptions
11997
- * @return DeleteScalingConfigurationResponse
11998
- */
11999
11884
  async deleteScalingConfigurationWithOptions(request, runtime) {
12000
11885
  tea_util_1.default.validateModel(request);
12001
11886
  let query = {};
@@ -12027,23 +11912,10 @@ class Client extends openapi_client_1.default {
12027
11912
  });
12028
11913
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteScalingConfigurationResponse({}));
12029
11914
  }
12030
- /**
12031
- * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
12032
- *
12033
- * @param request DeleteScalingConfigurationRequest
12034
- * @return DeleteScalingConfigurationResponse
12035
- */
12036
11915
  async deleteScalingConfiguration(request) {
12037
11916
  let runtime = new $Util.RuntimeOptions({});
12038
11917
  return await this.deleteScalingConfigurationWithOptions(request, runtime);
12039
11918
  }
12040
- /**
12041
- * Deletes a scaling group.
12042
- *
12043
- * @param request DeleteScalingGroupRequest
12044
- * @param runtime runtime options for this request RuntimeOptions
12045
- * @return DeleteScalingGroupResponse
12046
- */
12047
11919
  async deleteScalingGroupWithOptions(request, runtime) {
12048
11920
  tea_util_1.default.validateModel(request);
12049
11921
  let query = {};
@@ -12081,12 +11953,6 @@ class Client extends openapi_client_1.default {
12081
11953
  });
12082
11954
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteScalingGroupResponse({}));
12083
11955
  }
12084
- /**
12085
- * Deletes a scaling group.
12086
- *
12087
- * @param request DeleteScalingGroupRequest
12088
- * @return DeleteScalingGroupResponse
12089
- */
12090
11956
  async deleteScalingGroup(request) {
12091
11957
  let runtime = new $Util.RuntimeOptions({});
12092
11958
  return await this.deleteScalingGroupWithOptions(request, runtime);
@@ -12276,13 +12142,6 @@ class Client extends openapi_client_1.default {
12276
12142
  let runtime = new $Util.RuntimeOptions({});
12277
12143
  return await this.describeEciScalingConfigurationsWithOptions(request, runtime);
12278
12144
  }
12279
- /**
12280
- * Queries lifecycle actions.
12281
- *
12282
- * @param request DescribeLifecycleActionsRequest
12283
- * @param runtime runtime options for this request RuntimeOptions
12284
- * @return DescribeLifecycleActionsResponse
12285
- */
12286
12145
  async describeLifecycleActionsWithOptions(request, runtime) {
12287
12146
  tea_util_1.default.validateModel(request);
12288
12147
  let query = {};
@@ -12323,26 +12182,10 @@ class Client extends openapi_client_1.default {
12323
12182
  });
12324
12183
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeLifecycleActionsResponse({}));
12325
12184
  }
12326
- /**
12327
- * Queries lifecycle actions.
12328
- *
12329
- * @param request DescribeLifecycleActionsRequest
12330
- * @return DescribeLifecycleActionsResponse
12331
- */
12332
12185
  async describeLifecycleActions(request) {
12333
12186
  let runtime = new $Util.RuntimeOptions({});
12334
12187
  return await this.describeLifecycleActionsWithOptions(request, runtime);
12335
12188
  }
12336
- /**
12337
- * You can use one of the following methods to query lifecycle hooks:
12338
- * * 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.
12339
- * * Specify the scaling group ID by using the ScalingGroupId parameter.
12340
- * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
12341
- *
12342
- * @param request DescribeLifecycleHooksRequest
12343
- * @param runtime runtime options for this request RuntimeOptions
12344
- * @return DescribeLifecycleHooksResponse
12345
- */
12346
12189
  async describeLifecycleHooksWithOptions(request, runtime) {
12347
12190
  tea_util_1.default.validateModel(request);
12348
12191
  let query = {};
@@ -12389,15 +12232,6 @@ class Client extends openapi_client_1.default {
12389
12232
  });
12390
12233
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeLifecycleHooksResponse({}));
12391
12234
  }
12392
- /**
12393
- * You can use one of the following methods to query lifecycle hooks:
12394
- * * 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.
12395
- * * Specify the scaling group ID by using the ScalingGroupId parameter.
12396
- * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
12397
- *
12398
- * @param request DescribeLifecycleHooksRequest
12399
- * @return DescribeLifecycleHooksResponse
12400
- */
12401
12235
  async describeLifecycleHooks(request) {
12402
12236
  let runtime = new $Util.RuntimeOptions({});
12403
12237
  return await this.describeLifecycleHooksWithOptions(request, runtime);
@@ -12747,19 +12581,15 @@ class Client extends openapi_client_1.default {
12747
12581
  let runtime = new $Util.RuntimeOptions({});
12748
12582
  return await this.describeScalingGroupsWithOptions(request, runtime);
12749
12583
  }
12750
- /**
12751
- * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
12752
- *
12753
- * @param request DescribeScalingInstancesRequest
12754
- * @param runtime runtime options for this request RuntimeOptions
12755
- * @return DescribeScalingInstancesResponse
12756
- */
12757
12584
  async describeScalingInstancesWithOptions(request, runtime) {
12758
12585
  tea_util_1.default.validateModel(request);
12759
12586
  let query = {};
12760
12587
  if (!tea_util_1.default.isUnset(request.creationType)) {
12761
12588
  query["CreationType"] = request.creationType;
12762
12589
  }
12590
+ if (!tea_util_1.default.isUnset(request.creationTypes)) {
12591
+ query["CreationTypes"] = request.creationTypes;
12592
+ }
12763
12593
  if (!tea_util_1.default.isUnset(request.healthStatus)) {
12764
12594
  query["HealthStatus"] = request.healthStatus;
12765
12595
  }
@@ -12815,18 +12645,12 @@ class Client extends openapi_client_1.default {
12815
12645
  });
12816
12646
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingInstancesResponse({}));
12817
12647
  }
12818
- /**
12819
- * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
12820
- *
12821
- * @param request DescribeScalingInstancesRequest
12822
- * @return DescribeScalingInstancesResponse
12823
- */
12824
12648
  async describeScalingInstances(request) {
12825
12649
  let runtime = new $Util.RuntimeOptions({});
12826
12650
  return await this.describeScalingInstancesWithOptions(request, runtime);
12827
12651
  }
12828
12652
  /**
12829
- * Queries all scaling rules in a scaling group.
12653
+ * You can specify a scaling group ID to query the information about all scaling rules in a scaling group. You can also specify the scaling rule ID, name, unique identifier, or type in the request parameters as filter conditions.
12830
12654
  *
12831
12655
  * @param request DescribeScalingRulesRequest
12832
12656
  * @param runtime runtime options for this request RuntimeOptions
@@ -12891,7 +12715,7 @@ class Client extends openapi_client_1.default {
12891
12715
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeScalingRulesResponse({}));
12892
12716
  }
12893
12717
  /**
12894
- * Queries all scaling rules in a scaling group.
12718
+ * You can specify a scaling group ID to query the information about all scaling rules in a scaling group. You can also specify the scaling rule ID, name, unique identifier, or type in the request parameters as filter conditions.
12895
12719
  *
12896
12720
  * @param request DescribeScalingRulesRequest
12897
12721
  * @return DescribeScalingRulesResponse
@@ -12900,13 +12724,6 @@ class Client extends openapi_client_1.default {
12900
12724
  let runtime = new $Util.RuntimeOptions({});
12901
12725
  return await this.describeScalingRulesWithOptions(request, runtime);
12902
12726
  }
12903
- /**
12904
- * You can query scheduled tasks by scaling rule, task ID, or task name.
12905
- *
12906
- * @param request DescribeScheduledTasksRequest
12907
- * @param runtime runtime options for this request RuntimeOptions
12908
- * @return DescribeScheduledTasksResponse
12909
- */
12910
12727
  async describeScheduledTasksWithOptions(request, runtime) {
12911
12728
  tea_util_1.default.validateModel(request);
12912
12729
  let query = {};
@@ -12959,12 +12776,6 @@ class Client extends openapi_client_1.default {
12959
12776
  });
12960
12777
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeScheduledTasksResponse({}));
12961
12778
  }
12962
- /**
12963
- * You can query scheduled tasks by scaling rule, task ID, or task name.
12964
- *
12965
- * @param request DescribeScheduledTasksRequest
12966
- * @return DescribeScheduledTasksResponse
12967
- */
12968
12779
  async describeScheduledTasks(request) {
12969
12780
  let runtime = new $Util.RuntimeOptions({});
12970
12781
  return await this.describeScheduledTasksWithOptions(request, runtime);
@@ -13057,13 +12868,6 @@ class Client extends openapi_client_1.default {
13057
12868
  let runtime = new $Util.RuntimeOptions({});
13058
12869
  return await this.detachDBInstancesWithOptions(request, runtime);
13059
12870
  }
13060
- /**
13061
- * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
13062
- *
13063
- * @param request DetachInstancesRequest
13064
- * @param runtime runtime options for this request RuntimeOptions
13065
- * @return DetachInstancesResponse
13066
- */
13067
12871
  async detachInstancesWithOptions(request, runtime) {
13068
12872
  tea_util_1.default.validateModel(request);
13069
12873
  let query = {};
@@ -13110,12 +12914,6 @@ class Client extends openapi_client_1.default {
13110
12914
  });
13111
12915
  return $tea.cast(await this.callApi(params, req, runtime), new DetachInstancesResponse({}));
13112
12916
  }
13113
- /**
13114
- * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
13115
- *
13116
- * @param request DetachInstancesRequest
13117
- * @return DetachInstancesResponse
13118
- */
13119
12917
  async detachInstances(request) {
13120
12918
  let runtime = new $Util.RuntimeOptions({});
13121
12919
  return await this.detachInstancesWithOptions(request, runtime);
@@ -13211,13 +13009,6 @@ class Client extends openapi_client_1.default {
13211
13009
  let runtime = new $Util.RuntimeOptions({});
13212
13010
  return await this.detachServerGroupsWithOptions(request, runtime);
13213
13011
  }
13214
- /**
13215
- * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
13216
- *
13217
- * @param request DetachVServerGroupsRequest
13218
- * @param runtime runtime options for this request RuntimeOptions
13219
- * @return DetachVServerGroupsResponse
13220
- */
13221
13012
  async detachVServerGroupsWithOptions(request, runtime) {
13222
13013
  tea_util_1.default.validateModel(request);
13223
13014
  let query = {};
@@ -13258,12 +13049,6 @@ class Client extends openapi_client_1.default {
13258
13049
  });
13259
13050
  return $tea.cast(await this.callApi(params, req, runtime), new DetachVServerGroupsResponse({}));
13260
13051
  }
13261
- /**
13262
- * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
13263
- *
13264
- * @param request DetachVServerGroupsRequest
13265
- * @return DetachVServerGroupsResponse
13266
- */
13267
13052
  async detachVServerGroups(request) {
13268
13053
  let runtime = new $Util.RuntimeOptions({});
13269
13054
  return await this.detachVServerGroupsWithOptions(request, runtime);
@@ -13303,13 +13088,6 @@ class Client extends openapi_client_1.default {
13303
13088
  let runtime = new $Util.RuntimeOptions({});
13304
13089
  return await this.disableAlarmWithOptions(request, runtime);
13305
13090
  }
13306
- /**
13307
- * Disables a scaling group.
13308
- *
13309
- * @param request DisableScalingGroupRequest
13310
- * @param runtime runtime options for this request RuntimeOptions
13311
- * @return DisableScalingGroupResponse
13312
- */
13313
13091
  async disableScalingGroupWithOptions(request, runtime) {
13314
13092
  tea_util_1.default.validateModel(request);
13315
13093
  let query = {};
@@ -13344,12 +13122,6 @@ class Client extends openapi_client_1.default {
13344
13122
  });
13345
13123
  return $tea.cast(await this.callApi(params, req, runtime), new DisableScalingGroupResponse({}));
13346
13124
  }
13347
- /**
13348
- * Disables a scaling group.
13349
- *
13350
- * @param request DisableScalingGroupRequest
13351
- * @return DisableScalingGroupResponse
13352
- */
13353
13125
  async disableScalingGroup(request) {
13354
13126
  let runtime = new $Util.RuntimeOptions({});
13355
13127
  return await this.disableScalingGroupWithOptions(request, runtime);
@@ -13469,16 +13241,6 @@ class Client extends openapi_client_1.default {
13469
13241
  let runtime = new $Util.RuntimeOptions({});
13470
13242
  return await this.enableScalingGroupWithOptions(request, runtime);
13471
13243
  }
13472
- /**
13473
- * * 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.
13474
- * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
13475
- * * 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.
13476
- * * 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.
13477
- *
13478
- * @param request EnterStandbyRequest
13479
- * @param runtime runtime options for this request RuntimeOptions
13480
- * @return EnterStandbyResponse
13481
- */
13482
13244
  async enterStandbyWithOptions(request, runtime) {
13483
13245
  tea_util_1.default.validateModel(request);
13484
13246
  let query = {};
@@ -13516,26 +13278,10 @@ class Client extends openapi_client_1.default {
13516
13278
  });
13517
13279
  return $tea.cast(await this.callApi(params, req, runtime), new EnterStandbyResponse({}));
13518
13280
  }
13519
- /**
13520
- * * 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.
13521
- * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
13522
- * * 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.
13523
- * * 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.
13524
- *
13525
- * @param request EnterStandbyRequest
13526
- * @return EnterStandbyResponse
13527
- */
13528
13281
  async enterStandby(request) {
13529
13282
  let runtime = new $Util.RuntimeOptions({});
13530
13283
  return await this.enterStandbyWithOptions(request, runtime);
13531
13284
  }
13532
- /**
13533
- * Executes a scaling rule.
13534
- *
13535
- * @param request ExecuteScalingRuleRequest
13536
- * @param runtime runtime options for this request RuntimeOptions
13537
- * @return ExecuteScalingRuleResponse
13538
- */
13539
13285
  async executeScalingRuleWithOptions(request, runtime) {
13540
13286
  tea_util_1.default.validateModel(request);
13541
13287
  let query = {};
@@ -13582,23 +13328,10 @@ class Client extends openapi_client_1.default {
13582
13328
  });
13583
13329
  return $tea.cast(await this.callApi(params, req, runtime), new ExecuteScalingRuleResponse({}));
13584
13330
  }
13585
- /**
13586
- * Executes a scaling rule.
13587
- *
13588
- * @param request ExecuteScalingRuleRequest
13589
- * @return ExecuteScalingRuleResponse
13590
- */
13591
13331
  async executeScalingRule(request) {
13592
13332
  let runtime = new $Util.RuntimeOptions({});
13593
13333
  return await this.executeScalingRuleWithOptions(request, runtime);
13594
13334
  }
13595
- /**
13596
- * 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.
13597
- *
13598
- * @param request ExitStandbyRequest
13599
- * @param runtime runtime options for this request RuntimeOptions
13600
- * @return ExitStandbyResponse
13601
- */
13602
13335
  async exitStandbyWithOptions(request, runtime) {
13603
13336
  tea_util_1.default.validateModel(request);
13604
13337
  let query = {};
@@ -13639,12 +13372,6 @@ class Client extends openapi_client_1.default {
13639
13372
  });
13640
13373
  return $tea.cast(await this.callApi(params, req, runtime), new ExitStandbyResponse({}));
13641
13374
  }
13642
- /**
13643
- * 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.
13644
- *
13645
- * @param request ExitStandbyRequest
13646
- * @return ExitStandbyResponse
13647
- */
13648
13375
  async exitStandby(request) {
13649
13376
  let runtime = new $Util.RuntimeOptions({});
13650
13377
  return await this.exitStandbyWithOptions(request, runtime);
@@ -13779,7 +13506,11 @@ class Client extends openapi_client_1.default {
13779
13506
  return await this.listTagValuesWithOptions(request, runtime);
13780
13507
  }
13781
13508
  /**
13782
- * Modifies an event-triggered task.
13509
+ * * 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~~).
13510
+ * * 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.
13511
+ * * If you set MetricType to custom, the valid values are your custom metrics.
13512
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
13513
+ * > 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.
13783
13514
  *
13784
13515
  * @param request ModifyAlarmRequest
13785
13516
  * @param runtime runtime options for this request RuntimeOptions
@@ -13862,7 +13593,11 @@ class Client extends openapi_client_1.default {
13862
13593
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyAlarmResponse({}));
13863
13594
  }
13864
13595
  /**
13865
- * Modifies an event-triggered task.
13596
+ * * 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~~).
13597
+ * * 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.
13598
+ * * If you set MetricType to custom, the valid values are your custom metrics.
13599
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
13600
+ * > 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.
13866
13601
  *
13867
13602
  * @param request ModifyAlarmRequest
13868
13603
  * @return ModifyAlarmResponse
@@ -14163,7 +13898,7 @@ class Client extends openapi_client_1.default {
14163
13898
  return await this.modifyNotificationConfigurationWithOptions(request, runtime);
14164
13899
  }
14165
13900
  /**
14166
- * 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.
13901
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
14167
13902
  *
14168
13903
  * @param tmpReq ModifyScalingConfigurationRequest
14169
13904
  * @param runtime runtime options for this request RuntimeOptions
@@ -14192,6 +13927,9 @@ class Client extends openapi_client_1.default {
14192
13927
  if (!tea_util_1.default.isUnset(request.dedicatedHostId)) {
14193
13928
  query["DedicatedHostId"] = request.dedicatedHostId;
14194
13929
  }
13930
+ if (!tea_util_1.default.isUnset(request.deletionProtection)) {
13931
+ query["DeletionProtection"] = request.deletionProtection;
13932
+ }
14195
13933
  if (!tea_util_1.default.isUnset(request.deploymentSetId)) {
14196
13934
  query["DeploymentSetId"] = request.deploymentSetId;
14197
13935
  }
@@ -14335,7 +14073,7 @@ class Client extends openapi_client_1.default {
14335
14073
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingConfigurationResponse({}));
14336
14074
  }
14337
14075
  /**
14338
- * 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.
14076
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
14339
14077
  *
14340
14078
  * @param request ModifyScalingConfigurationRequest
14341
14079
  * @return ModifyScalingConfigurationResponse
@@ -14344,13 +14082,6 @@ class Client extends openapi_client_1.default {
14344
14082
  let runtime = new $Util.RuntimeOptions({});
14345
14083
  return await this.modifyScalingConfigurationWithOptions(request, runtime);
14346
14084
  }
14347
- /**
14348
- * Modifies a scaling group.
14349
- *
14350
- * @param request ModifyScalingGroupRequest
14351
- * @param runtime runtime options for this request RuntimeOptions
14352
- * @return ModifyScalingGroupResponse
14353
- */
14354
14085
  async modifyScalingGroupWithOptions(request, runtime) {
14355
14086
  tea_util_1.default.validateModel(request);
14356
14087
  let query = {};
@@ -14457,12 +14188,6 @@ class Client extends openapi_client_1.default {
14457
14188
  });
14458
14189
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingGroupResponse({}));
14459
14190
  }
14460
- /**
14461
- * Modifies a scaling group.
14462
- *
14463
- * @param request ModifyScalingGroupRequest
14464
- * @return ModifyScalingGroupResponse
14465
- */
14466
14191
  async modifyScalingGroup(request) {
14467
14192
  let runtime = new $Util.RuntimeOptions({});
14468
14193
  return await this.modifyScalingGroupWithOptions(request, runtime);
@@ -14559,13 +14284,6 @@ class Client extends openapi_client_1.default {
14559
14284
  let runtime = new $Util.RuntimeOptions({});
14560
14285
  return await this.modifyScalingRuleWithOptions(request, runtime);
14561
14286
  }
14562
- /**
14563
- * Modifies a scheduled task.
14564
- *
14565
- * @param request ModifyScheduledTaskRequest
14566
- * @param runtime runtime options for this request RuntimeOptions
14567
- * @return ModifyScheduledTaskResponse
14568
- */
14569
14287
  async modifyScheduledTaskWithOptions(request, runtime) {
14570
14288
  tea_util_1.default.validateModel(request);
14571
14289
  let query = {};
@@ -14639,23 +14357,10 @@ class Client extends openapi_client_1.default {
14639
14357
  });
14640
14358
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyScheduledTaskResponse({}));
14641
14359
  }
14642
- /**
14643
- * Modifies a scheduled task.
14644
- *
14645
- * @param request ModifyScheduledTaskRequest
14646
- * @return ModifyScheduledTaskResponse
14647
- */
14648
14360
  async modifyScheduledTask(request) {
14649
14361
  let runtime = new $Util.RuntimeOptions({});
14650
14362
  return await this.modifyScheduledTaskWithOptions(request, runtime);
14651
14363
  }
14652
- /**
14653
- * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
14654
- *
14655
- * @param request RebalanceInstancesRequest
14656
- * @param runtime runtime options for this request RuntimeOptions
14657
- * @return RebalanceInstancesResponse
14658
- */
14659
14364
  async rebalanceInstancesWithOptions(request, runtime) {
14660
14365
  tea_util_1.default.validateModel(request);
14661
14366
  let query = {};
@@ -14693,23 +14398,10 @@ class Client extends openapi_client_1.default {
14693
14398
  });
14694
14399
  return $tea.cast(await this.callApi(params, req, runtime), new RebalanceInstancesResponse({}));
14695
14400
  }
14696
- /**
14697
- * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
14698
- *
14699
- * @param request RebalanceInstancesRequest
14700
- * @return RebalanceInstancesResponse
14701
- */
14702
14401
  async rebalanceInstances(request) {
14703
14402
  let runtime = new $Util.RuntimeOptions({});
14704
14403
  return await this.rebalanceInstancesWithOptions(request, runtime);
14705
14404
  }
14706
- /**
14707
- * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
14708
- *
14709
- * @param request RecordLifecycleActionHeartbeatRequest
14710
- * @param runtime runtime options for this request RuntimeOptions
14711
- * @return RecordLifecycleActionHeartbeatResponse
14712
- */
14713
14405
  async recordLifecycleActionHeartbeatWithOptions(request, runtime) {
14714
14406
  tea_util_1.default.validateModel(request);
14715
14407
  let query = {};
@@ -14750,30 +14442,10 @@ class Client extends openapi_client_1.default {
14750
14442
  });
14751
14443
  return $tea.cast(await this.callApi(params, req, runtime), new RecordLifecycleActionHeartbeatResponse({}));
14752
14444
  }
14753
- /**
14754
- * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
14755
- *
14756
- * @param request RecordLifecycleActionHeartbeatRequest
14757
- * @return RecordLifecycleActionHeartbeatResponse
14758
- */
14759
14445
  async recordLifecycleActionHeartbeat(request) {
14760
14446
  let runtime = new $Util.RuntimeOptions({});
14761
14447
  return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
14762
14448
  }
14763
- /**
14764
- * * Before you call this operation, make sure that the following requirements are met:
14765
- * * The scaling group is in the Active state.
14766
- * * No scaling activity is in progress within the scaling group.
14767
- * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
14768
- * * 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.
14769
- * * 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.
14770
- * * 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.
14771
- * 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.
14772
- *
14773
- * @param request RemoveInstancesRequest
14774
- * @param runtime runtime options for this request RuntimeOptions
14775
- * @return RemoveInstancesResponse
14776
- */
14777
14449
  async removeInstancesWithOptions(request, runtime) {
14778
14450
  tea_util_1.default.validateModel(request);
14779
14451
  let query = {};
@@ -14820,19 +14492,6 @@ class Client extends openapi_client_1.default {
14820
14492
  });
14821
14493
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveInstancesResponse({}));
14822
14494
  }
14823
- /**
14824
- * * Before you call this operation, make sure that the following requirements are met:
14825
- * * The scaling group is in the Active state.
14826
- * * No scaling activity is in progress within the scaling group.
14827
- * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
14828
- * * 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.
14829
- * * 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.
14830
- * * 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.
14831
- * 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.
14832
- *
14833
- * @param request RemoveInstancesRequest
14834
- * @return RemoveInstancesResponse
14835
- */
14836
14495
  async removeInstances(request) {
14837
14496
  let runtime = new $Util.RuntimeOptions({});
14838
14497
  return await this.removeInstancesWithOptions(request, runtime);
@@ -14879,14 +14538,7 @@ class Client extends openapi_client_1.default {
14879
14538
  return await this.resumeProcessesWithOptions(request, runtime);
14880
14539
  }
14881
14540
  /**
14882
- * 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:
14883
- * * The following conditions must be met:
14884
- * * The scaling group is in the Active state.
14885
- * * No scaling activities in the scaling group are in progress.
14886
- * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
14887
- * * 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.
14888
- * * 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.
14889
- * 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.
14541
+ * The ID of the scaling activity.
14890
14542
  *
14891
14543
  * @param request ScaleWithAdjustmentRequest
14892
14544
  * @param runtime runtime options for this request RuntimeOptions
@@ -14936,14 +14588,7 @@ class Client extends openapi_client_1.default {
14936
14588
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleWithAdjustmentResponse({}));
14937
14589
  }
14938
14590
  /**
14939
- * 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:
14940
- * * The following conditions must be met:
14941
- * * The scaling group is in the Active state.
14942
- * * No scaling activities in the scaling group are in progress.
14943
- * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
14944
- * * 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.
14945
- * * 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.
14946
- * 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.
14591
+ * The ID of the scaling activity.
14947
14592
  *
14948
14593
  * @param request ScaleWithAdjustmentRequest
14949
14594
  * @return ScaleWithAdjustmentResponse
@@ -15259,6 +14904,9 @@ class Client extends openapi_client_1.default {
15259
14904
  if (!tea_util_1.default.isUnset(request.ownerId)) {
15260
14905
  query["OwnerId"] = request.ownerId;
15261
14906
  }
14907
+ if (!tea_util_1.default.isUnset(request.regionId)) {
14908
+ query["RegionId"] = request.regionId;
14909
+ }
15262
14910
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
15263
14911
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
15264
14912
  }