@alicloud/ess20220222 1.0.4 → 1.0.5
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 +54 -447
- package/dist/client.js +66 -447
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +74 -447
package/dist/client.d.ts
CHANGED
|
@@ -1977,6 +1977,7 @@ export declare class DescribeScalingGroupsResponse extends $tea.Model {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
export declare class DescribeScalingInstancesRequest extends $tea.Model {
|
|
1979
1979
|
creationType?: string;
|
|
1980
|
+
creationTypes?: string[];
|
|
1980
1981
|
healthStatus?: string;
|
|
1981
1982
|
instanceIds?: string[];
|
|
1982
1983
|
lifecycleState?: string;
|
|
@@ -4015,6 +4016,7 @@ export declare class VerifyAuthenticationResponse extends $tea.Model {
|
|
|
4015
4016
|
}
|
|
4016
4017
|
export declare class VerifyUserRequest extends $tea.Model {
|
|
4017
4018
|
ownerId?: number;
|
|
4019
|
+
regionId?: string;
|
|
4018
4020
|
resourceOwnerAccount?: string;
|
|
4019
4021
|
resourceOwnerId?: number;
|
|
4020
4022
|
static names(): {
|
|
@@ -4555,6 +4557,7 @@ export declare class CreateEciScalingConfigurationRequestVolumesDiskVolume exten
|
|
|
4555
4557
|
}
|
|
4556
4558
|
export declare class CreateEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
|
|
4557
4559
|
medium?: string;
|
|
4560
|
+
sizeLimit?: string;
|
|
4558
4561
|
static names(): {
|
|
4559
4562
|
[key: string]: string;
|
|
4560
4563
|
};
|
|
@@ -5333,6 +5336,7 @@ export declare class DescribeEciScalingConfigurationsResponseBodyScalingConfigur
|
|
|
5333
5336
|
diskVolumeDiskSize?: number;
|
|
5334
5337
|
diskVolumeFsType?: string;
|
|
5335
5338
|
emptyDirVolumeMedium?: string;
|
|
5339
|
+
emptyDirVolumeSizeLimit?: string;
|
|
5336
5340
|
flexVolumeDriver?: string;
|
|
5337
5341
|
flexVolumeFsType?: string;
|
|
5338
5342
|
flexVolumeOptions?: string;
|
|
@@ -5771,6 +5775,7 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroups extends $tea
|
|
|
5771
5775
|
DBInstanceIds?: string[];
|
|
5772
5776
|
defaultCooldown?: number;
|
|
5773
5777
|
desiredCapacity?: number;
|
|
5778
|
+
enableDesiredCapacity?: boolean;
|
|
5774
5779
|
groupDeletionProtection?: boolean;
|
|
5775
5780
|
groupType?: string;
|
|
5776
5781
|
healthCheckType?: string;
|
|
@@ -6524,6 +6529,7 @@ export declare class ModifyEciScalingConfigurationRequestVolumesDiskVolume exten
|
|
|
6524
6529
|
}
|
|
6525
6530
|
export declare class ModifyEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
|
|
6526
6531
|
medium?: string;
|
|
6532
|
+
sizeLimit?: string;
|
|
6527
6533
|
static names(): {
|
|
6528
6534
|
[key: string]: string;
|
|
6529
6535
|
};
|
|
@@ -6901,97 +6907,19 @@ export default class Client extends OpenApi {
|
|
|
6901
6907
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
6902
6908
|
[key: string]: string;
|
|
6903
6909
|
}, endpoint: string): string;
|
|
6904
|
-
/**
|
|
6905
|
-
* Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
|
|
6906
|
-
*
|
|
6907
|
-
* @param request AttachAlbServerGroupsRequest
|
|
6908
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
6909
|
-
* @return AttachAlbServerGroupsResponse
|
|
6910
|
-
*/
|
|
6911
6910
|
attachAlbServerGroupsWithOptions(request: AttachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachAlbServerGroupsResponse>;
|
|
6912
|
-
/**
|
|
6913
|
-
* Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
|
|
6914
|
-
*
|
|
6915
|
-
* @param request AttachAlbServerGroupsRequest
|
|
6916
|
-
* @return AttachAlbServerGroupsResponse
|
|
6917
|
-
*/
|
|
6918
6911
|
attachAlbServerGroups(request: AttachAlbServerGroupsRequest): Promise<AttachAlbServerGroupsResponse>;
|
|
6919
|
-
/**
|
|
6920
|
-
* Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
6921
|
-
*
|
|
6922
|
-
* @param request AttachDBInstancesRequest
|
|
6923
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
6924
|
-
* @return AttachDBInstancesResponse
|
|
6925
|
-
*/
|
|
6926
6912
|
attachDBInstancesWithOptions(request: AttachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachDBInstancesResponse>;
|
|
6927
|
-
/**
|
|
6928
|
-
* Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
6929
|
-
*
|
|
6930
|
-
* @param request AttachDBInstancesRequest
|
|
6931
|
-
* @return AttachDBInstancesResponse
|
|
6932
|
-
*/
|
|
6933
6913
|
attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse>;
|
|
6934
|
-
/**
|
|
6935
|
-
* Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
|
|
6936
|
-
*
|
|
6937
|
-
* @param request AttachInstancesRequest
|
|
6938
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
6939
|
-
* @return AttachInstancesResponse
|
|
6940
|
-
*/
|
|
6941
6914
|
attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse>;
|
|
6942
|
-
/**
|
|
6943
|
-
* Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
|
|
6944
|
-
*
|
|
6945
|
-
* @param request AttachInstancesRequest
|
|
6946
|
-
* @return AttachInstancesResponse
|
|
6947
|
-
*/
|
|
6948
6915
|
attachInstances(request: AttachInstancesRequest): Promise<AttachInstancesResponse>;
|
|
6949
|
-
/**
|
|
6950
|
-
* Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
|
|
6951
|
-
*
|
|
6952
|
-
* @param request AttachLoadBalancersRequest
|
|
6953
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
6954
|
-
* @return AttachLoadBalancersResponse
|
|
6955
|
-
*/
|
|
6956
6916
|
attachLoadBalancersWithOptions(request: AttachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<AttachLoadBalancersResponse>;
|
|
6957
|
-
/**
|
|
6958
|
-
* Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
|
|
6959
|
-
*
|
|
6960
|
-
* @param request AttachLoadBalancersRequest
|
|
6961
|
-
* @return AttachLoadBalancersResponse
|
|
6962
|
-
*/
|
|
6963
6917
|
attachLoadBalancers(request: AttachLoadBalancersRequest): Promise<AttachLoadBalancersResponse>;
|
|
6964
6918
|
attachServerGroupsWithOptions(request: AttachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachServerGroupsResponse>;
|
|
6965
6919
|
attachServerGroups(request: AttachServerGroupsRequest): Promise<AttachServerGroupsResponse>;
|
|
6966
|
-
/**
|
|
6967
|
-
* Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
|
|
6968
|
-
*
|
|
6969
|
-
* @param request AttachVServerGroupsRequest
|
|
6970
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
6971
|
-
* @return AttachVServerGroupsResponse
|
|
6972
|
-
*/
|
|
6973
6920
|
attachVServerGroupsWithOptions(request: AttachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachVServerGroupsResponse>;
|
|
6974
|
-
/**
|
|
6975
|
-
* Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
|
|
6976
|
-
*
|
|
6977
|
-
* @param request AttachVServerGroupsRequest
|
|
6978
|
-
* @return AttachVServerGroupsResponse
|
|
6979
|
-
*/
|
|
6980
6921
|
attachVServerGroups(request: AttachVServerGroupsRequest): Promise<AttachVServerGroupsResponse>;
|
|
6981
|
-
/**
|
|
6982
|
-
* A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources, monitor resources, and perform operations in a centralized manner. This way, you do not need to view and check your Alibaba Cloud resources in each Alibaba Cloud service.
|
|
6983
|
-
*
|
|
6984
|
-
* @param request ChangeResourceGroupRequest
|
|
6985
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
6986
|
-
* @return ChangeResourceGroupResponse
|
|
6987
|
-
*/
|
|
6988
6922
|
changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse>;
|
|
6989
|
-
/**
|
|
6990
|
-
* A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources, monitor resources, and perform operations in a centralized manner. This way, you do not need to view and check your Alibaba Cloud resources in each Alibaba Cloud service.
|
|
6991
|
-
*
|
|
6992
|
-
* @param request ChangeResourceGroupRequest
|
|
6993
|
-
* @return ChangeResourceGroupResponse
|
|
6994
|
-
*/
|
|
6995
6923
|
changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse>;
|
|
6996
6924
|
/**
|
|
6997
6925
|
* If you set the LifecycleActionResult parameter for a lifecycle hook of a scaling group to CONTINUE in the operation, Auto Scaling continues to complete the scaling activity in the scaling group after the lifecycle hook times out. If you set the LifecycleActionResult parameter to ABANDON, Auto Scaling stops the scaling activity in the scaling group after the lifecycle hook times out.
|
|
@@ -7008,28 +6936,7 @@ export default class Client extends OpenApi {
|
|
|
7008
6936
|
* @return CompleteLifecycleActionResponse
|
|
7009
6937
|
*/
|
|
7010
6938
|
completeLifecycleAction(request: CompleteLifecycleActionRequest): Promise<CompleteLifecycleActionResponse>;
|
|
7011
|
-
/**
|
|
7012
|
-
* * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
|
|
7013
|
-
* * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
|
|
7014
|
-
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
7015
|
-
* * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
|
|
7016
|
-
* > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
|
|
7017
|
-
*
|
|
7018
|
-
* @param request CreateAlarmRequest
|
|
7019
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7020
|
-
* @return CreateAlarmResponse
|
|
7021
|
-
*/
|
|
7022
6939
|
createAlarmWithOptions(request: CreateAlarmRequest, runtime: $Util.RuntimeOptions): Promise<CreateAlarmResponse>;
|
|
7023
|
-
/**
|
|
7024
|
-
* * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
|
|
7025
|
-
* * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
|
|
7026
|
-
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
7027
|
-
* * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
|
|
7028
|
-
* > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
|
|
7029
|
-
*
|
|
7030
|
-
* @param request CreateAlarmRequest
|
|
7031
|
-
* @return CreateAlarmResponse
|
|
7032
|
-
*/
|
|
7033
6940
|
createAlarm(request: CreateAlarmRequest): Promise<CreateAlarmResponse>;
|
|
7034
6941
|
/**
|
|
7035
6942
|
* A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
|
|
@@ -7069,29 +6976,16 @@ export default class Client extends OpenApi {
|
|
|
7069
6976
|
* @return CreateLifecycleHookResponse
|
|
7070
6977
|
*/
|
|
7071
6978
|
createLifecycleHook(request: CreateLifecycleHookRequest): Promise<CreateLifecycleHookResponse>;
|
|
7072
|
-
/**
|
|
7073
|
-
* Creates a notification.
|
|
7074
|
-
*
|
|
7075
|
-
* @param request CreateNotificationConfigurationRequest
|
|
7076
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7077
|
-
* @return CreateNotificationConfigurationResponse
|
|
7078
|
-
*/
|
|
7079
6979
|
createNotificationConfigurationWithOptions(request: CreateNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateNotificationConfigurationResponse>;
|
|
7080
|
-
/**
|
|
7081
|
-
* Creates a notification.
|
|
7082
|
-
*
|
|
7083
|
-
* @param request CreateNotificationConfigurationRequest
|
|
7084
|
-
* @return CreateNotificationConfigurationResponse
|
|
7085
|
-
*/
|
|
7086
6980
|
createNotificationConfiguration(request: CreateNotificationConfigurationRequest): Promise<CreateNotificationConfigurationResponse>;
|
|
7087
6981
|
/**
|
|
7088
6982
|
* Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
7089
|
-
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the
|
|
6983
|
+
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
|
|
7090
6984
|
* * InstanceType: In this mode, you must specify one instance type.
|
|
7091
6985
|
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
7092
6986
|
* * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
|
|
7093
|
-
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances
|
|
7094
|
-
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory
|
|
6987
|
+
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
6988
|
+
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
|
|
7095
6989
|
*
|
|
7096
6990
|
* @param tmpReq CreateScalingConfigurationRequest
|
|
7097
6991
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7100,12 +6994,12 @@ export default class Client extends OpenApi {
|
|
|
7100
6994
|
createScalingConfigurationWithOptions(tmpReq: CreateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingConfigurationResponse>;
|
|
7101
6995
|
/**
|
|
7102
6996
|
* Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
7103
|
-
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the
|
|
6997
|
+
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
|
|
7104
6998
|
* * InstanceType: In this mode, you must specify one instance type.
|
|
7105
6999
|
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
7106
7000
|
* * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
|
|
7107
|
-
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances
|
|
7108
|
-
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory
|
|
7001
|
+
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
7002
|
+
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
|
|
7109
7003
|
*
|
|
7110
7004
|
* @param request CreateScalingConfigurationRequest
|
|
7111
7005
|
* @return CreateScalingConfigurationResponse
|
|
@@ -7169,7 +7063,18 @@ export default class Client extends OpenApi {
|
|
|
7169
7063
|
*/
|
|
7170
7064
|
createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse>;
|
|
7171
7065
|
/**
|
|
7172
|
-
*
|
|
7066
|
+
* 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 calculates the number of ECS instances that need to be added or removed. This ensures that the number of ECS instances can be maintained within the valid range after the scaling rule is executed. Examples:
|
|
7067
|
+
* * 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.
|
|
7068
|
+
* * 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.
|
|
7069
|
+
* Before you call this operation, take note of the following items:
|
|
7070
|
+
* * 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.
|
|
7071
|
+
* * 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.
|
|
7072
|
+
* * 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.
|
|
7073
|
+
* * If you specify a cooldown period for the scaling rule, the specified cooldown period takes effect after the rule is executed. Otherwise, the value of DefaultCooldown of the scaling group takes effect.
|
|
7074
|
+
* * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
|
|
7075
|
+
* * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
|
|
7076
|
+
* * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
|
|
7077
|
+
* * CreateScheduledTask: You can call this operation to create a scheduled task. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to associate with the scheduled task.
|
|
7173
7078
|
*
|
|
7174
7079
|
* @param request CreateScalingRuleRequest
|
|
7175
7080
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7177,96 +7082,38 @@ export default class Client extends OpenApi {
|
|
|
7177
7082
|
*/
|
|
7178
7083
|
createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse>;
|
|
7179
7084
|
/**
|
|
7180
|
-
*
|
|
7085
|
+
* 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 calculates the number of ECS instances that need to be added or removed. This ensures that the number of ECS instances can be maintained within the valid range after the scaling rule is executed. Examples:
|
|
7086
|
+
* * 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.
|
|
7087
|
+
* * 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.
|
|
7088
|
+
* Before you call this operation, take note of the following items:
|
|
7089
|
+
* * 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.
|
|
7090
|
+
* * 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.
|
|
7091
|
+
* * 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.
|
|
7092
|
+
* * If you specify a cooldown period for the scaling rule, the specified cooldown period takes effect after the rule is executed. Otherwise, the value of DefaultCooldown of the scaling group takes effect.
|
|
7093
|
+
* * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
|
|
7094
|
+
* * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
|
|
7095
|
+
* * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
|
|
7096
|
+
* * CreateScheduledTask: You can call this operation to create a scheduled task. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to associate with the scheduled task.
|
|
7181
7097
|
*
|
|
7182
7098
|
* @param request CreateScalingRuleRequest
|
|
7183
7099
|
* @return CreateScalingRuleResponse
|
|
7184
7100
|
*/
|
|
7185
7101
|
createScalingRule(request: CreateScalingRuleRequest): Promise<CreateScalingRuleResponse>;
|
|
7186
|
-
/**
|
|
7187
|
-
* Creates a scheduled task.
|
|
7188
|
-
*
|
|
7189
|
-
* @param request CreateScheduledTaskRequest
|
|
7190
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7191
|
-
* @return CreateScheduledTaskResponse
|
|
7192
|
-
*/
|
|
7193
7102
|
createScheduledTaskWithOptions(request: CreateScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateScheduledTaskResponse>;
|
|
7194
|
-
/**
|
|
7195
|
-
* Creates a scheduled task.
|
|
7196
|
-
*
|
|
7197
|
-
* @param request CreateScheduledTaskRequest
|
|
7198
|
-
* @return CreateScheduledTaskResponse
|
|
7199
|
-
*/
|
|
7200
7103
|
createScheduledTask(request: CreateScheduledTaskRequest): Promise<CreateScheduledTaskResponse>;
|
|
7201
7104
|
deactivateScalingConfigurationWithOptions(request: DeactivateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeactivateScalingConfigurationResponse>;
|
|
7202
7105
|
deactivateScalingConfiguration(request: DeactivateScalingConfigurationRequest): Promise<DeactivateScalingConfigurationResponse>;
|
|
7203
7106
|
deleteAlarmWithOptions(request: DeleteAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAlarmResponse>;
|
|
7204
7107
|
deleteAlarm(request: DeleteAlarmRequest): Promise<DeleteAlarmResponse>;
|
|
7205
|
-
/**
|
|
7206
|
-
* Deletes a scaling configuration that is used to create elastic container instances.
|
|
7207
|
-
*
|
|
7208
|
-
* @param request DeleteEciScalingConfigurationRequest
|
|
7209
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7210
|
-
* @return DeleteEciScalingConfigurationResponse
|
|
7211
|
-
*/
|
|
7212
7108
|
deleteEciScalingConfigurationWithOptions(request: DeleteEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteEciScalingConfigurationResponse>;
|
|
7213
|
-
/**
|
|
7214
|
-
* Deletes a scaling configuration that is used to create elastic container instances.
|
|
7215
|
-
*
|
|
7216
|
-
* @param request DeleteEciScalingConfigurationRequest
|
|
7217
|
-
* @return DeleteEciScalingConfigurationResponse
|
|
7218
|
-
*/
|
|
7219
7109
|
deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse>;
|
|
7220
|
-
/**
|
|
7221
|
-
* If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
|
|
7222
|
-
* * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
|
|
7223
|
-
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
|
|
7224
|
-
*
|
|
7225
|
-
* @param request DeleteLifecycleHookRequest
|
|
7226
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7227
|
-
* @return DeleteLifecycleHookResponse
|
|
7228
|
-
*/
|
|
7229
7110
|
deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse>;
|
|
7230
|
-
/**
|
|
7231
|
-
* If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
|
|
7232
|
-
* * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
|
|
7233
|
-
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
|
|
7234
|
-
*
|
|
7235
|
-
* @param request DeleteLifecycleHookRequest
|
|
7236
|
-
* @return DeleteLifecycleHookResponse
|
|
7237
|
-
*/
|
|
7238
7111
|
deleteLifecycleHook(request: DeleteLifecycleHookRequest): Promise<DeleteLifecycleHookResponse>;
|
|
7239
7112
|
deleteNotificationConfigurationWithOptions(request: DeleteNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNotificationConfigurationResponse>;
|
|
7240
7113
|
deleteNotificationConfiguration(request: DeleteNotificationConfigurationRequest): Promise<DeleteNotificationConfigurationResponse>;
|
|
7241
|
-
/**
|
|
7242
|
-
* Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
7243
|
-
*
|
|
7244
|
-
* @param request DeleteScalingConfigurationRequest
|
|
7245
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7246
|
-
* @return DeleteScalingConfigurationResponse
|
|
7247
|
-
*/
|
|
7248
7114
|
deleteScalingConfigurationWithOptions(request: DeleteScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingConfigurationResponse>;
|
|
7249
|
-
/**
|
|
7250
|
-
* Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
7251
|
-
*
|
|
7252
|
-
* @param request DeleteScalingConfigurationRequest
|
|
7253
|
-
* @return DeleteScalingConfigurationResponse
|
|
7254
|
-
*/
|
|
7255
7115
|
deleteScalingConfiguration(request: DeleteScalingConfigurationRequest): Promise<DeleteScalingConfigurationResponse>;
|
|
7256
|
-
/**
|
|
7257
|
-
* Deletes a scaling group.
|
|
7258
|
-
*
|
|
7259
|
-
* @param request DeleteScalingGroupRequest
|
|
7260
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7261
|
-
* @return DeleteScalingGroupResponse
|
|
7262
|
-
*/
|
|
7263
7116
|
deleteScalingGroupWithOptions(request: DeleteScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingGroupResponse>;
|
|
7264
|
-
/**
|
|
7265
|
-
* Deletes a scaling group.
|
|
7266
|
-
*
|
|
7267
|
-
* @param request DeleteScalingGroupRequest
|
|
7268
|
-
* @return DeleteScalingGroupResponse
|
|
7269
|
-
*/
|
|
7270
7117
|
deleteScalingGroup(request: DeleteScalingGroupRequest): Promise<DeleteScalingGroupResponse>;
|
|
7271
7118
|
deleteScalingRuleWithOptions(request: DeleteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingRuleResponse>;
|
|
7272
7119
|
deleteScalingRule(request: DeleteScalingRuleRequest): Promise<DeleteScalingRuleResponse>;
|
|
@@ -7276,41 +7123,9 @@ export default class Client extends OpenApi {
|
|
|
7276
7123
|
describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse>;
|
|
7277
7124
|
describeEciScalingConfigurationsWithOptions(request: DescribeEciScalingConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationsResponse>;
|
|
7278
7125
|
describeEciScalingConfigurations(request: DescribeEciScalingConfigurationsRequest): Promise<DescribeEciScalingConfigurationsResponse>;
|
|
7279
|
-
/**
|
|
7280
|
-
* Queries lifecycle actions.
|
|
7281
|
-
*
|
|
7282
|
-
* @param request DescribeLifecycleActionsRequest
|
|
7283
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7284
|
-
* @return DescribeLifecycleActionsResponse
|
|
7285
|
-
*/
|
|
7286
7126
|
describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse>;
|
|
7287
|
-
/**
|
|
7288
|
-
* Queries lifecycle actions.
|
|
7289
|
-
*
|
|
7290
|
-
* @param request DescribeLifecycleActionsRequest
|
|
7291
|
-
* @return DescribeLifecycleActionsResponse
|
|
7292
|
-
*/
|
|
7293
7127
|
describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse>;
|
|
7294
|
-
/**
|
|
7295
|
-
* You can use one of the following methods to query lifecycle hooks:
|
|
7296
|
-
* * 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.
|
|
7297
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
7298
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
7299
|
-
*
|
|
7300
|
-
* @param request DescribeLifecycleHooksRequest
|
|
7301
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7302
|
-
* @return DescribeLifecycleHooksResponse
|
|
7303
|
-
*/
|
|
7304
7128
|
describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse>;
|
|
7305
|
-
/**
|
|
7306
|
-
* You can use one of the following methods to query lifecycle hooks:
|
|
7307
|
-
* * 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.
|
|
7308
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
7309
|
-
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
7310
|
-
*
|
|
7311
|
-
* @param request DescribeLifecycleHooksRequest
|
|
7312
|
-
* @return DescribeLifecycleHooksResponse
|
|
7313
|
-
*/
|
|
7314
7129
|
describeLifecycleHooks(request: DescribeLifecycleHooksRequest): Promise<DescribeLifecycleHooksResponse>;
|
|
7315
7130
|
describeLimitationWithOptions(request: DescribeLimitationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLimitationResponse>;
|
|
7316
7131
|
describeLimitation(request: DescribeLimitationRequest): Promise<DescribeLimitationResponse>;
|
|
@@ -7345,23 +7160,10 @@ export default class Client extends OpenApi {
|
|
|
7345
7160
|
describeScalingConfigurations(request: DescribeScalingConfigurationsRequest): Promise<DescribeScalingConfigurationsResponse>;
|
|
7346
7161
|
describeScalingGroupsWithOptions(request: DescribeScalingGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingGroupsResponse>;
|
|
7347
7162
|
describeScalingGroups(request: DescribeScalingGroupsRequest): Promise<DescribeScalingGroupsResponse>;
|
|
7348
|
-
/**
|
|
7349
|
-
* You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
|
|
7350
|
-
*
|
|
7351
|
-
* @param request DescribeScalingInstancesRequest
|
|
7352
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7353
|
-
* @return DescribeScalingInstancesResponse
|
|
7354
|
-
*/
|
|
7355
7163
|
describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse>;
|
|
7356
|
-
/**
|
|
7357
|
-
* You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
|
|
7358
|
-
*
|
|
7359
|
-
* @param request DescribeScalingInstancesRequest
|
|
7360
|
-
* @return DescribeScalingInstancesResponse
|
|
7361
|
-
*/
|
|
7362
7164
|
describeScalingInstances(request: DescribeScalingInstancesRequest): Promise<DescribeScalingInstancesResponse>;
|
|
7363
7165
|
/**
|
|
7364
|
-
*
|
|
7166
|
+
* You can specify a scaling group ID to query the information about all scaling rules in a scaling group. You can also specify the scaling rule ID, name, unique identifier, or type in the request parameters as filter conditions.
|
|
7365
7167
|
*
|
|
7366
7168
|
* @param request DescribeScalingRulesRequest
|
|
7367
7169
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7369,81 +7171,29 @@ export default class Client extends OpenApi {
|
|
|
7369
7171
|
*/
|
|
7370
7172
|
describeScalingRulesWithOptions(request: DescribeScalingRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingRulesResponse>;
|
|
7371
7173
|
/**
|
|
7372
|
-
*
|
|
7174
|
+
* You can specify a scaling group ID to query the information about all scaling rules in a scaling group. You can also specify the scaling rule ID, name, unique identifier, or type in the request parameters as filter conditions.
|
|
7373
7175
|
*
|
|
7374
7176
|
* @param request DescribeScalingRulesRequest
|
|
7375
7177
|
* @return DescribeScalingRulesResponse
|
|
7376
7178
|
*/
|
|
7377
7179
|
describeScalingRules(request: DescribeScalingRulesRequest): Promise<DescribeScalingRulesResponse>;
|
|
7378
|
-
/**
|
|
7379
|
-
* You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
7380
|
-
*
|
|
7381
|
-
* @param request DescribeScheduledTasksRequest
|
|
7382
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7383
|
-
* @return DescribeScheduledTasksResponse
|
|
7384
|
-
*/
|
|
7385
7180
|
describeScheduledTasksWithOptions(request: DescribeScheduledTasksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScheduledTasksResponse>;
|
|
7386
|
-
/**
|
|
7387
|
-
* You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
7388
|
-
*
|
|
7389
|
-
* @param request DescribeScheduledTasksRequest
|
|
7390
|
-
* @return DescribeScheduledTasksResponse
|
|
7391
|
-
*/
|
|
7392
7181
|
describeScheduledTasks(request: DescribeScheduledTasksRequest): Promise<DescribeScheduledTasksResponse>;
|
|
7393
7182
|
detachAlbServerGroupsWithOptions(request: DetachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachAlbServerGroupsResponse>;
|
|
7394
7183
|
detachAlbServerGroups(request: DetachAlbServerGroupsRequest): Promise<DetachAlbServerGroupsResponse>;
|
|
7395
7184
|
detachDBInstancesWithOptions(request: DetachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachDBInstancesResponse>;
|
|
7396
7185
|
detachDBInstances(request: DetachDBInstancesRequest): Promise<DetachDBInstancesResponse>;
|
|
7397
|
-
/**
|
|
7398
|
-
* Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
|
|
7399
|
-
*
|
|
7400
|
-
* @param request DetachInstancesRequest
|
|
7401
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7402
|
-
* @return DetachInstancesResponse
|
|
7403
|
-
*/
|
|
7404
7186
|
detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse>;
|
|
7405
|
-
/**
|
|
7406
|
-
* Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
|
|
7407
|
-
*
|
|
7408
|
-
* @param request DetachInstancesRequest
|
|
7409
|
-
* @return DetachInstancesResponse
|
|
7410
|
-
*/
|
|
7411
7187
|
detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse>;
|
|
7412
7188
|
detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse>;
|
|
7413
7189
|
detachLoadBalancers(request: DetachLoadBalancersRequest): Promise<DetachLoadBalancersResponse>;
|
|
7414
7190
|
detachServerGroupsWithOptions(request: DetachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachServerGroupsResponse>;
|
|
7415
7191
|
detachServerGroups(request: DetachServerGroupsRequest): Promise<DetachServerGroupsResponse>;
|
|
7416
|
-
/**
|
|
7417
|
-
* Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
|
|
7418
|
-
*
|
|
7419
|
-
* @param request DetachVServerGroupsRequest
|
|
7420
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7421
|
-
* @return DetachVServerGroupsResponse
|
|
7422
|
-
*/
|
|
7423
7192
|
detachVServerGroupsWithOptions(request: DetachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachVServerGroupsResponse>;
|
|
7424
|
-
/**
|
|
7425
|
-
* Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
|
|
7426
|
-
*
|
|
7427
|
-
* @param request DetachVServerGroupsRequest
|
|
7428
|
-
* @return DetachVServerGroupsResponse
|
|
7429
|
-
*/
|
|
7430
7193
|
detachVServerGroups(request: DetachVServerGroupsRequest): Promise<DetachVServerGroupsResponse>;
|
|
7431
7194
|
disableAlarmWithOptions(request: DisableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DisableAlarmResponse>;
|
|
7432
7195
|
disableAlarm(request: DisableAlarmRequest): Promise<DisableAlarmResponse>;
|
|
7433
|
-
/**
|
|
7434
|
-
* Disables a scaling group.
|
|
7435
|
-
*
|
|
7436
|
-
* @param request DisableScalingGroupRequest
|
|
7437
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7438
|
-
* @return DisableScalingGroupResponse
|
|
7439
|
-
*/
|
|
7440
7196
|
disableScalingGroupWithOptions(request: DisableScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DisableScalingGroupResponse>;
|
|
7441
|
-
/**
|
|
7442
|
-
* Disables a scaling group.
|
|
7443
|
-
*
|
|
7444
|
-
* @param request DisableScalingGroupRequest
|
|
7445
|
-
* @return DisableScalingGroupResponse
|
|
7446
|
-
*/
|
|
7447
7197
|
disableScalingGroup(request: DisableScalingGroupRequest): Promise<DisableScalingGroupResponse>;
|
|
7448
7198
|
enableAlarmWithOptions(request: EnableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<EnableAlarmResponse>;
|
|
7449
7199
|
enableAlarm(request: EnableAlarmRequest): Promise<EnableAlarmResponse>;
|
|
@@ -7470,44 +7220,12 @@ export default class Client extends OpenApi {
|
|
|
7470
7220
|
* @return EnableScalingGroupResponse
|
|
7471
7221
|
*/
|
|
7472
7222
|
enableScalingGroup(request: EnableScalingGroupRequest): Promise<EnableScalingGroupResponse>;
|
|
7473
|
-
/**
|
|
7474
|
-
* * If you call the operation to set an Elastic Compute Service (ECS) instance in a scaling group that is associated with a Server Load Balancer (SLB) instance to the Standby state, the weight of the ECS instance as a backend server of the SLB instance is set to 0.
|
|
7475
|
-
* * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
|
|
7476
|
-
* * When scale-in activities are triggered by changes in the number of scaling groups or by event-triggered tasks, the ECS instances that are in the Standby state are not removed from the scaling groups.
|
|
7477
|
-
* * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, such as in the Stopping or Restarting state, Auto Scaling does not update the health check status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health check status of the ECS instance only when the ECS instance is no longer in the Standby state.
|
|
7478
|
-
*
|
|
7479
|
-
* @param request EnterStandbyRequest
|
|
7480
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7481
|
-
* @return EnterStandbyResponse
|
|
7482
|
-
*/
|
|
7483
7223
|
enterStandbyWithOptions(request: EnterStandbyRequest, runtime: $Util.RuntimeOptions): Promise<EnterStandbyResponse>;
|
|
7484
|
-
/**
|
|
7485
|
-
* * If you call the operation to set an Elastic Compute Service (ECS) instance in a scaling group that is associated with a Server Load Balancer (SLB) instance to the Standby state, the weight of the ECS instance as a backend server of the SLB instance is set to 0.
|
|
7486
|
-
* * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
|
|
7487
|
-
* * When scale-in activities are triggered by changes in the number of scaling groups or by event-triggered tasks, the ECS instances that are in the Standby state are not removed from the scaling groups.
|
|
7488
|
-
* * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, such as in the Stopping or Restarting state, Auto Scaling does not update the health check status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health check status of the ECS instance only when the ECS instance is no longer in the Standby state.
|
|
7489
|
-
*
|
|
7490
|
-
* @param request EnterStandbyRequest
|
|
7491
|
-
* @return EnterStandbyResponse
|
|
7492
|
-
*/
|
|
7493
7224
|
enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse>;
|
|
7494
|
-
/**
|
|
7495
|
-
* Executes a scaling rule.
|
|
7496
|
-
*
|
|
7497
|
-
* @param request ExecuteScalingRuleRequest
|
|
7498
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7499
|
-
* @return ExecuteScalingRuleResponse
|
|
7500
|
-
*/
|
|
7501
7225
|
executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse>;
|
|
7502
|
-
/**
|
|
7503
|
-
* Executes a scaling rule.
|
|
7504
|
-
*
|
|
7505
|
-
* @param request ExecuteScalingRuleRequest
|
|
7506
|
-
* @return ExecuteScalingRuleResponse
|
|
7507
|
-
*/
|
|
7508
7226
|
executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse>;
|
|
7509
7227
|
/**
|
|
7510
|
-
*
|
|
7228
|
+
* The IDs of the ECS instances. The value of this parameter can be a JSON array that consists of up to 20 instance IDs. Separate multiple instance IDs with commas (,).
|
|
7511
7229
|
*
|
|
7512
7230
|
* @param request ExitStandbyRequest
|
|
7513
7231
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7515,7 +7233,7 @@ export default class Client extends OpenApi {
|
|
|
7515
7233
|
*/
|
|
7516
7234
|
exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse>;
|
|
7517
7235
|
/**
|
|
7518
|
-
*
|
|
7236
|
+
* The IDs of the ECS instances. The value of this parameter can be a JSON array that consists of up to 20 instance IDs. Separate multiple instance IDs with commas (,).
|
|
7519
7237
|
*
|
|
7520
7238
|
* @param request ExitStandbyRequest
|
|
7521
7239
|
* @return ExitStandbyResponse
|
|
@@ -7528,7 +7246,11 @@ export default class Client extends OpenApi {
|
|
|
7528
7246
|
listTagValuesWithOptions(request: ListTagValuesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagValuesResponse>;
|
|
7529
7247
|
listTagValues(request: ListTagValuesRequest): Promise<ListTagValuesResponse>;
|
|
7530
7248
|
/**
|
|
7531
|
-
*
|
|
7249
|
+
* * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
|
|
7250
|
+
* * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
|
|
7251
|
+
* * If you set MetricType to custom, the valid values are your custom metrics.
|
|
7252
|
+
* * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
|
|
7253
|
+
* > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
|
|
7532
7254
|
*
|
|
7533
7255
|
* @param request ModifyAlarmRequest
|
|
7534
7256
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7536,7 +7258,11 @@ export default class Client extends OpenApi {
|
|
|
7536
7258
|
*/
|
|
7537
7259
|
modifyAlarmWithOptions(request: ModifyAlarmRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlarmResponse>;
|
|
7538
7260
|
/**
|
|
7539
|
-
*
|
|
7261
|
+
* * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
|
|
7262
|
+
* * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
|
|
7263
|
+
* * If you set MetricType to custom, the valid values are your custom metrics.
|
|
7264
|
+
* * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
|
|
7265
|
+
* > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
|
|
7540
7266
|
*
|
|
7541
7267
|
* @param request ModifyAlarmRequest
|
|
7542
7268
|
* @return ModifyAlarmResponse
|
|
@@ -7579,7 +7305,7 @@ export default class Client extends OpenApi {
|
|
|
7579
7305
|
modifyNotificationConfigurationWithOptions(request: ModifyNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyNotificationConfigurationResponse>;
|
|
7580
7306
|
modifyNotificationConfiguration(request: ModifyNotificationConfigurationRequest): Promise<ModifyNotificationConfigurationResponse>;
|
|
7581
7307
|
/**
|
|
7582
|
-
*
|
|
7308
|
+
* You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
|
|
7583
7309
|
*
|
|
7584
7310
|
* @param tmpReq ModifyScalingConfigurationRequest
|
|
7585
7311
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7587,114 +7313,28 @@ export default class Client extends OpenApi {
|
|
|
7587
7313
|
*/
|
|
7588
7314
|
modifyScalingConfigurationWithOptions(tmpReq: ModifyScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingConfigurationResponse>;
|
|
7589
7315
|
/**
|
|
7590
|
-
*
|
|
7316
|
+
* You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
|
|
7591
7317
|
*
|
|
7592
7318
|
* @param request ModifyScalingConfigurationRequest
|
|
7593
7319
|
* @return ModifyScalingConfigurationResponse
|
|
7594
7320
|
*/
|
|
7595
7321
|
modifyScalingConfiguration(request: ModifyScalingConfigurationRequest): Promise<ModifyScalingConfigurationResponse>;
|
|
7596
|
-
/**
|
|
7597
|
-
* Modifies a scaling group.
|
|
7598
|
-
*
|
|
7599
|
-
* @param request ModifyScalingGroupRequest
|
|
7600
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7601
|
-
* @return ModifyScalingGroupResponse
|
|
7602
|
-
*/
|
|
7603
7322
|
modifyScalingGroupWithOptions(request: ModifyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingGroupResponse>;
|
|
7604
|
-
/**
|
|
7605
|
-
* Modifies a scaling group.
|
|
7606
|
-
*
|
|
7607
|
-
* @param request ModifyScalingGroupRequest
|
|
7608
|
-
* @return ModifyScalingGroupResponse
|
|
7609
|
-
*/
|
|
7610
7323
|
modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
|
|
7611
7324
|
modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
|
|
7612
7325
|
modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse>;
|
|
7613
|
-
/**
|
|
7614
|
-
* Modifies a scheduled task.
|
|
7615
|
-
*
|
|
7616
|
-
* @param request ModifyScheduledTaskRequest
|
|
7617
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7618
|
-
* @return ModifyScheduledTaskResponse
|
|
7619
|
-
*/
|
|
7620
7326
|
modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse>;
|
|
7621
|
-
/**
|
|
7622
|
-
* Modifies a scheduled task.
|
|
7623
|
-
*
|
|
7624
|
-
* @param request ModifyScheduledTaskRequest
|
|
7625
|
-
* @return ModifyScheduledTaskResponse
|
|
7626
|
-
*/
|
|
7627
7327
|
modifyScheduledTask(request: ModifyScheduledTaskRequest): Promise<ModifyScheduledTaskResponse>;
|
|
7628
|
-
/**
|
|
7629
|
-
* Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
|
|
7630
|
-
*
|
|
7631
|
-
* @param request RebalanceInstancesRequest
|
|
7632
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7633
|
-
* @return RebalanceInstancesResponse
|
|
7634
|
-
*/
|
|
7635
7328
|
rebalanceInstancesWithOptions(request: RebalanceInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebalanceInstancesResponse>;
|
|
7636
|
-
/**
|
|
7637
|
-
* Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
|
|
7638
|
-
*
|
|
7639
|
-
* @param request RebalanceInstancesRequest
|
|
7640
|
-
* @return RebalanceInstancesResponse
|
|
7641
|
-
*/
|
|
7642
7329
|
rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse>;
|
|
7643
|
-
/**
|
|
7644
|
-
* Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
|
|
7645
|
-
*
|
|
7646
|
-
* @param request RecordLifecycleActionHeartbeatRequest
|
|
7647
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7648
|
-
* @return RecordLifecycleActionHeartbeatResponse
|
|
7649
|
-
*/
|
|
7650
7330
|
recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse>;
|
|
7651
|
-
/**
|
|
7652
|
-
* Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
|
|
7653
|
-
*
|
|
7654
|
-
* @param request RecordLifecycleActionHeartbeatRequest
|
|
7655
|
-
* @return RecordLifecycleActionHeartbeatResponse
|
|
7656
|
-
*/
|
|
7657
7331
|
recordLifecycleActionHeartbeat(request: RecordLifecycleActionHeartbeatRequest): Promise<RecordLifecycleActionHeartbeatResponse>;
|
|
7658
|
-
/**
|
|
7659
|
-
* * Before you call this operation, make sure that the following requirements are met:
|
|
7660
|
-
* * The scaling group is in the Active state.
|
|
7661
|
-
* * No scaling activity is in progress within the scaling group.
|
|
7662
|
-
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
7663
|
-
* * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
|
|
7664
|
-
* * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
|
|
7665
|
-
* * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
|
|
7666
|
-
* A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
|
|
7667
|
-
*
|
|
7668
|
-
* @param request RemoveInstancesRequest
|
|
7669
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7670
|
-
* @return RemoveInstancesResponse
|
|
7671
|
-
*/
|
|
7672
7332
|
removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse>;
|
|
7673
|
-
/**
|
|
7674
|
-
* * Before you call this operation, make sure that the following requirements are met:
|
|
7675
|
-
* * The scaling group is in the Active state.
|
|
7676
|
-
* * No scaling activity is in progress within the scaling group.
|
|
7677
|
-
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
7678
|
-
* * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
|
|
7679
|
-
* * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
|
|
7680
|
-
* * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
|
|
7681
|
-
* A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
|
|
7682
|
-
*
|
|
7683
|
-
* @param request RemoveInstancesRequest
|
|
7684
|
-
* @return RemoveInstancesResponse
|
|
7685
|
-
*/
|
|
7686
7333
|
removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse>;
|
|
7687
7334
|
resumeProcessesWithOptions(request: ResumeProcessesRequest, runtime: $Util.RuntimeOptions): Promise<ResumeProcessesResponse>;
|
|
7688
7335
|
resumeProcesses(request: ResumeProcessesRequest): Promise<ResumeProcessesResponse>;
|
|
7689
7336
|
/**
|
|
7690
|
-
*
|
|
7691
|
-
* * The following conditions must be met:
|
|
7692
|
-
* * The scaling group is in the Active state.
|
|
7693
|
-
* * No scaling activities in the scaling group are in progress.
|
|
7694
|
-
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7695
|
-
* * 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.
|
|
7696
|
-
* * 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.
|
|
7697
|
-
* 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.
|
|
7337
|
+
* The ID of the scaling activity.
|
|
7698
7338
|
*
|
|
7699
7339
|
* @param request ScaleWithAdjustmentRequest
|
|
7700
7340
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7702,14 +7342,7 @@ export default class Client extends OpenApi {
|
|
|
7702
7342
|
*/
|
|
7703
7343
|
scaleWithAdjustmentWithOptions(request: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
|
|
7704
7344
|
/**
|
|
7705
|
-
*
|
|
7706
|
-
* * The following conditions must be met:
|
|
7707
|
-
* * The scaling group is in the Active state.
|
|
7708
|
-
* * No scaling activities in the scaling group are in progress.
|
|
7709
|
-
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
7710
|
-
* * 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.
|
|
7711
|
-
* * 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.
|
|
7712
|
-
* 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.
|
|
7345
|
+
* The ID of the scaling activity.
|
|
7713
7346
|
*
|
|
7714
7347
|
* @param request ScaleWithAdjustmentRequest
|
|
7715
7348
|
* @return ScaleWithAdjustmentResponse
|
|
@@ -7717,35 +7350,9 @@ export default class Client extends OpenApi {
|
|
|
7717
7350
|
scaleWithAdjustment(request: ScaleWithAdjustmentRequest): Promise<ScaleWithAdjustmentResponse>;
|
|
7718
7351
|
setGroupDeletionProtectionWithOptions(request: SetGroupDeletionProtectionRequest, runtime: $Util.RuntimeOptions): Promise<SetGroupDeletionProtectionResponse>;
|
|
7719
7352
|
setGroupDeletionProtection(request: SetGroupDeletionProtectionRequest): Promise<SetGroupDeletionProtectionResponse>;
|
|
7720
|
-
/**
|
|
7721
|
-
* Configures the health check feature for Elastic Compute Service (ECS) instances.
|
|
7722
|
-
*
|
|
7723
|
-
* @param request SetInstanceHealthRequest
|
|
7724
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7725
|
-
* @return SetInstanceHealthResponse
|
|
7726
|
-
*/
|
|
7727
7353
|
setInstanceHealthWithOptions(request: SetInstanceHealthRequest, runtime: $Util.RuntimeOptions): Promise<SetInstanceHealthResponse>;
|
|
7728
|
-
/**
|
|
7729
|
-
* Configures the health check feature for Elastic Compute Service (ECS) instances.
|
|
7730
|
-
*
|
|
7731
|
-
* @param request SetInstanceHealthRequest
|
|
7732
|
-
* @return SetInstanceHealthResponse
|
|
7733
|
-
*/
|
|
7734
7354
|
setInstanceHealth(request: SetInstanceHealthRequest): Promise<SetInstanceHealthResponse>;
|
|
7735
|
-
/**
|
|
7736
|
-
* Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
|
|
7737
|
-
*
|
|
7738
|
-
* @param request SetInstancesProtectionRequest
|
|
7739
|
-
* @param runtime runtime options for this request RuntimeOptions
|
|
7740
|
-
* @return SetInstancesProtectionResponse
|
|
7741
|
-
*/
|
|
7742
7355
|
setInstancesProtectionWithOptions(request: SetInstancesProtectionRequest, runtime: $Util.RuntimeOptions): Promise<SetInstancesProtectionResponse>;
|
|
7743
|
-
/**
|
|
7744
|
-
* Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
|
|
7745
|
-
*
|
|
7746
|
-
* @param request SetInstancesProtectionRequest
|
|
7747
|
-
* @return SetInstancesProtectionResponse
|
|
7748
|
-
*/
|
|
7749
7356
|
setInstancesProtection(request: SetInstancesProtectionRequest): Promise<SetInstancesProtectionResponse>;
|
|
7750
7357
|
suspendProcessesWithOptions(request: SuspendProcessesRequest, runtime: $Util.RuntimeOptions): Promise<SuspendProcessesResponse>;
|
|
7751
7358
|
suspendProcesses(request: SuspendProcessesRequest): Promise<SuspendProcessesResponse>;
|