@alicloud/ess20220222 1.0.10 → 1.0.11
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 +393 -22
- package/dist/client.js +415 -22
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +429 -22
package/dist/client.d.ts
CHANGED
|
@@ -674,6 +674,8 @@ export declare class CreateScalingConfigurationRequest extends $tea.Model {
|
|
|
674
674
|
spotInterruptionBehavior?: string;
|
|
675
675
|
spotPriceLimits?: CreateScalingConfigurationRequestSpotPriceLimits[];
|
|
676
676
|
spotStrategy?: string;
|
|
677
|
+
storageSetId?: string;
|
|
678
|
+
storageSetPartitionNumber?: number;
|
|
677
679
|
systemDiskCategories?: string[];
|
|
678
680
|
tags?: string;
|
|
679
681
|
tenancy?: string;
|
|
@@ -737,6 +739,8 @@ export declare class CreateScalingConfigurationShrinkRequest extends $tea.Model
|
|
|
737
739
|
spotInterruptionBehavior?: string;
|
|
738
740
|
spotPriceLimits?: CreateScalingConfigurationShrinkRequestSpotPriceLimits[];
|
|
739
741
|
spotStrategy?: string;
|
|
742
|
+
storageSetId?: string;
|
|
743
|
+
storageSetPartitionNumber?: number;
|
|
740
744
|
systemDiskCategories?: string[];
|
|
741
745
|
tags?: string;
|
|
742
746
|
tenancy?: string;
|
|
@@ -3197,6 +3201,8 @@ export declare class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
3197
3201
|
spotInterruptionBehavior?: string;
|
|
3198
3202
|
spotPriceLimits?: ModifyScalingConfigurationRequestSpotPriceLimits[];
|
|
3199
3203
|
spotStrategy?: string;
|
|
3204
|
+
storageSetId?: string;
|
|
3205
|
+
storageSetPartitionNumber?: number;
|
|
3200
3206
|
systemDiskCategories?: string[];
|
|
3201
3207
|
tags?: string;
|
|
3202
3208
|
tenancy?: string;
|
|
@@ -3256,6 +3262,8 @@ export declare class ModifyScalingConfigurationShrinkRequest extends $tea.Model
|
|
|
3256
3262
|
spotInterruptionBehavior?: string;
|
|
3257
3263
|
spotPriceLimits?: ModifyScalingConfigurationShrinkRequestSpotPriceLimits[];
|
|
3258
3264
|
spotStrategy?: string;
|
|
3265
|
+
storageSetId?: string;
|
|
3266
|
+
storageSetPartitionNumber?: number;
|
|
3259
3267
|
systemDiskCategories?: string[];
|
|
3260
3268
|
tags?: string;
|
|
3261
3269
|
tenancy?: string;
|
|
@@ -5669,6 +5677,8 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
|
|
|
5669
5677
|
spotInterruptionBehavior?: string;
|
|
5670
5678
|
spotPriceLimits?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsSpotPriceLimits[];
|
|
5671
5679
|
spotStrategy?: string;
|
|
5680
|
+
storageSetId?: string;
|
|
5681
|
+
storageSetPartitionNumber?: number;
|
|
5672
5682
|
systemDiskAutoSnapshotPolicyId?: string;
|
|
5673
5683
|
systemDiskBurstingEnabled?: boolean;
|
|
5674
5684
|
systemDiskCategories?: string[];
|
|
@@ -6954,17 +6964,162 @@ export default class Client extends OpenApi {
|
|
|
6954
6964
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
6955
6965
|
[key: string]: string;
|
|
6956
6966
|
}, endpoint: string): string;
|
|
6967
|
+
/**
|
|
6968
|
+
* Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
|
|
6969
|
+
* * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
|
|
6970
|
+
* * The ALB server group is in the Available state.
|
|
6971
|
+
* * You can associate only a limited number of ALB server groups with a scaling group. To view the quota or manually request a quota increase, go to [Quota Center](https://quotas.console.aliyun.com/products/ess/quotas).
|
|
6972
|
+
*
|
|
6973
|
+
* @param request AttachAlbServerGroupsRequest
|
|
6974
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6975
|
+
* @return AttachAlbServerGroupsResponse
|
|
6976
|
+
*/
|
|
6957
6977
|
attachAlbServerGroupsWithOptions(request: AttachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachAlbServerGroupsResponse>;
|
|
6978
|
+
/**
|
|
6979
|
+
* Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
|
|
6980
|
+
* * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
|
|
6981
|
+
* * The ALB server group is in the Available state.
|
|
6982
|
+
* * You can associate only a limited number of ALB server groups with a scaling group. To view the quota or manually request a quota increase, go to [Quota Center](https://quotas.console.aliyun.com/products/ess/quotas).
|
|
6983
|
+
*
|
|
6984
|
+
* @param request AttachAlbServerGroupsRequest
|
|
6985
|
+
* @return AttachAlbServerGroupsResponse
|
|
6986
|
+
*/
|
|
6958
6987
|
attachAlbServerGroups(request: AttachAlbServerGroupsRequest): Promise<AttachAlbServerGroupsResponse>;
|
|
6988
|
+
/**
|
|
6989
|
+
* Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
6990
|
+
* * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
6991
|
+
* * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](~~41872~~).
|
|
6992
|
+
* * The ApsaraDB RDS instance must be in the Running state.
|
|
6993
|
+
* After an ApsaraDB RDS instance is associated with the scaling group, the default IP address whitelist of the ApsaraDB RDS instance can contain no more than 1,000 IP addresses. For more information, see [Set the whitelist](~~43185~~).
|
|
6994
|
+
*
|
|
6995
|
+
* @param request AttachDBInstancesRequest
|
|
6996
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6997
|
+
* @return AttachDBInstancesResponse
|
|
6998
|
+
*/
|
|
6959
6999
|
attachDBInstancesWithOptions(request: AttachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachDBInstancesResponse>;
|
|
7000
|
+
/**
|
|
7001
|
+
* Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
7002
|
+
* * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
7003
|
+
* * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](~~41872~~).
|
|
7004
|
+
* * The ApsaraDB RDS instance must be in the Running state.
|
|
7005
|
+
* After an ApsaraDB RDS instance is associated with the scaling group, the default IP address whitelist of the ApsaraDB RDS instance can contain no more than 1,000 IP addresses. For more information, see [Set the whitelist](~~43185~~).
|
|
7006
|
+
*
|
|
7007
|
+
* @param request AttachDBInstancesRequest
|
|
7008
|
+
* @return AttachDBInstancesResponse
|
|
7009
|
+
*/
|
|
6960
7010
|
attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse>;
|
|
7011
|
+
/**
|
|
7012
|
+
* Before you call this operation, take note of the following items:
|
|
7013
|
+
* * The scaling group is in the Active state.
|
|
7014
|
+
* * No scaling activities in the scaling group are in progress.
|
|
7015
|
+
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
7016
|
+
* * The instances reside in the same region as the scaling group.
|
|
7017
|
+
* * The instances must be in the Running state.
|
|
7018
|
+
* * The instances are not added to other scaling groups.
|
|
7019
|
+
* * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
|
|
7020
|
+
* * If the VswitchID parameter is specified for a scaling group, the instances that are in the classic network or those that are not in the same virtual private cloud (VPC) as the specified vSwitch cannot be added to the scaling group.
|
|
7021
|
+
* * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
|
|
7022
|
+
* If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7023
|
+
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
7024
|
+
* If the sum of the number of instances that you want to add and the number of existing instances in the scaling group is greater than the value of the MaxSize parameter, the call fails.
|
|
7025
|
+
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
7026
|
+
*
|
|
7027
|
+
* @param request AttachInstancesRequest
|
|
7028
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7029
|
+
* @return AttachInstancesResponse
|
|
7030
|
+
*/
|
|
6961
7031
|
attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse>;
|
|
7032
|
+
/**
|
|
7033
|
+
* Before you call this operation, take note of the following items:
|
|
7034
|
+
* * The scaling group is in the Active state.
|
|
7035
|
+
* * No scaling activities in the scaling group are in progress.
|
|
7036
|
+
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
7037
|
+
* * The instances reside in the same region as the scaling group.
|
|
7038
|
+
* * The instances must be in the Running state.
|
|
7039
|
+
* * The instances are not added to other scaling groups.
|
|
7040
|
+
* * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
|
|
7041
|
+
* * If the VswitchID parameter is specified for a scaling group, the instances that are in the classic network or those that are not in the same virtual private cloud (VPC) as the specified vSwitch cannot be added to the scaling group.
|
|
7042
|
+
* * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
|
|
7043
|
+
* If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7044
|
+
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
7045
|
+
* If the sum of the number of instances that you want to add and the number of existing instances in the scaling group is greater than the value of the MaxSize parameter, the call fails.
|
|
7046
|
+
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
7047
|
+
*
|
|
7048
|
+
* @param request AttachInstancesRequest
|
|
7049
|
+
* @return AttachInstancesResponse
|
|
7050
|
+
*/
|
|
6962
7051
|
attachInstances(request: AttachInstancesRequest): Promise<AttachInstancesResponse>;
|
|
7052
|
+
/**
|
|
7053
|
+
* Before you call this operation to attach a CLB instance to your scaling group, take note of the following items:
|
|
7054
|
+
* * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
7055
|
+
* * The CLB instance and the scaling group must reside in the same region.
|
|
7056
|
+
* * The CLB instance must be in the Running state.
|
|
7057
|
+
* * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
|
|
7058
|
+
* * The CLB instance and the scaling group must be in the same virtual private cloud (VPC) if their network type is VPC.
|
|
7059
|
+
* * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the CLB backend server groups contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
|
|
7060
|
+
* * You can attach only a limited number of CLB instances to a scaling group. Fore more information, see [Limits](~~25863~~).
|
|
7061
|
+
*
|
|
7062
|
+
* @param request AttachLoadBalancersRequest
|
|
7063
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7064
|
+
* @return AttachLoadBalancersResponse
|
|
7065
|
+
*/
|
|
6963
7066
|
attachLoadBalancersWithOptions(request: AttachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<AttachLoadBalancersResponse>;
|
|
7067
|
+
/**
|
|
7068
|
+
* Before you call this operation to attach a CLB instance to your scaling group, take note of the following items:
|
|
7069
|
+
* * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
7070
|
+
* * The CLB instance and the scaling group must reside in the same region.
|
|
7071
|
+
* * The CLB instance must be in the Running state.
|
|
7072
|
+
* * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
|
|
7073
|
+
* * The CLB instance and the scaling group must be in the same virtual private cloud (VPC) if their network type is VPC.
|
|
7074
|
+
* * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the CLB backend server groups contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
|
|
7075
|
+
* * You can attach only a limited number of CLB instances to a scaling group. Fore more information, see [Limits](~~25863~~).
|
|
7076
|
+
*
|
|
7077
|
+
* @param request AttachLoadBalancersRequest
|
|
7078
|
+
* @return AttachLoadBalancersResponse
|
|
7079
|
+
*/
|
|
6964
7080
|
attachLoadBalancers(request: AttachLoadBalancersRequest): Promise<AttachLoadBalancersResponse>;
|
|
6965
7081
|
attachServerGroupsWithOptions(request: AttachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachServerGroupsResponse>;
|
|
6966
7082
|
attachServerGroups(request: AttachServerGroupsRequest): Promise<AttachServerGroupsResponse>;
|
|
7083
|
+
/**
|
|
7084
|
+
* Before you call this operation to attach a vServer group to your scaling group, take note of the following items:
|
|
7085
|
+
* * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
7086
|
+
* * The CLB instance and the scaling group must reside in the same region.
|
|
7087
|
+
* * The CLB instance must be in the Running state.
|
|
7088
|
+
* * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
|
|
7089
|
+
* * The CLB instance and the scaling group must be in the same VPC if their network type is VPC.
|
|
7090
|
+
* * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the vServer groups of the CLB instance contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
|
|
7091
|
+
* * The vServer group that you want to attach to your scaling group must belong to the CLB instance.
|
|
7092
|
+
* * You can attach only a limited number of vServer groups to a scaling group. For information about the quota on vServer groups, see [Limits](~~25863~~).
|
|
7093
|
+
* When you call this operation, you must specify the following parameters:
|
|
7094
|
+
* * LoadBalancerId: the ID of the CLB instance.
|
|
7095
|
+
* * VServerGroupId: the ID of the vServer group.
|
|
7096
|
+
* * Port: the port number of the vServer group.
|
|
7097
|
+
* If a vServer group is attached to a scaling group by using different ports, Auto Scaling considers that more than one vServer group is attached to the scaling group. If multiple vServer groups with the same group ID and port number are specified in the request parameters, only the first vServer group is used. The other vServer groups are ignored.
|
|
7098
|
+
*
|
|
7099
|
+
* @param request AttachVServerGroupsRequest
|
|
7100
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7101
|
+
* @return AttachVServerGroupsResponse
|
|
7102
|
+
*/
|
|
6967
7103
|
attachVServerGroupsWithOptions(request: AttachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachVServerGroupsResponse>;
|
|
7104
|
+
/**
|
|
7105
|
+
* Before you call this operation to attach a vServer group to your scaling group, take note of the following items:
|
|
7106
|
+
* * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
7107
|
+
* * The CLB instance and the scaling group must reside in the same region.
|
|
7108
|
+
* * The CLB instance must be in the Running state.
|
|
7109
|
+
* * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
|
|
7110
|
+
* * The CLB instance and the scaling group must be in the same VPC if their network type is VPC.
|
|
7111
|
+
* * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the vServer groups of the CLB instance contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
|
|
7112
|
+
* * The vServer group that you want to attach to your scaling group must belong to the CLB instance.
|
|
7113
|
+
* * You can attach only a limited number of vServer groups to a scaling group. For information about the quota on vServer groups, see [Limits](~~25863~~).
|
|
7114
|
+
* When you call this operation, you must specify the following parameters:
|
|
7115
|
+
* * LoadBalancerId: the ID of the CLB instance.
|
|
7116
|
+
* * VServerGroupId: the ID of the vServer group.
|
|
7117
|
+
* * Port: the port number of the vServer group.
|
|
7118
|
+
* If a vServer group is attached to a scaling group by using different ports, Auto Scaling considers that more than one vServer group is attached to the scaling group. If multiple vServer groups with the same group ID and port number are specified in the request parameters, only the first vServer group is used. The other vServer groups are ignored.
|
|
7119
|
+
*
|
|
7120
|
+
* @param request AttachVServerGroupsRequest
|
|
7121
|
+
* @return AttachVServerGroupsResponse
|
|
7122
|
+
*/
|
|
6968
7123
|
attachVServerGroups(request: AttachVServerGroupsRequest): Promise<AttachVServerGroupsResponse>;
|
|
6969
7124
|
changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse>;
|
|
6970
7125
|
changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse>;
|
|
@@ -7023,7 +7178,22 @@ export default class Client extends OpenApi {
|
|
|
7023
7178
|
* @return CreateLifecycleHookResponse
|
|
7024
7179
|
*/
|
|
7025
7180
|
createLifecycleHook(request: CreateLifecycleHookRequest): Promise<CreateLifecycleHookResponse>;
|
|
7181
|
+
/**
|
|
7182
|
+
* ## Description
|
|
7183
|
+
* You can configure CloudMonitor system events, Message Service (MNS) queues, or MNS topics to receive notifications. When a specified type of scaling activity or resource change occurs in a scaling group, Auto Scaling sends notifications by using CloudMonitor or MNS.
|
|
7184
|
+
*
|
|
7185
|
+
* @param request CreateNotificationConfigurationRequest
|
|
7186
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7187
|
+
* @return CreateNotificationConfigurationResponse
|
|
7188
|
+
*/
|
|
7026
7189
|
createNotificationConfigurationWithOptions(request: CreateNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateNotificationConfigurationResponse>;
|
|
7190
|
+
/**
|
|
7191
|
+
* ## Description
|
|
7192
|
+
* You can configure CloudMonitor system events, Message Service (MNS) queues, or MNS topics to receive notifications. When a specified type of scaling activity or resource change occurs in a scaling group, Auto Scaling sends notifications by using CloudMonitor or MNS.
|
|
7193
|
+
*
|
|
7194
|
+
* @param request CreateNotificationConfigurationRequest
|
|
7195
|
+
* @return CreateNotificationConfigurationResponse
|
|
7196
|
+
*/
|
|
7027
7197
|
createNotificationConfiguration(request: CreateNotificationConfigurationRequest): Promise<CreateNotificationConfigurationResponse>;
|
|
7028
7198
|
/**
|
|
7029
7199
|
* Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
@@ -7110,18 +7280,19 @@ export default class Client extends OpenApi {
|
|
|
7110
7280
|
*/
|
|
7111
7281
|
createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse>;
|
|
7112
7282
|
/**
|
|
7113
|
-
*
|
|
7114
|
-
*
|
|
7115
|
-
* * If your scaling group contains
|
|
7283
|
+
* ## Description
|
|
7284
|
+
* A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling adjusts the number of ECS instances that you want to add or remove. This way, the number of ECS instances can be maintained within the valid range after the scaling rule is executed. The number of ECS instances that is specified in the scaling rule remains unchanged. Example:
|
|
7285
|
+
* * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified. The number of ECS instances that is specified in the scaling rule remains unchanged.
|
|
7286
|
+
* * 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.
|
|
7116
7287
|
* Before you call this operation, take note of the following items:
|
|
7117
|
-
* * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
|
|
7118
|
-
* * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
|
|
7119
|
-
* * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
|
|
7120
|
-
* * If
|
|
7288
|
+
* * If you set the AdjustmentType parameter to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of the AdjustmentValue parameter must be greater than or equal to 0.
|
|
7289
|
+
* * If you set the AdjustmentType parameter to QuantityChangeInCapacity or PercentChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
|
|
7290
|
+
* * If you set the AdjustmentType parameter to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
|
|
7291
|
+
* * If the cooldown time is specified in a scaling rule, the specified time applies to the scaling group after the rule is executed. Otherwise, the value of the DefaultCooldown parameter of the scaling group applies to the scaling group.
|
|
7121
7292
|
* * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
|
|
7122
7293
|
* * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
|
|
7123
|
-
* * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule
|
|
7124
|
-
* * CreateScheduledTask: You can call this operation to create a scheduled task
|
|
7294
|
+
* * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule by setting the ScalingRuleAri parameter to the unique identifier of the scaling rule.
|
|
7295
|
+
* * CreateScheduledTask: You can call this operation to create a scheduled task for a specific scaling rule by setting the ScheduledAction parameter to the unique identifier of the scaling rule.
|
|
7125
7296
|
*
|
|
7126
7297
|
* @param request CreateScalingRuleRequest
|
|
7127
7298
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7129,36 +7300,94 @@ export default class Client extends OpenApi {
|
|
|
7129
7300
|
*/
|
|
7130
7301
|
createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse>;
|
|
7131
7302
|
/**
|
|
7132
|
-
*
|
|
7133
|
-
*
|
|
7134
|
-
* * If your scaling group contains
|
|
7303
|
+
* ## Description
|
|
7304
|
+
* A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling adjusts the number of ECS instances that you want to add or remove. This way, the number of ECS instances can be maintained within the valid range after the scaling rule is executed. The number of ECS instances that is specified in the scaling rule remains unchanged. Example:
|
|
7305
|
+
* * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified. The number of ECS instances that is specified in the scaling rule remains unchanged.
|
|
7306
|
+
* * 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.
|
|
7135
7307
|
* Before you call this operation, take note of the following items:
|
|
7136
|
-
* * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
|
|
7137
|
-
* * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
|
|
7138
|
-
* * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
|
|
7139
|
-
* * If
|
|
7308
|
+
* * If you set the AdjustmentType parameter to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of the AdjustmentValue parameter must be greater than or equal to 0.
|
|
7309
|
+
* * If you set the AdjustmentType parameter to QuantityChangeInCapacity or PercentChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
|
|
7310
|
+
* * If you set the AdjustmentType parameter to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
|
|
7311
|
+
* * If the cooldown time is specified in a scaling rule, the specified time applies to the scaling group after the rule is executed. Otherwise, the value of the DefaultCooldown parameter of the scaling group applies to the scaling group.
|
|
7140
7312
|
* * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
|
|
7141
7313
|
* * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
|
|
7142
|
-
* * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule
|
|
7143
|
-
* * CreateScheduledTask: You can call this operation to create a scheduled task
|
|
7314
|
+
* * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule by setting the ScalingRuleAri parameter to the unique identifier of the scaling rule.
|
|
7315
|
+
* * CreateScheduledTask: You can call this operation to create a scheduled task for a specific scaling rule by setting the ScheduledAction parameter to the unique identifier of the scaling rule.
|
|
7144
7316
|
*
|
|
7145
7317
|
* @param request CreateScalingRuleRequest
|
|
7146
7318
|
* @return CreateScalingRuleResponse
|
|
7147
7319
|
*/
|
|
7148
7320
|
createScalingRule(request: CreateScalingRuleRequest): Promise<CreateScalingRuleResponse>;
|
|
7321
|
+
/**
|
|
7322
|
+
* * If a scheduled task fails to trigger a scaling activity due to an ongoing scaling activity in a scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the period that is specified by the LaunchExpirationTime parameter. If the scheduled task still fails to trigger a scaling activity after the period ends, the task is automatically skipped.
|
|
7323
|
+
* * If multiple tasks are scheduled at similar points in time to trigger scaling activities in the same scaling group, the earliest task triggers the scaling activity first. Other tasks trigger scaling activities within their launch expiration time. Only one scaling activity can be triggered in a scaling group at a time.`` If the previous scaling activity is complete and another scheduled task attempts to trigger a scaling activity, Auto Scaling executes the scaling rule that is specified in the scheduled task and then triggers a scaling activity.``
|
|
7324
|
+
* * A scheduled task supports the following scaling methods:
|
|
7325
|
+
* * `ScheduledAction`: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
7326
|
+
* * `ScalingGroupId`: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you created the scheduled task.
|
|
7327
|
+
* > You cannot specify the `ScheduledAction` and ScalingGroupId parameters at the same time.
|
|
7328
|
+
*
|
|
7329
|
+
* @param request CreateScheduledTaskRequest
|
|
7330
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7331
|
+
* @return CreateScheduledTaskResponse
|
|
7332
|
+
*/
|
|
7149
7333
|
createScheduledTaskWithOptions(request: CreateScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateScheduledTaskResponse>;
|
|
7334
|
+
/**
|
|
7335
|
+
* * If a scheduled task fails to trigger a scaling activity due to an ongoing scaling activity in a scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the period that is specified by the LaunchExpirationTime parameter. If the scheduled task still fails to trigger a scaling activity after the period ends, the task is automatically skipped.
|
|
7336
|
+
* * If multiple tasks are scheduled at similar points in time to trigger scaling activities in the same scaling group, the earliest task triggers the scaling activity first. Other tasks trigger scaling activities within their launch expiration time. Only one scaling activity can be triggered in a scaling group at a time.`` If the previous scaling activity is complete and another scheduled task attempts to trigger a scaling activity, Auto Scaling executes the scaling rule that is specified in the scheduled task and then triggers a scaling activity.``
|
|
7337
|
+
* * A scheduled task supports the following scaling methods:
|
|
7338
|
+
* * `ScheduledAction`: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
7339
|
+
* * `ScalingGroupId`: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you created the scheduled task.
|
|
7340
|
+
* > You cannot specify the `ScheduledAction` and ScalingGroupId parameters at the same time.
|
|
7341
|
+
*
|
|
7342
|
+
* @param request CreateScheduledTaskRequest
|
|
7343
|
+
* @return CreateScheduledTaskResponse
|
|
7344
|
+
*/
|
|
7150
7345
|
createScheduledTask(request: CreateScheduledTaskRequest): Promise<CreateScheduledTaskResponse>;
|
|
7151
7346
|
deactivateScalingConfigurationWithOptions(request: DeactivateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeactivateScalingConfigurationResponse>;
|
|
7152
7347
|
deactivateScalingConfiguration(request: DeactivateScalingConfigurationRequest): Promise<DeactivateScalingConfigurationResponse>;
|
|
7153
7348
|
deleteAlarmWithOptions(request: DeleteAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAlarmResponse>;
|
|
7154
7349
|
deleteAlarm(request: DeleteAlarmRequest): Promise<DeleteAlarmResponse>;
|
|
7350
|
+
/**
|
|
7351
|
+
* You cannot delete a scaling configuration that is used to create elastic container instances in the following scenarios:
|
|
7352
|
+
* * The scaling configuration is in the Active state.
|
|
7353
|
+
* * The scaling group contains elastic container instances that are created based on the scaling configuration.
|
|
7354
|
+
*
|
|
7355
|
+
* @param request DeleteEciScalingConfigurationRequest
|
|
7356
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7357
|
+
* @return DeleteEciScalingConfigurationResponse
|
|
7358
|
+
*/
|
|
7155
7359
|
deleteEciScalingConfigurationWithOptions(request: DeleteEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteEciScalingConfigurationResponse>;
|
|
7360
|
+
/**
|
|
7361
|
+
* You cannot delete a scaling configuration that is used to create elastic container instances in the following scenarios:
|
|
7362
|
+
* * The scaling configuration is in the Active state.
|
|
7363
|
+
* * The scaling group contains elastic container instances that are created based on the scaling configuration.
|
|
7364
|
+
*
|
|
7365
|
+
* @param request DeleteEciScalingConfigurationRequest
|
|
7366
|
+
* @return DeleteEciScalingConfigurationResponse
|
|
7367
|
+
*/
|
|
7156
7368
|
deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse>;
|
|
7157
7369
|
deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse>;
|
|
7158
7370
|
deleteLifecycleHook(request: DeleteLifecycleHookRequest): Promise<DeleteLifecycleHookResponse>;
|
|
7159
7371
|
deleteNotificationConfigurationWithOptions(request: DeleteNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNotificationConfigurationResponse>;
|
|
7160
7372
|
deleteNotificationConfiguration(request: DeleteNotificationConfigurationRequest): Promise<DeleteNotificationConfigurationResponse>;
|
|
7373
|
+
/**
|
|
7374
|
+
* You cannot delete a scaling configuration in one of the following scenarios:
|
|
7375
|
+
* * The scaling configuration in your scaling group is in the Active state.
|
|
7376
|
+
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
7377
|
+
*
|
|
7378
|
+
* @param request DeleteScalingConfigurationRequest
|
|
7379
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7380
|
+
* @return DeleteScalingConfigurationResponse
|
|
7381
|
+
*/
|
|
7161
7382
|
deleteScalingConfigurationWithOptions(request: DeleteScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingConfigurationResponse>;
|
|
7383
|
+
/**
|
|
7384
|
+
* You cannot delete a scaling configuration in one of the following scenarios:
|
|
7385
|
+
* * The scaling configuration in your scaling group is in the Active state.
|
|
7386
|
+
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
7387
|
+
*
|
|
7388
|
+
* @param request DeleteScalingConfigurationRequest
|
|
7389
|
+
* @return DeleteScalingConfigurationResponse
|
|
7390
|
+
*/
|
|
7162
7391
|
deleteScalingConfiguration(request: DeleteScalingConfigurationRequest): Promise<DeleteScalingConfigurationResponse>;
|
|
7163
7392
|
deleteScalingGroupWithOptions(request: DeleteScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingGroupResponse>;
|
|
7164
7393
|
deleteScalingGroup(request: DeleteScalingGroupRequest): Promise<DeleteScalingGroupResponse>;
|
|
@@ -7170,7 +7399,28 @@ export default class Client extends OpenApi {
|
|
|
7170
7399
|
describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse>;
|
|
7171
7400
|
describeEciScalingConfigurationsWithOptions(request: DescribeEciScalingConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationsResponse>;
|
|
7172
7401
|
describeEciScalingConfigurations(request: DescribeEciScalingConfigurationsRequest): Promise<DescribeEciScalingConfigurationsResponse>;
|
|
7402
|
+
/**
|
|
7403
|
+
* 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:
|
|
7404
|
+
* * 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.
|
|
7405
|
+
* * If a lifecycle action is in the Timeout state, the lifecycle hook that triggers the lifecycle action expires and ECS instances are added to or removed from a scaling group.
|
|
7406
|
+
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
7407
|
+
* If you do not specify the action to perform, such as execute a specific OOS template, after a lifecycle hook ends, you can call this operation to obtain the token of the lifecycle action that corresponds to the lifecycle hook. Then, you can specify a custom action to perform after the lifecycle hook ends.
|
|
7408
|
+
*
|
|
7409
|
+
* @param request DescribeLifecycleActionsRequest
|
|
7410
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7411
|
+
* @return DescribeLifecycleActionsResponse
|
|
7412
|
+
*/
|
|
7173
7413
|
describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse>;
|
|
7414
|
+
/**
|
|
7415
|
+
* 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:
|
|
7416
|
+
* * 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.
|
|
7417
|
+
* * If a lifecycle action is in the Timeout state, the lifecycle hook that triggers the lifecycle action expires and ECS instances are added to or removed from a scaling group.
|
|
7418
|
+
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
7419
|
+
* If you do not specify the action to perform, such as execute a specific OOS template, after a lifecycle hook ends, you can call this operation to obtain the token of the lifecycle action that corresponds to the lifecycle hook. Then, you can specify a custom action to perform after the lifecycle hook ends.
|
|
7420
|
+
*
|
|
7421
|
+
* @param request DescribeLifecycleActionsRequest
|
|
7422
|
+
* @return DescribeLifecycleActionsResponse
|
|
7423
|
+
*/
|
|
7174
7424
|
describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse>;
|
|
7175
7425
|
describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse>;
|
|
7176
7426
|
describeLifecycleHooks(request: DescribeLifecycleHooksRequest): Promise<DescribeLifecycleHooksResponse>;
|
|
@@ -7210,7 +7460,7 @@ export default class Client extends OpenApi {
|
|
|
7210
7460
|
describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse>;
|
|
7211
7461
|
describeScalingInstances(request: DescribeScalingInstancesRequest): Promise<DescribeScalingInstancesResponse>;
|
|
7212
7462
|
/**
|
|
7213
|
-
* You can specify a scaling group ID to query
|
|
7463
|
+
* You can specify a scaling group ID to query all scaling rules in the scaling group. You can also specify the scaling rule ID, name, unique identifier, and type in the request parameters as filter conditions.
|
|
7214
7464
|
*
|
|
7215
7465
|
* @param request DescribeScalingRulesRequest
|
|
7216
7466
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7218,7 +7468,7 @@ export default class Client extends OpenApi {
|
|
|
7218
7468
|
*/
|
|
7219
7469
|
describeScalingRulesWithOptions(request: DescribeScalingRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingRulesResponse>;
|
|
7220
7470
|
/**
|
|
7221
|
-
* You can specify a scaling group ID to query
|
|
7471
|
+
* You can specify a scaling group ID to query all scaling rules in the scaling group. You can also specify the scaling rule ID, name, unique identifier, and type in the request parameters as filter conditions.
|
|
7222
7472
|
*
|
|
7223
7473
|
* @param request DescribeScalingRulesRequest
|
|
7224
7474
|
* @return DescribeScalingRulesResponse
|
|
@@ -7230,13 +7480,61 @@ export default class Client extends OpenApi {
|
|
|
7230
7480
|
detachAlbServerGroups(request: DetachAlbServerGroupsRequest): Promise<DetachAlbServerGroupsResponse>;
|
|
7231
7481
|
detachDBInstancesWithOptions(request: DetachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachDBInstancesResponse>;
|
|
7232
7482
|
detachDBInstances(request: DetachDBInstancesRequest): Promise<DetachDBInstancesResponse>;
|
|
7483
|
+
/**
|
|
7484
|
+
* After ECS instances or elastic container instances are removed from a scaling group, you can call the AttachInstances operation to add the ECS instances or elastic container instances that are removed from the scaling group to other scaling groups.
|
|
7485
|
+
* After you remove an ECS instance or elastic container instance by calling the DetachInstances operation, the instance is not stopped or released.
|
|
7486
|
+
* Before you call this operation, make sure that the following conditions are met:
|
|
7487
|
+
* * The specified scaling group is enabled.
|
|
7488
|
+
* * No scaling activities in the specified scaling group are in progress.
|
|
7489
|
+
* > If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7490
|
+
* A successful call indicates only that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
|
|
7491
|
+
* The number of ECS instances or elastic container instances in a scaling group after you remove a specific number of instances from the scaling group must be equal to or greater than the value of the MinSize parameter. Otherwise, an error is reported when you call the DetachInstances operation.
|
|
7492
|
+
*
|
|
7493
|
+
* @param request DetachInstancesRequest
|
|
7494
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7495
|
+
* @return DetachInstancesResponse
|
|
7496
|
+
*/
|
|
7233
7497
|
detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse>;
|
|
7498
|
+
/**
|
|
7499
|
+
* After ECS instances or elastic container instances are removed from a scaling group, you can call the AttachInstances operation to add the ECS instances or elastic container instances that are removed from the scaling group to other scaling groups.
|
|
7500
|
+
* After you remove an ECS instance or elastic container instance by calling the DetachInstances operation, the instance is not stopped or released.
|
|
7501
|
+
* Before you call this operation, make sure that the following conditions are met:
|
|
7502
|
+
* * The specified scaling group is enabled.
|
|
7503
|
+
* * No scaling activities in the specified scaling group are in progress.
|
|
7504
|
+
* > If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7505
|
+
* A successful call indicates only that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
|
|
7506
|
+
* The number of ECS instances or elastic container instances in a scaling group after you remove a specific number of instances from the scaling group must be equal to or greater than the value of the MinSize parameter. Otherwise, an error is reported when you call the DetachInstances operation.
|
|
7507
|
+
*
|
|
7508
|
+
* @param request DetachInstancesRequest
|
|
7509
|
+
* @return DetachInstancesResponse
|
|
7510
|
+
*/
|
|
7234
7511
|
detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse>;
|
|
7235
7512
|
detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse>;
|
|
7236
7513
|
detachLoadBalancers(request: DetachLoadBalancersRequest): Promise<DetachLoadBalancersResponse>;
|
|
7237
7514
|
detachServerGroupsWithOptions(request: DetachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachServerGroupsResponse>;
|
|
7238
7515
|
detachServerGroups(request: DetachServerGroupsRequest): Promise<DetachServerGroupsResponse>;
|
|
7516
|
+
/**
|
|
7517
|
+
* You can use the following parameters to specify the vServer groups that you want to detach from your scaling group.
|
|
7518
|
+
* * LoadBalancerId: the ID of the Classic Load Balancer (CLB) instance.
|
|
7519
|
+
* * VServerGroupId: the ID of the vServer group.
|
|
7520
|
+
* * Port: the port number of the vServer group.
|
|
7521
|
+
* If the vServer group that is specified in this call matches the vServer group associated with your scaling group, the vServer group can be detached. Otherwise, the request for detaching the vServer group is ignored, and no error is reported.
|
|
7522
|
+
*
|
|
7523
|
+
* @param request DetachVServerGroupsRequest
|
|
7524
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7525
|
+
* @return DetachVServerGroupsResponse
|
|
7526
|
+
*/
|
|
7239
7527
|
detachVServerGroupsWithOptions(request: DetachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachVServerGroupsResponse>;
|
|
7528
|
+
/**
|
|
7529
|
+
* You can use the following parameters to specify the vServer groups that you want to detach from your scaling group.
|
|
7530
|
+
* * LoadBalancerId: the ID of the Classic Load Balancer (CLB) instance.
|
|
7531
|
+
* * VServerGroupId: the ID of the vServer group.
|
|
7532
|
+
* * Port: the port number of the vServer group.
|
|
7533
|
+
* If the vServer group that is specified in this call matches the vServer group associated with your scaling group, the vServer group can be detached. Otherwise, the request for detaching the vServer group is ignored, and no error is reported.
|
|
7534
|
+
*
|
|
7535
|
+
* @param request DetachVServerGroupsRequest
|
|
7536
|
+
* @return DetachVServerGroupsResponse
|
|
7537
|
+
*/
|
|
7240
7538
|
detachVServerGroups(request: DetachVServerGroupsRequest): Promise<DetachVServerGroupsResponse>;
|
|
7241
7539
|
disableAlarmWithOptions(request: DisableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DisableAlarmResponse>;
|
|
7242
7540
|
disableAlarm(request: DisableAlarmRequest): Promise<DisableAlarmResponse>;
|
|
@@ -7269,7 +7567,34 @@ export default class Client extends OpenApi {
|
|
|
7269
7567
|
enableScalingGroup(request: EnableScalingGroupRequest): Promise<EnableScalingGroupResponse>;
|
|
7270
7568
|
enterStandbyWithOptions(request: EnterStandbyRequest, runtime: $Util.RuntimeOptions): Promise<EnterStandbyResponse>;
|
|
7271
7569
|
enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse>;
|
|
7570
|
+
/**
|
|
7571
|
+
* Before you call this operation, take note of the following items:
|
|
7572
|
+
* * The scaling group is in the Active state.
|
|
7573
|
+
* * No scaling activities in the scaling group are in progress.
|
|
7574
|
+
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7575
|
+
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
7576
|
+
* If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
|
|
7577
|
+
* If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
|
|
7578
|
+
* You can specify only a limited number of ECS instances in each adjustment. For more information, see the description of the AdjustmentValue parameter in the CreateScalingRule topic.
|
|
7579
|
+
*
|
|
7580
|
+
* @param request ExecuteScalingRuleRequest
|
|
7581
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7582
|
+
* @return ExecuteScalingRuleResponse
|
|
7583
|
+
*/
|
|
7272
7584
|
executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse>;
|
|
7585
|
+
/**
|
|
7586
|
+
* Before you call this operation, take note of the following items:
|
|
7587
|
+
* * The scaling group is in the Active state.
|
|
7588
|
+
* * No scaling activities in the scaling group are in progress.
|
|
7589
|
+
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7590
|
+
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the ScalingActivityId parameter in the response.
|
|
7591
|
+
* If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
|
|
7592
|
+
* If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
|
|
7593
|
+
* You can specify only a limited number of ECS instances in each adjustment. For more information, see the description of the AdjustmentValue parameter in the CreateScalingRule topic.
|
|
7594
|
+
*
|
|
7595
|
+
* @param request ExecuteScalingRuleRequest
|
|
7596
|
+
* @return ExecuteScalingRuleResponse
|
|
7597
|
+
*/
|
|
7273
7598
|
executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse>;
|
|
7274
7599
|
exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse>;
|
|
7275
7600
|
exitStandby(request: ExitStandbyRequest): Promise<ExitStandbyResponse>;
|
|
@@ -7357,18 +7682,57 @@ export default class Client extends OpenApi {
|
|
|
7357
7682
|
modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
|
|
7358
7683
|
modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
|
|
7359
7684
|
modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse>;
|
|
7685
|
+
/**
|
|
7686
|
+
* You can use the following parameters to specify the scaling method of a scheduled task:
|
|
7687
|
+
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
7688
|
+
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
7689
|
+
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
7690
|
+
*
|
|
7691
|
+
* @param request ModifyScheduledTaskRequest
|
|
7692
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7693
|
+
* @return ModifyScheduledTaskResponse
|
|
7694
|
+
*/
|
|
7360
7695
|
modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse>;
|
|
7696
|
+
/**
|
|
7697
|
+
* You can use the following parameters to specify the scaling method of a scheduled task:
|
|
7698
|
+
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
7699
|
+
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
7700
|
+
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
7701
|
+
*
|
|
7702
|
+
* @param request ModifyScheduledTaskRequest
|
|
7703
|
+
* @return ModifyScheduledTaskResponse
|
|
7704
|
+
*/
|
|
7361
7705
|
modifyScheduledTask(request: ModifyScheduledTaskRequest): Promise<ModifyScheduledTaskResponse>;
|
|
7362
7706
|
rebalanceInstancesWithOptions(request: RebalanceInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebalanceInstancesResponse>;
|
|
7363
7707
|
rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse>;
|
|
7708
|
+
/**
|
|
7709
|
+
* You can call this operation to prolong the length of a lifecycle hook up to 20 times. Take note that the total length of a lifecycle hook cannot exceed 6 hours.
|
|
7710
|
+
*
|
|
7711
|
+
* @param request RecordLifecycleActionHeartbeatRequest
|
|
7712
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7713
|
+
* @return RecordLifecycleActionHeartbeatResponse
|
|
7714
|
+
*/
|
|
7364
7715
|
recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse>;
|
|
7716
|
+
/**
|
|
7717
|
+
* You can call this operation to prolong the length of a lifecycle hook up to 20 times. Take note that the total length of a lifecycle hook cannot exceed 6 hours.
|
|
7718
|
+
*
|
|
7719
|
+
* @param request RecordLifecycleActionHeartbeatRequest
|
|
7720
|
+
* @return RecordLifecycleActionHeartbeatResponse
|
|
7721
|
+
*/
|
|
7365
7722
|
recordLifecycleActionHeartbeat(request: RecordLifecycleActionHeartbeatRequest): Promise<RecordLifecycleActionHeartbeatResponse>;
|
|
7366
7723
|
removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse>;
|
|
7367
7724
|
removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse>;
|
|
7368
7725
|
resumeProcessesWithOptions(request: ResumeProcessesRequest, runtime: $Util.RuntimeOptions): Promise<ResumeProcessesResponse>;
|
|
7369
7726
|
resumeProcesses(request: ResumeProcessesRequest): Promise<ResumeProcessesResponse>;
|
|
7370
7727
|
/**
|
|
7371
|
-
*
|
|
7728
|
+
* Compared with the ExecuteScalingRule operation, the ScaleWithAdjustment operation does not require a scaling rule to be created in advance. Before you call the ScaleWithAdjustment operation, take note of the following items:
|
|
7729
|
+
* * The following conditions must be met:
|
|
7730
|
+
* * The scaling group is in the Active state.
|
|
7731
|
+
* * No scaling activities in the scaling group are in progress.
|
|
7732
|
+
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7733
|
+
* * If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
|
|
7734
|
+
* * If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
|
|
7735
|
+
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
|
|
7372
7736
|
*
|
|
7373
7737
|
* @param request ScaleWithAdjustmentRequest
|
|
7374
7738
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7376,7 +7740,14 @@ export default class Client extends OpenApi {
|
|
|
7376
7740
|
*/
|
|
7377
7741
|
scaleWithAdjustmentWithOptions(request: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
|
|
7378
7742
|
/**
|
|
7379
|
-
*
|
|
7743
|
+
* Compared with the ExecuteScalingRule operation, the ScaleWithAdjustment operation does not require a scaling rule to be created in advance. Before you call the ScaleWithAdjustment operation, take note of the following items:
|
|
7744
|
+
* * The following conditions must be met:
|
|
7745
|
+
* * The scaling group is in the Active state.
|
|
7746
|
+
* * No scaling activities in the scaling group are in progress.
|
|
7747
|
+
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7748
|
+
* * If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
|
|
7749
|
+
* * If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
|
|
7750
|
+
* A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
|
|
7380
7751
|
*
|
|
7381
7752
|
* @param request ScaleWithAdjustmentRequest
|
|
7382
7753
|
* @return ScaleWithAdjustmentResponse
|