@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/dist/client.d.ts
CHANGED
|
@@ -2211,6 +2211,10 @@ export declare class CreateScalingConfigurationRequestNetworkInterfaces extends
|
|
|
2211
2211
|
}
|
|
2212
2212
|
export declare class CreateScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
2213
2213
|
privatePoolIds?: string[];
|
|
2214
|
+
/**
|
|
2215
|
+
* @example
|
|
2216
|
+
* PrivatePoolFirst
|
|
2217
|
+
*/
|
|
2214
2218
|
strategy?: string;
|
|
2215
2219
|
static names(): {
|
|
2216
2220
|
[key: string]: string;
|
|
@@ -2999,6 +3003,10 @@ export declare class CreateScalingConfigurationShrinkRequestNetworkInterfaces ex
|
|
|
2999
3003
|
}
|
|
3000
3004
|
export declare class CreateScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
3001
3005
|
privatePoolIds?: string[];
|
|
3006
|
+
/**
|
|
3007
|
+
* @example
|
|
3008
|
+
* PrivatePoolFirst
|
|
3009
|
+
*/
|
|
3002
3010
|
strategy?: string;
|
|
3003
3011
|
static names(): {
|
|
3004
3012
|
[key: string]: string;
|
|
@@ -7688,9 +7696,25 @@ export declare class DescribeElasticStrengthResponseBodyElasticStrengthModels ex
|
|
|
7688
7696
|
});
|
|
7689
7697
|
}
|
|
7690
7698
|
export declare class DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth extends $dara.Model {
|
|
7699
|
+
/**
|
|
7700
|
+
* @example
|
|
7701
|
+
* 3
|
|
7702
|
+
*/
|
|
7691
7703
|
adequacyScore?: number;
|
|
7704
|
+
/**
|
|
7705
|
+
* @example
|
|
7706
|
+
* 3
|
|
7707
|
+
*/
|
|
7692
7708
|
healthScore?: number;
|
|
7709
|
+
/**
|
|
7710
|
+
* @example
|
|
7711
|
+
* 3
|
|
7712
|
+
*/
|
|
7693
7713
|
hotScore?: number;
|
|
7714
|
+
/**
|
|
7715
|
+
* @example
|
|
7716
|
+
* 3
|
|
7717
|
+
*/
|
|
7694
7718
|
supplyScore?: number;
|
|
7695
7719
|
static names(): {
|
|
7696
7720
|
[key: string]: string;
|
|
@@ -7729,6 +7753,10 @@ export declare class DescribeElasticStrengthResponseBodyResourcePools extends $d
|
|
|
7729
7753
|
* The instanceType does not support the image in the configuration.
|
|
7730
7754
|
*/
|
|
7731
7755
|
msg?: string;
|
|
7756
|
+
/**
|
|
7757
|
+
* @example
|
|
7758
|
+
* Available
|
|
7759
|
+
*/
|
|
7732
7760
|
status?: string;
|
|
7733
7761
|
/**
|
|
7734
7762
|
* @remarks
|
|
@@ -9005,6 +9033,10 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
|
|
|
9005
9033
|
}
|
|
9006
9034
|
export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions extends $dara.Model {
|
|
9007
9035
|
privatePoolIds?: string[];
|
|
9036
|
+
/**
|
|
9037
|
+
* @example
|
|
9038
|
+
* PrivatePoolFirst
|
|
9039
|
+
*/
|
|
9008
9040
|
strategy?: string;
|
|
9009
9041
|
static names(): {
|
|
9010
9042
|
[key: string]: string;
|
|
@@ -14606,6 +14638,10 @@ export declare class ModifyScalingConfigurationRequestNetworkInterfaces extends
|
|
|
14606
14638
|
}
|
|
14607
14639
|
export declare class ModifyScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
|
|
14608
14640
|
privatePoolIds?: string[];
|
|
14641
|
+
/**
|
|
14642
|
+
* @example
|
|
14643
|
+
* PrivatePoolFirst
|
|
14644
|
+
*/
|
|
14609
14645
|
strategy?: string;
|
|
14610
14646
|
static names(): {
|
|
14611
14647
|
[key: string]: string;
|
|
@@ -15412,6 +15448,10 @@ export declare class ModifyScalingConfigurationShrinkRequestNetworkInterfaces ex
|
|
|
15412
15448
|
}
|
|
15413
15449
|
export declare class ModifyScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
|
|
15414
15450
|
privatePoolIds?: string[];
|
|
15451
|
+
/**
|
|
15452
|
+
* @example
|
|
15453
|
+
* PrivatePoolFirst
|
|
15454
|
+
*/
|
|
15415
15455
|
strategy?: string;
|
|
15416
15456
|
static names(): {
|
|
15417
15457
|
[key: string]: string;
|
|
@@ -16224,7 +16264,7 @@ export declare class AttachAlbServerGroupsRequest extends $dara.Model {
|
|
|
16224
16264
|
* @remarks
|
|
16225
16265
|
* 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:
|
|
16226
16266
|
*
|
|
16227
|
-
* * true: adds the existing ECS instances or elastic container instances in the scaling group to the new ALB server group
|
|
16267
|
+
* * 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.
|
|
16228
16268
|
* * false: does not add the existing ECS instances or elastic container instances in the scaling group to the new ALB server group.
|
|
16229
16269
|
*
|
|
16230
16270
|
* Default value: false.
|
|
@@ -16348,7 +16388,7 @@ export declare class AttachDBInstancesRequest extends $dara.Model {
|
|
|
16348
16388
|
DBInstances?: string[];
|
|
16349
16389
|
/**
|
|
16350
16390
|
* @remarks
|
|
16351
|
-
* Specifies whether to add the private IP addresses of all ECS instances in the scaling group to the IP address whitelist of
|
|
16391
|
+
* 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:
|
|
16352
16392
|
*
|
|
16353
16393
|
* * true
|
|
16354
16394
|
* * false
|
|
@@ -17388,11 +17428,11 @@ export declare class CreateAlarmRequest extends $dara.Model {
|
|
|
17388
17428
|
scalingGroupId?: string;
|
|
17389
17429
|
/**
|
|
17390
17430
|
* @remarks
|
|
17391
|
-
* The method
|
|
17431
|
+
* The statistical method of the metric data. Valid values:
|
|
17392
17432
|
*
|
|
17393
|
-
* * Average: the average value.
|
|
17394
|
-
* * Minimum: the minimum value.
|
|
17395
|
-
* * Maximum: the maximum value.
|
|
17433
|
+
* * Average: calculates the average value of the metric data.
|
|
17434
|
+
* * Minimum: calculates the minimum value of the metric data.
|
|
17435
|
+
* * Maximum: calculates the maximum value of the metric data.
|
|
17396
17436
|
*
|
|
17397
17437
|
* Default value: Average.
|
|
17398
17438
|
*
|
|
@@ -17845,7 +17885,7 @@ export declare class CreateEciScalingConfigurationRequest extends $dara.Model {
|
|
|
17845
17885
|
ownerId?: number;
|
|
17846
17886
|
/**
|
|
17847
17887
|
* @remarks
|
|
17848
|
-
* 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 [
|
|
17888
|
+
* 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).
|
|
17849
17889
|
*
|
|
17850
17890
|
* @example
|
|
17851
17891
|
* RamTestRole
|
|
@@ -20117,7 +20157,7 @@ export declare class CreateScalingRuleRequest extends $dara.Model {
|
|
|
20117
20157
|
* * 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.
|
|
20118
20158
|
* * 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).
|
|
20119
20159
|
* * 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.
|
|
20120
|
-
* * 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
|
|
20160
|
+
* * 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.
|
|
20121
20161
|
*
|
|
20122
20162
|
* Default value: SimpleScalingRule.
|
|
20123
20163
|
*
|
|
@@ -21576,7 +21616,7 @@ export declare class DescribeEciScalingConfigurationsRequest extends $dara.Model
|
|
|
21576
21616
|
ownerId?: number;
|
|
21577
21617
|
/**
|
|
21578
21618
|
* @remarks
|
|
21579
|
-
* The
|
|
21619
|
+
* The page number. Pages start from page 1.
|
|
21580
21620
|
*
|
|
21581
21621
|
* Default value: 1.
|
|
21582
21622
|
*
|
|
@@ -21586,7 +21626,7 @@ export declare class DescribeEciScalingConfigurationsRequest extends $dara.Model
|
|
|
21586
21626
|
pageNumber?: number;
|
|
21587
21627
|
/**
|
|
21588
21628
|
* @remarks
|
|
21589
|
-
* The number of entries
|
|
21629
|
+
* The number of entries per page. Maximum value: 50.
|
|
21590
21630
|
*
|
|
21591
21631
|
* Default value: 10.
|
|
21592
21632
|
*
|
|
@@ -21846,6 +21886,10 @@ export declare class DescribeElasticStrengthRequest extends $dara.Model {
|
|
|
21846
21886
|
});
|
|
21847
21887
|
}
|
|
21848
21888
|
export declare class DescribeElasticStrengthResponseBody extends $dara.Model {
|
|
21889
|
+
/**
|
|
21890
|
+
* @example
|
|
21891
|
+
* Strong
|
|
21892
|
+
*/
|
|
21849
21893
|
elasticStrength?: string;
|
|
21850
21894
|
/**
|
|
21851
21895
|
* @remarks
|
|
@@ -24620,7 +24664,7 @@ export declare class DetachLoadBalancersRequest extends $dara.Model {
|
|
|
24620
24664
|
clientToken?: string;
|
|
24621
24665
|
/**
|
|
24622
24666
|
* @remarks
|
|
24623
|
-
* Specifies whether to remove Elastic Compute Service (ECS) instances in the scaling group from the backend server groups of the
|
|
24667
|
+
* Specifies whether to remove Elastic Compute Service (ECS) instances in the scaling group from the backend server groups of the load balancer. Valid values:
|
|
24624
24668
|
*
|
|
24625
24669
|
* * true
|
|
24626
24670
|
* * false
|
|
@@ -26035,7 +26079,7 @@ export declare class ModifyAlarmRequest extends $dara.Model {
|
|
|
26035
26079
|
* @remarks
|
|
26036
26080
|
* The metric type. Valid values:
|
|
26037
26081
|
*
|
|
26038
|
-
* * system: system metrics of CloudMonitor
|
|
26082
|
+
* * system: system metrics of CloudMonitor.
|
|
26039
26083
|
* * custom: custom metrics that are reported to CloudMonitor.
|
|
26040
26084
|
*
|
|
26041
26085
|
* @example
|
|
@@ -26719,12 +26763,11 @@ export declare class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
26719
26763
|
* @remarks
|
|
26720
26764
|
* The ID of the ECS instance.
|
|
26721
26765
|
*
|
|
26722
|
-
* This parameter is required.
|
|
26723
|
-
*
|
|
26724
26766
|
* @example
|
|
26725
26767
|
* i-bp109k5j3dum1ce6****
|
|
26726
26768
|
*/
|
|
26727
26769
|
instanceId?: string;
|
|
26770
|
+
instanceIds?: string[];
|
|
26728
26771
|
ownerId?: number;
|
|
26729
26772
|
/**
|
|
26730
26773
|
* @remarks
|
package/dist/client.js
CHANGED
|
@@ -15172,6 +15172,7 @@ class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
15172
15172
|
return {
|
|
15173
15173
|
entrusted: 'Entrusted',
|
|
15174
15174
|
instanceId: 'InstanceId',
|
|
15175
|
+
instanceIds: 'InstanceIds',
|
|
15175
15176
|
ownerId: 'OwnerId',
|
|
15176
15177
|
regionId: 'RegionId',
|
|
15177
15178
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
@@ -15182,6 +15183,7 @@ class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
15182
15183
|
return {
|
|
15183
15184
|
entrusted: 'boolean',
|
|
15184
15185
|
instanceId: 'string',
|
|
15186
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
15185
15187
|
ownerId: 'number',
|
|
15186
15188
|
regionId: 'string',
|
|
15187
15189
|
resourceOwnerAccount: 'string',
|
|
@@ -15189,6 +15191,9 @@ class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
15189
15191
|
};
|
|
15190
15192
|
}
|
|
15191
15193
|
validate() {
|
|
15194
|
+
if (Array.isArray(this.instanceIds)) {
|
|
15195
|
+
$dara.Model.validateArray(this.instanceIds);
|
|
15196
|
+
}
|
|
15192
15197
|
super.validate();
|
|
15193
15198
|
}
|
|
15194
15199
|
constructor(map) {
|
|
@@ -23330,6 +23335,9 @@ class Client extends openapi_core_1.default {
|
|
|
23330
23335
|
if (!$dara.isNull(request.instanceId)) {
|
|
23331
23336
|
query["InstanceId"] = request.instanceId;
|
|
23332
23337
|
}
|
|
23338
|
+
if (!$dara.isNull(request.instanceIds)) {
|
|
23339
|
+
query["InstanceIds"] = request.instanceIds;
|
|
23340
|
+
}
|
|
23333
23341
|
if (!$dara.isNull(request.ownerId)) {
|
|
23334
23342
|
query["OwnerId"] = request.ownerId;
|
|
23335
23343
|
}
|