@alicloud/ess20220222 1.5.0 → 1.5.2
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 +193 -160
- package/dist/client.js +215 -160
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +227 -160
package/dist/client.d.ts
CHANGED
|
@@ -2410,6 +2410,8 @@ export declare class DescribeScheduledTasksRequest extends $tea.Model {
|
|
|
2410
2410
|
ownerId?: number;
|
|
2411
2411
|
pageNumber?: number;
|
|
2412
2412
|
pageSize?: number;
|
|
2413
|
+
recurrenceType?: string;
|
|
2414
|
+
recurrenceValue?: string;
|
|
2413
2415
|
regionId?: string;
|
|
2414
2416
|
resourceOwnerAccount?: string;
|
|
2415
2417
|
resourceOwnerId?: number;
|
|
@@ -2417,6 +2419,8 @@ export declare class DescribeScheduledTasksRequest extends $tea.Model {
|
|
|
2417
2419
|
scheduledActions?: string[];
|
|
2418
2420
|
scheduledTaskIds?: string[];
|
|
2419
2421
|
scheduledTaskNames?: string[];
|
|
2422
|
+
taskEnabled?: boolean;
|
|
2423
|
+
taskName?: string;
|
|
2420
2424
|
static names(): {
|
|
2421
2425
|
[key: string]: string;
|
|
2422
2426
|
};
|
|
@@ -3581,6 +3585,7 @@ export declare class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
3581
3585
|
override?: boolean;
|
|
3582
3586
|
ownerAccount?: string;
|
|
3583
3587
|
ownerId?: number;
|
|
3588
|
+
password?: string;
|
|
3584
3589
|
passwordInherit?: boolean;
|
|
3585
3590
|
ramRoleName?: string;
|
|
3586
3591
|
resourceGroupId?: string;
|
|
@@ -3647,6 +3652,7 @@ export declare class ModifyScalingConfigurationShrinkRequest extends $tea.Model
|
|
|
3647
3652
|
override?: boolean;
|
|
3648
3653
|
ownerAccount?: string;
|
|
3649
3654
|
ownerId?: number;
|
|
3655
|
+
password?: string;
|
|
3650
3656
|
passwordInherit?: boolean;
|
|
3651
3657
|
ramRoleName?: string;
|
|
3652
3658
|
resourceGroupId?: string;
|
|
@@ -6662,6 +6668,7 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
|
|
|
6662
6668
|
memory?: number;
|
|
6663
6669
|
networkInterfaces?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsNetworkInterfaces[];
|
|
6664
6670
|
passwordInherit?: boolean;
|
|
6671
|
+
passwordSetted?: boolean;
|
|
6665
6672
|
privatePoolOptions_id?: string;
|
|
6666
6673
|
privatePoolOptions_matchCriteria?: string;
|
|
6667
6674
|
ramRoleName?: string;
|
|
@@ -8307,10 +8314,11 @@ export default class Client extends OpenApi {
|
|
|
8307
8314
|
[key: string]: string;
|
|
8308
8315
|
}, endpoint: string): string;
|
|
8309
8316
|
/**
|
|
8310
|
-
* @summary
|
|
8317
|
+
* @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
8318
|
*
|
|
8312
|
-
* @description
|
|
8313
|
-
* If you
|
|
8319
|
+
* @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:
|
|
8320
|
+
* * If you include a scaling configuration ID within your request, the system updates the scaling configuration based on the YAML configuration file.
|
|
8321
|
+
* * 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
8322
|
*
|
|
8315
8323
|
* @param request ApplyEciScalingConfigurationRequest
|
|
8316
8324
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8318,10 +8326,11 @@ export default class Client extends OpenApi {
|
|
|
8318
8326
|
*/
|
|
8319
8327
|
applyEciScalingConfigurationWithOptions(request: ApplyEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ApplyEciScalingConfigurationResponse>;
|
|
8320
8328
|
/**
|
|
8321
|
-
* @summary
|
|
8329
|
+
* @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
8330
|
*
|
|
8323
|
-
* @description
|
|
8324
|
-
* If you
|
|
8331
|
+
* @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:
|
|
8332
|
+
* * If you include a scaling configuration ID within your request, the system updates the scaling configuration based on the YAML configuration file.
|
|
8333
|
+
* * 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
8334
|
*
|
|
8326
8335
|
* @param request ApplyEciScalingConfigurationRequest
|
|
8327
8336
|
* @return ApplyEciScalingConfigurationResponse
|
|
@@ -8461,7 +8470,7 @@ export default class Client extends OpenApi {
|
|
|
8461
8470
|
*/
|
|
8462
8471
|
attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse>;
|
|
8463
8472
|
/**
|
|
8464
|
-
* @summary Adds instances to a scaling group. You can call the AttachInstances operation to add
|
|
8473
|
+
* @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
8474
|
*
|
|
8466
8475
|
* @description Before you call this operation, take note of the following items:
|
|
8467
8476
|
* * The scaling group is in the Active state.
|
|
@@ -8484,7 +8493,7 @@ export default class Client extends OpenApi {
|
|
|
8484
8493
|
*/
|
|
8485
8494
|
attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse>;
|
|
8486
8495
|
/**
|
|
8487
|
-
* @summary Adds instances to a scaling group. You can call the AttachInstances operation to add
|
|
8496
|
+
* @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
8497
|
*
|
|
8489
8498
|
* @description Before you call this operation, take note of the following items:
|
|
8490
8499
|
* * The scaling group is in the Active state.
|
|
@@ -8687,7 +8696,7 @@ export default class Client extends OpenApi {
|
|
|
8687
8696
|
*/
|
|
8688
8697
|
createEciScalingConfiguration(request: CreateEciScalingConfigurationRequest): Promise<CreateEciScalingConfigurationResponse>;
|
|
8689
8698
|
/**
|
|
8690
|
-
* @summary Creates one or more lifecycle hooks.
|
|
8699
|
+
* @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
8700
|
*
|
|
8692
8701
|
* @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
8702
|
* 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 +8709,7 @@ export default class Client extends OpenApi {
|
|
|
8700
8709
|
*/
|
|
8701
8710
|
createLifecycleHookWithOptions(request: CreateLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<CreateLifecycleHookResponse>;
|
|
8702
8711
|
/**
|
|
8703
|
-
* @summary Creates one or more lifecycle hooks.
|
|
8712
|
+
* @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
8713
|
*
|
|
8705
8714
|
* @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
8715
|
* 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 +8773,27 @@ export default class Client extends OpenApi {
|
|
|
8764
8773
|
*/
|
|
8765
8774
|
createScalingConfiguration(request: CreateScalingConfigurationRequest): Promise<CreateScalingConfigurationResponse>;
|
|
8766
8775
|
/**
|
|
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
|
|
8776
|
+
* @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.
|
|
8777
|
+
*
|
|
8778
|
+
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used for similar purposes.
|
|
8779
|
+
* 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.
|
|
8780
|
+
* 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.
|
|
8781
|
+
* 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).
|
|
8782
|
+
* 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:
|
|
8783
|
+
* * 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.
|
|
8784
|
+
* * 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.
|
|
8785
|
+
* > 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.
|
|
8786
|
+
* 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:
|
|
8787
|
+
* * 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.
|
|
8788
|
+
* * Health check must be enabled on all listener ports configured for the CLB instance. Otherwise, the scaling group will fail to be created.
|
|
8789
|
+
* 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).
|
|
8790
|
+
* 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:
|
|
8791
|
+
* * 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.
|
|
8792
|
+
* * 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).
|
|
8793
|
+
* If you set MultiAZPolicy for the scaling group that you want to create to COST_OPTIMIZED, the following rules apply:
|
|
8794
|
+
* * 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.
|
|
8795
|
+
* * 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.
|
|
8796
|
+
* If you set `Tags.Propagate` to true, the following rules will apply:
|
|
8788
8797
|
* * 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
8798
|
* * 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
8799
|
* * 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 +8804,27 @@ export default class Client extends OpenApi {
|
|
|
8795
8804
|
*/
|
|
8796
8805
|
createScalingGroupWithOptions(request: CreateScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingGroupResponse>;
|
|
8797
8806
|
/**
|
|
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
|
|
8807
|
+
* @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.
|
|
8808
|
+
*
|
|
8809
|
+
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used for similar purposes.
|
|
8810
|
+
* 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.
|
|
8811
|
+
* 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.
|
|
8812
|
+
* 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).
|
|
8813
|
+
* 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:
|
|
8814
|
+
* * 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.
|
|
8815
|
+
* * 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.
|
|
8816
|
+
* > 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.
|
|
8817
|
+
* 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:
|
|
8818
|
+
* * 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.
|
|
8819
|
+
* * Health check must be enabled on all listener ports configured for the CLB instance. Otherwise, the scaling group will fail to be created.
|
|
8820
|
+
* 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).
|
|
8821
|
+
* 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:
|
|
8822
|
+
* * 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.
|
|
8823
|
+
* * 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).
|
|
8824
|
+
* If you set MultiAZPolicy for the scaling group that you want to create to COST_OPTIMIZED, the following rules apply:
|
|
8825
|
+
* * 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.
|
|
8826
|
+
* * 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.
|
|
8827
|
+
* If you set `Tags.Propagate` to true, the following rules will apply:
|
|
8819
8828
|
* * 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
8829
|
* * 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
8830
|
* * 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 +8834,20 @@ export default class Client extends OpenApi {
|
|
|
8825
8834
|
*/
|
|
8826
8835
|
createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse>;
|
|
8827
8836
|
/**
|
|
8828
|
-
* @summary Creates a scaling rule.
|
|
8837
|
+
* @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
8838
|
*
|
|
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.
|
|
8839
|
+
* @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:
|
|
8840
|
+
* * 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.
|
|
8841
|
+
* * 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
8842
|
* 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
|
|
8843
|
+
* * 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.
|
|
8844
|
+
* * 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.
|
|
8845
|
+
* * 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.
|
|
8846
|
+
* * 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.
|
|
8847
|
+
* * 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).
|
|
8848
|
+
* * The following API operations may use the unique identifier of a scaling rule (ScalingRuleAri) that is returned after you call the CreateScalingRule operation:
|
|
8849
|
+
* * 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.
|
|
8850
|
+
* * 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
8851
|
*
|
|
8844
8852
|
* @param request CreateScalingRuleRequest
|
|
8845
8853
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8847,21 +8855,20 @@ export default class Client extends OpenApi {
|
|
|
8847
8855
|
*/
|
|
8848
8856
|
createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse>;
|
|
8849
8857
|
/**
|
|
8850
|
-
* @summary Creates a scaling rule.
|
|
8858
|
+
* @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
8859
|
*
|
|
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.
|
|
8860
|
+
* @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:
|
|
8861
|
+
* * 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.
|
|
8862
|
+
* * 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
8863
|
* 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
|
|
8864
|
+
* * 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.
|
|
8865
|
+
* * 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.
|
|
8866
|
+
* * 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.
|
|
8867
|
+
* * 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.
|
|
8868
|
+
* * 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).
|
|
8869
|
+
* * The following API operations may use the unique identifier of a scaling rule (ScalingRuleAri) that is returned after you call the CreateScalingRule operation:
|
|
8870
|
+
* * 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.
|
|
8871
|
+
* * 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
8872
|
*
|
|
8866
8873
|
* @param request CreateScalingRuleRequest
|
|
8867
8874
|
* @return CreateScalingRuleResponse
|
|
@@ -8870,12 +8877,15 @@ export default class Client extends OpenApi {
|
|
|
8870
8877
|
/**
|
|
8871
8878
|
* @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
8879
|
*
|
|
8873
|
-
* @description * If a scheduled task fails to
|
|
8874
|
-
* * If
|
|
8875
|
-
*
|
|
8876
|
-
* *
|
|
8877
|
-
*
|
|
8878
|
-
*
|
|
8880
|
+
* @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.
|
|
8881
|
+
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
8882
|
+
* * 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.
|
|
8883
|
+
* * 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.
|
|
8884
|
+
* * You can use one of the following methods to specify the scaling mode:
|
|
8885
|
+
* * ScheduledAction: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
8886
|
+
* * ScalingGroupId: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you create the scheduled task.
|
|
8887
|
+
* **
|
|
8888
|
+
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
8879
8889
|
*
|
|
8880
8890
|
* @param request CreateScheduledTaskRequest
|
|
8881
8891
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8885,12 +8895,15 @@ export default class Client extends OpenApi {
|
|
|
8885
8895
|
/**
|
|
8886
8896
|
* @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
8897
|
*
|
|
8888
|
-
* @description * If a scheduled task fails to
|
|
8889
|
-
* * If
|
|
8890
|
-
*
|
|
8891
|
-
* *
|
|
8892
|
-
*
|
|
8893
|
-
*
|
|
8898
|
+
* @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.
|
|
8899
|
+
* * If several scheduled tasks concurrently attempt to execute the same scaling rule within a scaling group, the following rules apply:
|
|
8900
|
+
* * 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.
|
|
8901
|
+
* * 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.
|
|
8902
|
+
* * You can use one of the following methods to specify the scaling mode:
|
|
8903
|
+
* * ScheduledAction: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
8904
|
+
* * ScalingGroupId: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you create the scheduled task.
|
|
8905
|
+
* **
|
|
8906
|
+
* **Note** You cannot specify ScheduledAction and ScalingGroupId at the same time.
|
|
8894
8907
|
*
|
|
8895
8908
|
* @param request CreateScheduledTaskRequest
|
|
8896
8909
|
* @return CreateScheduledTaskResponse
|
|
@@ -8954,11 +8967,11 @@ export default class Client extends OpenApi {
|
|
|
8954
8967
|
*/
|
|
8955
8968
|
deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse>;
|
|
8956
8969
|
/**
|
|
8957
|
-
* @summary Deletes a lifecycle hook.
|
|
8970
|
+
* @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
8971
|
*
|
|
8959
|
-
* @description If you delete
|
|
8960
|
-
* *
|
|
8961
|
-
* *
|
|
8972
|
+
* @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:
|
|
8973
|
+
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
8974
|
+
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
8962
8975
|
*
|
|
8963
8976
|
* @param request DeleteLifecycleHookRequest
|
|
8964
8977
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8966,11 +8979,11 @@ export default class Client extends OpenApi {
|
|
|
8966
8979
|
*/
|
|
8967
8980
|
deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse>;
|
|
8968
8981
|
/**
|
|
8969
|
-
* @summary Deletes a lifecycle hook.
|
|
8982
|
+
* @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
8983
|
*
|
|
8971
|
-
* @description If you delete
|
|
8972
|
-
* *
|
|
8973
|
-
* *
|
|
8984
|
+
* @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:
|
|
8985
|
+
* * Include `LifecycleHookId` within your request to specify the lifecycle hook that you want to delete. In this case, `ScalingGroupId` and `LifecycleHookName` are ignored.
|
|
8986
|
+
* * Include `ScalingGroupId` and `LifecycleHookName` within your request to specify the lifecycle hook that you want to delete.
|
|
8974
8987
|
*
|
|
8975
8988
|
* @param request DeleteLifecycleHookRequest
|
|
8976
8989
|
* @return DeleteLifecycleHookResponse
|
|
@@ -9097,18 +9110,22 @@ export default class Client extends OpenApi {
|
|
|
9097
9110
|
*/
|
|
9098
9111
|
describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse>;
|
|
9099
9112
|
/**
|
|
9113
|
+
* @summary Queries the status of scaling activities that prompt text message or email notifications.
|
|
9114
|
+
*
|
|
9100
9115
|
* @param request DescribeAlertConfigurationRequest
|
|
9101
9116
|
* @param runtime runtime options for this request RuntimeOptions
|
|
9102
9117
|
* @return DescribeAlertConfigurationResponse
|
|
9103
9118
|
*/
|
|
9104
9119
|
describeAlertConfigurationWithOptions(request: DescribeAlertConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAlertConfigurationResponse>;
|
|
9105
9120
|
/**
|
|
9121
|
+
* @summary Queries the status of scaling activities that prompt text message or email notifications.
|
|
9122
|
+
*
|
|
9106
9123
|
* @param request DescribeAlertConfigurationRequest
|
|
9107
9124
|
* @return DescribeAlertConfigurationResponse
|
|
9108
9125
|
*/
|
|
9109
9126
|
describeAlertConfiguration(request: DescribeAlertConfigurationRequest): Promise<DescribeAlertConfigurationResponse>;
|
|
9110
9127
|
/**
|
|
9111
|
-
* @summary Queries
|
|
9128
|
+
* @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
9129
|
*
|
|
9113
9130
|
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
9114
9131
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9116,7 +9133,7 @@ export default class Client extends OpenApi {
|
|
|
9116
9133
|
*/
|
|
9117
9134
|
describeEciScalingConfigurationDetailWithOptions(request: DescribeEciScalingConfigurationDetailRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationDetailResponse>;
|
|
9118
9135
|
/**
|
|
9119
|
-
* @summary Queries
|
|
9136
|
+
* @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
9137
|
*
|
|
9121
9138
|
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
9122
9139
|
* @return DescribeEciScalingConfigurationDetailResponse
|
|
@@ -9138,7 +9155,7 @@ export default class Client extends OpenApi {
|
|
|
9138
9155
|
*/
|
|
9139
9156
|
describeEciScalingConfigurations(request: DescribeEciScalingConfigurationsRequest): Promise<DescribeEciScalingConfigurationsResponse>;
|
|
9140
9157
|
/**
|
|
9141
|
-
* @summary Queries lifecycle
|
|
9158
|
+
* @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
9159
|
*
|
|
9143
9160
|
* @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
9161
|
* * 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 +9169,7 @@ export default class Client extends OpenApi {
|
|
|
9152
9169
|
*/
|
|
9153
9170
|
describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse>;
|
|
9154
9171
|
/**
|
|
9155
|
-
* @summary Queries lifecycle
|
|
9172
|
+
* @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
9173
|
*
|
|
9157
9174
|
* @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
9175
|
* * 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 +9182,7 @@ export default class Client extends OpenApi {
|
|
|
9165
9182
|
*/
|
|
9166
9183
|
describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse>;
|
|
9167
9184
|
/**
|
|
9168
|
-
* @summary Queries lifecycle hooks.
|
|
9185
|
+
* @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
9186
|
*
|
|
9170
9187
|
* @description You can use one of the following methods to query lifecycle hooks:
|
|
9171
9188
|
* * 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 +9195,7 @@ export default class Client extends OpenApi {
|
|
|
9178
9195
|
*/
|
|
9179
9196
|
describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse>;
|
|
9180
9197
|
/**
|
|
9181
|
-
* @summary Queries lifecycle hooks.
|
|
9198
|
+
* @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
9199
|
*
|
|
9183
9200
|
* @description You can use one of the following methods to query lifecycle hooks:
|
|
9184
9201
|
* * 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 +9222,7 @@ export default class Client extends OpenApi {
|
|
|
9205
9222
|
*/
|
|
9206
9223
|
describeLimitation(request: DescribeLimitationRequest): Promise<DescribeLimitationResponse>;
|
|
9207
9224
|
/**
|
|
9208
|
-
* @summary Queries event
|
|
9225
|
+
* @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
9226
|
*
|
|
9210
9227
|
* @param request DescribeNotificationConfigurationsRequest
|
|
9211
9228
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9213,14 +9230,14 @@ export default class Client extends OpenApi {
|
|
|
9213
9230
|
*/
|
|
9214
9231
|
describeNotificationConfigurationsWithOptions(request: DescribeNotificationConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeNotificationConfigurationsResponse>;
|
|
9215
9232
|
/**
|
|
9216
|
-
* @summary Queries event
|
|
9233
|
+
* @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
9234
|
*
|
|
9218
9235
|
* @param request DescribeNotificationConfigurationsRequest
|
|
9219
9236
|
* @return DescribeNotificationConfigurationsResponse
|
|
9220
9237
|
*/
|
|
9221
9238
|
describeNotificationConfigurations(request: DescribeNotificationConfigurationsRequest): Promise<DescribeNotificationConfigurationsResponse>;
|
|
9222
9239
|
/**
|
|
9223
|
-
* @summary Queries notification types.
|
|
9240
|
+
* @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
9241
|
*
|
|
9225
9242
|
* @param request DescribeNotificationTypesRequest
|
|
9226
9243
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9228,7 +9245,7 @@ export default class Client extends OpenApi {
|
|
|
9228
9245
|
*/
|
|
9229
9246
|
describeNotificationTypesWithOptions(request: DescribeNotificationTypesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeNotificationTypesResponse>;
|
|
9230
9247
|
/**
|
|
9231
|
-
* @summary Queries notification types.
|
|
9248
|
+
* @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
9249
|
*
|
|
9233
9250
|
* @param request DescribeNotificationTypesRequest
|
|
9234
9251
|
* @return DescribeNotificationTypesResponse
|
|
@@ -9288,7 +9305,7 @@ export default class Client extends OpenApi {
|
|
|
9288
9305
|
*/
|
|
9289
9306
|
describeScalingActivities(request: DescribeScalingActivitiesRequest): Promise<DescribeScalingActivitiesResponse>;
|
|
9290
9307
|
/**
|
|
9291
|
-
* @summary Queries the details
|
|
9308
|
+
* @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
9309
|
*
|
|
9293
9310
|
* @param request DescribeScalingActivityDetailRequest
|
|
9294
9311
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9296,7 +9313,7 @@ export default class Client extends OpenApi {
|
|
|
9296
9313
|
*/
|
|
9297
9314
|
describeScalingActivityDetailWithOptions(request: DescribeScalingActivityDetailRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingActivityDetailResponse>;
|
|
9298
9315
|
/**
|
|
9299
|
-
* @summary Queries the details
|
|
9316
|
+
* @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
9317
|
*
|
|
9301
9318
|
* @param request DescribeScalingActivityDetailRequest
|
|
9302
9319
|
* @return DescribeScalingActivityDetailResponse
|
|
@@ -9348,7 +9365,7 @@ export default class Client extends OpenApi {
|
|
|
9348
9365
|
*/
|
|
9349
9366
|
describeScalingGroups(request: DescribeScalingGroupsRequest): Promise<DescribeScalingGroupsResponse>;
|
|
9350
9367
|
/**
|
|
9351
|
-
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group
|
|
9368
|
+
* @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
9369
|
*
|
|
9353
9370
|
* @param request DescribeScalingInstancesRequest
|
|
9354
9371
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9356,7 +9373,7 @@ export default class Client extends OpenApi {
|
|
|
9356
9373
|
*/
|
|
9357
9374
|
describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse>;
|
|
9358
9375
|
/**
|
|
9359
|
-
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group
|
|
9376
|
+
* @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
9377
|
*
|
|
9361
9378
|
* @param request DescribeScalingInstancesRequest
|
|
9362
9379
|
* @return DescribeScalingInstancesResponse
|
|
@@ -9382,7 +9399,7 @@ export default class Client extends OpenApi {
|
|
|
9382
9399
|
*/
|
|
9383
9400
|
describeScalingRules(request: DescribeScalingRulesRequest): Promise<DescribeScalingRulesResponse>;
|
|
9384
9401
|
/**
|
|
9385
|
-
* @summary Queries scheduled tasks.
|
|
9402
|
+
* @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
9403
|
*
|
|
9387
9404
|
* @description You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
9388
9405
|
*
|
|
@@ -9392,7 +9409,7 @@ export default class Client extends OpenApi {
|
|
|
9392
9409
|
*/
|
|
9393
9410
|
describeScheduledTasksWithOptions(request: DescribeScheduledTasksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScheduledTasksResponse>;
|
|
9394
9411
|
/**
|
|
9395
|
-
* @summary Queries scheduled tasks.
|
|
9412
|
+
* @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
9413
|
*
|
|
9397
9414
|
* @description You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
9398
9415
|
*
|
|
@@ -9431,16 +9448,18 @@ export default class Client extends OpenApi {
|
|
|
9431
9448
|
*/
|
|
9432
9449
|
detachDBInstances(request: DetachDBInstancesRequest): Promise<DetachDBInstancesResponse>;
|
|
9433
9450
|
/**
|
|
9434
|
-
* @summary Removes one or more Elastic Compute Service (ECS) instances
|
|
9451
|
+
* @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
9452
|
*
|
|
9436
|
-
* @description
|
|
9437
|
-
*
|
|
9438
|
-
*
|
|
9439
|
-
*
|
|
9440
|
-
*
|
|
9441
|
-
*
|
|
9442
|
-
*
|
|
9443
|
-
*
|
|
9453
|
+
* @description * Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
9454
|
+
* * The specified scaling group is enabled.
|
|
9455
|
+
* * The specified scaling group does not have any ongoing scaling activities.
|
|
9456
|
+
* **
|
|
9457
|
+
* **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.
|
|
9458
|
+
* * Before you call this operation, take note of the following items:
|
|
9459
|
+
* * 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.
|
|
9460
|
+
* * 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.
|
|
9461
|
+
* * 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.
|
|
9462
|
+
* * 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
9463
|
*
|
|
9445
9464
|
* @param request DetachInstancesRequest
|
|
9446
9465
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9448,23 +9467,25 @@ export default class Client extends OpenApi {
|
|
|
9448
9467
|
*/
|
|
9449
9468
|
detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse>;
|
|
9450
9469
|
/**
|
|
9451
|
-
* @summary Removes one or more Elastic Compute Service (ECS) instances
|
|
9470
|
+
* @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
9471
|
*
|
|
9453
|
-
* @description
|
|
9454
|
-
*
|
|
9455
|
-
*
|
|
9456
|
-
*
|
|
9457
|
-
*
|
|
9458
|
-
*
|
|
9459
|
-
*
|
|
9460
|
-
*
|
|
9472
|
+
* @description * Before you call the DetachInstances operation, make sure that the following conditions are met:
|
|
9473
|
+
* * The specified scaling group is enabled.
|
|
9474
|
+
* * The specified scaling group does not have any ongoing scaling activities.
|
|
9475
|
+
* **
|
|
9476
|
+
* **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.
|
|
9477
|
+
* * Before you call this operation, take note of the following items:
|
|
9478
|
+
* * 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.
|
|
9479
|
+
* * 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.
|
|
9480
|
+
* * 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.
|
|
9481
|
+
* * 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
9482
|
*
|
|
9462
9483
|
* @param request DetachInstancesRequest
|
|
9463
9484
|
* @return DetachInstancesResponse
|
|
9464
9485
|
*/
|
|
9465
9486
|
detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse>;
|
|
9466
9487
|
/**
|
|
9467
|
-
* @summary Detaches one or more
|
|
9488
|
+
* @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
9489
|
*
|
|
9469
9490
|
* @param request DetachLoadBalancersRequest
|
|
9470
9491
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9472,7 +9493,7 @@ export default class Client extends OpenApi {
|
|
|
9472
9493
|
*/
|
|
9473
9494
|
detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse>;
|
|
9474
9495
|
/**
|
|
9475
|
-
* @summary Detaches one or more
|
|
9496
|
+
* @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
9497
|
*
|
|
9477
9498
|
* @param request DetachLoadBalancersRequest
|
|
9478
9499
|
* @return DetachLoadBalancersResponse
|
|
@@ -9636,7 +9657,7 @@ export default class Client extends OpenApi {
|
|
|
9636
9657
|
*/
|
|
9637
9658
|
enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse>;
|
|
9638
9659
|
/**
|
|
9639
|
-
* @summary Executes a scaling rule.
|
|
9660
|
+
* @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
9661
|
*
|
|
9641
9662
|
* @description Before you call this operation, take note of the following items:
|
|
9642
9663
|
* * The scaling group is in the Active state.
|
|
@@ -9653,7 +9674,7 @@ export default class Client extends OpenApi {
|
|
|
9653
9674
|
*/
|
|
9654
9675
|
executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse>;
|
|
9655
9676
|
/**
|
|
9656
|
-
* @summary Executes a scaling rule.
|
|
9677
|
+
* @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
9678
|
*
|
|
9658
9679
|
* @description Before you call this operation, take note of the following items:
|
|
9659
9680
|
* * The scaling group is in the Active state.
|
|
@@ -9669,10 +9690,13 @@ export default class Client extends OpenApi {
|
|
|
9669
9690
|
*/
|
|
9670
9691
|
executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse>;
|
|
9671
9692
|
/**
|
|
9672
|
-
* @summary
|
|
9693
|
+
* @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
9694
|
*
|
|
9674
|
-
* @description
|
|
9675
|
-
*
|
|
9695
|
+
* @description After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
9696
|
+
* * The ECS instances or elastic container instances enter the In Service state.
|
|
9697
|
+
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
9698
|
+
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
9699
|
+
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
9676
9700
|
*
|
|
9677
9701
|
* @param request ExitStandbyRequest
|
|
9678
9702
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9680,10 +9704,13 @@ export default class Client extends OpenApi {
|
|
|
9680
9704
|
*/
|
|
9681
9705
|
exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse>;
|
|
9682
9706
|
/**
|
|
9683
|
-
* @summary
|
|
9707
|
+
* @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
9708
|
*
|
|
9685
|
-
* @description
|
|
9686
|
-
*
|
|
9709
|
+
* @description After ECS instances or elastic container instances are removed from the Standby state, the following rules apply:
|
|
9710
|
+
* * The ECS instances or elastic container instances enter the In Service state.
|
|
9711
|
+
* * The default weight of each ECS instance or elastic container instance as a backend server of the attached load balancer is 50.
|
|
9712
|
+
* * If you stop or restart the ECS instances or elastic container instances, the health check status of the instances will be updated.
|
|
9713
|
+
* * When a scale-in event is triggered, Auto Scaling may remove the ECS instances or elastic container instances from the scaling group.
|
|
9687
9714
|
*
|
|
9688
9715
|
* @param request ExitStandbyRequest
|
|
9689
9716
|
* @return ExitStandbyResponse
|
|
@@ -9768,12 +9795,16 @@ export default class Client extends OpenApi {
|
|
|
9768
9795
|
*/
|
|
9769
9796
|
modifyAlarm(request: ModifyAlarmRequest): Promise<ModifyAlarmResponse>;
|
|
9770
9797
|
/**
|
|
9798
|
+
* @summary Sets the status of scaling activities that prompt text message or email notifications.
|
|
9799
|
+
*
|
|
9771
9800
|
* @param request ModifyAlertConfigurationRequest
|
|
9772
9801
|
* @param runtime runtime options for this request RuntimeOptions
|
|
9773
9802
|
* @return ModifyAlertConfigurationResponse
|
|
9774
9803
|
*/
|
|
9775
9804
|
modifyAlertConfigurationWithOptions(request: ModifyAlertConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlertConfigurationResponse>;
|
|
9776
9805
|
/**
|
|
9806
|
+
* @summary Sets the status of scaling activities that prompt text message or email notifications.
|
|
9807
|
+
*
|
|
9777
9808
|
* @param request ModifyAlertConfigurationRequest
|
|
9778
9809
|
* @return ModifyAlertConfigurationResponse
|
|
9779
9810
|
*/
|
|
@@ -9813,11 +9844,11 @@ export default class Client extends OpenApi {
|
|
|
9813
9844
|
*/
|
|
9814
9845
|
modifyInstanceAttribute(request: ModifyInstanceAttributeRequest): Promise<ModifyInstanceAttributeResponse>;
|
|
9815
9846
|
/**
|
|
9816
|
-
* @summary Modifies a lifecycle hook.
|
|
9847
|
+
* @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
9848
|
*
|
|
9818
|
-
* @description You can use one of the following methods to
|
|
9819
|
-
* * Specify
|
|
9820
|
-
* * Specify
|
|
9849
|
+
* @description You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
9850
|
+
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
9851
|
+
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
9821
9852
|
*
|
|
9822
9853
|
* @param request ModifyLifecycleHookRequest
|
|
9823
9854
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9825,18 +9856,18 @@ export default class Client extends OpenApi {
|
|
|
9825
9856
|
*/
|
|
9826
9857
|
modifyLifecycleHookWithOptions(request: ModifyLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<ModifyLifecycleHookResponse>;
|
|
9827
9858
|
/**
|
|
9828
|
-
* @summary Modifies a lifecycle hook.
|
|
9859
|
+
* @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
9860
|
*
|
|
9830
|
-
* @description You can use one of the following methods to
|
|
9831
|
-
* * Specify
|
|
9832
|
-
* * Specify
|
|
9861
|
+
* @description You can use one of the following methods to locate the lifecycle hook that you want to modify:
|
|
9862
|
+
* * Specify LifecycleHookId. In this case, ScalingGroupId and LifecycleHookName are ignored.
|
|
9863
|
+
* * Specify ScalingGroupId and LifecycleHookName. Each lifecycle hook within a scaling group has a unique name.
|
|
9833
9864
|
*
|
|
9834
9865
|
* @param request ModifyLifecycleHookRequest
|
|
9835
9866
|
* @return ModifyLifecycleHookResponse
|
|
9836
9867
|
*/
|
|
9837
9868
|
modifyLifecycleHook(request: ModifyLifecycleHookRequest): Promise<ModifyLifecycleHookResponse>;
|
|
9838
9869
|
/**
|
|
9839
|
-
* @summary Modifies a notification.
|
|
9870
|
+
* @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
9871
|
*
|
|
9841
9872
|
* @param request ModifyNotificationConfigurationRequest
|
|
9842
9873
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9844,7 +9875,7 @@ export default class Client extends OpenApi {
|
|
|
9844
9875
|
*/
|
|
9845
9876
|
modifyNotificationConfigurationWithOptions(request: ModifyNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyNotificationConfigurationResponse>;
|
|
9846
9877
|
/**
|
|
9847
|
-
* @summary Modifies a notification.
|
|
9878
|
+
* @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
9879
|
*
|
|
9849
9880
|
* @param request ModifyNotificationConfigurationRequest
|
|
9850
9881
|
* @return ModifyNotificationConfigurationResponse
|
|
@@ -9913,7 +9944,7 @@ export default class Client extends OpenApi {
|
|
|
9913
9944
|
*/
|
|
9914
9945
|
modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
|
|
9915
9946
|
/**
|
|
9916
|
-
* @summary Modifies a scaling rule.
|
|
9947
|
+
* @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
9948
|
*
|
|
9918
9949
|
* @param request ModifyScalingRuleRequest
|
|
9919
9950
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9921,14 +9952,14 @@ export default class Client extends OpenApi {
|
|
|
9921
9952
|
*/
|
|
9922
9953
|
modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
|
|
9923
9954
|
/**
|
|
9924
|
-
* @summary Modifies a scaling rule.
|
|
9955
|
+
* @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
9956
|
*
|
|
9926
9957
|
* @param request ModifyScalingRuleRequest
|
|
9927
9958
|
* @return ModifyScalingRuleResponse
|
|
9928
9959
|
*/
|
|
9929
9960
|
modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse>;
|
|
9930
9961
|
/**
|
|
9931
|
-
* @summary Modifies a scheduled task.
|
|
9962
|
+
* @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
9963
|
*
|
|
9933
9964
|
* @description You can use the following parameters to specify the scaling method of a scheduled task:
|
|
9934
9965
|
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
@@ -9941,7 +9972,7 @@ export default class Client extends OpenApi {
|
|
|
9941
9972
|
*/
|
|
9942
9973
|
modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse>;
|
|
9943
9974
|
/**
|
|
9944
|
-
* @summary Modifies a scheduled task.
|
|
9975
|
+
* @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
9976
|
*
|
|
9946
9977
|
* @description You can use the following parameters to specify the scaling method of a scheduled task:
|
|
9947
9978
|
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
@@ -9984,9 +10015,10 @@ export default class Client extends OpenApi {
|
|
|
9984
10015
|
*/
|
|
9985
10016
|
rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse>;
|
|
9986
10017
|
/**
|
|
9987
|
-
* @summary
|
|
10018
|
+
* @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
10019
|
*
|
|
9989
|
-
* @description You can call this operation
|
|
10020
|
+
* @description You can call this operation only when the desired ECS instance enters a Pending state.\\
|
|
10021
|
+
* 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
10022
|
*
|
|
9991
10023
|
* @param request RecordLifecycleActionHeartbeatRequest
|
|
9992
10024
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -9994,9 +10026,10 @@ export default class Client extends OpenApi {
|
|
|
9994
10026
|
*/
|
|
9995
10027
|
recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse>;
|
|
9996
10028
|
/**
|
|
9997
|
-
* @summary
|
|
10029
|
+
* @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
10030
|
*
|
|
9999
|
-
* @description You can call this operation
|
|
10031
|
+
* @description You can call this operation only when the desired ECS instance enters a Pending state.\\
|
|
10032
|
+
* 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
10033
|
*
|
|
10001
10034
|
* @param request RecordLifecycleActionHeartbeatRequest
|
|
10002
10035
|
* @return RecordLifecycleActionHeartbeatResponse
|