@alicloud/ess20220222 1.8.12 → 1.8.14
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 +197 -16
- package/dist/client.js +196 -580
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +369 -587
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;
|
|
@@ -15749,6 +15789,20 @@ export declare class ModifyScalingRuleRequestStepAdjustments extends $dara.Model
|
|
|
15749
15789
|
[key: string]: any;
|
|
15750
15790
|
});
|
|
15751
15791
|
}
|
|
15792
|
+
export declare class RemoveInstancesRequestLifecycleHookContext extends $dara.Model {
|
|
15793
|
+
disableLifecycleHook?: boolean;
|
|
15794
|
+
ignoredLifecycleHookIds?: string[];
|
|
15795
|
+
static names(): {
|
|
15796
|
+
[key: string]: string;
|
|
15797
|
+
};
|
|
15798
|
+
static types(): {
|
|
15799
|
+
[key: string]: any;
|
|
15800
|
+
};
|
|
15801
|
+
validate(): void;
|
|
15802
|
+
constructor(map?: {
|
|
15803
|
+
[key: string]: any;
|
|
15804
|
+
});
|
|
15805
|
+
}
|
|
15752
15806
|
export declare class ScaleWithAdjustmentRequestLifecycleHookContext extends $dara.Model {
|
|
15753
15807
|
/**
|
|
15754
15808
|
* @remarks
|
|
@@ -16224,7 +16278,7 @@ export declare class AttachAlbServerGroupsRequest extends $dara.Model {
|
|
|
16224
16278
|
* @remarks
|
|
16225
16279
|
* 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
16280
|
*
|
|
16227
|
-
* * true: adds the existing ECS instances or elastic container instances in the scaling group to the new ALB server group
|
|
16281
|
+
* * 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
16282
|
* * false: does not add the existing ECS instances or elastic container instances in the scaling group to the new ALB server group.
|
|
16229
16283
|
*
|
|
16230
16284
|
* Default value: false.
|
|
@@ -16348,7 +16402,7 @@ export declare class AttachDBInstancesRequest extends $dara.Model {
|
|
|
16348
16402
|
DBInstances?: string[];
|
|
16349
16403
|
/**
|
|
16350
16404
|
* @remarks
|
|
16351
|
-
* Specifies whether to add the private IP addresses of all ECS instances in the scaling group to the IP address whitelist of
|
|
16405
|
+
* 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
16406
|
*
|
|
16353
16407
|
* * true
|
|
16354
16408
|
* * false
|
|
@@ -17388,11 +17442,11 @@ export declare class CreateAlarmRequest extends $dara.Model {
|
|
|
17388
17442
|
scalingGroupId?: string;
|
|
17389
17443
|
/**
|
|
17390
17444
|
* @remarks
|
|
17391
|
-
* The method
|
|
17445
|
+
* The statistical method of the metric data. Valid values:
|
|
17392
17446
|
*
|
|
17393
|
-
* * Average: the average value.
|
|
17394
|
-
* * Minimum: the minimum value.
|
|
17395
|
-
* * Maximum: the maximum value.
|
|
17447
|
+
* * Average: calculates the average value of the metric data.
|
|
17448
|
+
* * Minimum: calculates the minimum value of the metric data.
|
|
17449
|
+
* * Maximum: calculates the maximum value of the metric data.
|
|
17396
17450
|
*
|
|
17397
17451
|
* Default value: Average.
|
|
17398
17452
|
*
|
|
@@ -17845,7 +17899,7 @@ export declare class CreateEciScalingConfigurationRequest extends $dara.Model {
|
|
|
17845
17899
|
ownerId?: number;
|
|
17846
17900
|
/**
|
|
17847
17901
|
* @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 [
|
|
17902
|
+
* 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
17903
|
*
|
|
17850
17904
|
* @example
|
|
17851
17905
|
* RamTestRole
|
|
@@ -20117,7 +20171,7 @@ export declare class CreateScalingRuleRequest extends $dara.Model {
|
|
|
20117
20171
|
* * 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
20172
|
* * 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
20173
|
* * 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
|
|
20174
|
+
* * 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
20175
|
*
|
|
20122
20176
|
* Default value: SimpleScalingRule.
|
|
20123
20177
|
*
|
|
@@ -21576,7 +21630,7 @@ export declare class DescribeEciScalingConfigurationsRequest extends $dara.Model
|
|
|
21576
21630
|
ownerId?: number;
|
|
21577
21631
|
/**
|
|
21578
21632
|
* @remarks
|
|
21579
|
-
* The
|
|
21633
|
+
* The page number. Pages start from page 1.
|
|
21580
21634
|
*
|
|
21581
21635
|
* Default value: 1.
|
|
21582
21636
|
*
|
|
@@ -21586,7 +21640,7 @@ export declare class DescribeEciScalingConfigurationsRequest extends $dara.Model
|
|
|
21586
21640
|
pageNumber?: number;
|
|
21587
21641
|
/**
|
|
21588
21642
|
* @remarks
|
|
21589
|
-
* The number of entries
|
|
21643
|
+
* The number of entries per page. Maximum value: 50.
|
|
21590
21644
|
*
|
|
21591
21645
|
* Default value: 10.
|
|
21592
21646
|
*
|
|
@@ -21846,6 +21900,10 @@ export declare class DescribeElasticStrengthRequest extends $dara.Model {
|
|
|
21846
21900
|
});
|
|
21847
21901
|
}
|
|
21848
21902
|
export declare class DescribeElasticStrengthResponseBody extends $dara.Model {
|
|
21903
|
+
/**
|
|
21904
|
+
* @example
|
|
21905
|
+
* Strong
|
|
21906
|
+
*/
|
|
21849
21907
|
elasticStrength?: string;
|
|
21850
21908
|
/**
|
|
21851
21909
|
* @remarks
|
|
@@ -24620,7 +24678,7 @@ export declare class DetachLoadBalancersRequest extends $dara.Model {
|
|
|
24620
24678
|
clientToken?: string;
|
|
24621
24679
|
/**
|
|
24622
24680
|
* @remarks
|
|
24623
|
-
* Specifies whether to remove Elastic Compute Service (ECS) instances in the scaling group from the backend server groups of the
|
|
24681
|
+
* 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
24682
|
*
|
|
24625
24683
|
* * true
|
|
24626
24684
|
* * false
|
|
@@ -26035,7 +26093,7 @@ export declare class ModifyAlarmRequest extends $dara.Model {
|
|
|
26035
26093
|
* @remarks
|
|
26036
26094
|
* The metric type. Valid values:
|
|
26037
26095
|
*
|
|
26038
|
-
* * system: system metrics of CloudMonitor
|
|
26096
|
+
* * system: system metrics of CloudMonitor.
|
|
26039
26097
|
* * custom: custom metrics that are reported to CloudMonitor.
|
|
26040
26098
|
*
|
|
26041
26099
|
* @example
|
|
@@ -26719,12 +26777,15 @@ export declare class ModifyInstanceAttributeRequest extends $dara.Model {
|
|
|
26719
26777
|
* @remarks
|
|
26720
26778
|
* The ID of the ECS instance.
|
|
26721
26779
|
*
|
|
26722
|
-
* This parameter is required.
|
|
26723
|
-
*
|
|
26724
26780
|
* @example
|
|
26725
26781
|
* i-bp109k5j3dum1ce6****
|
|
26726
26782
|
*/
|
|
26727
26783
|
instanceId?: string;
|
|
26784
|
+
/**
|
|
26785
|
+
* @remarks
|
|
26786
|
+
* The instance IDs.
|
|
26787
|
+
*/
|
|
26788
|
+
instanceIds?: string[];
|
|
26728
26789
|
ownerId?: number;
|
|
26729
26790
|
/**
|
|
26730
26791
|
* @remarks
|
|
@@ -29165,6 +29226,126 @@ export declare class RemoveInstancesRequest extends $dara.Model {
|
|
|
29165
29226
|
* This parameter is required.
|
|
29166
29227
|
*/
|
|
29167
29228
|
instanceIds?: string[];
|
|
29229
|
+
lifecycleHookContext?: RemoveInstancesRequestLifecycleHookContext;
|
|
29230
|
+
ownerAccount?: string;
|
|
29231
|
+
ownerId?: number;
|
|
29232
|
+
/**
|
|
29233
|
+
* @remarks
|
|
29234
|
+
* The region ID of the scaling group.
|
|
29235
|
+
*
|
|
29236
|
+
* @example
|
|
29237
|
+
* cn-qingdao
|
|
29238
|
+
*/
|
|
29239
|
+
regionId?: string;
|
|
29240
|
+
/**
|
|
29241
|
+
* @remarks
|
|
29242
|
+
* The action subsequent to the removal of the Elastic Compute Service (ECS) instances. Valid values:
|
|
29243
|
+
*
|
|
29244
|
+
* * recycle: The ECS instances enter the Economical Mode.
|
|
29245
|
+
*
|
|
29246
|
+
* **
|
|
29247
|
+
*
|
|
29248
|
+
* **Note** This setting is applicable only if you set `ScalingPolicy` to `recycle`.
|
|
29249
|
+
*
|
|
29250
|
+
* * release: The ECS instances are released.
|
|
29251
|
+
*
|
|
29252
|
+
* ScalingPolicy of the CreateScalingGroup operation specifies the reclaim mode of the scaling group while RemovePolicy of the RemoveInstances operation specifies the subsequent action when an ECS instance is removed from the scaling group. Examples:
|
|
29253
|
+
*
|
|
29254
|
+
* * If you set ScalingPolicy and RemovePolicy to recycle, the ECS instances enter the Economical Mode when they are removed.
|
|
29255
|
+
* * If you set ScalingPolicy to recycle and RemovePolicy to release, the ECS instances are released when they are removed.
|
|
29256
|
+
* * If you set ScalingPolicy to release and RemovePolicy to recycle, the ECS instances are released when they are removed.
|
|
29257
|
+
* * If you set ScalingPolicy and RemovePolicy to release, the ECS instances are released when they are removed.
|
|
29258
|
+
*
|
|
29259
|
+
* Default value: release.
|
|
29260
|
+
*
|
|
29261
|
+
* @example
|
|
29262
|
+
* release
|
|
29263
|
+
*/
|
|
29264
|
+
removePolicy?: string;
|
|
29265
|
+
resourceOwnerAccount?: string;
|
|
29266
|
+
resourceOwnerId?: number;
|
|
29267
|
+
/**
|
|
29268
|
+
* @remarks
|
|
29269
|
+
* The ID of the scaling group.
|
|
29270
|
+
*
|
|
29271
|
+
* This parameter is required.
|
|
29272
|
+
*
|
|
29273
|
+
* @example
|
|
29274
|
+
* asg-bp18p2yfxow2dloq****
|
|
29275
|
+
*/
|
|
29276
|
+
scalingGroupId?: string;
|
|
29277
|
+
/**
|
|
29278
|
+
* @remarks
|
|
29279
|
+
* The period of time required by the ECS instance to enter the Stopped state. Unit: seconds. Valid values: 30 to 240.
|
|
29280
|
+
*
|
|
29281
|
+
* >
|
|
29282
|
+
*
|
|
29283
|
+
* * By default, this parameter inherits the value of StopInstanceTimeout specified in the CreateScalingGroup or ModifyScalingGroup operation. You can also specify a different value for this parameter in the RemoveInstances operation.
|
|
29284
|
+
*
|
|
29285
|
+
* * This parameter takes effect only if you set RemovePolicy to release.
|
|
29286
|
+
*
|
|
29287
|
+
* * If you specify this parameter, the system waits for the ECS instance to enter the Stopped state only for up to the specified period of time before continuing with the scale-in operation, regardless of the status of the ECS instance.
|
|
29288
|
+
*
|
|
29289
|
+
* * If you do not specify this parameter, the system continues with the scale-in operation until the ECS instance enters the Stopped state. If the ECS instance is not successfully stopped, the scale-in process is rolled back and considered failed.
|
|
29290
|
+
*
|
|
29291
|
+
* @example
|
|
29292
|
+
* 60
|
|
29293
|
+
*/
|
|
29294
|
+
stopInstanceTimeout?: number;
|
|
29295
|
+
static names(): {
|
|
29296
|
+
[key: string]: string;
|
|
29297
|
+
};
|
|
29298
|
+
static types(): {
|
|
29299
|
+
[key: string]: any;
|
|
29300
|
+
};
|
|
29301
|
+
validate(): void;
|
|
29302
|
+
constructor(map?: {
|
|
29303
|
+
[key: string]: any;
|
|
29304
|
+
});
|
|
29305
|
+
}
|
|
29306
|
+
export declare class RemoveInstancesShrinkRequest extends $dara.Model {
|
|
29307
|
+
/**
|
|
29308
|
+
* @remarks
|
|
29309
|
+
* The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](https://help.aliyun.com/document_detail/25965.html).
|
|
29310
|
+
*
|
|
29311
|
+
* @example
|
|
29312
|
+
* 123e4567-e89b-12d3-a456-42665544****
|
|
29313
|
+
*/
|
|
29314
|
+
clientToken?: string;
|
|
29315
|
+
/**
|
|
29316
|
+
* @remarks
|
|
29317
|
+
* Specifies whether to adjust the expected number of ECS instances in the scaling group. Valid values:
|
|
29318
|
+
*
|
|
29319
|
+
* * true: After ECS instances are removed from the scaling group, the expected number of ECS instances in the scaling group decreases.
|
|
29320
|
+
* * false: After ECS instances are removed from the scaling group, the expected number of ECS instances in the scaling group remains unchanged.
|
|
29321
|
+
*
|
|
29322
|
+
* Default value: true.
|
|
29323
|
+
*
|
|
29324
|
+
* @example
|
|
29325
|
+
* true
|
|
29326
|
+
*/
|
|
29327
|
+
decreaseDesiredCapacity?: boolean;
|
|
29328
|
+
/**
|
|
29329
|
+
* @remarks
|
|
29330
|
+
* Specifies whether to ignore invalid instances when you remove a batch of instances from the scaling group. Valid values:
|
|
29331
|
+
*
|
|
29332
|
+
* * true: ignores invalid instances. If invalid instances exist and valid instances are deleted, the corresponding scaling activity enters the Warning state. You can check the scaling activity details to view the invalid instances that are ignored.
|
|
29333
|
+
* * false: does not ignore invalid instances. If invalid instances exist in the batch of instances that you want to remove from the scaling group, an error is reported.
|
|
29334
|
+
*
|
|
29335
|
+
* Default value: false.
|
|
29336
|
+
*
|
|
29337
|
+
* @example
|
|
29338
|
+
* false
|
|
29339
|
+
*/
|
|
29340
|
+
ignoreInvalidInstance?: boolean;
|
|
29341
|
+
/**
|
|
29342
|
+
* @remarks
|
|
29343
|
+
* The IDs of the ECS instances that you want to remove from the scaling group.
|
|
29344
|
+
*
|
|
29345
|
+
* This parameter is required.
|
|
29346
|
+
*/
|
|
29347
|
+
instanceIds?: string[];
|
|
29348
|
+
lifecycleHookContextShrink?: string;
|
|
29168
29349
|
ownerAccount?: string;
|
|
29169
29350
|
ownerId?: number;
|
|
29170
29351
|
/**
|
|
@@ -32588,11 +32769,11 @@ export default class Client extends OpenApi {
|
|
|
32588
32769
|
* * 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.
|
|
32589
32770
|
* 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.
|
|
32590
32771
|
*
|
|
32591
|
-
* @param
|
|
32772
|
+
* @param tmpReq - RemoveInstancesRequest
|
|
32592
32773
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
32593
32774
|
* @returns RemoveInstancesResponse
|
|
32594
32775
|
*/
|
|
32595
|
-
removeInstancesWithOptions(
|
|
32776
|
+
removeInstancesWithOptions(tmpReq: RemoveInstancesRequest, runtime: $dara.RuntimeOptions): Promise<RemoveInstancesResponse>;
|
|
32596
32777
|
/**
|
|
32597
32778
|
* Removes one or more instances from a scaling group. If your scaling group is enabled and contains no ongoing scaling activities, you can call the RemoveInstances operation to remove instances that you no longer require from the scaling group.
|
|
32598
32779
|
*
|