@alicloud/ess20220222 1.8.12 → 1.8.13
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.d.ts +57 -14
- package/dist/client.js +8 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +66 -14
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -3173,6 +3173,10 @@ export class CreateScalingConfigurationRequestNetworkInterfaces extends $dara.Mo
|
|
|
3173
3173
|
|
|
3174
3174
|
export class CreateScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
3175
3175
|
privatePoolIds?: string[];
|
|
3176
|
+
/**
|
|
3177
|
+
* @example
|
|
3178
|
+
* PrivatePoolFirst
|
|
3179
|
+
*/
|
|
3176
3180
|
strategy?: string;
|
|
3177
3181
|
static names(): { [key: string]: string } {
|
|
3178
3182
|
return {
|
|
@@ -4207,6 +4211,10 @@ export class CreateScalingConfigurationShrinkRequestNetworkInterfaces extends $d
|
|
|
4207
4211
|
|
|
4208
4212
|
export class CreateScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
4209
4213
|
privatePoolIds?: string[];
|
|
4214
|
+
/**
|
|
4215
|
+
* @example
|
|
4216
|
+
* PrivatePoolFirst
|
|
4217
|
+
*/
|
|
4210
4218
|
strategy?: string;
|
|
4211
4219
|
static names(): { [key: string]: string } {
|
|
4212
4220
|
return {
|
|
@@ -10545,9 +10553,25 @@ export class DescribeElasticStrengthResponseBodyElasticStrengthModels extends $d
|
|
|
10545
10553
|
}
|
|
10546
10554
|
|
|
10547
10555
|
export class DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth extends $dara.Model {
|
|
10556
|
+
/**
|
|
10557
|
+
* @example
|
|
10558
|
+
* 3
|
|
10559
|
+
*/
|
|
10548
10560
|
adequacyScore?: number;
|
|
10561
|
+
/**
|
|
10562
|
+
* @example
|
|
10563
|
+
* 3
|
|
10564
|
+
*/
|
|
10549
10565
|
healthScore?: number;
|
|
10566
|
+
/**
|
|
10567
|
+
* @example
|
|
10568
|
+
* 3
|
|
10569
|
+
*/
|
|
10550
10570
|
hotScore?: number;
|
|
10571
|
+
/**
|
|
10572
|
+
* @example
|
|
10573
|
+
* 3
|
|
10574
|
+
*/
|
|
10551
10575
|
supplyScore?: number;
|
|
10552
10576
|
static names(): { [key: string]: string } {
|
|
10553
10577
|
return {
|
|
@@ -10602,6 +10626,10 @@ export class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Mode
|
|
|
10602
10626
|
* The instanceType does not support the image in the configuration.
|
|
10603
10627
|
*/
|
|
10604
10628
|
msg?: string;
|
|
10629
|
+
/**
|
|
10630
|
+
* @example
|
|
10631
|
+
* Available
|
|
10632
|
+
*/
|
|
10605
10633
|
status?: string;
|
|
10606
10634
|
/**
|
|
10607
10635
|
* @remarks
|
|
@@ -12324,6 +12352,10 @@ export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetwo
|
|
|
12324
12352
|
|
|
12325
12353
|
export class DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions extends $dara.Model {
|
|
12326
12354
|
privatePoolIds?: string[];
|
|
12355
|
+
/**
|
|
12356
|
+
* @example
|
|
12357
|
+
* PrivatePoolFirst
|
|
12358
|
+
*/
|
|
12327
12359
|
strategy?: string;
|
|
12328
12360
|
static names(): { [key: string]: string } {
|
|
12329
12361
|
return {
|
|
@@ -20044,6 +20076,10 @@ export class ModifyScalingConfigurationRequestNetworkInterfaces extends $dara.Mo
|
|
|
20044
20076
|
|
|
20045
20077
|
export class ModifyScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
20046
20078
|
privatePoolIds?: string[];
|
|
20079
|
+
/**
|
|
20080
|
+
* @example
|
|
20081
|
+
* PrivatePoolFirst
|
|
20082
|
+
*/
|
|
20047
20083
|
strategy?: string;
|
|
20048
20084
|
static names(): { [key: string]: string } {
|
|
20049
20085
|
return {
|
|
@@ -21096,6 +21132,10 @@ export class ModifyScalingConfigurationShrinkRequestNetworkInterfaces extends $d
|
|
|
21096
21132
|
|
|
21097
21133
|
export class ModifyScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
21098
21134
|
privatePoolIds?: string[];
|
|
21135
|
+
/**
|
|
21136
|
+
* @example
|
|
21137
|
+
* PrivatePoolFirst
|
|
21138
|
+
*/
|
|
21099
21139
|
strategy?: string;
|
|
21100
21140
|
static names(): { [key: string]: string } {
|
|
21101
21141
|
return {
|
|
@@ -22227,7 +22267,7 @@ export class AttachAlbServerGroupsRequest extends $dara.Model {
|
|
|
22227
22267
|
* @remarks
|
|
22228
22268
|
* Specifies whether to add the existing Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to the new ALB server group. Valid values:
|
|
22229
22269
|
*
|
|
22230
|
-
* * true: adds the existing ECS instances or elastic container instances in the scaling group to the new ALB server group
|
|
22270
|
+
* * true: adds the existing ECS instances or elastic container instances in the scaling group to the new ALB server group and returns the value of `ScalingActivityId`. You can query the value of ScalingActivityId to check whether the existing ECS instances are added to the ALB server group.
|
|
22231
22271
|
* * false: does not add the existing ECS instances or elastic container instances in the scaling group to the new ALB server group.
|
|
22232
22272
|
*
|
|
22233
22273
|
* Default value: false.
|
|
@@ -22406,7 +22446,7 @@ export class AttachDBInstancesRequest extends $dara.Model {
|
|
|
22406
22446
|
DBInstances?: string[];
|
|
22407
22447
|
/**
|
|
22408
22448
|
* @remarks
|
|
22409
|
-
* Specifies whether to add the private IP addresses of all ECS instances in the scaling group to the IP address whitelist of
|
|
22449
|
+
* Specifies whether to add the private IP addresses of all ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance that you want to attach to the scaling group. Valid values:
|
|
22410
22450
|
*
|
|
22411
22451
|
* * true
|
|
22412
22452
|
* * false
|
|
@@ -23885,11 +23925,11 @@ export class CreateAlarmRequest extends $dara.Model {
|
|
|
23885
23925
|
scalingGroupId?: string;
|
|
23886
23926
|
/**
|
|
23887
23927
|
* @remarks
|
|
23888
|
-
* The method
|
|
23928
|
+
* The statistical method of the metric data. Valid values:
|
|
23889
23929
|
*
|
|
23890
|
-
* * Average: the average value.
|
|
23891
|
-
* * Minimum: the minimum value.
|
|
23892
|
-
* * Maximum: the maximum value.
|
|
23930
|
+
* * Average: calculates the average value of the metric data.
|
|
23931
|
+
* * Minimum: calculates the minimum value of the metric data.
|
|
23932
|
+
* * Maximum: calculates the maximum value of the metric data.
|
|
23893
23933
|
*
|
|
23894
23934
|
* Default value: Average.
|
|
23895
23935
|
*
|
|
@@ -24469,7 +24509,7 @@ export class CreateEciScalingConfigurationRequest extends $dara.Model {
|
|
|
24469
24509
|
ownerId?: number;
|
|
24470
24510
|
/**
|
|
24471
24511
|
* @remarks
|
|
24472
|
-
* The name of the instance Resource Access Management (RAM) role. Elastic container instances and Elastic Compute Service (ECS) instances can share the same RAM role. For more information, see [
|
|
24512
|
+
* The name of the instance Resource Access Management (RAM) role. Elastic container instances and Elastic Compute Service (ECS) instances can share the same RAM role. For more information, see [RAM roles](https://help.aliyun.com/document_detail/61175.html).
|
|
24473
24513
|
*
|
|
24474
24514
|
* @example
|
|
24475
24515
|
* RamTestRole
|
|
@@ -27572,7 +27612,7 @@ export class CreateScalingRuleRequest extends $dara.Model {
|
|
|
27572
27612
|
* * SimpleScalingRule: a simple scaling rule. After you execute a simple scaling rule, Auto Scaling adjusts the number of ECS instances or elastic container instances in the scaling group based on the values of AdjustmentType and AdjustmentValue.
|
|
27573
27613
|
* * TargetTrackingScalingRule: a target tracking scaling rule. After you execute a target tracking scaling rule, Auto Scaling dynamically calculates the number of ECS instances or elastic container instances to scale based on the predefined metric (MetricName) and attempts to maintain the metric value close to the expected value (TargetValue).
|
|
27574
27614
|
* * StepScalingRule: a step scaling rule. After you execute a step scaling rule, Auto Scaling scales instances step by step based on the predefined thresholds and metric values.
|
|
27575
|
-
* * PredictiveScalingRule: a predictive scaling rule. After you execute a predictive scaling rule, Auto Scaling uses machine learning to analyze historical monitoring data of the scaling group and predicts the future values of metrics. In addition, Auto Scaling automatically creates scheduled tasks to
|
|
27615
|
+
* * PredictiveScalingRule: a predictive scaling rule. After you execute a predictive scaling rule, Auto Scaling uses machine learning to analyze historical monitoring data of the scaling group and predicts the future values of metrics. In addition, Auto Scaling automatically creates scheduled tasks to adjust the boundary values for the scaling group.
|
|
27576
27616
|
*
|
|
27577
27617
|
* Default value: SimpleScalingRule.
|
|
27578
27618
|
*
|
|
@@ -29851,7 +29891,7 @@ export class DescribeEciScalingConfigurationsRequest extends $dara.Model {
|
|
|
29851
29891
|
ownerId?: number;
|
|
29852
29892
|
/**
|
|
29853
29893
|
* @remarks
|
|
29854
|
-
* The
|
|
29894
|
+
* The page number. Pages start from page 1.
|
|
29855
29895
|
*
|
|
29856
29896
|
* Default value: 1.
|
|
29857
29897
|
*
|
|
@@ -29861,7 +29901,7 @@ export class DescribeEciScalingConfigurationsRequest extends $dara.Model {
|
|
|
29861
29901
|
pageNumber?: number;
|
|
29862
29902
|
/**
|
|
29863
29903
|
* @remarks
|
|
29864
|
-
* The number of entries
|
|
29904
|
+
* The number of entries per page. Maximum value: 50.
|
|
29865
29905
|
*
|
|
29866
29906
|
* Default value: 10.
|
|
29867
29907
|
*
|
|
@@ -30243,6 +30283,10 @@ export class DescribeElasticStrengthRequest extends $dara.Model {
|
|
|
30243
30283
|
}
|
|
30244
30284
|
|
|
30245
30285
|
export class DescribeElasticStrengthResponseBody extends $dara.Model {
|
|
30286
|
+
/**
|
|
30287
|
+
* @example
|
|
30288
|
+
* Strong
|
|
30289
|
+
*/
|
|
30246
30290
|
elasticStrength?: string;
|
|
30247
30291
|
/**
|
|
30248
30292
|
* @remarks
|
|
@@ -34403,7 +34447,7 @@ export class DetachLoadBalancersRequest extends $dara.Model {
|
|
|
34403
34447
|
clientToken?: string;
|
|
34404
34448
|
/**
|
|
34405
34449
|
* @remarks
|
|
34406
|
-
* Specifies whether to remove Elastic Compute Service (ECS) instances in the scaling group from the backend server groups of the
|
|
34450
|
+
* Specifies whether to remove Elastic Compute Service (ECS) instances in the scaling group from the backend server groups of the load balancer. Valid values:
|
|
34407
34451
|
*
|
|
34408
34452
|
* * true
|
|
34409
34453
|
* * false
|
|
@@ -36529,7 +36573,7 @@ export class ModifyAlarmRequest extends $dara.Model {
|
|
|
36529
36573
|
* @remarks
|
|
36530
36574
|
* The metric type. Valid values:
|
|
36531
36575
|
*
|
|
36532
|
-
* * system: system metrics of CloudMonitor
|
|
36576
|
+
* * system: system metrics of CloudMonitor.
|
|
36533
36577
|
* * custom: custom metrics that are reported to CloudMonitor.
|
|
36534
36578
|
*
|
|
36535
36579
|
* @example
|
|
@@ -37524,12 +37568,11 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37524
37568
|
* @remarks
|
|
37525
37569
|
* The ID of the ECS instance.
|
|
37526
37570
|
*
|
|
37527
|
-
* This parameter is required.
|
|
37528
|
-
*
|
|
37529
37571
|
* @example
|
|
37530
37572
|
* i-bp109k5j3dum1ce6****
|
|
37531
37573
|
*/
|
|
37532
37574
|
instanceId?: string;
|
|
37575
|
+
instanceIds?: string[];
|
|
37533
37576
|
ownerId?: number;
|
|
37534
37577
|
/**
|
|
37535
37578
|
* @remarks
|
|
@@ -37556,6 +37599,7 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37556
37599
|
return {
|
|
37557
37600
|
entrusted: 'Entrusted',
|
|
37558
37601
|
instanceId: 'InstanceId',
|
|
37602
|
+
instanceIds: 'InstanceIds',
|
|
37559
37603
|
ownerId: 'OwnerId',
|
|
37560
37604
|
regionId: 'RegionId',
|
|
37561
37605
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
@@ -37567,6 +37611,7 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37567
37611
|
return {
|
|
37568
37612
|
entrusted: 'boolean',
|
|
37569
37613
|
instanceId: 'string',
|
|
37614
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
37570
37615
|
ownerId: 'number',
|
|
37571
37616
|
regionId: 'string',
|
|
37572
37617
|
resourceOwnerAccount: 'string',
|
|
@@ -37575,6 +37620,9 @@ export class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
37575
37620
|
}
|
|
37576
37621
|
|
|
37577
37622
|
validate() {
|
|
37623
|
+
if(Array.isArray(this.instanceIds)) {
|
|
37624
|
+
$dara.Model.validateArray(this.instanceIds);
|
|
37625
|
+
}
|
|
37578
37626
|
super.validate();
|
|
37579
37627
|
}
|
|
37580
37628
|
|
|
@@ -49758,6 +49806,10 @@ export default class Client extends OpenApi {
|
|
|
49758
49806
|
query["InstanceId"] = request.instanceId;
|
|
49759
49807
|
}
|
|
49760
49808
|
|
|
49809
|
+
if (!$dara.isNull(request.instanceIds)) {
|
|
49810
|
+
query["InstanceIds"] = request.instanceIds;
|
|
49811
|
+
}
|
|
49812
|
+
|
|
49761
49813
|
if (!$dara.isNull(request.ownerId)) {
|
|
49762
49814
|
query["OwnerId"] = request.ownerId;
|
|
49763
49815
|
}
|