@alicloud/ess20220222 1.5.0 → 1.5.1
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 +189 -160
- package/dist/client.js +195 -160
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +199 -160
package/dist/client.d.ts
CHANGED
|
@@ -3581,6 +3581,7 @@ export declare class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
3581
3581
|
override?: boolean;
|
|
3582
3582
|
ownerAccount?: string;
|
|
3583
3583
|
ownerId?: number;
|
|
3584
|
+
password?: string;
|
|
3584
3585
|
passwordInherit?: boolean;
|
|
3585
3586
|
ramRoleName?: string;
|
|
3586
3587
|
resourceGroupId?: string;
|
|
@@ -3647,6 +3648,7 @@ export declare class ModifyScalingConfigurationShrinkRequest extends $tea.Model
|
|
|
3647
3648
|
override?: boolean;
|
|
3648
3649
|
ownerAccount?: string;
|
|
3649
3650
|
ownerId?: number;
|
|
3651
|
+
password?: string;
|
|
3650
3652
|
passwordInherit?: boolean;
|
|
3651
3653
|
ramRoleName?: string;
|
|
3652
3654
|
resourceGroupId?: string;
|
|
@@ -6662,6 +6664,7 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
|
|
|
6662
6664
|
memory?: number;
|
|
6663
6665
|
networkInterfaces?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetworkInterfaces[];
|
|
6664
6666
|
passwordInherit?: boolean;
|
|
6667
|
+
passwordSetted?: boolean;
|
|
6665
6668
|
privatePoolOptions_id?: string;
|
|
6666
6669
|
privatePoolOptions_matchCriteria?: string;
|
|
6667
6670
|
ramRoleName?: string;
|
|
@@ -8307,10 +8310,11 @@ export default class Client extends OpenApi {
|
|
|
8307
8310
|
[key: string]: string;
|
|
8308
8311
|
}, endpoint: string): string;
|
|
8309
8312
|
/**
|
|
8310
|
-
* @summary
|
|
8313
|
+
* @summary Applies a scaling configuration of the Elastic Container Instance type. If you want to create and manage scaling configurations of the Elastic Container Instance type by using a configuration file, you can call the ApplyEciScalingConfiguration operation.
|
|
8311
8314
|
*
|
|
8312
|
-
* @description
|
|
8313
|
-
* If you
|
|
8315
|
+
* @description Before you use a YAML configuration file to manage scaling configurations of the Elastic Container Instance type, you must take note of the following items:
|
|
8316
|
+
* * If you include a scaling configuration ID within your request, the system updates the scaling configuration based on the YAML configuration file.
|
|
8317
|
+
* * If you do not include a scaling configuration ID within your request, the system creates a scaling configuration of the Elastic Container Instance type based on the YAML configuration file.
|
|
8314
8318
|
*
|
|
8315
8319
|
* @param request ApplyEciScalingConfigurationRequest
|
|
8316
8320
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8318,10 +8322,11 @@ export default class Client extends OpenApi {
|
|
|
8318
8322
|
*/
|
|
8319
8323
|
applyEciScalingConfigurationWithOptions(request: ApplyEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ApplyEciScalingConfigurationResponse>;
|
|
8320
8324
|
/**
|
|
8321
|
-
* @summary
|
|
8325
|
+
* @summary Applies a scaling configuration of the Elastic Container Instance type. If you want to create and manage scaling configurations of the Elastic Container Instance type by using a configuration file, you can call the ApplyEciScalingConfiguration operation.
|
|
8322
8326
|
*
|
|
8323
|
-
* @description
|
|
8324
|
-
* If you
|
|
8327
|
+
* @description Before you use a YAML configuration file to manage scaling configurations of the Elastic Container Instance type, you must take note of the following items:
|
|
8328
|
+
* * If you include a scaling configuration ID within your request, the system updates the scaling configuration based on the YAML configuration file.
|
|
8329
|
+
* * If you do not include a scaling configuration ID within your request, the system creates a scaling configuration of the Elastic Container Instance type based on the YAML configuration file.
|
|
8325
8330
|
*
|
|
8326
8331
|
* @param request ApplyEciScalingConfigurationRequest
|
|
8327
8332
|
* @return ApplyEciScalingConfigurationResponse
|
|
@@ -8461,7 +8466,7 @@ export default class Client extends OpenApi {
|
|
|
8461
8466
|
*/
|
|
8462
8467
|
attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse>;
|
|
8463
8468
|
/**
|
|
8464
|
-
* @summary Adds instances to a scaling group. You can call the AttachInstances operation to add
|
|
8469
|
+
* @summary Adds instances to a scaling group to provide services or restarts Elastic Compute Service (ECS) instances stopped in Economical Mode to provide services. You can call the AttachInstances operation to add ECS instances, elastic container instances, or third-party instances managed by Alibaba Cloud to your scaling group to provide services. You can also call this operation to restart ECS instances stopped in Economical Mode in your scaling group to provide services.
|
|
8465
8470
|
*
|
|
8466
8471
|
* @description Before you call this operation, take note of the following items:
|
|
8467
8472
|
* * The scaling group is in the Active state.
|
|
@@ -8484,7 +8489,7 @@ export default class Client extends OpenApi {
|
|
|
8484
8489
|
*/
|
|
8485
8490
|
attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse>;
|
|
8486
8491
|
/**
|
|
8487
|
-
* @summary Adds instances to a scaling group. You can call the AttachInstances operation to add
|
|
8492
|
+
* @summary Adds instances to a scaling group to provide services or restarts Elastic Compute Service (ECS) instances stopped in Economical Mode to provide services. You can call the AttachInstances operation to add ECS instances, elastic container instances, or third-party instances managed by Alibaba Cloud to your scaling group to provide services. You can also call this operation to restart ECS instances stopped in Economical Mode in your scaling group to provide services.
|
|
8488
8493
|
*
|
|
8489
8494
|
* @description Before you call this operation, take note of the following items:
|
|
8490
8495
|
* * The scaling group is in the Active state.
|
|
@@ -8687,7 +8692,7 @@ export default class Client extends OpenApi {
|
|
|
8687
8692
|
*/
|
|
8688
8693
|
createEciScalingConfiguration(request: CreateEciScalingConfigurationRequest): Promise<CreateEciScalingConfigurationResponse>;
|
|
8689
8694
|
/**
|
|
8690
|
-
* @summary Creates one or more lifecycle hooks.
|
|
8695
|
+
* @summary Creates one or more lifecycle hooks in a scaling group. A lifecycle hook allows you to execute custom actions like sending notifications or automating script execution at critical stages (such as instance startup and termination) in the lifecycle of an instance. Implementing the lifecycle hook feature allows for finer control and management of instances. For example, you can verify configurations, set up custom tasks, or back up data on your instances when lifecycle hooks take effect, thus enhancing the flexibility and reliability of application deployment.
|
|
8691
8696
|
*
|
|
8692
8697
|
* @description You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
|
|
8693
8698
|
* During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
|
|
@@ -8700,7 +8705,7 @@ export default class Client extends OpenApi {
|
|
|
8700
8705
|
*/
|
|
8701
8706
|
createLifecycleHookWithOptions(request: CreateLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<CreateLifecycleHookResponse>;
|
|
8702
8707
|
/**
|
|
8703
|
-
* @summary Creates one or more lifecycle hooks.
|
|
8708
|
+
* @summary Creates one or more lifecycle hooks in a scaling group. A lifecycle hook allows you to execute custom actions like sending notifications or automating script execution at critical stages (such as instance startup and termination) in the lifecycle of an instance. Implementing the lifecycle hook feature allows for finer control and management of instances. For example, you can verify configurations, set up custom tasks, or back up data on your instances when lifecycle hooks take effect, thus enhancing the flexibility and reliability of application deployment.
|
|
8704
8709
|
*
|
|
8705
8710
|
* @description You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
|
|
8706
8711
|
* During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
|
|
@@ -8764,27 +8769,27 @@ export default class Client extends OpenApi {
|
|
|
8764
8769
|
*/
|
|
8765
8770
|
createScalingConfiguration(request: CreateScalingConfigurationRequest): Promise<CreateScalingConfigurationResponse>;
|
|
8766
8771
|
/**
|
|
8767
|
-
* @summary Creates a scaling group.
|
|
8768
|
-
*
|
|
8769
|
-
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used
|
|
8770
|
-
* You can create only a limited number of scaling groups in a region.
|
|
8771
|
-
* A scaling group does not immediately take effect after you create the scaling group. You
|
|
8772
|
-
*
|
|
8773
|
-
* If you
|
|
8774
|
-
* * Default server group:
|
|
8775
|
-
* * vServer group: If you want to forward requests to backend servers
|
|
8776
|
-
* >
|
|
8777
|
-
* The default weight of
|
|
8778
|
-
* * The CLB instance
|
|
8779
|
-
* *
|
|
8780
|
-
* If you
|
|
8781
|
-
* If you
|
|
8782
|
-
* * The ApsaraDB RDS instance
|
|
8783
|
-
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance
|
|
8784
|
-
* If you set
|
|
8785
|
-
* *
|
|
8786
|
-
* * If you do not specify
|
|
8787
|
-
* If you set
|
|
8772
|
+
* @summary Creates a scaling group. You can call the CreateScalingGroup operation to automate the adjustment of computing power of a specific type based on your business requirements and scaling polices.
|
|
8773
|
+
*
|
|
8774
|
+
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used for similar purposes.
|
|
8775
|
+
* You can create only a limited number of scaling groups in a region. To check the quota of the scaling groups, go to Quota Center.
|
|
8776
|
+
* A scaling group does not immediately take effect after you create the scaling group. You can call the [EnableScalingGroup](https://help.aliyun.com/document_detail/25939.html) operation to enable a scaling group. You can trigger scaling events and execute scaling rules only in scaling groups that are in the Enabled state.
|
|
8777
|
+
* If you want to attach a Classic Load Balancer (CLB, formerly known as SLB) instance and an ApsaraDB RDS instance to the scaling group that you want to create, the scaling group, the CLB instance, and the ApsaraDB RDS instance must reside in the same region. For more information, see [Regions and zones](https://help.aliyun.com/document_detail/40654.html).
|
|
8778
|
+
* If you attach a CLB instance to the scaling group that you want to create, Auto Scaling will automatically add the ECS instances in the scaling group to the backend server groups of the CLB instance. You can specify the following types of server groups to add ECS instances:
|
|
8779
|
+
* * Default server group: ECS instances in this group process frontend requests. If no listeners are configured for vServer groups or primary/secondary server groups, the frontend requests are forwarded to the ECS instances in the default server group.
|
|
8780
|
+
* * vServer group: If you want to forward different requests to different backend servers, or you want to forward requests based on domain names and URLs, you can specify vServer groups.
|
|
8781
|
+
* > If you specify both the default server group and multiple server groups simultaneously, Auto Scaling will add the ECS instances in your scaling group to these server groups concurrently.
|
|
8782
|
+
* The default weight of each ECS instance as a backend server is 50. If you want to attach a CLB instance to the scaling group that you want to create, make sure that the CLB instance meets the following requirements:
|
|
8783
|
+
* * The CLB instance is in the Active state. You can call the [DescribeLoadBalancers](https://help.aliyun.com/document_detail/2401696.html) operation to query the status of CLB instances.
|
|
8784
|
+
* * Health check must be enabled on all listener ports configured for the CLB instance. Otherwise, the scaling group will fail to be created.
|
|
8785
|
+
* If you attach Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups to the scaling group that you want to create, Auto Scaling will add the ECS instances in your scaling group to the ALB or NLB server groups to process the access requests forwarded by the corresponding ALB or NLB instances. You can attach multiple ALB or NLB server groups to a scaling group. Make sure that the ALB or NLB server groups belong to the same virtual private cloud (VPC). For more information, see [AttachAlbServerGroups](https://help.aliyun.com/document_detail/266800.html) or [AttachServerGroups](https://help.aliyun.com/document_detail/600559.html).
|
|
8786
|
+
* If you attach an ApsaraDB RDS instance to the scaling group that you want to create, Auto Scaling will automatically add the private IP addresses of the ECS instances in your scaling group to the IP address whitelist of the ApsaraDB RDS instance. Before you attach an ApsaraDB RDS instance to your scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
8787
|
+
* * The ApsaraDB RDS instance is in the Running state. You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/610396.html) state to query the status of ApsaraDB RDS instances.
|
|
8788
|
+
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance does not reach its upper limit. For more information, see [Configure a whitelist](https://help.aliyun.com/document_detail/43185.html).
|
|
8789
|
+
* If you set MultiAZPolicy for the scaling group that you want to create to COST_OPTIMIZED, the following rules apply:
|
|
8790
|
+
* * If you use OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools to specify the instance allocation mode under the cost optimization policy, Auto Scaling will prioritize the implementation of the specified instance allocation mode during scale-out events.
|
|
8791
|
+
* * If you do not specify OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools, Auto Scaling will preferentially create instances of the lowest-priced instance type based on the cost optimization policy.
|
|
8792
|
+
* If you set `Tags.Propagate` to true, the following rules will apply:
|
|
8788
8793
|
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
8789
8794
|
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
8790
8795
|
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
@@ -8795,27 +8800,27 @@ export default class Client extends OpenApi {
|
|
|
8795
8800
|
*/
|
|
8796
8801
|
createScalingGroupWithOptions(request: CreateScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingGroupResponse>;
|
|
8797
8802
|
/**
|
|
8798
|
-
* @summary Creates a scaling group.
|
|
8799
|
-
*
|
|
8800
|
-
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used
|
|
8801
|
-
* You can create only a limited number of scaling groups in a region.
|
|
8802
|
-
* A scaling group does not immediately take effect after you create the scaling group. You
|
|
8803
|
-
*
|
|
8804
|
-
* If you
|
|
8805
|
-
* * Default server group:
|
|
8806
|
-
* * vServer group: If you want to forward requests to backend servers
|
|
8807
|
-
* >
|
|
8808
|
-
* The default weight of
|
|
8809
|
-
* * The CLB instance
|
|
8810
|
-
* *
|
|
8811
|
-
* If you
|
|
8812
|
-
* If you
|
|
8813
|
-
* * The ApsaraDB RDS instance
|
|
8814
|
-
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance
|
|
8815
|
-
* If you set
|
|
8816
|
-
* *
|
|
8817
|
-
* * If you do not specify
|
|
8818
|
-
* If you set
|
|
8803
|
+
* @summary Creates a scaling group. You can call the CreateScalingGroup operation to automate the adjustment of computing power of a specific type based on your business requirements and scaling polices.
|
|
8804
|
+
*
|
|
8805
|
+
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used for similar purposes.
|
|
8806
|
+
* You can create only a limited number of scaling groups in a region. To check the quota of the scaling groups, go to Quota Center.
|
|
8807
|
+
* A scaling group does not immediately take effect after you create the scaling group. You can call the [EnableScalingGroup](https://help.aliyun.com/document_detail/25939.html) operation to enable a scaling group. You can trigger scaling events and execute scaling rules only in scaling groups that are in the Enabled state.
|
|
8808
|
+
* If you want to attach a Classic Load Balancer (CLB, formerly known as SLB) instance and an ApsaraDB RDS instance to the scaling group that you want to create, the scaling group, the CLB instance, and the ApsaraDB RDS instance must reside in the same region. For more information, see [Regions and zones](https://help.aliyun.com/document_detail/40654.html).
|
|
8809
|
+
* If you attach a CLB instance to the scaling group that you want to create, Auto Scaling will automatically add the ECS instances in the scaling group to the backend server groups of the CLB instance. You can specify the following types of server groups to add ECS instances:
|
|
8810
|
+
* * Default server group: ECS instances in this group process frontend requests. If no listeners are configured for vServer groups or primary/secondary server groups, the frontend requests are forwarded to the ECS instances in the default server group.
|
|
8811
|
+
* * vServer group: If you want to forward different requests to different backend servers, or you want to forward requests based on domain names and URLs, you can specify vServer groups.
|
|
8812
|
+
* > If you specify both the default server group and multiple server groups simultaneously, Auto Scaling will add the ECS instances in your scaling group to these server groups concurrently.
|
|
8813
|
+
* The default weight of each ECS instance as a backend server is 50. If you want to attach a CLB instance to the scaling group that you want to create, make sure that the CLB instance meets the following requirements:
|
|
8814
|
+
* * The CLB instance is in the Active state. You can call the [DescribeLoadBalancers](https://help.aliyun.com/document_detail/2401696.html) operation to query the status of CLB instances.
|
|
8815
|
+
* * Health check must be enabled on all listener ports configured for the CLB instance. Otherwise, the scaling group will fail to be created.
|
|
8816
|
+
* If you attach Application Load Balancer (ALB) or Network Load Balancer (NLB) server groups to the scaling group that you want to create, Auto Scaling will add the ECS instances in your scaling group to the ALB or NLB server groups to process the access requests forwarded by the corresponding ALB or NLB instances. You can attach multiple ALB or NLB server groups to a scaling group. Make sure that the ALB or NLB server groups belong to the same virtual private cloud (VPC). For more information, see [AttachAlbServerGroups](https://help.aliyun.com/document_detail/266800.html) or [AttachServerGroups](https://help.aliyun.com/document_detail/600559.html).
|
|
8817
|
+
* If you attach an ApsaraDB RDS instance to the scaling group that you want to create, Auto Scaling will automatically add the private IP addresses of the ECS instances in your scaling group to the IP address whitelist of the ApsaraDB RDS instance. Before you attach an ApsaraDB RDS instance to your scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
8818
|
+
* * The ApsaraDB RDS instance is in the Running state. You can call the [DescribeDBInstances](https://help.aliyun.com/document_detail/610396.html) state to query the status of ApsaraDB RDS instances.
|
|
8819
|
+
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance does not reach its upper limit. For more information, see [Configure a whitelist](https://help.aliyun.com/document_detail/43185.html).
|
|
8820
|
+
* If you set MultiAZPolicy for the scaling group that you want to create to COST_OPTIMIZED, the following rules apply:
|
|
8821
|
+
* * If you use OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools to specify the instance allocation mode under the cost optimization policy, Auto Scaling will prioritize the implementation of the specified instance allocation mode during scale-out events.
|
|
8822
|
+
* * If you do not specify OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools, Auto Scaling will preferentially create instances of the lowest-priced instance type based on the cost optimization policy.
|
|
8823
|
+
* If you set `Tags.Propagate` to true, the following rules will apply:
|
|
8819
8824
|
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
8820
8825
|
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
8821
8826
|
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
@@ -8825,21 +8830,20 @@ export default class Client extends OpenApi {
|
|
|
8825
8830
|
*/
|
|
8826
8831
|
createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse>;
|
|
8827
8832
|
/**
|
|
8828
|
-
* @summary Creates a scaling rule.
|
|
8833
|
+
* @summary Creates a scaling rule. The purpose of a scaling rule varies based on its type. You can use a scaling rule to trigger a scaling activity or adjust the boundary values for a scaling group. You can call the CreateScalingRule operation to create different types of scaling rules based on your business requirements. For example, if your business requires only automatic adjustment of the boundary values for your scaling group, you can call this operation to create a predictive scaling rule.
|
|
8829
8834
|
*
|
|
8830
|
-
* @description
|
|
8831
|
-
*
|
|
8832
|
-
* *
|
|
8833
|
-
* * 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. The number of ECS instances that is specified in the scaling rule remains unchanged.
|
|
8835
|
+
* @description A scaling rule defines the specific scaling action. For example, you can use a scaling rule to define N instances to add or remove. If the execution of a scaling rule causes the total number of Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to drop below the value of MinSize or to exceed the value of MaxSize, Auto Scaling adjusts the number of instances to add or remove, which ensures that the total number of instances stays within the valid range. Take note that Auto Scaling does not adjust the number of instances that you defined in the scaling rule. Examples:
|
|
8836
|
+
* * The maximum number of instances (MaxSize) that can be contained in a scaling group is 3 and the current number of instances (Total Capacity) in the scaling group is 2. In this example, the Add3 scaling rule is created to add three ECS instances to the scaling group. However, after you execute Add3, Auto Scaling adds only one ECS instance to the scaling group. In addition, the number of ECS instances to add in the Add3 scaling rule remains unchanged.
|
|
8837
|
+
* * The minimum number of instances (MinSize) that must be contained in a scaling group is 2 and the current number of instances (Total Capacity) is 3. In this example, the Remove5 scaling rule is created to remove five ECS instances from the scaling group. However, after you execute Remove5, Auto Scaling only removes one ECS instance from the scaling group. In addition, the number of ECS instances to remove in the Remove5 scaling rule remains unchanged.
|
|
8834
8838
|
* Before you call this operation, take note of the following items:
|
|
8835
|
-
* * If you set
|
|
8836
|
-
* * If you set
|
|
8837
|
-
* * If you set
|
|
8838
|
-
* * If
|
|
8839
|
-
* * You can create only a limited number of scaling rules for a scaling group. For more information, see
|
|
8840
|
-
* * The unique identifier
|
|
8841
|
-
* * ExecuteScalingRule: You can call this operation to manually execute a
|
|
8842
|
-
* * CreateScheduledTask: You can call this operation to create a scheduled task for a
|
|
8839
|
+
* * If you set AdjustmentType to TotalCapacity, the total number of ECS instances or elastic container instances in your scaling group will be adjusted to a specified number when the scaling rule that you create by calling this operation is executed. You must set AdjustmentValue to an integer that is greater than 0.
|
|
8840
|
+
* * If you set AdjustmentType to QuantityChangeInCapacity or PercentChangeInCapacity, a positive value of AdjustmentValue specifies that a specific number of ECS instances or elastic container instances will be added to your scaling group, and a negative value of AdjustmentValue specifies that a specific number of ECS instances or elastic container instances will be removed from the scaling group.
|
|
8841
|
+
* * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling calculates the number of ECS instances or elastic container instances to add or remove by multiplying the current capacity of the scaling group (Total Capacity) by AdjustmentValue divided by 100, rounding off the result to determine the final adjustment count.
|
|
8842
|
+
* * If you specify a cooldown period for a scaling rule, the cooldown period of the scaling rule takes effect after you execute the scaling rule. If you do not specify a cooldown period for a scaling rule, the value of DefaultCooldown of the scaling group takes effect after you execute the scaling rule.
|
|
8843
|
+
* * You can create only a limited number of scaling rules for a scaling group. For more information, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
8844
|
+
* * The following API operations may use the unique identifier of a scaling rule (ScalingRuleAri) that is returned after you call the CreateScalingRule operation:
|
|
8845
|
+
* * ExecuteScalingRule: You can call this operation to manually execute a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
|
|
8846
|
+
* * CreateScheduledTask: You can call this operation to create a scheduled task for a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule for which you want to create a scheduled task.
|
|
8843
8847
|
*
|
|
8844
8848
|
* @param request CreateScalingRuleRequest
|
|
8845
8849
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8847,21 +8851,20 @@ export default class Client extends OpenApi {
|
|
|
8847
8851
|
*/
|
|
8848
8852
|
createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse>;
|
|
8849
8853
|
/**
|
|
8850
|
-
* @summary Creates a scaling rule.
|
|
8854
|
+
* @summary Creates a scaling rule. The purpose of a scaling rule varies based on its type. You can use a scaling rule to trigger a scaling activity or adjust the boundary values for a scaling group. You can call the CreateScalingRule operation to create different types of scaling rules based on your business requirements. For example, if your business requires only automatic adjustment of the boundary values for your scaling group, you can call this operation to create a predictive scaling rule.
|
|
8851
8855
|
*
|
|
8852
|
-
* @description
|
|
8853
|
-
*
|
|
8854
|
-
* *
|
|
8855
|
-
* * 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. The number of ECS instances that is specified in the scaling rule remains unchanged.
|
|
8856
|
+
* @description A scaling rule defines the specific scaling action. For example, you can use a scaling rule to define N instances to add or remove. If the execution of a scaling rule causes the total number of Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to drop below the value of MinSize or to exceed the value of MaxSize, Auto Scaling adjusts the number of instances to add or remove, which ensures that the total number of instances stays within the valid range. Take note that Auto Scaling does not adjust the number of instances that you defined in the scaling rule. Examples:
|
|
8857
|
+
* * The maximum number of instances (MaxSize) that can be contained in a scaling group is 3 and the current number of instances (Total Capacity) in the scaling group is 2. In this example, the Add3 scaling rule is created to add three ECS instances to the scaling group. However, after you execute Add3, Auto Scaling adds only one ECS instance to the scaling group. In addition, the number of ECS instances to add in the Add3 scaling rule remains unchanged.
|
|
8858
|
+
* * The minimum number of instances (MinSize) that must be contained in a scaling group is 2 and the current number of instances (Total Capacity) is 3. In this example, the Remove5 scaling rule is created to remove five ECS instances from the scaling group. However, after you execute Remove5, Auto Scaling only removes one ECS instance from the scaling group. In addition, the number of ECS instances to remove in the Remove5 scaling rule remains unchanged.
|
|
8856
8859
|
* Before you call this operation, take note of the following items:
|
|
8857
|
-
* * If you set
|
|
8858
|
-
* * If you set
|
|
8859
|
-
* * If you set
|
|
8860
|
-
* * If
|
|
8861
|
-
* * You can create only a limited number of scaling rules for a scaling group. For more information, see
|
|
8862
|
-
* * The unique identifier
|
|
8863
|
-
* * ExecuteScalingRule: You can call this operation to manually execute a
|
|
8864
|
-
* * CreateScheduledTask: You can call this operation to create a scheduled task for a
|
|
8860
|
+
* * If you set AdjustmentType to TotalCapacity, the total number of ECS instances or elastic container instances in your scaling group will be adjusted to a specified number when the scaling rule that you create by calling this operation is executed. You must set AdjustmentValue to an integer that is greater than 0.
|
|
8861
|
+
* * If you set AdjustmentType to QuantityChangeInCapacity or PercentChangeInCapacity, a positive value of AdjustmentValue specifies that a specific number of ECS instances or elastic container instances will be added to your scaling group, and a negative value of AdjustmentValue specifies that a specific number of ECS instances or elastic container instances will be removed from the scaling group.
|
|
8862
|
+
* * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling calculates the number of ECS instances or elastic container instances to add or remove by multiplying the current capacity of the scaling group (Total Capacity) by AdjustmentValue divided by 100, rounding off the result to determine the final adjustment count.
|
|
8863
|
+
* * If you specify a cooldown period for a scaling rule, the cooldown period of the scaling rule takes effect after you execute the scaling rule. If you do not specify a cooldown period for a scaling rule, the value of DefaultCooldown of the scaling group takes effect after you execute the scaling rule.
|
|
8864
|
+
* * You can create only a limited number of scaling rules for a scaling group. For more information, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
8865
|
+
* * The following API operations may use the unique identifier of a scaling rule (ScalingRuleAri) that is returned after you call the CreateScalingRule operation:
|
|
8866
|
+
* * ExecuteScalingRule: You can call this operation to manually execute a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
|
|
8867
|
+
* * CreateScheduledTask: You can call this operation to create a scheduled task for a scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule for which you want to create a scheduled task.
|
|
8865
8868
|
*
|
|
8866
8869
|
* @param request CreateScalingRuleRequest
|
|
8867
8870
|
* @return CreateScalingRuleResponse
|
|
@@ -8870,12 +8873,15 @@ export default class Client extends OpenApi {
|
|
|
8870
8873
|
/**
|
|
8871
8874
|
* @summary Creates a scheduled task. A scheduled task is a type of scaling task that enables automatic execution of a specific scaling rule at a specified point in time. You can call the CreateScheduledTask operation to create a scheduled task to implement automatic scaling of computing resources. This ensures your business continuity and minimizes resource costs.
|
|
8872
8875
|
*
|
|
8873
|
-
* @description * If a scheduled task fails to
|
|
8874
|
-
* * If
|
|
8875
|
-
*
|
|
8876
|
-
* *
|
|
8877
|
-
*
|
|
8878
|
-
*
|
|
8876
|
+
* @description * If the scaling rule of a scheduled task fails to be executed due to an ongoing scaling activity in the scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the time window specified by `LaunchExpirationTime`. If the scheduled task still fails after the specified time window ends, the task is automatically skipped.
|
|
8877
|
+
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
8878
|
+
* * Scaling groups with **Expected Number of Instances** configured: The scaling activities incurred by the scheduled tasks are parallel scaling activities. In a proximate time window, Auto Scaling can trigger several scheduled tasks and then execute multiple parallel scaling activities at the same time.
|
|
8879
|
+
* * Scaling groups with **Expected Number of Instances** not configured: The scaling activity incurred by the earliest scheduled task is executed. Considering that a scaling group allows for no more than one ongoing scaling activity simultaneously, other scheduled tasks will spontaneously invoke retries within the time window specified by `LaunchExpirationTime`. Upon completion of the first scheduled task, any retries invoked by other tasks within the time window specified by `LaunchExpirationTime` lead to continuous enforcement of the scaling rule, with each iteration generating a distinct scaling activity.
|
|
8880
|
+
* * You can use one of the following methods to specify the scaling mode:
|
|
8881
|
+
* * ScheduledAction: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
8882
|
+
* * ScalingGroupId: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you create the scheduled task.
|
|
8883
|
+
* **
|
|
8884
|
+
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
8879
8885
|
*
|
|
8880
8886
|
* @param request CreateScheduledTaskRequest
|
|
8881
8887
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8885,12 +8891,15 @@ export default class Client extends OpenApi {
|
|
|
8885
8891
|
/**
|
|
8886
8892
|
* @summary Creates a scheduled task. A scheduled task is a type of scaling task that enables automatic execution of a specific scaling rule at a specified point in time. You can call the CreateScheduledTask operation to create a scheduled task to implement automatic scaling of computing resources. This ensures your business continuity and minimizes resource costs.
|
|
8887
8893
|
*
|
|
8888
|
-
* @description * If a scheduled task fails to
|
|
8889
|
-
* * If
|
|
8890
|
-
*
|
|
8891
|
-
* *
|
|
8892
|
-
*
|
|
8893
|
-
*
|
|
8894
|
+
* @description * If the scaling rule of a scheduled task fails to be executed due to an ongoing scaling activity in the scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the time window specified by `LaunchExpirationTime`. If the scheduled task still fails after the specified time window ends, the task is automatically skipped.
|
|
8895
|
+
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
8896
|
+
* * Scaling groups with **Expected Number of Instances** configured: The scaling activities incurred by the scheduled tasks are parallel scaling activities. In a proximate time window, Auto Scaling can trigger several scheduled tasks and then execute multiple parallel scaling activities at the same time.
|
|
8897
|
+
* * Scaling groups with **Expected Number of Instances** not configured: The scaling activity incurred by the earliest scheduled task is executed. Considering that a scaling group allows for no more than one ongoing scaling activity simultaneously, other scheduled tasks will spontaneously invoke retries within the time window specified by `LaunchExpirationTime`. Upon completion of the first scheduled task, any retries invoked by other tasks within the time window specified by `LaunchExpirationTime` lead to continuous enforcement of the scaling rule, with each iteration generating a distinct scaling activity.
|
|
8898
|
+
* * You can use one of the following methods to specify the scaling mode:
|
|
8899
|
+
* * ScheduledAction: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
8900
|
+
* * ScalingGroupId: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you create the scheduled task.
|
|
8901
|
+
* **
|
|
8902
|
+
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
8894
8903
|
*
|
|
8895
8904
|
* @param request CreateScheduledTaskRequest
|
|
8896
8905
|
* @return CreateScheduledTaskResponse
|
|
@@ -8954,11 +8963,11 @@ export default class Client extends OpenApi {
|
|
|
8954
8963
|
*/
|
|
8955
8964
|
deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse>;
|
|
8956
8965
|
/**
|
|
8957
|
-
* @summary Deletes a lifecycle hook.
|
|
8966
|
+
* @summary Deletes a lifecycle hook. If you no longer require a lifecycle hook, you can call the DeleteLifecycleHook operation to delete it, which frees up the lifecycle hook quota.
|
|
8958
8967
|
*
|
|
8959
|
-
* @description If you delete
|
|
8960
|
-
* *
|
|
8961
|
-
* *
|
|
8968
|
+
* @description If you delete an effective lifecycle hook before its timeout period ends, the instances on which the lifecycle hook takes effect exits the Pending state ahead of schedule. You can use the following methods to delete a lifecycle hook:
|
|
8969
|
+
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
8970
|
+
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
8962
8971
|
*
|
|
8963
8972
|
* @param request DeleteLifecycleHookRequest
|
|
8964
8973
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8966,11 +8975,11 @@ export default class Client extends OpenApi {
|
|
|
8966
8975
|
*/
|
|
8967
8976
|
deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse>;
|
|
8968
8977
|
/**
|
|
8969
|
-
* @summary Deletes a lifecycle hook.
|
|
8978
|
+
* @summary Deletes a lifecycle hook. If you no longer require a lifecycle hook, you can call the DeleteLifecycleHook operation to delete it, which frees up the lifecycle hook quota.
|
|
8970
8979
|
*
|
|
8971
|
-
* @description If you delete
|
|
8972
|
-
* *
|
|
8973
|
-
* *
|
|
8980
|
+
* @description If you delete an effective lifecycle hook before its timeout period ends, the instances on which the lifecycle hook takes effect exits the Pending state ahead of schedule. You can use the following methods to delete a lifecycle hook:
|
|
8981
|
+
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
8982
|
+
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
8974
8983
|
*
|
|
8975
8984
|
* @param request DeleteLifecycleHookRequest
|
|
8976
8985
|
* @return DeleteLifecycleHookResponse
|
|
@@ -9097,18 +9106,22 @@ export default class Client extends OpenApi {
|
|
|
9097
9106
|
*/
|
|
9098
9107
|
describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse>;
|
|
9099
9108
|
/**
|
|
9109
|
+
* @summary Queries the status of scaling activities that prompt text message or email notifications.
|
|
9110
|
+
*
|
|
9100
9111
|
* @param request DescribeAlertConfigurationRequest
|
|
9101
9112
|
* @param runtime runtime options for this request RuntimeOptions
|
|
9102
9113
|
* @return DescribeAlertConfigurationResponse
|
|
9103
9114
|
*/
|
|
9104
9115
|
describeAlertConfigurationWithOptions(request: DescribeAlertConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAlertConfigurationResponse>;
|
|
9105
9116
|
/**
|
|
9117
|
+
* @summary Queries the status of scaling activities that prompt text message or email notifications.
|
|
9118
|
+
*
|
|
9106
9119
|
* @param request DescribeAlertConfigurationRequest
|
|
9107
9120
|
* @return DescribeAlertConfigurationResponse
|
|
9108
9121
|
*/
|
|
9109
9122
|
describeAlertConfiguration(request: DescribeAlertConfigurationRequest): Promise<DescribeAlertConfigurationResponse>;
|
|
9110
9123
|
/**
|
|
9111
|
-
* @summary Queries
|
|
9124
|
+
* @summary Queries the details of a scaling configuration. You can query a scaling configuration by its ID to learn about its details such as the temporary storage size, number of IPv6 addresses, and bandwidth of the elastic IP address (EIP). The scaling configuration details can be obtained as a YAML file.
|
|
9112
9125
|
*
|
|
9113
9126
|
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
9114
9127
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9116,7 +9129,7 @@ export default class Client extends OpenApi {
|
|
|
9116
9129
|
*/
|
|
9117
9130
|
describeEciScalingConfigurationDetailWithOptions(request: DescribeEciScalingConfigurationDetailRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationDetailResponse>;
|
|
9118
9131
|
/**
|
|
9119
|
-
* @summary Queries
|
|
9132
|
+
* @summary Queries the details of a scaling configuration. You can query a scaling configuration by its ID to learn about its details such as the temporary storage size, number of IPv6 addresses, and bandwidth of the elastic IP address (EIP). The scaling configuration details can be obtained as a YAML file.
|
|
9120
9133
|
*
|
|
9121
9134
|
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
9122
9135
|
* @return DescribeEciScalingConfigurationDetailResponse
|
|
@@ -9138,7 +9151,7 @@ export default class Client extends OpenApi {
|
|
|
9138
9151
|
*/
|
|
9139
9152
|
describeEciScalingConfigurations(request: DescribeEciScalingConfigurationsRequest): Promise<DescribeEciScalingConfigurationsResponse>;
|
|
9140
9153
|
/**
|
|
9141
|
-
* @summary Queries lifecycle
|
|
9154
|
+
* @summary Queries the details of a lifecycle hook. If you want to query the details of a lifecycle hook, you can call the DescribeLifecycleActions operation. For example, you can query the execution status and ID of a lifecycle hook, along with the Elastic Compute Service (ECS) instances on which the lifecycle hook takes effect. When you call this operation, you can specify parameters such as ScalingActivityId, LifecycleActionToken, and MaxResults to query the details of a lifecycle hook.
|
|
9142
9155
|
*
|
|
9143
9156
|
* @description If a scaling activity is executed and a lifecycle hook is created for the scaling activity, the lifecycle hook triggers a lifecycle action. A lifecycle action can be in one of the following states:
|
|
9144
9157
|
* * If a lifecycle action is in the Pending state, Elastic Compute Service (ECS) instances are waiting to be added to a scaling group or waiting to be removed from a scaling group.
|
|
@@ -9152,7 +9165,7 @@ export default class Client extends OpenApi {
|
|
|
9152
9165
|
*/
|
|
9153
9166
|
describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse>;
|
|
9154
9167
|
/**
|
|
9155
|
-
* @summary Queries lifecycle
|
|
9168
|
+
* @summary Queries the details of a lifecycle hook. If you want to query the details of a lifecycle hook, you can call the DescribeLifecycleActions operation. For example, you can query the execution status and ID of a lifecycle hook, along with the Elastic Compute Service (ECS) instances on which the lifecycle hook takes effect. When you call this operation, you can specify parameters such as ScalingActivityId, LifecycleActionToken, and MaxResults to query the details of a lifecycle hook.
|
|
9156
9169
|
*
|
|
9157
9170
|
* @description If a scaling activity is executed and a lifecycle hook is created for the scaling activity, the lifecycle hook triggers a lifecycle action. A lifecycle action can be in one of the following states:
|
|
9158
9171
|
* * If a lifecycle action is in the Pending state, Elastic Compute Service (ECS) instances are waiting to be added to a scaling group or waiting to be removed from a scaling group.
|
|
@@ -9165,7 +9178,7 @@ export default class Client extends OpenApi {
|
|
|
9165
9178
|
*/
|
|
9166
9179
|
describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse>;
|
|
9167
9180
|
/**
|
|
9168
|
-
* @summary Queries lifecycle hooks.
|
|
9181
|
+
* @summary Queries lifecycle hooks. If you want to check whether the configurations of your lifecycle hooks are correct or you want to query the details of multiple lifecycle hooks at the same time, you can call the DescribeLifecycleHooks operation. You can specify lifecycle hook IDs or scaling group IDs when you call this operation. This operation returns details such as the default actions, scaling activities, Alibaba Cloud Resource Names (ARNs) of notification recipients, and timeout periods of lifecycle hooks.
|
|
9169
9182
|
*
|
|
9170
9183
|
* @description You can use one of the following methods to query lifecycle hooks:
|
|
9171
9184
|
* * 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.
|
|
@@ -9178,7 +9191,7 @@ export default class Client extends OpenApi {
|
|
|
9178
9191
|
*/
|
|
9179
9192
|
describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse>;
|
|
9180
9193
|
/**
|
|
9181
|
-
* @summary Queries lifecycle hooks.
|
|
9194
|
+
* @summary Queries lifecycle hooks. If you want to check whether the configurations of your lifecycle hooks are correct or you want to query the details of multiple lifecycle hooks at the same time, you can call the DescribeLifecycleHooks operation. You can specify lifecycle hook IDs or scaling group IDs when you call this operation. This operation returns details such as the default actions, scaling activities, Alibaba Cloud Resource Names (ARNs) of notification recipients, and timeout periods of lifecycle hooks.
|
|
9182
9195
|
*
|
|
9183
9196
|
* @description You can use one of the following methods to query lifecycle hooks:
|
|
9184
9197
|
* * 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.
|
|
@@ -9205,7 +9218,7 @@ export default class Client extends OpenApi {
|
|
|
9205
9218
|
*/
|
|
9206
9219
|
describeLimitation(request: DescribeLimitationRequest): Promise<DescribeLimitationResponse>;
|
|
9207
9220
|
/**
|
|
9208
|
-
* @summary Queries event
|
|
9221
|
+
* @summary Queries notifications. If you want to learn about a notification regarding the status of a scaling event or resource changes, you can call the DescribeNotificationConfigurations operation. This operation enables you to retrieve notification details, analyze resource change data, and refine scaling policies to efficiently utilize resources and fulfill business needs.
|
|
9209
9222
|
*
|
|
9210
9223
|
* @param request DescribeNotificationConfigurationsRequest
|
|
9211
9224
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9213,14 +9226,14 @@ export default class Client extends OpenApi {
|
|
|
9213
9226
|
*/
|
|
9214
9227
|
describeNotificationConfigurationsWithOptions(request: DescribeNotificationConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeNotificationConfigurationsResponse>;
|
|
9215
9228
|
/**
|
|
9216
|
-
* @summary Queries event
|
|
9229
|
+
* @summary Queries notifications. If you want to learn about a notification regarding the status of a scaling event or resource changes, you can call the DescribeNotificationConfigurations operation. This operation enables you to retrieve notification details, analyze resource change data, and refine scaling policies to efficiently utilize resources and fulfill business needs.
|
|
9217
9230
|
*
|
|
9218
9231
|
* @param request DescribeNotificationConfigurationsRequest
|
|
9219
9232
|
* @return DescribeNotificationConfigurationsResponse
|
|
9220
9233
|
*/
|
|
9221
9234
|
describeNotificationConfigurations(request: DescribeNotificationConfigurationsRequest): Promise<DescribeNotificationConfigurationsResponse>;
|
|
9222
9235
|
/**
|
|
9223
|
-
* @summary Queries notification types.
|
|
9236
|
+
* @summary Queries notification types. You can call the DescribeNotificationTypes operation to query the types of notifications on scaling events or resource changes occurred in your scaling groups. Notifications are triggered in scenarios such as successful scale-out events, successful scale-in events, expiration of scheduled tasks, and partially successful scale-out events.
|
|
9224
9237
|
*
|
|
9225
9238
|
* @param request DescribeNotificationTypesRequest
|
|
9226
9239
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9228,7 +9241,7 @@ export default class Client extends OpenApi {
|
|
|
9228
9241
|
*/
|
|
9229
9242
|
describeNotificationTypesWithOptions(request: DescribeNotificationTypesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeNotificationTypesResponse>;
|
|
9230
9243
|
/**
|
|
9231
|
-
* @summary Queries notification types.
|
|
9244
|
+
* @summary Queries notification types. You can call the DescribeNotificationTypes operation to query the types of notifications on scaling events or resource changes occurred in your scaling groups. Notifications are triggered in scenarios such as successful scale-out events, successful scale-in events, expiration of scheduled tasks, and partially successful scale-out events.
|
|
9232
9245
|
*
|
|
9233
9246
|
* @param request DescribeNotificationTypesRequest
|
|
9234
9247
|
* @return DescribeNotificationTypesResponse
|
|
@@ -9288,7 +9301,7 @@ export default class Client extends OpenApi {
|
|
|
9288
9301
|
*/
|
|
9289
9302
|
describeScalingActivities(request: DescribeScalingActivitiesRequest): Promise<DescribeScalingActivitiesResponse>;
|
|
9290
9303
|
/**
|
|
9291
|
-
* @summary Queries the details
|
|
9304
|
+
* @summary Queries the details of a scaling activity. The DescribeScalingActivityDetail operation enables you to access and monitor the details of a scaling activity, which is beneficial for troubleshooting and performance analysis purposes.
|
|
9292
9305
|
*
|
|
9293
9306
|
* @param request DescribeScalingActivityDetailRequest
|
|
9294
9307
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9296,7 +9309,7 @@ export default class Client extends OpenApi {
|
|
|
9296
9309
|
*/
|
|
9297
9310
|
describeScalingActivityDetailWithOptions(request: DescribeScalingActivityDetailRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingActivityDetailResponse>;
|
|
9298
9311
|
/**
|
|
9299
|
-
* @summary Queries the details
|
|
9312
|
+
* @summary Queries the details of a scaling activity. The DescribeScalingActivityDetail operation enables you to access and monitor the details of a scaling activity, which is beneficial for troubleshooting and performance analysis purposes.
|
|
9300
9313
|
*
|
|
9301
9314
|
* @param request DescribeScalingActivityDetailRequest
|
|
9302
9315
|
* @return DescribeScalingActivityDetailResponse
|
|
@@ -9348,7 +9361,7 @@ export default class Client extends OpenApi {
|
|
|
9348
9361
|
*/
|
|
9349
9362
|
describeScalingGroups(request: DescribeScalingGroupsRequest): Promise<DescribeScalingGroupsResponse>;
|
|
9350
9363
|
/**
|
|
9351
|
-
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group
|
|
9364
|
+
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group. If you want to flexibly filter ECS instances that meet the specified criteria and query the instance details, you can call the DescribeScalingInstances operation. This operation enables you to input custom parameters for precise query of ECS instances, helping you gain a clear understanding of the instance details and optimize scaling configurations.
|
|
9352
9365
|
*
|
|
9353
9366
|
* @param request DescribeScalingInstancesRequest
|
|
9354
9367
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9356,7 +9369,7 @@ export default class Client extends OpenApi {
|
|
|
9356
9369
|
*/
|
|
9357
9370
|
describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse>;
|
|
9358
9371
|
/**
|
|
9359
|
-
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group
|
|
9372
|
+
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group. If you want to flexibly filter ECS instances that meet the specified criteria and query the instance details, you can call the DescribeScalingInstances operation. This operation enables you to input custom parameters for precise query of ECS instances, helping you gain a clear understanding of the instance details and optimize scaling configurations.
|
|
9360
9373
|
*
|
|
9361
9374
|
* @param request DescribeScalingInstancesRequest
|
|
9362
9375
|
* @return DescribeScalingInstancesResponse
|
|
@@ -9382,7 +9395,7 @@ export default class Client extends OpenApi {
|
|
|
9382
9395
|
*/
|
|
9383
9396
|
describeScalingRules(request: DescribeScalingRulesRequest): Promise<DescribeScalingRulesResponse>;
|
|
9384
9397
|
/**
|
|
9385
|
-
* @summary Queries scheduled tasks.
|
|
9398
|
+
* @summary Queries scheduled tasks. A scheduled task is a predefined task that triggers the automatic execution of a scaling rule at the specified point in time. It ensures an automatic scaling of computing resources to fulfill your business demands at a minimum cost. After you create a scheduled task, you can call the DescribeScheduledTasks operation to query the details of the task, such as the execution time point and the scaling group ID. You can also call this operation to query the total number of existing scheduled tasks.
|
|
9386
9399
|
*
|
|
9387
9400
|
* @description You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
9388
9401
|
*
|
|
@@ -9392,7 +9405,7 @@ export default class Client extends OpenApi {
|
|
|
9392
9405
|
*/
|
|
9393
9406
|
describeScheduledTasksWithOptions(request: DescribeScheduledTasksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScheduledTasksResponse>;
|
|
9394
9407
|
/**
|
|
9395
|
-
* @summary Queries scheduled tasks.
|
|
9408
|
+
* @summary Queries scheduled tasks. A scheduled task is a predefined task that triggers the automatic execution of a scaling rule at the specified point in time. It ensures an automatic scaling of computing resources to fulfill your business demands at a minimum cost. After you create a scheduled task, you can call the DescribeScheduledTasks operation to query the details of the task, such as the execution time point and the scaling group ID. You can also call this operation to query the total number of existing scheduled tasks.
|
|
9396
9409
|
*
|
|
9397
9410
|
* @description You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
9398
9411
|
*
|
|
@@ -9431,16 +9444,18 @@ export default class Client extends OpenApi {
|
|
|
9431
9444
|
*/
|
|
9432
9445
|
detachDBInstances(request: DetachDBInstancesRequest): Promise<DetachDBInstancesResponse>;
|
|
9433
9446
|
/**
|
|
9434
|
-
* @summary Removes one or more Elastic Compute Service (ECS) instances
|
|
9447
|
+
* @summary Removes instances from a scaling group. If an enabled scaling group has no ongoing scaling activities, you can call the DetachInstances operation to remove one or more Elastic Compute Service (ECS) instances, elastic container instances, or Alibaba Cloud-hosted third-party instances from the scaling group.
|
|
9435
9448
|
*
|
|
9436
|
-
* @description
|
|
9437
|
-
*
|
|
9438
|
-
*
|
|
9439
|
-
*
|
|
9440
|
-
*
|
|
9441
|
-
*
|
|
9442
|
-
*
|
|
9443
|
-
*
|
|
9449
|
+
* @description * Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
9450
|
+
* * The specified scaling group is enabled.
|
|
9451
|
+
* * The specified scaling group does not have any ongoing scaling activities.
|
|
9452
|
+
* **
|
|
9453
|
+
* **Note** If the specified scaling group does not have any ongoing scaling activities, the operation can bypass the cooldown period of the scaling group and immediately trigger scaling activities.
|
|
9454
|
+
* * Before you call this operation, take note of the following items:
|
|
9455
|
+
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation can run independently. If needed, you can call the [AttachInstances](https://help.aliyun.com/document_detail/25954.html) operation to re-add these instances to a scaling group.
|
|
9456
|
+
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation are not stopped or released.
|
|
9457
|
+
* * A successful call only means that Auto Scaling accepts your request. Scaling activities can be triggered as expected, but their successful execution is not guaranteed. You can query the status of a scaling activity based on the ScalingActivityId response parameter.
|
|
9458
|
+
* * The removal of ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances must not result in the overall number of instances within the specified scaling group falling below the minimum capacity threshold (MinSize); otherwise, an error will be reported.
|
|
9444
9459
|
*
|
|
9445
9460
|
* @param request DetachInstancesRequest
|
|
9446
9461
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9448,23 +9463,25 @@ export default class Client extends OpenApi {
|
|
|
9448
9463
|
*/
|
|
9449
9464
|
detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse>;
|
|
9450
9465
|
/**
|
|
9451
|
-
* @summary Removes one or more Elastic Compute Service (ECS) instances
|
|
9466
|
+
* @summary Removes instances from a scaling group. If an enabled scaling group has no ongoing scaling activities, you can call the DetachInstances operation to remove one or more Elastic Compute Service (ECS) instances, elastic container instances, or Alibaba Cloud-hosted third-party instances from the scaling group.
|
|
9452
9467
|
*
|
|
9453
|
-
* @description
|
|
9454
|
-
*
|
|
9455
|
-
*
|
|
9456
|
-
*
|
|
9457
|
-
*
|
|
9458
|
-
*
|
|
9459
|
-
*
|
|
9460
|
-
*
|
|
9468
|
+
* @description * Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
9469
|
+
* * The specified scaling group is enabled.
|
|
9470
|
+
* * The specified scaling group does not have any ongoing scaling activities.
|
|
9471
|
+
* **
|
|
9472
|
+
* **Note** If the specified scaling group does not have any ongoing scaling activities, the operation can bypass the cooldown period of the scaling group and immediately trigger scaling activities.
|
|
9473
|
+
* * Before you call this operation, take note of the following items:
|
|
9474
|
+
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation can run independently. If needed, you can call the [AttachInstances](https://help.aliyun.com/document_detail/25954.html) operation to re-add these instances to a scaling group.
|
|
9475
|
+
* * The ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances that are removed from a scaling group by using this operation are not stopped or released.
|
|
9476
|
+
* * A successful call only means that Auto Scaling accepts your request. Scaling activities can be triggered as expected, but their successful execution is not guaranteed. You can query the status of a scaling activity based on the ScalingActivityId response parameter.
|
|
9477
|
+
* * The removal of ECS instances, elastic container instances, or Alibaba Cloud-hosted third-party instances must not result in the overall number of instances within the specified scaling group falling below the minimum capacity threshold (MinSize); otherwise, an error will be reported.
|
|
9461
9478
|
*
|
|
9462
9479
|
* @param request DetachInstancesRequest
|
|
9463
9480
|
* @return DetachInstancesResponse
|
|
9464
9481
|
*/
|
|
9465
9482
|
detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse>;
|
|
9466
9483
|
/**
|
|
9467
|
-
* @summary Detaches one or more
|
|
9484
|
+
* @summary Detaches Classic Load Balancer (CLB, formerly known as Server Load Balancer or SLB) instances from a scaling group. If the current CLB instance no longer meets your business requirements, you can call the DetachLoadBalancers operation to detach it from your scaling group. When you call this operation, you can use ScalingGroupId, LoadBalancer.N, and ForceDetach to specify one or more CLB instances to detach. You can also determine whether to call this operation asynchronously and whether to remove the Elastic Compute Service (ECS) instances acting as backend servers from the backend server groups of the CLB instance. You can call this operation to detach only CLB instances from a scaling group.
|
|
9468
9485
|
*
|
|
9469
9486
|
* @param request DetachLoadBalancersRequest
|
|
9470
9487
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9472,7 +9489,7 @@ export default class Client extends OpenApi {
|
|
|
9472
9489
|
*/
|
|
9473
9490
|
detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse>;
|
|
9474
9491
|
/**
|
|
9475
|
-
* @summary Detaches one or more
|
|
9492
|
+
* @summary Detaches Classic Load Balancer (CLB, formerly known as Server Load Balancer or SLB) instances from a scaling group. If the current CLB instance no longer meets your business requirements, you can call the DetachLoadBalancers operation to detach it from your scaling group. When you call this operation, you can use ScalingGroupId, LoadBalancer.N, and ForceDetach to specify one or more CLB instances to detach. You can also determine whether to call this operation asynchronously and whether to remove the Elastic Compute Service (ECS) instances acting as backend servers from the backend server groups of the CLB instance. You can call this operation to detach only CLB instances from a scaling group.
|
|
9476
9493
|
*
|
|
9477
9494
|
* @param request DetachLoadBalancersRequest
|
|
9478
9495
|
* @return DetachLoadBalancersResponse
|
|
@@ -9636,7 +9653,7 @@ export default class Client extends OpenApi {
|
|
|
9636
9653
|
*/
|
|
9637
9654
|
enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse>;
|
|
9638
9655
|
/**
|
|
9639
|
-
* @summary Executes a scaling rule.
|
|
9656
|
+
* @summary Executes a scaling rule. To adjust the number of Elastic Compute Service (ECS) instances or elastic container instances, you can manually execute a scaling rule or enable Auto Scaling to execute a scaling rule. You can call the ExecuteScalingRule operation to execute simple scaling rules or step scaling rules. Auto Scaling automatically executes target tracking scaling rules and predictive scaling rules on your behalf without requiring explicit execution calls.
|
|
9640
9657
|
*
|
|
9641
9658
|
* @description Before you call this operation, take note of the following items:
|
|
9642
9659
|
* * The scaling group is in the Active state.
|
|
@@ -9653,7 +9670,7 @@ export default class Client extends OpenApi {
|
|
|
9653
9670
|
*/
|
|
9654
9671
|
executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse>;
|
|
9655
9672
|
/**
|
|
9656
|
-
* @summary Executes a scaling rule.
|
|
9673
|
+
* @summary Executes a scaling rule. To adjust the number of Elastic Compute Service (ECS) instances or elastic container instances, you can manually execute a scaling rule or enable Auto Scaling to execute a scaling rule. You can call the ExecuteScalingRule operation to execute simple scaling rules or step scaling rules. Auto Scaling automatically executes target tracking scaling rules and predictive scaling rules on your behalf without requiring explicit execution calls.
|
|
9657
9674
|
*
|
|
9658
9675
|
* @description Before you call this operation, take note of the following items:
|
|
9659
9676
|
* * The scaling group is in the Active state.
|
|
@@ -9669,10 +9686,13 @@ export default class Client extends OpenApi {
|
|
|
9669
9686
|
*/
|
|
9670
9687
|
executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse>;
|
|
9671
9688
|
/**
|
|
9672
|
-
* @summary
|
|
9689
|
+
* @summary Removes an instance from the Standby state. When a scale-in event is triggered in a scaling group, Auto Scaling does not remove Elastic Compute Service (ECS) instances or elastic container instances that are in the Standby state from the scaling group. If you want to restart the instances that are in the Standby state, you can call the ExitStandby operation to remove the instances from the Standby state and put them into the In Service state.
|
|
9673
9690
|
*
|
|
9674
|
-
* @description
|
|
9675
|
-
*
|
|
9691
|
+
* @description After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
9692
|
+
* * The ECS instances or elastic container instances enter the In Service state.
|
|
9693
|
+
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
9694
|
+
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
9695
|
+
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
9676
9696
|
*
|
|
9677
9697
|
* @param request ExitStandbyRequest
|
|
9678
9698
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9680,10 +9700,13 @@ export default class Client extends OpenApi {
|
|
|
9680
9700
|
*/
|
|
9681
9701
|
exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse>;
|
|
9682
9702
|
/**
|
|
9683
|
-
* @summary
|
|
9703
|
+
* @summary Removes an instance from the Standby state. When a scale-in event is triggered in a scaling group, Auto Scaling does not remove Elastic Compute Service (ECS) instances or elastic container instances that are in the Standby state from the scaling group. If you want to restart the instances that are in the Standby state, you can call the ExitStandby operation to remove the instances from the Standby state and put them into the In Service state.
|
|
9684
9704
|
*
|
|
9685
|
-
* @description
|
|
9686
|
-
*
|
|
9705
|
+
* @description After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
9706
|
+
* * The ECS instances or elastic container instances enter the In Service state.
|
|
9707
|
+
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
9708
|
+
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
9709
|
+
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
9687
9710
|
*
|
|
9688
9711
|
* @param request ExitStandbyRequest
|
|
9689
9712
|
* @return ExitStandbyResponse
|
|
@@ -9768,12 +9791,16 @@ export default class Client extends OpenApi {
|
|
|
9768
9791
|
*/
|
|
9769
9792
|
modifyAlarm(request: ModifyAlarmRequest): Promise<ModifyAlarmResponse>;
|
|
9770
9793
|
/**
|
|
9794
|
+
* @summary Sets the status of scaling activities that prompt text message or email notifications.
|
|
9795
|
+
*
|
|
9771
9796
|
* @param request ModifyAlertConfigurationRequest
|
|
9772
9797
|
* @param runtime runtime options for this request RuntimeOptions
|
|
9773
9798
|
* @return ModifyAlertConfigurationResponse
|
|
9774
9799
|
*/
|
|
9775
9800
|
modifyAlertConfigurationWithOptions(request: ModifyAlertConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlertConfigurationResponse>;
|
|
9776
9801
|
/**
|
|
9802
|
+
* @summary Sets the status of scaling activities that prompt text message or email notifications.
|
|
9803
|
+
*
|
|
9777
9804
|
* @param request ModifyAlertConfigurationRequest
|
|
9778
9805
|
* @return ModifyAlertConfigurationResponse
|
|
9779
9806
|
*/
|
|
@@ -9813,11 +9840,11 @@ export default class Client extends OpenApi {
|
|
|
9813
9840
|
*/
|
|
9814
9841
|
modifyInstanceAttribute(request: ModifyInstanceAttributeRequest): Promise<ModifyInstanceAttributeResponse>;
|
|
9815
9842
|
/**
|
|
9816
|
-
* @summary Modifies a lifecycle hook.
|
|
9843
|
+
* @summary Modifies a lifecycle hook. If an existing lifecycle hook does not meet your business requirements anymore, you can call the ModifyLifecycleHook operation to modify the information such as the scaling event, timeout period, and default action of the lifecycle hook. Before you modify a lifecycle hook, you can locate the lifecycle hook by its ID, name, or scaling group.
|
|
9817
9844
|
*
|
|
9818
|
-
* @description You can use one of the following methods to
|
|
9819
|
-
* * Specify
|
|
9820
|
-
* * Specify
|
|
9845
|
+
* @description You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
9846
|
+
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
9847
|
+
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
9821
9848
|
*
|
|
9822
9849
|
* @param request ModifyLifecycleHookRequest
|
|
9823
9850
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9825,18 +9852,18 @@ export default class Client extends OpenApi {
|
|
|
9825
9852
|
*/
|
|
9826
9853
|
modifyLifecycleHookWithOptions(request: ModifyLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<ModifyLifecycleHookResponse>;
|
|
9827
9854
|
/**
|
|
9828
|
-
* @summary Modifies a lifecycle hook.
|
|
9855
|
+
* @summary Modifies a lifecycle hook. If an existing lifecycle hook does not meet your business requirements anymore, you can call the ModifyLifecycleHook operation to modify the information such as the scaling event, timeout period, and default action of the lifecycle hook. Before you modify a lifecycle hook, you can locate the lifecycle hook by its ID, name, or scaling group.
|
|
9829
9856
|
*
|
|
9830
|
-
* @description You can use one of the following methods to
|
|
9831
|
-
* * Specify
|
|
9832
|
-
* * Specify
|
|
9857
|
+
* @description You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
9858
|
+
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
9859
|
+
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
9833
9860
|
*
|
|
9834
9861
|
* @param request ModifyLifecycleHookRequest
|
|
9835
9862
|
* @return ModifyLifecycleHookResponse
|
|
9836
9863
|
*/
|
|
9837
9864
|
modifyLifecycleHook(request: ModifyLifecycleHookRequest): Promise<ModifyLifecycleHookResponse>;
|
|
9838
9865
|
/**
|
|
9839
|
-
* @summary Modifies a notification.
|
|
9866
|
+
* @summary Modifies event notification rules. Event notification rules support automatic sending of notifications to CloudMonitor, Message Service (MNS) topics, or MNS queues when a specified type of events occur. This helps you learn about the dynamics of your scaling group at the earliest opportunity and further automate resource management. If an existing event notification rule does not meet your business requirements, you can call the ModifyNotificationConfiguration operation to modify the event notification rule, without the need to create a new rule. Take not that you cannot modify the notification method of an event notification rule by calling this operation.
|
|
9840
9867
|
*
|
|
9841
9868
|
* @param request ModifyNotificationConfigurationRequest
|
|
9842
9869
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9844,7 +9871,7 @@ export default class Client extends OpenApi {
|
|
|
9844
9871
|
*/
|
|
9845
9872
|
modifyNotificationConfigurationWithOptions(request: ModifyNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyNotificationConfigurationResponse>;
|
|
9846
9873
|
/**
|
|
9847
|
-
* @summary Modifies a notification.
|
|
9874
|
+
* @summary Modifies event notification rules. Event notification rules support automatic sending of notifications to CloudMonitor, Message Service (MNS) topics, or MNS queues when a specified type of events occur. This helps you learn about the dynamics of your scaling group at the earliest opportunity and further automate resource management. If an existing event notification rule does not meet your business requirements, you can call the ModifyNotificationConfiguration operation to modify the event notification rule, without the need to create a new rule. Take not that you cannot modify the notification method of an event notification rule by calling this operation.
|
|
9848
9875
|
*
|
|
9849
9876
|
* @param request ModifyNotificationConfigurationRequest
|
|
9850
9877
|
* @return ModifyNotificationConfigurationResponse
|
|
@@ -9913,7 +9940,7 @@ export default class Client extends OpenApi {
|
|
|
9913
9940
|
*/
|
|
9914
9941
|
modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
|
|
9915
9942
|
/**
|
|
9916
|
-
* @summary Modifies a scaling rule.
|
|
9943
|
+
* @summary Modifies a scaling rule. If an existing scaling rule cannot meet your business requirements, you can call the ModifyScalingRule operation to modify the scaling rule, without the need to create a new one. This streamlines your workflow, enhancing operational efficiency while also contributing to cost optimization by avoiding redundant steps.
|
|
9917
9944
|
*
|
|
9918
9945
|
* @param request ModifyScalingRuleRequest
|
|
9919
9946
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9921,14 +9948,14 @@ export default class Client extends OpenApi {
|
|
|
9921
9948
|
*/
|
|
9922
9949
|
modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
|
|
9923
9950
|
/**
|
|
9924
|
-
* @summary Modifies a scaling rule.
|
|
9951
|
+
* @summary Modifies a scaling rule. If an existing scaling rule cannot meet your business requirements, you can call the ModifyScalingRule operation to modify the scaling rule, without the need to create a new one. This streamlines your workflow, enhancing operational efficiency while also contributing to cost optimization by avoiding redundant steps.
|
|
9925
9952
|
*
|
|
9926
9953
|
* @param request ModifyScalingRuleRequest
|
|
9927
9954
|
* @return ModifyScalingRuleResponse
|
|
9928
9955
|
*/
|
|
9929
9956
|
modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse>;
|
|
9930
9957
|
/**
|
|
9931
|
-
* @summary Modifies a scheduled task.
|
|
9958
|
+
* @summary Modifies a scheduled task. If an existing scheduled task cannot meet your business requirements, you can call the ModifyScheduledTask operation to adjust its parameter settings including the scaling rule to execute and the boundary values of your scaling group, without the need to create a new scheduled task. This operation provides a flexible way to optimize scheduled tasks.
|
|
9932
9959
|
*
|
|
9933
9960
|
* @description You can use the following parameters to specify the scaling method of a scheduled task:
|
|
9934
9961
|
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
@@ -9941,7 +9968,7 @@ export default class Client extends OpenApi {
|
|
|
9941
9968
|
*/
|
|
9942
9969
|
modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse>;
|
|
9943
9970
|
/**
|
|
9944
|
-
* @summary Modifies a scheduled task.
|
|
9971
|
+
* @summary Modifies a scheduled task. If an existing scheduled task cannot meet your business requirements, you can call the ModifyScheduledTask operation to adjust its parameter settings including the scaling rule to execute and the boundary values of your scaling group, without the need to create a new scheduled task. This operation provides a flexible way to optimize scheduled tasks.
|
|
9945
9972
|
*
|
|
9946
9973
|
* @description You can use the following parameters to specify the scaling method of a scheduled task:
|
|
9947
9974
|
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
@@ -9984,9 +10011,10 @@ export default class Client extends OpenApi {
|
|
|
9984
10011
|
*/
|
|
9985
10012
|
rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse>;
|
|
9986
10013
|
/**
|
|
9987
|
-
* @summary
|
|
10014
|
+
* @summary Extends the time window during which Elastic Compute Service (ECS) instances stay in a Pending state. If the current time window during which an ECS instance stays in a Pending state is not sufficient for you to complete custom operations on the ECS instance, you can call the RecordLifecycleActionHeartbeat operation to extend the time window. When you call this operation, you can specify lifecycleHookId, lifecycleActionToken, and heartbeatTimeout to extend the time window for the desired ECS instance.
|
|
9988
10015
|
*
|
|
9989
|
-
* @description You can call this operation
|
|
10016
|
+
* @description You can call this operation only when the desired ECS instance enters a Pending state.\\
|
|
10017
|
+
* An ECS instance can stay in a Pending state for up to six hours. Each time an ECS instance enters a Pending state, you can extend the time window during which the ECS instance stays in a Pending state up to 20 times.
|
|
9990
10018
|
*
|
|
9991
10019
|
* @param request RecordLifecycleActionHeartbeatRequest
|
|
9992
10020
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9994,9 +10022,10 @@ export default class Client extends OpenApi {
|
|
|
9994
10022
|
*/
|
|
9995
10023
|
recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse>;
|
|
9996
10024
|
/**
|
|
9997
|
-
* @summary
|
|
10025
|
+
* @summary Extends the time window during which Elastic Compute Service (ECS) instances stay in a Pending state. If the current time window during which an ECS instance stays in a Pending state is not sufficient for you to complete custom operations on the ECS instance, you can call the RecordLifecycleActionHeartbeat operation to extend the time window. When you call this operation, you can specify lifecycleHookId, lifecycleActionToken, and heartbeatTimeout to extend the time window for the desired ECS instance.
|
|
9998
10026
|
*
|
|
9999
|
-
* @description You can call this operation
|
|
10027
|
+
* @description You can call this operation only when the desired ECS instance enters a Pending state.\\
|
|
10028
|
+
* An ECS instance can stay in a Pending state for up to six hours. Each time an ECS instance enters a Pending state, you can extend the time window during which the ECS instance stays in a Pending state up to 20 times.
|
|
10000
10029
|
*
|
|
10001
10030
|
* @param request RecordLifecycleActionHeartbeatRequest
|
|
10002
10031
|
* @return RecordLifecycleActionHeartbeatResponse
|