@alicloud/ess20220222 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -628,6 +628,7 @@ export declare class CreateScalingConfigurationRequest extends $tea.Model {
628
628
  creditSpecification?: string;
629
629
  dataDisks?: CreateScalingConfigurationRequestDataDisks[];
630
630
  dedicatedHostId?: string;
631
+ deletionProtection?: boolean;
631
632
  deploymentSetId?: string;
632
633
  hostName?: string;
633
634
  hpcClusterId?: string;
@@ -692,6 +693,7 @@ export declare class CreateScalingConfigurationShrinkRequest extends $tea.Model
692
693
  creditSpecification?: string;
693
694
  dataDisks?: CreateScalingConfigurationShrinkRequestDataDisks[];
694
695
  dedicatedHostId?: string;
696
+ deletionProtection?: boolean;
695
697
  deploymentSetId?: string;
696
698
  hostName?: string;
697
699
  hpcClusterId?: string;
@@ -1977,6 +1979,7 @@ export declare class DescribeScalingGroupsResponse extends $tea.Model {
1977
1979
  }
1978
1980
  export declare class DescribeScalingInstancesRequest extends $tea.Model {
1979
1981
  creationType?: string;
1982
+ creationTypes?: string[];
1980
1983
  healthStatus?: string;
1981
1984
  instanceIds?: string[];
1982
1985
  lifecycleState?: string;
@@ -3143,6 +3146,7 @@ export declare class ModifyScalingConfigurationRequest extends $tea.Model {
3143
3146
  creditSpecification?: string;
3144
3147
  dataDisks?: ModifyScalingConfigurationRequestDataDisks[];
3145
3148
  dedicatedHostId?: string;
3149
+ deletionProtection?: boolean;
3146
3150
  deploymentSetId?: string;
3147
3151
  hostName?: string;
3148
3152
  hpcClusterId?: string;
@@ -3203,6 +3207,7 @@ export declare class ModifyScalingConfigurationShrinkRequest extends $tea.Model
3203
3207
  creditSpecification?: string;
3204
3208
  dataDisks?: ModifyScalingConfigurationShrinkRequestDataDisks[];
3205
3209
  dedicatedHostId?: string;
3210
+ deletionProtection?: boolean;
3206
3211
  deploymentSetId?: string;
3207
3212
  hostName?: string;
3208
3213
  hpcClusterId?: string;
@@ -4015,6 +4020,7 @@ export declare class VerifyAuthenticationResponse extends $tea.Model {
4015
4020
  }
4016
4021
  export declare class VerifyUserRequest extends $tea.Model {
4017
4022
  ownerId?: number;
4023
+ regionId?: string;
4018
4024
  resourceOwnerAccount?: string;
4019
4025
  resourceOwnerId?: number;
4020
4026
  static names(): {
@@ -4555,6 +4561,7 @@ export declare class CreateEciScalingConfigurationRequestVolumesDiskVolume exten
4555
4561
  }
4556
4562
  export declare class CreateEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
4557
4563
  medium?: string;
4564
+ sizeLimit?: string;
4558
4565
  static names(): {
4559
4566
  [key: string]: string;
4560
4567
  };
@@ -5333,6 +5340,7 @@ export declare class DescribeEciScalingConfigurationsResponseBodyScalingConfigur
5333
5340
  diskVolumeDiskSize?: number;
5334
5341
  diskVolumeFsType?: string;
5335
5342
  emptyDirVolumeMedium?: string;
5343
+ emptyDirVolumeSizeLimit?: string;
5336
5344
  flexVolumeDriver?: string;
5337
5345
  flexVolumeFsType?: string;
5338
5346
  flexVolumeOptions?: string;
@@ -5611,6 +5619,7 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
5611
5619
  creditSpecification?: string;
5612
5620
  dataDisks?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks[];
5613
5621
  dedicatedHostId?: string;
5622
+ deletionProtection?: boolean;
5614
5623
  deploymentSetId?: string;
5615
5624
  hostName?: string;
5616
5625
  hpcClusterId?: string;
@@ -5771,6 +5780,7 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroups extends $tea
5771
5780
  DBInstanceIds?: string[];
5772
5781
  defaultCooldown?: number;
5773
5782
  desiredCapacity?: number;
5783
+ enableDesiredCapacity?: boolean;
5774
5784
  groupDeletionProtection?: boolean;
5775
5785
  groupType?: string;
5776
5786
  healthCheckType?: string;
@@ -6524,6 +6534,7 @@ export declare class ModifyEciScalingConfigurationRequestVolumesDiskVolume exten
6524
6534
  }
6525
6535
  export declare class ModifyEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
6526
6536
  medium?: string;
6537
+ sizeLimit?: string;
6527
6538
  static names(): {
6528
6539
  [key: string]: string;
6529
6540
  };
@@ -6901,97 +6912,19 @@ export default class Client extends OpenApi {
6901
6912
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
6902
6913
  [key: string]: string;
6903
6914
  }, 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
6915
  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
6916
  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
6917
  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
6918
  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
6919
  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
6920
  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
6921
  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
6922
  attachLoadBalancers(request: AttachLoadBalancersRequest): Promise<AttachLoadBalancersResponse>;
6964
6923
  attachServerGroupsWithOptions(request: AttachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachServerGroupsResponse>;
6965
6924
  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
6925
  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
6926
  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
6927
  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
6928
  changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse>;
6996
6929
  /**
6997
6930
  * 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 +6941,7 @@ export default class Client extends OpenApi {
7008
6941
  * @return CompleteLifecycleActionResponse
7009
6942
  */
7010
6943
  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
6944
  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
6945
  createAlarm(request: CreateAlarmRequest): Promise<CreateAlarmResponse>;
7034
6946
  /**
7035
6947
  * A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
@@ -7069,29 +6981,16 @@ export default class Client extends OpenApi {
7069
6981
  * @return CreateLifecycleHookResponse
7070
6982
  */
7071
6983
  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
6984
  createNotificationConfigurationWithOptions(request: CreateNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateNotificationConfigurationResponse>;
7080
- /**
7081
- * Creates a notification.
7082
- *
7083
- * @param request CreateNotificationConfigurationRequest
7084
- * @return CreateNotificationConfigurationResponse
7085
- */
7086
6985
  createNotificationConfiguration(request: CreateNotificationConfigurationRequest): Promise<CreateNotificationConfigurationResponse>;
7087
6986
  /**
7088
6987
  * 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 lowest-priced instance type based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces the failures of scale-outs caused by insufficient inventory of instance types.
6988
+ * * 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
6989
  * * InstanceType: In this mode, you must specify one instance type.
7091
6990
  * * InstanceTypes: In this mode, you can specify more than one instance type.
7092
6991
  * * 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 of the lowest-priced instance type. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
7094
- * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory parameters at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify the InstanceType and InstancePatternInfos parameters or specify the InstanceTypes and InstancePatternInfos parameters at the same time, Auto Scaling preferentially uses the instance types that are specified by the InstanceType or InstanceTypes parameter for scale-outs. If the instance types that are specified by the InstanceType or InstanceTypes parameter do not have sufficient inventory, Auto Scaling uses the instance types that are specified by the InstancePatternInfos parameter for scale-outs.
6992
+ * * 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.
6993
+ * > 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
6994
  *
7096
6995
  * @param tmpReq CreateScalingConfigurationRequest
7097
6996
  * @param runtime runtime options for this request RuntimeOptions
@@ -7100,12 +6999,12 @@ export default class Client extends OpenApi {
7100
6999
  createScalingConfigurationWithOptions(tmpReq: CreateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingConfigurationResponse>;
7101
7000
  /**
7102
7001
  * 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 lowest-priced instance type based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces the failures of scale-outs caused by insufficient inventory of instance types.
7002
+ * * 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
7003
  * * InstanceType: In this mode, you must specify one instance type.
7105
7004
  * * InstanceTypes: In this mode, you can specify more than one instance type.
7106
7005
  * * 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 of the lowest-priced instance type. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
7108
- * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory parameters at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify the InstanceType and InstancePatternInfos parameters or specify the InstanceTypes and InstancePatternInfos parameters at the same time, Auto Scaling preferentially uses the instance types that are specified by the InstanceType or InstanceTypes parameter for scale-outs. If the instance types that are specified by the InstanceType or InstanceTypes parameter do not have sufficient inventory, Auto Scaling uses the instance types that are specified by the InstancePatternInfos parameter for scale-outs.
7006
+ * * 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.
7007
+ * > 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
7008
  *
7110
7009
  * @param request CreateScalingConfigurationRequest
7111
7010
  * @return CreateScalingConfigurationResponse
@@ -7169,7 +7068,18 @@ export default class Client extends OpenApi {
7169
7068
  */
7170
7069
  createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse>;
7171
7070
  /**
7172
- * Creates a scaling rule.
7071
+ * 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:
7072
+ * * 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.
7073
+ * * 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.
7074
+ * Before you call this operation, take note of the following items:
7075
+ * * 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.
7076
+ * * 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.
7077
+ * * 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.
7078
+ * * 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.
7079
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
7080
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
7081
+ * * 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.
7082
+ * * 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
7083
  *
7174
7084
  * @param request CreateScalingRuleRequest
7175
7085
  * @param runtime runtime options for this request RuntimeOptions
@@ -7177,96 +7087,38 @@ export default class Client extends OpenApi {
7177
7087
  */
7178
7088
  createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse>;
7179
7089
  /**
7180
- * Creates a scaling rule.
7090
+ * 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:
7091
+ * * 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.
7092
+ * * 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.
7093
+ * Before you call this operation, take note of the following items:
7094
+ * * 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.
7095
+ * * 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.
7096
+ * * 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.
7097
+ * * 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.
7098
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
7099
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
7100
+ * * 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.
7101
+ * * 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
7102
  *
7182
7103
  * @param request CreateScalingRuleRequest
7183
7104
  * @return CreateScalingRuleResponse
7184
7105
  */
7185
7106
  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
7107
  createScheduledTaskWithOptions(request: CreateScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateScheduledTaskResponse>;
7194
- /**
7195
- * Creates a scheduled task.
7196
- *
7197
- * @param request CreateScheduledTaskRequest
7198
- * @return CreateScheduledTaskResponse
7199
- */
7200
7108
  createScheduledTask(request: CreateScheduledTaskRequest): Promise<CreateScheduledTaskResponse>;
7201
7109
  deactivateScalingConfigurationWithOptions(request: DeactivateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeactivateScalingConfigurationResponse>;
7202
7110
  deactivateScalingConfiguration(request: DeactivateScalingConfigurationRequest): Promise<DeactivateScalingConfigurationResponse>;
7203
7111
  deleteAlarmWithOptions(request: DeleteAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAlarmResponse>;
7204
7112
  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
7113
  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
7114
  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
7115
  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
7116
  deleteLifecycleHook(request: DeleteLifecycleHookRequest): Promise<DeleteLifecycleHookResponse>;
7239
7117
  deleteNotificationConfigurationWithOptions(request: DeleteNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNotificationConfigurationResponse>;
7240
7118
  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
7119
  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
7120
  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
7121
  deleteScalingGroupWithOptions(request: DeleteScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingGroupResponse>;
7264
- /**
7265
- * Deletes a scaling group.
7266
- *
7267
- * @param request DeleteScalingGroupRequest
7268
- * @return DeleteScalingGroupResponse
7269
- */
7270
7122
  deleteScalingGroup(request: DeleteScalingGroupRequest): Promise<DeleteScalingGroupResponse>;
7271
7123
  deleteScalingRuleWithOptions(request: DeleteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingRuleResponse>;
7272
7124
  deleteScalingRule(request: DeleteScalingRuleRequest): Promise<DeleteScalingRuleResponse>;
@@ -7276,41 +7128,9 @@ export default class Client extends OpenApi {
7276
7128
  describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse>;
7277
7129
  describeEciScalingConfigurationsWithOptions(request: DescribeEciScalingConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationsResponse>;
7278
7130
  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
7131
  describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse>;
7287
- /**
7288
- * Queries lifecycle actions.
7289
- *
7290
- * @param request DescribeLifecycleActionsRequest
7291
- * @return DescribeLifecycleActionsResponse
7292
- */
7293
7132
  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
7133
  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
7134
  describeLifecycleHooks(request: DescribeLifecycleHooksRequest): Promise<DescribeLifecycleHooksResponse>;
7315
7135
  describeLimitationWithOptions(request: DescribeLimitationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLimitationResponse>;
7316
7136
  describeLimitation(request: DescribeLimitationRequest): Promise<DescribeLimitationResponse>;
@@ -7345,23 +7165,10 @@ export default class Client extends OpenApi {
7345
7165
  describeScalingConfigurations(request: DescribeScalingConfigurationsRequest): Promise<DescribeScalingConfigurationsResponse>;
7346
7166
  describeScalingGroupsWithOptions(request: DescribeScalingGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingGroupsResponse>;
7347
7167
  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
7168
  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
7169
  describeScalingInstances(request: DescribeScalingInstancesRequest): Promise<DescribeScalingInstancesResponse>;
7363
7170
  /**
7364
- * Queries all scaling rules in a scaling group.
7171
+ * 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
7172
  *
7366
7173
  * @param request DescribeScalingRulesRequest
7367
7174
  * @param runtime runtime options for this request RuntimeOptions
@@ -7369,81 +7176,29 @@ export default class Client extends OpenApi {
7369
7176
  */
7370
7177
  describeScalingRulesWithOptions(request: DescribeScalingRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingRulesResponse>;
7371
7178
  /**
7372
- * Queries all scaling rules in a scaling group.
7179
+ * 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
7180
  *
7374
7181
  * @param request DescribeScalingRulesRequest
7375
7182
  * @return DescribeScalingRulesResponse
7376
7183
  */
7377
7184
  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
7185
  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
7186
  describeScheduledTasks(request: DescribeScheduledTasksRequest): Promise<DescribeScheduledTasksResponse>;
7393
7187
  detachAlbServerGroupsWithOptions(request: DetachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachAlbServerGroupsResponse>;
7394
7188
  detachAlbServerGroups(request: DetachAlbServerGroupsRequest): Promise<DetachAlbServerGroupsResponse>;
7395
7189
  detachDBInstancesWithOptions(request: DetachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachDBInstancesResponse>;
7396
7190
  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
7191
  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
7192
  detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse>;
7412
7193
  detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse>;
7413
7194
  detachLoadBalancers(request: DetachLoadBalancersRequest): Promise<DetachLoadBalancersResponse>;
7414
7195
  detachServerGroupsWithOptions(request: DetachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachServerGroupsResponse>;
7415
7196
  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
7197
  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
7198
  detachVServerGroups(request: DetachVServerGroupsRequest): Promise<DetachVServerGroupsResponse>;
7431
7199
  disableAlarmWithOptions(request: DisableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DisableAlarmResponse>;
7432
7200
  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
7201
  disableScalingGroupWithOptions(request: DisableScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DisableScalingGroupResponse>;
7441
- /**
7442
- * Disables a scaling group.
7443
- *
7444
- * @param request DisableScalingGroupRequest
7445
- * @return DisableScalingGroupResponse
7446
- */
7447
7202
  disableScalingGroup(request: DisableScalingGroupRequest): Promise<DisableScalingGroupResponse>;
7448
7203
  enableAlarmWithOptions(request: EnableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<EnableAlarmResponse>;
7449
7204
  enableAlarm(request: EnableAlarmRequest): Promise<EnableAlarmResponse>;
@@ -7470,56 +7225,11 @@ export default class Client extends OpenApi {
7470
7225
  * @return EnableScalingGroupResponse
7471
7226
  */
7472
7227
  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
7228
  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
7229
  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
7230
  executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse>;
7502
- /**
7503
- * Executes a scaling rule.
7504
- *
7505
- * @param request ExecuteScalingRuleRequest
7506
- * @return ExecuteScalingRuleResponse
7507
- */
7508
7231
  executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse>;
7509
- /**
7510
- * If the scaling group is associated with a load balancing instance, the ECS instance weight will be set to the weight value defined in the scaling configuration.
7511
- *
7512
- * @param request ExitStandbyRequest
7513
- * @param runtime runtime options for this request RuntimeOptions
7514
- * @return ExitStandbyResponse
7515
- */
7516
7232
  exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse>;
7517
- /**
7518
- * If the scaling group is associated with a load balancing instance, the ECS instance weight will be set to the weight value defined in the scaling configuration.
7519
- *
7520
- * @param request ExitStandbyRequest
7521
- * @return ExitStandbyResponse
7522
- */
7523
7233
  exitStandby(request: ExitStandbyRequest): Promise<ExitStandbyResponse>;
7524
7234
  listTagKeysWithOptions(request: ListTagKeysRequest, runtime: $Util.RuntimeOptions): Promise<ListTagKeysResponse>;
7525
7235
  listTagKeys(request: ListTagKeysRequest): Promise<ListTagKeysResponse>;
@@ -7528,7 +7238,11 @@ export default class Client extends OpenApi {
7528
7238
  listTagValuesWithOptions(request: ListTagValuesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagValuesResponse>;
7529
7239
  listTagValues(request: ListTagValuesRequest): Promise<ListTagValuesResponse>;
7530
7240
  /**
7531
- * Modifies an event-triggered task.
7241
+ * * 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~~).
7242
+ * * 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.
7243
+ * * If you set MetricType to custom, the valid values are your custom metrics.
7244
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
7245
+ * > 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
7246
  *
7533
7247
  * @param request ModifyAlarmRequest
7534
7248
  * @param runtime runtime options for this request RuntimeOptions
@@ -7536,7 +7250,11 @@ export default class Client extends OpenApi {
7536
7250
  */
7537
7251
  modifyAlarmWithOptions(request: ModifyAlarmRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlarmResponse>;
7538
7252
  /**
7539
- * Modifies an event-triggered task.
7253
+ * * 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~~).
7254
+ * * 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.
7255
+ * * If you set MetricType to custom, the valid values are your custom metrics.
7256
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
7257
+ * > 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
7258
  *
7541
7259
  * @param request ModifyAlarmRequest
7542
7260
  * @return ModifyAlarmResponse
@@ -7579,7 +7297,7 @@ export default class Client extends OpenApi {
7579
7297
  modifyNotificationConfigurationWithOptions(request: ModifyNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyNotificationConfigurationResponse>;
7580
7298
  modifyNotificationConfiguration(request: ModifyNotificationConfigurationRequest): Promise<ModifyNotificationConfigurationResponse>;
7581
7299
  /**
7582
- * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
7300
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
7583
7301
  *
7584
7302
  * @param tmpReq ModifyScalingConfigurationRequest
7585
7303
  * @param runtime runtime options for this request RuntimeOptions
@@ -7587,114 +7305,28 @@ export default class Client extends OpenApi {
7587
7305
  */
7588
7306
  modifyScalingConfigurationWithOptions(tmpReq: ModifyScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingConfigurationResponse>;
7589
7307
  /**
7590
- * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
7308
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
7591
7309
  *
7592
7310
  * @param request ModifyScalingConfigurationRequest
7593
7311
  * @return ModifyScalingConfigurationResponse
7594
7312
  */
7595
7313
  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
7314
  modifyScalingGroupWithOptions(request: ModifyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingGroupResponse>;
7604
- /**
7605
- * Modifies a scaling group.
7606
- *
7607
- * @param request ModifyScalingGroupRequest
7608
- * @return ModifyScalingGroupResponse
7609
- */
7610
7315
  modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
7611
7316
  modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
7612
7317
  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
7318
  modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse>;
7621
- /**
7622
- * Modifies a scheduled task.
7623
- *
7624
- * @param request ModifyScheduledTaskRequest
7625
- * @return ModifyScheduledTaskResponse
7626
- */
7627
7319
  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
7320
  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
7321
  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
7322
  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
7323
  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
7324
  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
7325
  removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse>;
7687
7326
  resumeProcessesWithOptions(request: ResumeProcessesRequest, runtime: $Util.RuntimeOptions): Promise<ResumeProcessesResponse>;
7688
7327
  resumeProcesses(request: ResumeProcessesRequest): Promise<ResumeProcessesResponse>;
7689
7328
  /**
7690
- * 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:
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.
7329
+ * The ID of the scaling activity.
7698
7330
  *
7699
7331
  * @param request ScaleWithAdjustmentRequest
7700
7332
  * @param runtime runtime options for this request RuntimeOptions
@@ -7702,14 +7334,7 @@ export default class Client extends OpenApi {
7702
7334
  */
7703
7335
  scaleWithAdjustmentWithOptions(request: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
7704
7336
  /**
7705
- * 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:
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.
7337
+ * The ID of the scaling activity.
7713
7338
  *
7714
7339
  * @param request ScaleWithAdjustmentRequest
7715
7340
  * @return ScaleWithAdjustmentResponse