@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/src/client.ts CHANGED
@@ -1176,6 +1176,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1176
1176
  creditSpecification?: string;
1177
1177
  dataDisks?: CreateScalingConfigurationRequestDataDisks[];
1178
1178
  dedicatedHostId?: string;
1179
+ deletionProtection?: boolean;
1179
1180
  deploymentSetId?: string;
1180
1181
  hostName?: string;
1181
1182
  hpcClusterId?: string;
@@ -1229,6 +1230,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1229
1230
  creditSpecification: 'CreditSpecification',
1230
1231
  dataDisks: 'DataDisks',
1231
1232
  dedicatedHostId: 'DedicatedHostId',
1233
+ deletionProtection: 'DeletionProtection',
1232
1234
  deploymentSetId: 'DeploymentSetId',
1233
1235
  hostName: 'HostName',
1234
1236
  hpcClusterId: 'HpcClusterId',
@@ -1285,6 +1287,7 @@ export class CreateScalingConfigurationRequest extends $tea.Model {
1285
1287
  creditSpecification: 'string',
1286
1288
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationRequestDataDisks },
1287
1289
  dedicatedHostId: 'string',
1290
+ deletionProtection: 'boolean',
1288
1291
  deploymentSetId: 'string',
1289
1292
  hostName: 'string',
1290
1293
  hpcClusterId: 'string',
@@ -1345,6 +1348,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1345
1348
  creditSpecification?: string;
1346
1349
  dataDisks?: CreateScalingConfigurationShrinkRequestDataDisks[];
1347
1350
  dedicatedHostId?: string;
1351
+ deletionProtection?: boolean;
1348
1352
  deploymentSetId?: string;
1349
1353
  hostName?: string;
1350
1354
  hpcClusterId?: string;
@@ -1398,6 +1402,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1398
1402
  creditSpecification: 'CreditSpecification',
1399
1403
  dataDisks: 'DataDisks',
1400
1404
  dedicatedHostId: 'DedicatedHostId',
1405
+ deletionProtection: 'DeletionProtection',
1401
1406
  deploymentSetId: 'DeploymentSetId',
1402
1407
  hostName: 'HostName',
1403
1408
  hpcClusterId: 'HpcClusterId',
@@ -1454,6 +1459,7 @@ export class CreateScalingConfigurationShrinkRequest extends $tea.Model {
1454
1459
  creditSpecification: 'string',
1455
1460
  dataDisks: { 'type': 'array', 'itemType': CreateScalingConfigurationShrinkRequestDataDisks },
1456
1461
  dedicatedHostId: 'string',
1462
+ deletionProtection: 'boolean',
1457
1463
  deploymentSetId: 'string',
1458
1464
  hostName: 'string',
1459
1465
  hpcClusterId: 'string',
@@ -3791,6 +3797,7 @@ export class DescribeScalingGroupsResponse extends $tea.Model {
3791
3797
 
3792
3798
  export class DescribeScalingInstancesRequest extends $tea.Model {
3793
3799
  creationType?: string;
3800
+ creationTypes?: string[];
3794
3801
  healthStatus?: string;
3795
3802
  instanceIds?: string[];
3796
3803
  lifecycleState?: string;
@@ -3807,6 +3814,7 @@ export class DescribeScalingInstancesRequest extends $tea.Model {
3807
3814
  static names(): { [key: string]: string } {
3808
3815
  return {
3809
3816
  creationType: 'CreationType',
3817
+ creationTypes: 'CreationTypes',
3810
3818
  healthStatus: 'HealthStatus',
3811
3819
  instanceIds: 'InstanceIds',
3812
3820
  lifecycleState: 'LifecycleState',
@@ -3826,6 +3834,7 @@ export class DescribeScalingInstancesRequest extends $tea.Model {
3826
3834
  static types(): { [key: string]: any } {
3827
3835
  return {
3828
3836
  creationType: 'string',
3837
+ creationTypes: { 'type': 'array', 'itemType': 'string' },
3829
3838
  healthStatus: 'string',
3830
3839
  instanceIds: { 'type': 'array', 'itemType': 'string' },
3831
3840
  lifecycleState: 'string',
@@ -5964,6 +5973,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
5964
5973
  creditSpecification?: string;
5965
5974
  dataDisks?: ModifyScalingConfigurationRequestDataDisks[];
5966
5975
  dedicatedHostId?: string;
5976
+ deletionProtection?: boolean;
5967
5977
  deploymentSetId?: string;
5968
5978
  hostName?: string;
5969
5979
  hpcClusterId?: string;
@@ -6013,6 +6023,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6013
6023
  creditSpecification: 'CreditSpecification',
6014
6024
  dataDisks: 'DataDisks',
6015
6025
  dedicatedHostId: 'DedicatedHostId',
6026
+ deletionProtection: 'DeletionProtection',
6016
6027
  deploymentSetId: 'DeploymentSetId',
6017
6028
  hostName: 'HostName',
6018
6029
  hpcClusterId: 'HpcClusterId',
@@ -6065,6 +6076,7 @@ export class ModifyScalingConfigurationRequest extends $tea.Model {
6065
6076
  creditSpecification: 'string',
6066
6077
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationRequestDataDisks },
6067
6078
  dedicatedHostId: 'string',
6079
+ deletionProtection: 'boolean',
6068
6080
  deploymentSetId: 'string',
6069
6081
  hostName: 'string',
6070
6082
  hpcClusterId: 'string',
@@ -6121,6 +6133,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6121
6133
  creditSpecification?: string;
6122
6134
  dataDisks?: ModifyScalingConfigurationShrinkRequestDataDisks[];
6123
6135
  dedicatedHostId?: string;
6136
+ deletionProtection?: boolean;
6124
6137
  deploymentSetId?: string;
6125
6138
  hostName?: string;
6126
6139
  hpcClusterId?: string;
@@ -6170,6 +6183,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6170
6183
  creditSpecification: 'CreditSpecification',
6171
6184
  dataDisks: 'DataDisks',
6172
6185
  dedicatedHostId: 'DedicatedHostId',
6186
+ deletionProtection: 'DeletionProtection',
6173
6187
  deploymentSetId: 'DeploymentSetId',
6174
6188
  hostName: 'HostName',
6175
6189
  hpcClusterId: 'HpcClusterId',
@@ -6222,6 +6236,7 @@ export class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
6222
6236
  creditSpecification: 'string',
6223
6237
  dataDisks: { 'type': 'array', 'itemType': ModifyScalingConfigurationShrinkRequestDataDisks },
6224
6238
  dedicatedHostId: 'string',
6239
+ deletionProtection: 'boolean',
6225
6240
  deploymentSetId: 'string',
6226
6241
  hostName: 'string',
6227
6242
  hpcClusterId: 'string',
@@ -7659,11 +7674,13 @@ export class VerifyAuthenticationResponse extends $tea.Model {
7659
7674
 
7660
7675
  export class VerifyUserRequest extends $tea.Model {
7661
7676
  ownerId?: number;
7677
+ regionId?: string;
7662
7678
  resourceOwnerAccount?: string;
7663
7679
  resourceOwnerId?: number;
7664
7680
  static names(): { [key: string]: string } {
7665
7681
  return {
7666
7682
  ownerId: 'OwnerId',
7683
+ regionId: 'RegionId',
7667
7684
  resourceOwnerAccount: 'ResourceOwnerAccount',
7668
7685
  resourceOwnerId: 'ResourceOwnerId',
7669
7686
  };
@@ -7672,6 +7689,7 @@ export class VerifyUserRequest extends $tea.Model {
7672
7689
  static types(): { [key: string]: any } {
7673
7690
  return {
7674
7691
  ownerId: 'number',
7692
+ regionId: 'string',
7675
7693
  resourceOwnerAccount: 'string',
7676
7694
  resourceOwnerId: 'number',
7677
7695
  };
@@ -8644,15 +8662,18 @@ export class CreateEciScalingConfigurationRequestVolumesDiskVolume extends $tea.
8644
8662
 
8645
8663
  export class CreateEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
8646
8664
  medium?: string;
8665
+ sizeLimit?: string;
8647
8666
  static names(): { [key: string]: string } {
8648
8667
  return {
8649
8668
  medium: 'Medium',
8669
+ sizeLimit: 'SizeLimit',
8650
8670
  };
8651
8671
  }
8652
8672
 
8653
8673
  static types(): { [key: string]: any } {
8654
8674
  return {
8655
8675
  medium: 'string',
8676
+ sizeLimit: 'string',
8656
8677
  };
8657
8678
  }
8658
8679
 
@@ -10152,6 +10173,7 @@ export class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsVo
10152
10173
  diskVolumeDiskSize?: number;
10153
10174
  diskVolumeFsType?: string;
10154
10175
  emptyDirVolumeMedium?: string;
10176
+ emptyDirVolumeSizeLimit?: string;
10155
10177
  flexVolumeDriver?: string;
10156
10178
  flexVolumeFsType?: string;
10157
10179
  flexVolumeOptions?: string;
@@ -10168,6 +10190,7 @@ export class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsVo
10168
10190
  diskVolumeDiskSize: 'DiskVolumeDiskSize',
10169
10191
  diskVolumeFsType: 'DiskVolumeFsType',
10170
10192
  emptyDirVolumeMedium: 'EmptyDirVolumeMedium',
10193
+ emptyDirVolumeSizeLimit: 'EmptyDirVolumeSizeLimit',
10171
10194
  flexVolumeDriver: 'FlexVolumeDriver',
10172
10195
  flexVolumeFsType: 'FlexVolumeFsType',
10173
10196
  flexVolumeOptions: 'FlexVolumeOptions',
@@ -10187,6 +10210,7 @@ export class DescribeEciScalingConfigurationsResponseBodyScalingConfigurationsVo
10187
10210
  diskVolumeDiskSize: 'number',
10188
10211
  diskVolumeFsType: 'string',
10189
10212
  emptyDirVolumeMedium: 'string',
10213
+ emptyDirVolumeSizeLimit: 'string',
10190
10214
  flexVolumeDriver: 'string',
10191
10215
  flexVolumeFsType: 'string',
10192
10216
  flexVolumeOptions: 'string',
@@ -10763,6 +10787,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
10763
10787
  creditSpecification?: string;
10764
10788
  dataDisks?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks[];
10765
10789
  dedicatedHostId?: string;
10790
+ deletionProtection?: boolean;
10766
10791
  deploymentSetId?: string;
10767
10792
  hostName?: string;
10768
10793
  hpcClusterId?: string;
@@ -10826,6 +10851,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
10826
10851
  creditSpecification: 'CreditSpecification',
10827
10852
  dataDisks: 'DataDisks',
10828
10853
  dedicatedHostId: 'DedicatedHostId',
10854
+ deletionProtection: 'DeletionProtection',
10829
10855
  deploymentSetId: 'DeploymentSetId',
10830
10856
  hostName: 'HostName',
10831
10857
  hpcClusterId: 'HpcClusterId',
@@ -10892,6 +10918,7 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurations exte
10892
10918
  creditSpecification: 'string',
10893
10919
  dataDisks: { 'type': 'array', 'itemType': DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks },
10894
10920
  dedicatedHostId: 'string',
10921
+ deletionProtection: 'boolean',
10895
10922
  deploymentSetId: 'string',
10896
10923
  hostName: 'string',
10897
10924
  hpcClusterId: 'string',
@@ -11114,6 +11141,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
11114
11141
  DBInstanceIds?: string[];
11115
11142
  defaultCooldown?: number;
11116
11143
  desiredCapacity?: number;
11144
+ enableDesiredCapacity?: boolean;
11117
11145
  groupDeletionProtection?: boolean;
11118
11146
  groupType?: string;
11119
11147
  healthCheckType?: string;
@@ -11172,6 +11200,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
11172
11200
  DBInstanceIds: 'DBInstanceIds',
11173
11201
  defaultCooldown: 'DefaultCooldown',
11174
11202
  desiredCapacity: 'DesiredCapacity',
11203
+ enableDesiredCapacity: 'EnableDesiredCapacity',
11175
11204
  groupDeletionProtection: 'GroupDeletionProtection',
11176
11205
  groupType: 'GroupType',
11177
11206
  healthCheckType: 'HealthCheckType',
@@ -11233,6 +11262,7 @@ export class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
11233
11262
  DBInstanceIds: { 'type': 'array', 'itemType': 'string' },
11234
11263
  defaultCooldown: 'number',
11235
11264
  desiredCapacity: 'number',
11265
+ enableDesiredCapacity: 'boolean',
11236
11266
  groupDeletionProtection: 'boolean',
11237
11267
  groupType: 'string',
11238
11268
  healthCheckType: 'string',
@@ -12613,15 +12643,18 @@ export class ModifyEciScalingConfigurationRequestVolumesDiskVolume extends $tea.
12613
12643
 
12614
12644
  export class ModifyEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
12615
12645
  medium?: string;
12646
+ sizeLimit?: string;
12616
12647
  static names(): { [key: string]: string } {
12617
12648
  return {
12618
12649
  medium: 'Medium',
12650
+ sizeLimit: 'SizeLimit',
12619
12651
  };
12620
12652
  }
12621
12653
 
12622
12654
  static types(): { [key: string]: any } {
12623
12655
  return {
12624
12656
  medium: 'string',
12657
+ sizeLimit: 'string',
12625
12658
  };
12626
12659
  }
12627
12660
 
@@ -13394,13 +13427,6 @@ export default class Client extends OpenApi {
13394
13427
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
13395
13428
  }
13396
13429
 
13397
- /**
13398
- * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
13399
- *
13400
- * @param request AttachAlbServerGroupsRequest
13401
- * @param runtime runtime options for this request RuntimeOptions
13402
- * @return AttachAlbServerGroupsResponse
13403
- */
13404
13430
  async attachAlbServerGroupsWithOptions(request: AttachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachAlbServerGroupsResponse> {
13405
13431
  Util.validateModel(request);
13406
13432
  let query = { };
@@ -13449,24 +13475,11 @@ export default class Client extends OpenApi {
13449
13475
  return $tea.cast<AttachAlbServerGroupsResponse>(await this.callApi(params, req, runtime), new AttachAlbServerGroupsResponse({}));
13450
13476
  }
13451
13477
 
13452
- /**
13453
- * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
13454
- *
13455
- * @param request AttachAlbServerGroupsRequest
13456
- * @return AttachAlbServerGroupsResponse
13457
- */
13458
13478
  async attachAlbServerGroups(request: AttachAlbServerGroupsRequest): Promise<AttachAlbServerGroupsResponse> {
13459
13479
  let runtime = new $Util.RuntimeOptions({ });
13460
13480
  return await this.attachAlbServerGroupsWithOptions(request, runtime);
13461
13481
  }
13462
13482
 
13463
- /**
13464
- * Associates one or more ApsaraDB RDS instances with a scaling group.
13465
- *
13466
- * @param request AttachDBInstancesRequest
13467
- * @param runtime runtime options for this request RuntimeOptions
13468
- * @return AttachDBInstancesResponse
13469
- */
13470
13483
  async attachDBInstancesWithOptions(request: AttachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachDBInstancesResponse> {
13471
13484
  Util.validateModel(request);
13472
13485
  let query = { };
@@ -13515,24 +13528,11 @@ export default class Client extends OpenApi {
13515
13528
  return $tea.cast<AttachDBInstancesResponse>(await this.callApi(params, req, runtime), new AttachDBInstancesResponse({}));
13516
13529
  }
13517
13530
 
13518
- /**
13519
- * Associates one or more ApsaraDB RDS instances with a scaling group.
13520
- *
13521
- * @param request AttachDBInstancesRequest
13522
- * @return AttachDBInstancesResponse
13523
- */
13524
13531
  async attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse> {
13525
13532
  let runtime = new $Util.RuntimeOptions({ });
13526
13533
  return await this.attachDBInstancesWithOptions(request, runtime);
13527
13534
  }
13528
13535
 
13529
- /**
13530
- * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
13531
- *
13532
- * @param request AttachInstancesRequest
13533
- * @param runtime runtime options for this request RuntimeOptions
13534
- * @return AttachInstancesResponse
13535
- */
13536
13536
  async attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse> {
13537
13537
  Util.validateModel(request);
13538
13538
  let query = { };
@@ -13593,24 +13593,11 @@ export default class Client extends OpenApi {
13593
13593
  return $tea.cast<AttachInstancesResponse>(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
13594
13594
  }
13595
13595
 
13596
- /**
13597
- * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
13598
- *
13599
- * @param request AttachInstancesRequest
13600
- * @return AttachInstancesResponse
13601
- */
13602
13596
  async attachInstances(request: AttachInstancesRequest): Promise<AttachInstancesResponse> {
13603
13597
  let runtime = new $Util.RuntimeOptions({ });
13604
13598
  return await this.attachInstancesWithOptions(request, runtime);
13605
13599
  }
13606
13600
 
13607
- /**
13608
- * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
13609
- *
13610
- * @param request AttachLoadBalancersRequest
13611
- * @param runtime runtime options for this request RuntimeOptions
13612
- * @return AttachLoadBalancersResponse
13613
- */
13614
13601
  async attachLoadBalancersWithOptions(request: AttachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<AttachLoadBalancersResponse> {
13615
13602
  Util.validateModel(request);
13616
13603
  let query = { };
@@ -13663,12 +13650,6 @@ export default class Client extends OpenApi {
13663
13650
  return $tea.cast<AttachLoadBalancersResponse>(await this.callApi(params, req, runtime), new AttachLoadBalancersResponse({}));
13664
13651
  }
13665
13652
 
13666
- /**
13667
- * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
13668
- *
13669
- * @param request AttachLoadBalancersRequest
13670
- * @return AttachLoadBalancersResponse
13671
- */
13672
13653
  async attachLoadBalancers(request: AttachLoadBalancersRequest): Promise<AttachLoadBalancersResponse> {
13673
13654
  let runtime = new $Util.RuntimeOptions({ });
13674
13655
  return await this.attachLoadBalancersWithOptions(request, runtime);
@@ -13727,13 +13708,6 @@ export default class Client extends OpenApi {
13727
13708
  return await this.attachServerGroupsWithOptions(request, runtime);
13728
13709
  }
13729
13710
 
13730
- /**
13731
- * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
13732
- *
13733
- * @param request AttachVServerGroupsRequest
13734
- * @param runtime runtime options for this request RuntimeOptions
13735
- * @return AttachVServerGroupsResponse
13736
- */
13737
13711
  async attachVServerGroupsWithOptions(request: AttachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachVServerGroupsResponse> {
13738
13712
  Util.validateModel(request);
13739
13713
  let query = { };
@@ -13782,24 +13756,11 @@ export default class Client extends OpenApi {
13782
13756
  return $tea.cast<AttachVServerGroupsResponse>(await this.callApi(params, req, runtime), new AttachVServerGroupsResponse({}));
13783
13757
  }
13784
13758
 
13785
- /**
13786
- * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
13787
- *
13788
- * @param request AttachVServerGroupsRequest
13789
- * @return AttachVServerGroupsResponse
13790
- */
13791
13759
  async attachVServerGroups(request: AttachVServerGroupsRequest): Promise<AttachVServerGroupsResponse> {
13792
13760
  let runtime = new $Util.RuntimeOptions({ });
13793
13761
  return await this.attachVServerGroupsWithOptions(request, runtime);
13794
13762
  }
13795
13763
 
13796
- /**
13797
- * 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.
13798
- *
13799
- * @param request ChangeResourceGroupRequest
13800
- * @param runtime runtime options for this request RuntimeOptions
13801
- * @return ChangeResourceGroupResponse
13802
- */
13803
13764
  async changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse> {
13804
13765
  Util.validateModel(request);
13805
13766
  let query = { };
@@ -13844,12 +13805,6 @@ export default class Client extends OpenApi {
13844
13805
  return $tea.cast<ChangeResourceGroupResponse>(await this.callApi(params, req, runtime), new ChangeResourceGroupResponse({}));
13845
13806
  }
13846
13807
 
13847
- /**
13848
- * 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.
13849
- *
13850
- * @param request ChangeResourceGroupRequest
13851
- * @return ChangeResourceGroupResponse
13852
- */
13853
13808
  async changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse> {
13854
13809
  let runtime = new $Util.RuntimeOptions({ });
13855
13810
  return await this.changeResourceGroupWithOptions(request, runtime);
@@ -13925,17 +13880,6 @@ export default class Client extends OpenApi {
13925
13880
  return await this.completeLifecycleActionWithOptions(request, runtime);
13926
13881
  }
13927
13882
 
13928
- /**
13929
- * * 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~~).
13930
- * * 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.
13931
- * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
13932
- * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
13933
- * > 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.
13934
- *
13935
- * @param request CreateAlarmRequest
13936
- * @param runtime runtime options for this request RuntimeOptions
13937
- * @return CreateAlarmResponse
13938
- */
13939
13883
  async createAlarmWithOptions(request: CreateAlarmRequest, runtime: $Util.RuntimeOptions): Promise<CreateAlarmResponse> {
13940
13884
  Util.validateModel(request);
13941
13885
  let query = { };
@@ -14032,16 +13976,6 @@ export default class Client extends OpenApi {
14032
13976
  return $tea.cast<CreateAlarmResponse>(await this.callApi(params, req, runtime), new CreateAlarmResponse({}));
14033
13977
  }
14034
13978
 
14035
- /**
14036
- * * 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~~).
14037
- * * 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.
14038
- * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
14039
- * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
14040
- * > 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.
14041
- *
14042
- * @param request CreateAlarmRequest
14043
- * @return CreateAlarmResponse
14044
- */
14045
13979
  async createAlarm(request: CreateAlarmRequest): Promise<CreateAlarmResponse> {
14046
13980
  let runtime = new $Util.RuntimeOptions({ });
14047
13981
  return await this.createAlarmWithOptions(request, runtime);
@@ -14347,13 +14281,6 @@ export default class Client extends OpenApi {
14347
14281
  return await this.createLifecycleHookWithOptions(request, runtime);
14348
14282
  }
14349
14283
 
14350
- /**
14351
- * Creates a notification.
14352
- *
14353
- * @param request CreateNotificationConfigurationRequest
14354
- * @param runtime runtime options for this request RuntimeOptions
14355
- * @return CreateNotificationConfigurationResponse
14356
- */
14357
14284
  async createNotificationConfigurationWithOptions(request: CreateNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateNotificationConfigurationResponse> {
14358
14285
  Util.validateModel(request);
14359
14286
  let query = { };
@@ -14398,12 +14325,6 @@ export default class Client extends OpenApi {
14398
14325
  return $tea.cast<CreateNotificationConfigurationResponse>(await this.callApi(params, req, runtime), new CreateNotificationConfigurationResponse({}));
14399
14326
  }
14400
14327
 
14401
- /**
14402
- * Creates a notification.
14403
- *
14404
- * @param request CreateNotificationConfigurationRequest
14405
- * @return CreateNotificationConfigurationResponse
14406
- */
14407
14328
  async createNotificationConfiguration(request: CreateNotificationConfigurationRequest): Promise<CreateNotificationConfigurationResponse> {
14408
14329
  let runtime = new $Util.RuntimeOptions({ });
14409
14330
  return await this.createNotificationConfigurationWithOptions(request, runtime);
@@ -14411,12 +14332,12 @@ export default class Client extends OpenApi {
14411
14332
 
14412
14333
  /**
14413
14334
  * Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
14414
- * * 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.
14335
+ * * 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.
14415
14336
  * * InstanceType: In this mode, you must specify one instance type.
14416
14337
  * * InstanceTypes: In this mode, you can specify more than one instance type.
14417
14338
  * * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
14418
- * * 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.
14419
- * > 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.
14339
+ * * 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.
14340
+ * > 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.
14420
14341
  *
14421
14342
  * @param tmpReq CreateScalingConfigurationRequest
14422
14343
  * @param runtime runtime options for this request RuntimeOptions
@@ -14455,6 +14376,10 @@ export default class Client extends OpenApi {
14455
14376
  query["DedicatedHostId"] = request.dedicatedHostId;
14456
14377
  }
14457
14378
 
14379
+ if (!Util.isUnset(request.deletionProtection)) {
14380
+ query["DeletionProtection"] = request.deletionProtection;
14381
+ }
14382
+
14458
14383
  if (!Util.isUnset(request.deploymentSetId)) {
14459
14384
  query["DeploymentSetId"] = request.deploymentSetId;
14460
14385
  }
@@ -14654,12 +14579,12 @@ export default class Client extends OpenApi {
14654
14579
 
14655
14580
  /**
14656
14581
  * Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
14657
- * * 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.
14582
+ * * 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.
14658
14583
  * * InstanceType: In this mode, you must specify one instance type.
14659
14584
  * * InstanceTypes: In this mode, you can specify more than one instance type.
14660
14585
  * * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
14661
- * * 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.
14662
- * > 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.
14586
+ * * 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.
14587
+ * > 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.
14663
14588
  *
14664
14589
  * @param request CreateScalingConfigurationRequest
14665
14590
  * @return CreateScalingConfigurationResponse
@@ -14922,7 +14847,18 @@ export default class Client extends OpenApi {
14922
14847
  }
14923
14848
 
14924
14849
  /**
14925
- * Creates a scaling rule.
14850
+ * 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:
14851
+ * * 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.
14852
+ * * 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.
14853
+ * Before you call this operation, take note of the following items:
14854
+ * * 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.
14855
+ * * 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.
14856
+ * * 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.
14857
+ * * 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.
14858
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
14859
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
14860
+ * * 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.
14861
+ * * 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.
14926
14862
  *
14927
14863
  * @param request CreateScalingRuleRequest
14928
14864
  * @param runtime runtime options for this request RuntimeOptions
@@ -15045,7 +14981,18 @@ export default class Client extends OpenApi {
15045
14981
  }
15046
14982
 
15047
14983
  /**
15048
- * Creates a scaling rule.
14984
+ * 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:
14985
+ * * 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.
14986
+ * * 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.
14987
+ * Before you call this operation, take note of the following items:
14988
+ * * 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.
14989
+ * * 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.
14990
+ * * 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.
14991
+ * * 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.
14992
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
14993
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
14994
+ * * 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.
14995
+ * * 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.
15049
14996
  *
15050
14997
  * @param request CreateScalingRuleRequest
15051
14998
  * @return CreateScalingRuleResponse
@@ -15055,13 +15002,6 @@ export default class Client extends OpenApi {
15055
15002
  return await this.createScalingRuleWithOptions(request, runtime);
15056
15003
  }
15057
15004
 
15058
- /**
15059
- * Creates a scheduled task.
15060
- *
15061
- * @param request CreateScheduledTaskRequest
15062
- * @param runtime runtime options for this request RuntimeOptions
15063
- * @return CreateScheduledTaskResponse
15064
- */
15065
15005
  async createScheduledTaskWithOptions(request: CreateScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateScheduledTaskResponse> {
15066
15006
  Util.validateModel(request);
15067
15007
  let query = { };
@@ -15150,12 +15090,6 @@ export default class Client extends OpenApi {
15150
15090
  return $tea.cast<CreateScheduledTaskResponse>(await this.callApi(params, req, runtime), new CreateScheduledTaskResponse({}));
15151
15091
  }
15152
15092
 
15153
- /**
15154
- * Creates a scheduled task.
15155
- *
15156
- * @param request CreateScheduledTaskRequest
15157
- * @return CreateScheduledTaskResponse
15158
- */
15159
15093
  async createScheduledTask(request: CreateScheduledTaskRequest): Promise<CreateScheduledTaskResponse> {
15160
15094
  let runtime = new $Util.RuntimeOptions({ });
15161
15095
  return await this.createScheduledTaskWithOptions(request, runtime);
@@ -15243,13 +15177,6 @@ export default class Client extends OpenApi {
15243
15177
  return await this.deleteAlarmWithOptions(request, runtime);
15244
15178
  }
15245
15179
 
15246
- /**
15247
- * Deletes a scaling configuration that is used to create elastic container instances.
15248
- *
15249
- * @param request DeleteEciScalingConfigurationRequest
15250
- * @param runtime runtime options for this request RuntimeOptions
15251
- * @return DeleteEciScalingConfigurationResponse
15252
- */
15253
15180
  async deleteEciScalingConfigurationWithOptions(request: DeleteEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteEciScalingConfigurationResponse> {
15254
15181
  Util.validateModel(request);
15255
15182
  let query = { };
@@ -15290,26 +15217,11 @@ export default class Client extends OpenApi {
15290
15217
  return $tea.cast<DeleteEciScalingConfigurationResponse>(await this.callApi(params, req, runtime), new DeleteEciScalingConfigurationResponse({}));
15291
15218
  }
15292
15219
 
15293
- /**
15294
- * Deletes a scaling configuration that is used to create elastic container instances.
15295
- *
15296
- * @param request DeleteEciScalingConfigurationRequest
15297
- * @return DeleteEciScalingConfigurationResponse
15298
- */
15299
15220
  async deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse> {
15300
15221
  let runtime = new $Util.RuntimeOptions({ });
15301
15222
  return await this.deleteEciScalingConfigurationWithOptions(request, runtime);
15302
15223
  }
15303
15224
 
15304
- /**
15305
- * 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:
15306
- * * 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.
15307
- * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
15308
- *
15309
- * @param request DeleteLifecycleHookRequest
15310
- * @param runtime runtime options for this request RuntimeOptions
15311
- * @return DeleteLifecycleHookResponse
15312
- */
15313
15225
  async deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse> {
15314
15226
  Util.validateModel(request);
15315
15227
  let query = { };
@@ -15358,14 +15270,6 @@ export default class Client extends OpenApi {
15358
15270
  return $tea.cast<DeleteLifecycleHookResponse>(await this.callApi(params, req, runtime), new DeleteLifecycleHookResponse({}));
15359
15271
  }
15360
15272
 
15361
- /**
15362
- * 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:
15363
- * * 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.
15364
- * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
15365
- *
15366
- * @param request DeleteLifecycleHookRequest
15367
- * @return DeleteLifecycleHookResponse
15368
- */
15369
15273
  async deleteLifecycleHook(request: DeleteLifecycleHookRequest): Promise<DeleteLifecycleHookResponse> {
15370
15274
  let runtime = new $Util.RuntimeOptions({ });
15371
15275
  return await this.deleteLifecycleHookWithOptions(request, runtime);
@@ -15416,13 +15320,6 @@ export default class Client extends OpenApi {
15416
15320
  return await this.deleteNotificationConfigurationWithOptions(request, runtime);
15417
15321
  }
15418
15322
 
15419
- /**
15420
- * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
15421
- *
15422
- * @param request DeleteScalingConfigurationRequest
15423
- * @param runtime runtime options for this request RuntimeOptions
15424
- * @return DeleteScalingConfigurationResponse
15425
- */
15426
15323
  async deleteScalingConfigurationWithOptions(request: DeleteScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingConfigurationResponse> {
15427
15324
  Util.validateModel(request);
15428
15325
  let query = { };
@@ -15459,24 +15356,11 @@ export default class Client extends OpenApi {
15459
15356
  return $tea.cast<DeleteScalingConfigurationResponse>(await this.callApi(params, req, runtime), new DeleteScalingConfigurationResponse({}));
15460
15357
  }
15461
15358
 
15462
- /**
15463
- * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
15464
- *
15465
- * @param request DeleteScalingConfigurationRequest
15466
- * @return DeleteScalingConfigurationResponse
15467
- */
15468
15359
  async deleteScalingConfiguration(request: DeleteScalingConfigurationRequest): Promise<DeleteScalingConfigurationResponse> {
15469
15360
  let runtime = new $Util.RuntimeOptions({ });
15470
15361
  return await this.deleteScalingConfigurationWithOptions(request, runtime);
15471
15362
  }
15472
15363
 
15473
- /**
15474
- * Deletes a scaling group.
15475
- *
15476
- * @param request DeleteScalingGroupRequest
15477
- * @param runtime runtime options for this request RuntimeOptions
15478
- * @return DeleteScalingGroupResponse
15479
- */
15480
15364
  async deleteScalingGroupWithOptions(request: DeleteScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingGroupResponse> {
15481
15365
  Util.validateModel(request);
15482
15366
  let query = { };
@@ -15521,12 +15405,6 @@ export default class Client extends OpenApi {
15521
15405
  return $tea.cast<DeleteScalingGroupResponse>(await this.callApi(params, req, runtime), new DeleteScalingGroupResponse({}));
15522
15406
  }
15523
15407
 
15524
- /**
15525
- * Deletes a scaling group.
15526
- *
15527
- * @param request DeleteScalingGroupRequest
15528
- * @return DeleteScalingGroupResponse
15529
- */
15530
15408
  async deleteScalingGroup(request: DeleteScalingGroupRequest): Promise<DeleteScalingGroupResponse> {
15531
15409
  let runtime = new $Util.RuntimeOptions({ });
15532
15410
  return await this.deleteScalingGroupWithOptions(request, runtime);
@@ -15756,13 +15634,6 @@ export default class Client extends OpenApi {
15756
15634
  return await this.describeEciScalingConfigurationsWithOptions(request, runtime);
15757
15635
  }
15758
15636
 
15759
- /**
15760
- * Queries lifecycle actions.
15761
- *
15762
- * @param request DescribeLifecycleActionsRequest
15763
- * @param runtime runtime options for this request RuntimeOptions
15764
- * @return DescribeLifecycleActionsResponse
15765
- */
15766
15637
  async describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse> {
15767
15638
  Util.validateModel(request);
15768
15639
  let query = { };
@@ -15811,27 +15682,11 @@ export default class Client extends OpenApi {
15811
15682
  return $tea.cast<DescribeLifecycleActionsResponse>(await this.callApi(params, req, runtime), new DescribeLifecycleActionsResponse({}));
15812
15683
  }
15813
15684
 
15814
- /**
15815
- * Queries lifecycle actions.
15816
- *
15817
- * @param request DescribeLifecycleActionsRequest
15818
- * @return DescribeLifecycleActionsResponse
15819
- */
15820
15685
  async describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse> {
15821
15686
  let runtime = new $Util.RuntimeOptions({ });
15822
15687
  return await this.describeLifecycleActionsWithOptions(request, runtime);
15823
15688
  }
15824
15689
 
15825
- /**
15826
- * You can use one of the following methods to query lifecycle hooks:
15827
- * * 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.
15828
- * * Specify the scaling group ID by using the ScalingGroupId parameter.
15829
- * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
15830
- *
15831
- * @param request DescribeLifecycleHooksRequest
15832
- * @param runtime runtime options for this request RuntimeOptions
15833
- * @return DescribeLifecycleHooksResponse
15834
- */
15835
15690
  async describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse> {
15836
15691
  Util.validateModel(request);
15837
15692
  let query = { };
@@ -15888,15 +15743,6 @@ export default class Client extends OpenApi {
15888
15743
  return $tea.cast<DescribeLifecycleHooksResponse>(await this.callApi(params, req, runtime), new DescribeLifecycleHooksResponse({}));
15889
15744
  }
15890
15745
 
15891
- /**
15892
- * You can use one of the following methods to query lifecycle hooks:
15893
- * * 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.
15894
- * * Specify the scaling group ID by using the ScalingGroupId parameter.
15895
- * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
15896
- *
15897
- * @param request DescribeLifecycleHooksRequest
15898
- * @return DescribeLifecycleHooksResponse
15899
- */
15900
15746
  async describeLifecycleHooks(request: DescribeLifecycleHooksRequest): Promise<DescribeLifecycleHooksResponse> {
15901
15747
  let runtime = new $Util.RuntimeOptions({ });
15902
15748
  return await this.describeLifecycleHooksWithOptions(request, runtime);
@@ -16311,13 +16157,6 @@ export default class Client extends OpenApi {
16311
16157
  return await this.describeScalingGroupsWithOptions(request, runtime);
16312
16158
  }
16313
16159
 
16314
- /**
16315
- * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
16316
- *
16317
- * @param request DescribeScalingInstancesRequest
16318
- * @param runtime runtime options for this request RuntimeOptions
16319
- * @return DescribeScalingInstancesResponse
16320
- */
16321
16160
  async describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse> {
16322
16161
  Util.validateModel(request);
16323
16162
  let query = { };
@@ -16325,6 +16164,10 @@ export default class Client extends OpenApi {
16325
16164
  query["CreationType"] = request.creationType;
16326
16165
  }
16327
16166
 
16167
+ if (!Util.isUnset(request.creationTypes)) {
16168
+ query["CreationTypes"] = request.creationTypes;
16169
+ }
16170
+
16328
16171
  if (!Util.isUnset(request.healthStatus)) {
16329
16172
  query["HealthStatus"] = request.healthStatus;
16330
16173
  }
@@ -16394,19 +16237,13 @@ export default class Client extends OpenApi {
16394
16237
  return $tea.cast<DescribeScalingInstancesResponse>(await this.callApi(params, req, runtime), new DescribeScalingInstancesResponse({}));
16395
16238
  }
16396
16239
 
16397
- /**
16398
- * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
16399
- *
16400
- * @param request DescribeScalingInstancesRequest
16401
- * @return DescribeScalingInstancesResponse
16402
- */
16403
16240
  async describeScalingInstances(request: DescribeScalingInstancesRequest): Promise<DescribeScalingInstancesResponse> {
16404
16241
  let runtime = new $Util.RuntimeOptions({ });
16405
16242
  return await this.describeScalingInstancesWithOptions(request, runtime);
16406
16243
  }
16407
16244
 
16408
16245
  /**
16409
- * Queries all scaling rules in a scaling group.
16246
+ * 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.
16410
16247
  *
16411
16248
  * @param request DescribeScalingRulesRequest
16412
16249
  * @param runtime runtime options for this request RuntimeOptions
@@ -16485,7 +16322,7 @@ export default class Client extends OpenApi {
16485
16322
  }
16486
16323
 
16487
16324
  /**
16488
- * Queries all scaling rules in a scaling group.
16325
+ * 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.
16489
16326
  *
16490
16327
  * @param request DescribeScalingRulesRequest
16491
16328
  * @return DescribeScalingRulesResponse
@@ -16495,13 +16332,6 @@ export default class Client extends OpenApi {
16495
16332
  return await this.describeScalingRulesWithOptions(request, runtime);
16496
16333
  }
16497
16334
 
16498
- /**
16499
- * You can query scheduled tasks by scaling rule, task ID, or task name.
16500
- *
16501
- * @param request DescribeScheduledTasksRequest
16502
- * @param runtime runtime options for this request RuntimeOptions
16503
- * @return DescribeScheduledTasksResponse
16504
- */
16505
16335
  async describeScheduledTasksWithOptions(request: DescribeScheduledTasksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScheduledTasksResponse> {
16506
16336
  Util.validateModel(request);
16507
16337
  let query = { };
@@ -16566,12 +16396,6 @@ export default class Client extends OpenApi {
16566
16396
  return $tea.cast<DescribeScheduledTasksResponse>(await this.callApi(params, req, runtime), new DescribeScheduledTasksResponse({}));
16567
16397
  }
16568
16398
 
16569
- /**
16570
- * You can query scheduled tasks by scaling rule, task ID, or task name.
16571
- *
16572
- * @param request DescribeScheduledTasksRequest
16573
- * @return DescribeScheduledTasksResponse
16574
- */
16575
16399
  async describeScheduledTasks(request: DescribeScheduledTasksRequest): Promise<DescribeScheduledTasksResponse> {
16576
16400
  let runtime = new $Util.RuntimeOptions({ });
16577
16401
  return await this.describeScheduledTasksWithOptions(request, runtime);
@@ -16683,13 +16507,6 @@ export default class Client extends OpenApi {
16683
16507
  return await this.detachDBInstancesWithOptions(request, runtime);
16684
16508
  }
16685
16509
 
16686
- /**
16687
- * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
16688
- *
16689
- * @param request DetachInstancesRequest
16690
- * @param runtime runtime options for this request RuntimeOptions
16691
- * @return DetachInstancesResponse
16692
- */
16693
16510
  async detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse> {
16694
16511
  Util.validateModel(request);
16695
16512
  let query = { };
@@ -16746,12 +16563,6 @@ export default class Client extends OpenApi {
16746
16563
  return $tea.cast<DetachInstancesResponse>(await this.callApi(params, req, runtime), new DetachInstancesResponse({}));
16747
16564
  }
16748
16565
 
16749
- /**
16750
- * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
16751
- *
16752
- * @param request DetachInstancesRequest
16753
- * @return DetachInstancesResponse
16754
- */
16755
16566
  async detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse> {
16756
16567
  let runtime = new $Util.RuntimeOptions({ });
16757
16568
  return await this.detachInstancesWithOptions(request, runtime);
@@ -16867,13 +16678,6 @@ export default class Client extends OpenApi {
16867
16678
  return await this.detachServerGroupsWithOptions(request, runtime);
16868
16679
  }
16869
16680
 
16870
- /**
16871
- * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
16872
- *
16873
- * @param request DetachVServerGroupsRequest
16874
- * @param runtime runtime options for this request RuntimeOptions
16875
- * @return DetachVServerGroupsResponse
16876
- */
16877
16681
  async detachVServerGroupsWithOptions(request: DetachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachVServerGroupsResponse> {
16878
16682
  Util.validateModel(request);
16879
16683
  let query = { };
@@ -16922,12 +16726,6 @@ export default class Client extends OpenApi {
16922
16726
  return $tea.cast<DetachVServerGroupsResponse>(await this.callApi(params, req, runtime), new DetachVServerGroupsResponse({}));
16923
16727
  }
16924
16728
 
16925
- /**
16926
- * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
16927
- *
16928
- * @param request DetachVServerGroupsRequest
16929
- * @return DetachVServerGroupsResponse
16930
- */
16931
16729
  async detachVServerGroups(request: DetachVServerGroupsRequest): Promise<DetachVServerGroupsResponse> {
16932
16730
  let runtime = new $Util.RuntimeOptions({ });
16933
16731
  return await this.detachVServerGroupsWithOptions(request, runtime);
@@ -16974,13 +16772,6 @@ export default class Client extends OpenApi {
16974
16772
  return await this.disableAlarmWithOptions(request, runtime);
16975
16773
  }
16976
16774
 
16977
- /**
16978
- * Disables a scaling group.
16979
- *
16980
- * @param request DisableScalingGroupRequest
16981
- * @param runtime runtime options for this request RuntimeOptions
16982
- * @return DisableScalingGroupResponse
16983
- */
16984
16775
  async disableScalingGroupWithOptions(request: DisableScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DisableScalingGroupResponse> {
16985
16776
  Util.validateModel(request);
16986
16777
  let query = { };
@@ -17021,12 +16812,6 @@ export default class Client extends OpenApi {
17021
16812
  return $tea.cast<DisableScalingGroupResponse>(await this.callApi(params, req, runtime), new DisableScalingGroupResponse({}));
17022
16813
  }
17023
16814
 
17024
- /**
17025
- * Disables a scaling group.
17026
- *
17027
- * @param request DisableScalingGroupRequest
17028
- * @return DisableScalingGroupResponse
17029
- */
17030
16815
  async disableScalingGroup(request: DisableScalingGroupRequest): Promise<DisableScalingGroupResponse> {
17031
16816
  let runtime = new $Util.RuntimeOptions({ });
17032
16817
  return await this.disableScalingGroupWithOptions(request, runtime);
@@ -17167,16 +16952,6 @@ export default class Client extends OpenApi {
17167
16952
  return await this.enableScalingGroupWithOptions(request, runtime);
17168
16953
  }
17169
16954
 
17170
- /**
17171
- * * 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.
17172
- * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
17173
- * * 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.
17174
- * * 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.
17175
- *
17176
- * @param request EnterStandbyRequest
17177
- * @param runtime runtime options for this request RuntimeOptions
17178
- * @return EnterStandbyResponse
17179
- */
17180
16955
  async enterStandbyWithOptions(request: EnterStandbyRequest, runtime: $Util.RuntimeOptions): Promise<EnterStandbyResponse> {
17181
16956
  Util.validateModel(request);
17182
16957
  let query = { };
@@ -17221,27 +16996,11 @@ export default class Client extends OpenApi {
17221
16996
  return $tea.cast<EnterStandbyResponse>(await this.callApi(params, req, runtime), new EnterStandbyResponse({}));
17222
16997
  }
17223
16998
 
17224
- /**
17225
- * * 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.
17226
- * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
17227
- * * 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.
17228
- * * 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.
17229
- *
17230
- * @param request EnterStandbyRequest
17231
- * @return EnterStandbyResponse
17232
- */
17233
16999
  async enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse> {
17234
17000
  let runtime = new $Util.RuntimeOptions({ });
17235
17001
  return await this.enterStandbyWithOptions(request, runtime);
17236
17002
  }
17237
17003
 
17238
- /**
17239
- * Executes a scaling rule.
17240
- *
17241
- * @param request ExecuteScalingRuleRequest
17242
- * @param runtime runtime options for this request RuntimeOptions
17243
- * @return ExecuteScalingRuleResponse
17244
- */
17245
17004
  async executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse> {
17246
17005
  Util.validateModel(request);
17247
17006
  let query = { };
@@ -17298,24 +17057,11 @@ export default class Client extends OpenApi {
17298
17057
  return $tea.cast<ExecuteScalingRuleResponse>(await this.callApi(params, req, runtime), new ExecuteScalingRuleResponse({}));
17299
17058
  }
17300
17059
 
17301
- /**
17302
- * Executes a scaling rule.
17303
- *
17304
- * @param request ExecuteScalingRuleRequest
17305
- * @return ExecuteScalingRuleResponse
17306
- */
17307
17060
  async executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse> {
17308
17061
  let runtime = new $Util.RuntimeOptions({ });
17309
17062
  return await this.executeScalingRuleWithOptions(request, runtime);
17310
17063
  }
17311
17064
 
17312
- /**
17313
- * 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.
17314
- *
17315
- * @param request ExitStandbyRequest
17316
- * @param runtime runtime options for this request RuntimeOptions
17317
- * @return ExitStandbyResponse
17318
- */
17319
17065
  async exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse> {
17320
17066
  Util.validateModel(request);
17321
17067
  let query = { };
@@ -17364,12 +17110,6 @@ export default class Client extends OpenApi {
17364
17110
  return $tea.cast<ExitStandbyResponse>(await this.callApi(params, req, runtime), new ExitStandbyResponse({}));
17365
17111
  }
17366
17112
 
17367
- /**
17368
- * 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.
17369
- *
17370
- * @param request ExitStandbyRequest
17371
- * @return ExitStandbyResponse
17372
- */
17373
17113
  async exitStandby(request: ExitStandbyRequest): Promise<ExitStandbyResponse> {
17374
17114
  let runtime = new $Util.RuntimeOptions({ });
17375
17115
  return await this.exitStandbyWithOptions(request, runtime);
@@ -17531,7 +17271,11 @@ export default class Client extends OpenApi {
17531
17271
  }
17532
17272
 
17533
17273
  /**
17534
- * Modifies an event-triggered task.
17274
+ * * 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~~).
17275
+ * * 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.
17276
+ * * If you set MetricType to custom, the valid values are your custom metrics.
17277
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
17278
+ * > 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.
17535
17279
  *
17536
17280
  * @param request ModifyAlarmRequest
17537
17281
  * @param runtime runtime options for this request RuntimeOptions
@@ -17634,7 +17378,11 @@ export default class Client extends OpenApi {
17634
17378
  }
17635
17379
 
17636
17380
  /**
17637
- * Modifies an event-triggered task.
17381
+ * * 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~~).
17382
+ * * 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.
17383
+ * * If you set MetricType to custom, the valid values are your custom metrics.
17384
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
17385
+ * > 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.
17638
17386
  *
17639
17387
  * @param request ModifyAlarmRequest
17640
17388
  * @return ModifyAlarmResponse
@@ -18006,7 +17754,7 @@ export default class Client extends OpenApi {
18006
17754
  }
18007
17755
 
18008
17756
  /**
18009
- * 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.
17757
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
18010
17758
  *
18011
17759
  * @param tmpReq ModifyScalingConfigurationRequest
18012
17760
  * @param runtime runtime options for this request RuntimeOptions
@@ -18041,6 +17789,10 @@ export default class Client extends OpenApi {
18041
17789
  query["DedicatedHostId"] = request.dedicatedHostId;
18042
17790
  }
18043
17791
 
17792
+ if (!Util.isUnset(request.deletionProtection)) {
17793
+ query["DeletionProtection"] = request.deletionProtection;
17794
+ }
17795
+
18044
17796
  if (!Util.isUnset(request.deploymentSetId)) {
18045
17797
  query["DeploymentSetId"] = request.deploymentSetId;
18046
17798
  }
@@ -18227,7 +17979,7 @@ export default class Client extends OpenApi {
18227
17979
  }
18228
17980
 
18229
17981
  /**
18230
- * 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.
17982
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
18231
17983
  *
18232
17984
  * @param request ModifyScalingConfigurationRequest
18233
17985
  * @return ModifyScalingConfigurationResponse
@@ -18237,13 +17989,6 @@ export default class Client extends OpenApi {
18237
17989
  return await this.modifyScalingConfigurationWithOptions(request, runtime);
18238
17990
  }
18239
17991
 
18240
- /**
18241
- * Modifies a scaling group.
18242
- *
18243
- * @param request ModifyScalingGroupRequest
18244
- * @param runtime runtime options for this request RuntimeOptions
18245
- * @return ModifyScalingGroupResponse
18246
- */
18247
17992
  async modifyScalingGroupWithOptions(request: ModifyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingGroupResponse> {
18248
17993
  Util.validateModel(request);
18249
17994
  let query = { };
@@ -18380,12 +18125,6 @@ export default class Client extends OpenApi {
18380
18125
  return $tea.cast<ModifyScalingGroupResponse>(await this.callApi(params, req, runtime), new ModifyScalingGroupResponse({}));
18381
18126
  }
18382
18127
 
18383
- /**
18384
- * Modifies a scaling group.
18385
- *
18386
- * @param request ModifyScalingGroupRequest
18387
- * @return ModifyScalingGroupResponse
18388
- */
18389
18128
  async modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse> {
18390
18129
  let runtime = new $Util.RuntimeOptions({ });
18391
18130
  return await this.modifyScalingGroupWithOptions(request, runtime);
@@ -18508,13 +18247,6 @@ export default class Client extends OpenApi {
18508
18247
  return await this.modifyScalingRuleWithOptions(request, runtime);
18509
18248
  }
18510
18249
 
18511
- /**
18512
- * Modifies a scheduled task.
18513
- *
18514
- * @param request ModifyScheduledTaskRequest
18515
- * @param runtime runtime options for this request RuntimeOptions
18516
- * @return ModifyScheduledTaskResponse
18517
- */
18518
18250
  async modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse> {
18519
18251
  Util.validateModel(request);
18520
18252
  let query = { };
@@ -18607,24 +18339,11 @@ export default class Client extends OpenApi {
18607
18339
  return $tea.cast<ModifyScheduledTaskResponse>(await this.callApi(params, req, runtime), new ModifyScheduledTaskResponse({}));
18608
18340
  }
18609
18341
 
18610
- /**
18611
- * Modifies a scheduled task.
18612
- *
18613
- * @param request ModifyScheduledTaskRequest
18614
- * @return ModifyScheduledTaskResponse
18615
- */
18616
18342
  async modifyScheduledTask(request: ModifyScheduledTaskRequest): Promise<ModifyScheduledTaskResponse> {
18617
18343
  let runtime = new $Util.RuntimeOptions({ });
18618
18344
  return await this.modifyScheduledTaskWithOptions(request, runtime);
18619
18345
  }
18620
18346
 
18621
- /**
18622
- * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
18623
- *
18624
- * @param request RebalanceInstancesRequest
18625
- * @param runtime runtime options for this request RuntimeOptions
18626
- * @return RebalanceInstancesResponse
18627
- */
18628
18347
  async rebalanceInstancesWithOptions(request: RebalanceInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebalanceInstancesResponse> {
18629
18348
  Util.validateModel(request);
18630
18349
  let query = { };
@@ -18669,24 +18388,11 @@ export default class Client extends OpenApi {
18669
18388
  return $tea.cast<RebalanceInstancesResponse>(await this.callApi(params, req, runtime), new RebalanceInstancesResponse({}));
18670
18389
  }
18671
18390
 
18672
- /**
18673
- * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
18674
- *
18675
- * @param request RebalanceInstancesRequest
18676
- * @return RebalanceInstancesResponse
18677
- */
18678
18391
  async rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse> {
18679
18392
  let runtime = new $Util.RuntimeOptions({ });
18680
18393
  return await this.rebalanceInstancesWithOptions(request, runtime);
18681
18394
  }
18682
18395
 
18683
- /**
18684
- * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
18685
- *
18686
- * @param request RecordLifecycleActionHeartbeatRequest
18687
- * @param runtime runtime options for this request RuntimeOptions
18688
- * @return RecordLifecycleActionHeartbeatResponse
18689
- */
18690
18396
  async recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse> {
18691
18397
  Util.validateModel(request);
18692
18398
  let query = { };
@@ -18735,31 +18441,11 @@ export default class Client extends OpenApi {
18735
18441
  return $tea.cast<RecordLifecycleActionHeartbeatResponse>(await this.callApi(params, req, runtime), new RecordLifecycleActionHeartbeatResponse({}));
18736
18442
  }
18737
18443
 
18738
- /**
18739
- * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
18740
- *
18741
- * @param request RecordLifecycleActionHeartbeatRequest
18742
- * @return RecordLifecycleActionHeartbeatResponse
18743
- */
18744
18444
  async recordLifecycleActionHeartbeat(request: RecordLifecycleActionHeartbeatRequest): Promise<RecordLifecycleActionHeartbeatResponse> {
18745
18445
  let runtime = new $Util.RuntimeOptions({ });
18746
18446
  return await this.recordLifecycleActionHeartbeatWithOptions(request, runtime);
18747
18447
  }
18748
18448
 
18749
- /**
18750
- * * Before you call this operation, make sure that the following requirements are met:
18751
- * * The scaling group is in the Active state.
18752
- * * No scaling activity is in progress within the scaling group.
18753
- * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
18754
- * * 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.
18755
- * * 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.
18756
- * * 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.
18757
- * 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.
18758
- *
18759
- * @param request RemoveInstancesRequest
18760
- * @param runtime runtime options for this request RuntimeOptions
18761
- * @return RemoveInstancesResponse
18762
- */
18763
18449
  async removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse> {
18764
18450
  Util.validateModel(request);
18765
18451
  let query = { };
@@ -18816,19 +18502,6 @@ export default class Client extends OpenApi {
18816
18502
  return $tea.cast<RemoveInstancesResponse>(await this.callApi(params, req, runtime), new RemoveInstancesResponse({}));
18817
18503
  }
18818
18504
 
18819
- /**
18820
- * * Before you call this operation, make sure that the following requirements are met:
18821
- * * The scaling group is in the Active state.
18822
- * * No scaling activity is in progress within the scaling group.
18823
- * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
18824
- * * 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.
18825
- * * 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.
18826
- * * 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.
18827
- * 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.
18828
- *
18829
- * @param request RemoveInstancesRequest
18830
- * @return RemoveInstancesResponse
18831
- */
18832
18505
  async removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse> {
18833
18506
  let runtime = new $Util.RuntimeOptions({ });
18834
18507
  return await this.removeInstancesWithOptions(request, runtime);
@@ -18884,14 +18557,7 @@ export default class Client extends OpenApi {
18884
18557
  }
18885
18558
 
18886
18559
  /**
18887
- * 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:
18888
- * * The following conditions must be met:
18889
- * * The scaling group is in the Active state.
18890
- * * No scaling activities in the scaling group are in progress.
18891
- * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
18892
- * * 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.
18893
- * * 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.
18894
- * 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.
18560
+ * The ID of the scaling activity.
18895
18561
  *
18896
18562
  * @param request ScaleWithAdjustmentRequest
18897
18563
  * @param runtime runtime options for this request RuntimeOptions
@@ -18950,14 +18616,7 @@ export default class Client extends OpenApi {
18950
18616
  }
18951
18617
 
18952
18618
  /**
18953
- * 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:
18954
- * * The following conditions must be met:
18955
- * * The scaling group is in the Active state.
18956
- * * No scaling activities in the scaling group are in progress.
18957
- * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
18958
- * * 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.
18959
- * * 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.
18960
- * 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.
18619
+ * The ID of the scaling activity.
18961
18620
  *
18962
18621
  * @param request ScaleWithAdjustmentRequest
18963
18622
  * @return ScaleWithAdjustmentResponse
@@ -19327,6 +18986,10 @@ export default class Client extends OpenApi {
19327
18986
  query["OwnerId"] = request.ownerId;
19328
18987
  }
19329
18988
 
18989
+ if (!Util.isUnset(request.regionId)) {
18990
+ query["RegionId"] = request.regionId;
18991
+ }
18992
+
19330
18993
  if (!Util.isUnset(request.resourceOwnerAccount)) {
19331
18994
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
19332
18995
  }