@alicloud/ess20220222 1.8.10 → 1.8.12

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 CHANGED
@@ -2209,6 +2209,20 @@ export declare class CreateScalingConfigurationRequestNetworkInterfaces extends
2209
2209
  [key: string]: any;
2210
2210
  });
2211
2211
  }
2212
+ export declare class CreateScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
2213
+ privatePoolIds?: string[];
2214
+ strategy?: string;
2215
+ static names(): {
2216
+ [key: string]: string;
2217
+ };
2218
+ static types(): {
2219
+ [key: string]: any;
2220
+ };
2221
+ validate(): void;
2222
+ constructor(map?: {
2223
+ [key: string]: any;
2224
+ });
2225
+ }
2212
2226
  export declare class CreateScalingConfigurationRequestSecurityOptions extends $dara.Model {
2213
2227
  /**
2214
2228
  * @remarks
@@ -2983,6 +2997,20 @@ export declare class CreateScalingConfigurationShrinkRequestNetworkInterfaces ex
2983
2997
  [key: string]: any;
2984
2998
  });
2985
2999
  }
3000
+ export declare class CreateScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
3001
+ privatePoolIds?: string[];
3002
+ strategy?: string;
3003
+ static names(): {
3004
+ [key: string]: string;
3005
+ };
3006
+ static types(): {
3007
+ [key: string]: any;
3008
+ };
3009
+ validate(): void;
3010
+ constructor(map?: {
3011
+ [key: string]: any;
3012
+ });
3013
+ }
2986
3014
  export declare class CreateScalingConfigurationShrinkRequestSecurityOptions extends $dara.Model {
2987
3015
  /**
2988
3016
  * @remarks
@@ -3106,6 +3134,18 @@ export declare class CreateScalingGroupRequestCapacityOptions extends $dara.Mode
3106
3134
  * 20
3107
3135
  */
3108
3136
  onDemandPercentageAboveBaseCapacity?: number;
3137
+ /**
3138
+ * @remarks
3139
+ * The cost comparison method. Valid values:
3140
+ *
3141
+ * * PricePerUnit: compares costs based on unit price divided by instance capacities (weights). The capacity of an instance in a scaling group is determined by the weight of the instance type used. If no weight is set, the capacity defaults to 1.
3142
+ * * PricePerVCpu: compares costs based on unit price divided by the number of vCPUs.
3143
+ *
3144
+ * Default value: PricePerUnit.
3145
+ *
3146
+ * @example
3147
+ * PricePerUnit
3148
+ */
3109
3149
  priceComparisonMode?: string;
3110
3150
  /**
3111
3151
  * @remarks
@@ -3400,7 +3440,7 @@ export declare class CreateScalingGroupRequestServerGroups extends $dara.Model {
3400
3440
  export declare class CreateScalingGroupRequestTags extends $dara.Model {
3401
3441
  /**
3402
3442
  * @remarks
3403
- * The tag key.
3443
+ * The tag key that you want to add to the scaling group.
3404
3444
  *
3405
3445
  * @example
3406
3446
  * Department
@@ -3408,10 +3448,10 @@ export declare class CreateScalingGroupRequestTags extends $dara.Model {
3408
3448
  key?: string;
3409
3449
  /**
3410
3450
  * @remarks
3411
- * Specifies whether to propagate the tag that you want to add. Valid values:
3451
+ * Specifies whether to propagate the tag that you want to add to the scaling group. Valid values:
3412
3452
  *
3413
- * * true: propagates the tag to new instances.
3414
- * * false: does not propagate the tag to any instance.
3453
+ * * true: propagates the tag to only instances that are newly created.
3454
+ * * false: does not propagate the tag to any instances.
3415
3455
  *
3416
3456
  * Default value: false.
3417
3457
  *
@@ -3421,7 +3461,7 @@ export declare class CreateScalingGroupRequestTags extends $dara.Model {
3421
3461
  propagate?: boolean;
3422
3462
  /**
3423
3463
  * @remarks
3424
- * The tag value.
3464
+ * The tag value that you want to add to the scaling group.
3425
3465
  *
3426
3466
  * @example
3427
3467
  * Finance
@@ -7647,6 +7687,22 @@ export declare class DescribeElasticStrengthResponseBodyElasticStrengthModels ex
7647
7687
  [key: string]: any;
7648
7688
  });
7649
7689
  }
7690
+ export declare class DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth extends $dara.Model {
7691
+ adequacyScore?: number;
7692
+ healthScore?: number;
7693
+ hotScore?: number;
7694
+ supplyScore?: number;
7695
+ static names(): {
7696
+ [key: string]: string;
7697
+ };
7698
+ static types(): {
7699
+ [key: string]: any;
7700
+ };
7701
+ validate(): void;
7702
+ constructor(map?: {
7703
+ [key: string]: any;
7704
+ });
7705
+ }
7650
7706
  export declare class DescribeElasticStrengthResponseBodyResourcePools extends $dara.Model {
7651
7707
  /**
7652
7708
  * @remarks
@@ -7664,6 +7720,7 @@ export declare class DescribeElasticStrengthResponseBodyResourcePools extends $d
7664
7720
  * ecs.c7t.xlarge
7665
7721
  */
7666
7722
  instanceType?: string;
7723
+ inventoryHealth?: DescribeElasticStrengthResponseBodyResourcePoolsInventoryHealth;
7667
7724
  /**
7668
7725
  * @remarks
7669
7726
  * The error message returned when the scaling strength is the weakest.
@@ -7672,6 +7729,7 @@ export declare class DescribeElasticStrengthResponseBodyResourcePools extends $d
7672
7729
  * The instanceType does not support the image in the configuration.
7673
7730
  */
7674
7731
  msg?: string;
7732
+ status?: string;
7675
7733
  /**
7676
7734
  * @remarks
7677
7735
  * The scaling strength of the resource pool.
@@ -8945,6 +9003,20 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
8945
9003
  [key: string]: any;
8946
9004
  });
8947
9005
  }
9006
+ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions extends $dara.Model {
9007
+ privatePoolIds?: string[];
9008
+ strategy?: string;
9009
+ static names(): {
9010
+ [key: string]: string;
9011
+ };
9012
+ static types(): {
9013
+ [key: string]: any;
9014
+ };
9015
+ validate(): void;
9016
+ constructor(map?: {
9017
+ [key: string]: any;
9018
+ });
9019
+ }
8948
9020
  export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurationsSchedulerOptions extends $dara.Model {
8949
9021
  /**
8950
9022
  * @remarks
@@ -9394,6 +9466,7 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
9394
9466
  * rg-aekzn2ou7xo****
9395
9467
  */
9396
9468
  resourceGroupId?: string;
9469
+ resourcePoolOptions?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsResourcePoolOptions;
9397
9470
  /**
9398
9471
  * @remarks
9399
9472
  * The ID of the scaling configuration.
@@ -10559,6 +10632,19 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroupsCapacityOptio
10559
10632
  * 0
10560
10633
  */
10561
10634
  onDemandPercentageAboveBaseCapacity?: number;
10635
+ /**
10636
+ * @remarks
10637
+ * Indicates how prices are compared. Valid values:
10638
+ *
10639
+ * * PricePerUnit: Prices are compared based on the price per instance capacity.
10640
+ *
10641
+ * Capacity is determined by the weights assigned to instance types in the scaling group. If no weight is specified, a default weight of 1 is used, meaning each instance is assigned a capacity of 1.
10642
+ *
10643
+ * * PricePerVCpu: Prices are compared based on the price per vCPU.
10644
+ *
10645
+ * @example
10646
+ * PricePerUnit
10647
+ */
10562
10648
  priceComparisonMode?: string;
10563
10649
  /**
10564
10650
  * @remarks
@@ -11905,7 +11991,7 @@ export declare class DescribeScalingRulesResponseBodyScalingRules extends $dara.
11905
11991
  estimatedInstanceWarmup?: number;
11906
11992
  /**
11907
11993
  * @remarks
11908
- * The Hybrid Cloud Monitoring metrics.
11994
+ * The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
11909
11995
  */
11910
11996
  hybridMetrics?: DescribeScalingRulesResponseBodyScalingRulesHybridMetrics[];
11911
11997
  /**
@@ -14518,6 +14604,20 @@ export declare class ModifyScalingConfigurationRequestNetworkInterfaces extends
14518
14604
  [key: string]: any;
14519
14605
  });
14520
14606
  }
14607
+ export declare class ModifyScalingConfigurationRequestResourcePoolOptions extends $dara.Model {
14608
+ privatePoolIds?: string[];
14609
+ strategy?: string;
14610
+ static names(): {
14611
+ [key: string]: string;
14612
+ };
14613
+ static types(): {
14614
+ [key: string]: any;
14615
+ };
14616
+ validate(): void;
14617
+ constructor(map?: {
14618
+ [key: string]: any;
14619
+ });
14620
+ }
14521
14621
  export declare class ModifyScalingConfigurationRequestSecurityOptions extends $dara.Model {
14522
14622
  /**
14523
14623
  * @remarks
@@ -15310,6 +15410,20 @@ export declare class ModifyScalingConfigurationShrinkRequestNetworkInterfaces ex
15310
15410
  [key: string]: any;
15311
15411
  });
15312
15412
  }
15413
+ export declare class ModifyScalingConfigurationShrinkRequestResourcePoolOptions extends $dara.Model {
15414
+ privatePoolIds?: string[];
15415
+ strategy?: string;
15416
+ static names(): {
15417
+ [key: string]: string;
15418
+ };
15419
+ static types(): {
15420
+ [key: string]: any;
15421
+ };
15422
+ validate(): void;
15423
+ constructor(map?: {
15424
+ [key: string]: any;
15425
+ });
15426
+ }
15313
15427
  export declare class ModifyScalingConfigurationShrinkRequestSecurityOptions extends $dara.Model {
15314
15428
  /**
15315
15429
  * @remarks
@@ -15364,7 +15478,7 @@ export declare class ModifyScalingConfigurationShrinkRequestSpotPriceLimits exte
15364
15478
  export declare class ModifyScalingGroupRequestCapacityOptions extends $dara.Model {
15365
15479
  /**
15366
15480
  * @remarks
15367
- * Specifies whether to automatically create pay-as-you-go instances to meet the requirements on the number of ECS instances in the scaling group when the number of preemptible instances cannot be reached due to reasons such as cost-related issues and insufficient resources. This parameter takes effect only if you set `MultiAZPolicy` in the `CreateScalingGroup` operation to `COST_OPTIMIZED`. Valid values:
15481
+ * Specifies whether to automatically create pay-as-you-go ECS instances to reach the required number of ECS instances when preemptible ECS instances cannot be created due to high prices or insufficient inventory of resources. This parameter takes effect only if you set `MultiAZPolicy` in the `CreateScalingGroup` operation to `COST_OPTIMIZED`. Valid values:
15368
15482
  *
15369
15483
  * * true
15370
15484
  * * false
@@ -15375,7 +15489,7 @@ export declare class ModifyScalingGroupRequestCapacityOptions extends $dara.Mode
15375
15489
  compensateWithOnDemand?: boolean;
15376
15490
  /**
15377
15491
  * @remarks
15378
- * The minimum number of pay-as-you-go instances that must be contained in the scaling group. When the actual number of pay-as-you-go instances in the scaling group drops below the value of this parameter, Auto Scaling preferentially creates pay-as-you-go instances. Valid values: 0 to 1000.
15492
+ * The minimum number of pay-as-you-go instances required in the scaling group. When the number of pay-as-you-go instances drops below the value of this parameter, Auto Scaling preferentially creates pay-as-you-go instances. Valid values: 0 to 1000.
15379
15493
  *
15380
15494
  * If you set `MultiAZPolicy` to `COMPOSABLE`, the default value is 0.
15381
15495
  *
@@ -15385,7 +15499,7 @@ export declare class ModifyScalingGroupRequestCapacityOptions extends $dara.Mode
15385
15499
  onDemandBaseCapacity?: number;
15386
15500
  /**
15387
15501
  * @remarks
15388
- * The percentage of pay-as-you-go instances in the excess instances when the minimum number of pay-as-you-go instances is reached. `OnDemandBaseCapacity` specifies the minimum number of pay-as-you-go instances that must be contained in the scaling group. Valid values: 0 to 100
15502
+ * The percentage of additional pay-as-you-go instances beyond the minimum required by `OnDemandBaseCapacity` in the scaling group. Valid values: 0 to 100
15389
15503
  *
15390
15504
  * If you set `MultiAZPolicy` to `COMPOSABLE`, the default value is 100.
15391
15505
  *
@@ -15393,10 +15507,25 @@ export declare class ModifyScalingGroupRequestCapacityOptions extends $dara.Mode
15393
15507
  * 20
15394
15508
  */
15395
15509
  onDemandPercentageAboveBaseCapacity?: number;
15510
+ /**
15511
+ * @remarks
15512
+ * The price comparison mode. Valid values:
15513
+ *
15514
+ * * PricePerUnit: compares prices based on capacity.
15515
+ *
15516
+ * The capacity of instances in a scaling group is determined by the weights of the instance types used. If no weight is specified, the default weight is 1, which specifies that each instance in the scaling group has a capacity of 1.
15517
+ *
15518
+ * * PricePerVCpu: compares prices based on the price per vCPU.
15519
+ *
15520
+ * Default value: PricePerUnit.
15521
+ *
15522
+ * @example
15523
+ * PricePerUnit
15524
+ */
15396
15525
  priceComparisonMode?: string;
15397
15526
  /**
15398
15527
  * @remarks
15399
- * Specifies whether to replace pay-as-you-go ECS instances with preemptible ECS instances. If you specify `CompensateWithOnDemand`, it may result in a higher percentage of pay-as-you-go instances compared to the value of `OnDemandPercentageAboveBaseCapacity`. In this scenario, Auto Scaling will try to deploy preemptible ECS instances to replace the surplus pay-as-you-go ECS instances. When `CompensateWithOnDemand` is specified, Auto Scaling creates pay-as-you-go ECS instances if there are not enough preemptible instance types. To avoid keeping these pay-as-you-go ECS instances for long periods, Auto Scaling tries to replace them with preemptible instances as soon as enough of preemptible instance types become available. Valid values:
15528
+ * Specifies whether to replace pay-as-you-go instances with preemptible instances. If you specify `CompensateWithOnDemand`, it may result in a higher percentage of pay-as-you-go instances compared to the value of `OnDemandPercentageAboveBaseCapacity`. In this case, Auto Scaling will try to deploy preemptible instances to replace the surplus pay-as-you-go instances. When `CompensateWithOnDemand` is specified, Auto Scaling creates pay-as-you-go instances if there are not enough preemptible instance types. To avoid keeping these pay-as-you-go ECS instances for long periods, Auto Scaling tries to replace them with preemptible instances as soon as enough of preemptible instance types become available. Valid values:
15400
15529
  *
15401
15530
  * * true
15402
15531
  * * false
@@ -18494,6 +18623,7 @@ export declare class CreateScalingConfigurationRequest extends $dara.Model {
18494
18623
  */
18495
18624
  resourceGroupId?: string;
18496
18625
  resourceOwnerAccount?: string;
18626
+ resourcePoolOptions?: CreateScalingConfigurationRequestResourcePoolOptions;
18497
18627
  /**
18498
18628
  * @remarks
18499
18629
  * The name of the scaling configuration. The name must be 2 to 64 characters in length and can contain letters, digits, underscores (_), hyphens (-), and periods (.). The name must start with a letter or a digit.
@@ -19011,6 +19141,7 @@ export declare class CreateScalingConfigurationShrinkRequest extends $dara.Model
19011
19141
  */
19012
19142
  resourceGroupId?: string;
19013
19143
  resourceOwnerAccount?: string;
19144
+ resourcePoolOptions?: CreateScalingConfigurationShrinkRequestResourcePoolOptions;
19014
19145
  /**
19015
19146
  * @remarks
19016
19147
  * The name of the scaling configuration. The name must be 2 to 64 characters in length and can contain letters, digits, underscores (_), hyphens (-), and periods (.). The name must start with a letter or a digit.
@@ -19809,7 +19940,7 @@ export declare class CreateScalingRuleRequest extends $dara.Model {
19809
19940
  estimatedInstanceWarmup?: number;
19810
19941
  /**
19811
19942
  * @remarks
19812
- * The Hybrid Cloud Monitoring metrics.
19943
+ * The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
19813
19944
  */
19814
19945
  hybridMetrics?: CreateScalingRuleRequestHybridMetrics[];
19815
19946
  /**
@@ -20985,7 +21116,7 @@ export declare class DescribeAlarmsRequest extends $dara.Model {
20985
21116
  metricName?: string;
20986
21117
  /**
20987
21118
  * @remarks
20988
- * The type of the metric. Valid values:
21119
+ * The metric type. Valid values:
20989
21120
  *
20990
21121
  * * system: system metrics of CloudMonitor
20991
21122
  * * custom: custom metrics that are reported to CloudMonitor.
@@ -21715,6 +21846,7 @@ export declare class DescribeElasticStrengthRequest extends $dara.Model {
21715
21846
  });
21716
21847
  }
21717
21848
  export declare class DescribeElasticStrengthResponseBody extends $dara.Model {
21849
+ elasticStrength?: string;
21718
21850
  /**
21719
21851
  * @remarks
21720
21852
  * The scaling strength models.
@@ -23411,9 +23543,9 @@ export declare class DescribeScalingGroupsRequest extends $dara.Model {
23411
23543
  ownerId?: number;
23412
23544
  /**
23413
23545
  * @remarks
23414
- * The page number. Pages start from page 1.
23546
+ * The page number. Minimum value: 1.
23415
23547
  *
23416
- * Default value: 1.
23548
+ * Default value: 1
23417
23549
  *
23418
23550
  * @example
23419
23551
  * 1
@@ -27276,6 +27408,7 @@ export declare class ModifyScalingConfigurationRequest extends $dara.Model {
27276
27408
  */
27277
27409
  resourceGroupId?: string;
27278
27410
  resourceOwnerAccount?: string;
27411
+ resourcePoolOptions?: ModifyScalingConfigurationRequestResourcePoolOptions;
27279
27412
  /**
27280
27413
  * @remarks
27281
27414
  * The ID of the scaling configuration that you want to modify.
@@ -27775,6 +27908,7 @@ export declare class ModifyScalingConfigurationShrinkRequest extends $dara.Model
27775
27908
  */
27776
27909
  resourceGroupId?: string;
27777
27910
  resourceOwnerAccount?: string;
27911
+ resourcePoolOptions?: ModifyScalingConfigurationShrinkRequestResourcePoolOptions;
27778
27912
  /**
27779
27913
  * @remarks
27780
27914
  * The ID of the scaling configuration that you want to modify.
@@ -28401,7 +28535,7 @@ export declare class ModifyScalingRuleRequest extends $dara.Model {
28401
28535
  estimatedInstanceWarmup?: number;
28402
28536
  /**
28403
28537
  * @remarks
28404
- * The Hybrid Cloud Monitoring metrics.
28538
+ * The Hybrid Cloud Monitoring metrics. For more information, see [Create a custom target tracking scaling rule](https://help.aliyun.com/document_detail/2852162.html).
28405
28539
  */
28406
28540
  hybridMetrics?: ModifyScalingRuleRequestHybridMetrics[];
28407
28541
  /**
@@ -32197,8 +32331,8 @@ export default class Client extends OpenApi {
32197
32331
  * Modifies a scaling configuration of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the scaling configuration whose information you want to modify. You can modify the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
32198
32332
  *
32199
32333
  * @remarks
32200
- * 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.
32201
- * * You can call the [ModifyEciScalingConfiguration](https://help.aliyun.com/document_detail/459378.html) operation to check the modification result.
32334
+ * To rename a scaling configuration in a scaling group, ensure the new name is unique within that group.
32335
+ * * You can call the [DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html) operation to check the modification result.
32202
32336
  *
32203
32337
  * @param request - ModifyEciScalingConfigurationRequest
32204
32338
  * @param runtime - runtime options for this request RuntimeOptions
@@ -32209,8 +32343,8 @@ export default class Client extends OpenApi {
32209
32343
  * Modifies a scaling configuration of the Elastic Container Instance type. When you call the ModifyEciScalingConfiguration operation, you can specify the ID, name, and instance properties of the scaling configuration whose information you want to modify. You can modify the instance restart policy, instance bidding policy, and elastic IP address (EIP) bandwidth.
32210
32344
  *
32211
32345
  * @remarks
32212
- * 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.
32213
- * * You can call the [ModifyEciScalingConfiguration](https://help.aliyun.com/document_detail/459378.html) operation to check the modification result.
32346
+ * To rename a scaling configuration in a scaling group, ensure the new name is unique within that group.
32347
+ * * You can call the [DescribeEciScalingConfigurations](https://help.aliyun.com/document_detail/459374.html) operation to check the modification result.
32214
32348
  *
32215
32349
  * @param request - ModifyEciScalingConfigurationRequest
32216
32350
  * @returns ModifyEciScalingConfigurationResponse