@alicloud/ess20220222 1.0.10 → 1.0.12

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
@@ -674,6 +674,8 @@ export declare class CreateScalingConfigurationRequest extends $tea.Model {
674
674
  spotInterruptionBehavior?: string;
675
675
  spotPriceLimits?: CreateScalingConfigurationRequestSpotPriceLimits[];
676
676
  spotStrategy?: string;
677
+ storageSetId?: string;
678
+ storageSetPartitionNumber?: number;
677
679
  systemDiskCategories?: string[];
678
680
  tags?: string;
679
681
  tenancy?: string;
@@ -737,6 +739,8 @@ export declare class CreateScalingConfigurationShrinkRequest extends $tea.Model
737
739
  spotInterruptionBehavior?: string;
738
740
  spotPriceLimits?: CreateScalingConfigurationShrinkRequestSpotPriceLimits[];
739
741
  spotStrategy?: string;
742
+ storageSetId?: string;
743
+ storageSetPartitionNumber?: number;
740
744
  systemDiskCategories?: string[];
741
745
  tags?: string;
742
746
  tenancy?: string;
@@ -3197,6 +3201,8 @@ export declare class ModifyScalingConfigurationRequest extends $tea.Model {
3197
3201
  spotInterruptionBehavior?: string;
3198
3202
  spotPriceLimits?: ModifyScalingConfigurationRequestSpotPriceLimits[];
3199
3203
  spotStrategy?: string;
3204
+ storageSetId?: string;
3205
+ storageSetPartitionNumber?: number;
3200
3206
  systemDiskCategories?: string[];
3201
3207
  tags?: string;
3202
3208
  tenancy?: string;
@@ -3256,6 +3262,8 @@ export declare class ModifyScalingConfigurationShrinkRequest extends $tea.Model
3256
3262
  spotInterruptionBehavior?: string;
3257
3263
  spotPriceLimits?: ModifyScalingConfigurationShrinkRequestSpotPriceLimits[];
3258
3264
  spotStrategy?: string;
3265
+ storageSetId?: string;
3266
+ storageSetPartitionNumber?: number;
3259
3267
  systemDiskCategories?: string[];
3260
3268
  tags?: string;
3261
3269
  tenancy?: string;
@@ -3679,6 +3687,27 @@ export declare class ScaleWithAdjustmentRequest extends $tea.Model {
3679
3687
  adjustmentValue?: number;
3680
3688
  clientToken?: string;
3681
3689
  minAdjustmentMagnitude?: number;
3690
+ overrides?: ScaleWithAdjustmentRequestOverrides;
3691
+ ownerId?: number;
3692
+ resourceOwnerAccount?: string;
3693
+ scalingGroupId?: string;
3694
+ syncActivity?: boolean;
3695
+ static names(): {
3696
+ [key: string]: string;
3697
+ };
3698
+ static types(): {
3699
+ [key: string]: any;
3700
+ };
3701
+ constructor(map?: {
3702
+ [key: string]: any;
3703
+ });
3704
+ }
3705
+ export declare class ScaleWithAdjustmentShrinkRequest extends $tea.Model {
3706
+ adjustmentType?: string;
3707
+ adjustmentValue?: number;
3708
+ clientToken?: string;
3709
+ minAdjustmentMagnitude?: number;
3710
+ overridesShrink?: string;
3682
3711
  ownerId?: number;
3683
3712
  resourceOwnerAccount?: string;
3684
3713
  scalingGroupId?: string;
@@ -5669,6 +5698,8 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
5669
5698
  spotInterruptionBehavior?: string;
5670
5699
  spotPriceLimits?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsSpotPriceLimits[];
5671
5700
  spotStrategy?: string;
5701
+ storageSetId?: string;
5702
+ storageSetPartitionNumber?: number;
5672
5703
  systemDiskAutoSnapshotPolicyId?: string;
5673
5704
  systemDiskBurstingEnabled?: boolean;
5674
5705
  systemDiskCategories?: string[];
@@ -6935,6 +6966,50 @@ export declare class ModifyScalingRuleRequestStepAdjustments extends $tea.Model
6935
6966
  [key: string]: any;
6936
6967
  });
6937
6968
  }
6969
+ export declare class ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars extends $tea.Model {
6970
+ key?: string;
6971
+ value?: string;
6972
+ static names(): {
6973
+ [key: string]: string;
6974
+ };
6975
+ static types(): {
6976
+ [key: string]: any;
6977
+ };
6978
+ constructor(map?: {
6979
+ [key: string]: any;
6980
+ });
6981
+ }
6982
+ export declare class ScaleWithAdjustmentRequestOverridesContainerOverrides extends $tea.Model {
6983
+ args?: string[];
6984
+ commands?: string[];
6985
+ cpu?: number;
6986
+ environmentVars?: ScaleWithAdjustmentRequestOverridesContainerOverridesEnvironmentVars[];
6987
+ memory?: number;
6988
+ name?: string;
6989
+ static names(): {
6990
+ [key: string]: string;
6991
+ };
6992
+ static types(): {
6993
+ [key: string]: any;
6994
+ };
6995
+ constructor(map?: {
6996
+ [key: string]: any;
6997
+ });
6998
+ }
6999
+ export declare class ScaleWithAdjustmentRequestOverrides extends $tea.Model {
7000
+ containerOverrides?: ScaleWithAdjustmentRequestOverridesContainerOverrides[];
7001
+ cpu?: number;
7002
+ memory?: number;
7003
+ static names(): {
7004
+ [key: string]: string;
7005
+ };
7006
+ static types(): {
7007
+ [key: string]: any;
7008
+ };
7009
+ constructor(map?: {
7010
+ [key: string]: any;
7011
+ });
7012
+ }
6938
7013
  export declare class TagResourcesRequestTags extends $tea.Model {
6939
7014
  key?: string;
6940
7015
  propagate?: boolean;
@@ -6954,17 +7029,162 @@ export default class Client extends OpenApi {
6954
7029
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
6955
7030
  [key: string]: string;
6956
7031
  }, endpoint: string): string;
7032
+ /**
7033
+ * Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
7034
+ * * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
7035
+ * * The ALB server group is in the Available state.
7036
+ * * You can associate only a limited number of ALB server groups with a scaling group. To view the quota or manually request a quota increase, go to [Quota Center](https://quotas.console.aliyun.com/products/ess/quotas).
7037
+ *
7038
+ * @param request AttachAlbServerGroupsRequest
7039
+ * @param runtime runtime options for this request RuntimeOptions
7040
+ * @return AttachAlbServerGroupsResponse
7041
+ */
6957
7042
  attachAlbServerGroupsWithOptions(request: AttachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachAlbServerGroupsResponse>;
7043
+ /**
7044
+ * Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
7045
+ * * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
7046
+ * * The ALB server group is in the Available state.
7047
+ * * You can associate only a limited number of ALB server groups with a scaling group. To view the quota or manually request a quota increase, go to [Quota Center](https://quotas.console.aliyun.com/products/ess/quotas).
7048
+ *
7049
+ * @param request AttachAlbServerGroupsRequest
7050
+ * @return AttachAlbServerGroupsResponse
7051
+ */
6958
7052
  attachAlbServerGroups(request: AttachAlbServerGroupsRequest): Promise<AttachAlbServerGroupsResponse>;
7053
+ /**
7054
+ * Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
7055
+ * * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
7056
+ * * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](~~41872~~).
7057
+ * * The ApsaraDB RDS instance must be in the Running state.
7058
+ * After an ApsaraDB RDS instance is associated with the scaling group, the default IP address whitelist of the ApsaraDB RDS instance can contain no more than 1,000 IP addresses. For more information, see [Set the whitelist](~~43185~~).
7059
+ *
7060
+ * @param request AttachDBInstancesRequest
7061
+ * @param runtime runtime options for this request RuntimeOptions
7062
+ * @return AttachDBInstancesResponse
7063
+ */
6959
7064
  attachDBInstancesWithOptions(request: AttachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachDBInstancesResponse>;
7065
+ /**
7066
+ * Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
7067
+ * * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
7068
+ * * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](~~41872~~).
7069
+ * * The ApsaraDB RDS instance must be in the Running state.
7070
+ * After an ApsaraDB RDS instance is associated with the scaling group, the default IP address whitelist of the ApsaraDB RDS instance can contain no more than 1,000 IP addresses. For more information, see [Set the whitelist](~~43185~~).
7071
+ *
7072
+ * @param request AttachDBInstancesRequest
7073
+ * @return AttachDBInstancesResponse
7074
+ */
6960
7075
  attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse>;
7076
+ /**
7077
+ * Before you call this operation, take note of the following items:
7078
+ * * The scaling group is in the Active state.
7079
+ * * No scaling activities in the scaling group are in progress.
7080
+ * The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
7081
+ * * The instances reside in the same region as the scaling group.
7082
+ * * The instances must be in the Running state.
7083
+ * * The instances are not added to other scaling groups.
7084
+ * * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
7085
+ * * If the VswitchID parameter is specified for a scaling group, the instances that are in the classic network or those that are not in the same virtual private cloud (VPC) as the specified vSwitch cannot be added to the scaling group.
7086
+ * * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
7087
+ * If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7088
+ * 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.
7089
+ * If the sum of the number of instances that you want to add and the number of existing instances in the scaling group is greater than the value of the MaxSize parameter, the call fails.
7090
+ * Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
7091
+ *
7092
+ * @param request AttachInstancesRequest
7093
+ * @param runtime runtime options for this request RuntimeOptions
7094
+ * @return AttachInstancesResponse
7095
+ */
6961
7096
  attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse>;
7097
+ /**
7098
+ * Before you call this operation, take note of the following items:
7099
+ * * The scaling group is in the Active state.
7100
+ * * No scaling activities in the scaling group are in progress.
7101
+ * The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
7102
+ * * The instances reside in the same region as the scaling group.
7103
+ * * The instances must be in the Running state.
7104
+ * * The instances are not added to other scaling groups.
7105
+ * * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
7106
+ * * If the VswitchID parameter is specified for a scaling group, the instances that are in the classic network or those that are not in the same virtual private cloud (VPC) as the specified vSwitch cannot be added to the scaling group.
7107
+ * * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
7108
+ * If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7109
+ * 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.
7110
+ * If the sum of the number of instances that you want to add and the number of existing instances in the scaling group is greater than the value of the MaxSize parameter, the call fails.
7111
+ * Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
7112
+ *
7113
+ * @param request AttachInstancesRequest
7114
+ * @return AttachInstancesResponse
7115
+ */
6962
7116
  attachInstances(request: AttachInstancesRequest): Promise<AttachInstancesResponse>;
7117
+ /**
7118
+ * Before you call this operation to attach a CLB instance to your scaling group, take note of the following items:
7119
+ * * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
7120
+ * * The CLB instance and the scaling group must reside in the same region.
7121
+ * * The CLB instance must be in the Running state.
7122
+ * * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
7123
+ * * The CLB instance and the scaling group must be in the same virtual private cloud (VPC) if their network type is VPC.
7124
+ * * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the CLB backend server groups contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
7125
+ * * You can attach only a limited number of CLB instances to a scaling group. Fore more information, see [Limits](~~25863~~).
7126
+ *
7127
+ * @param request AttachLoadBalancersRequest
7128
+ * @param runtime runtime options for this request RuntimeOptions
7129
+ * @return AttachLoadBalancersResponse
7130
+ */
6963
7131
  attachLoadBalancersWithOptions(request: AttachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<AttachLoadBalancersResponse>;
7132
+ /**
7133
+ * Before you call this operation to attach a CLB instance to your scaling group, take note of the following items:
7134
+ * * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
7135
+ * * The CLB instance and the scaling group must reside in the same region.
7136
+ * * The CLB instance must be in the Running state.
7137
+ * * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
7138
+ * * The CLB instance and the scaling group must be in the same virtual private cloud (VPC) if their network type is VPC.
7139
+ * * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the CLB backend server groups contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
7140
+ * * You can attach only a limited number of CLB instances to a scaling group. Fore more information, see [Limits](~~25863~~).
7141
+ *
7142
+ * @param request AttachLoadBalancersRequest
7143
+ * @return AttachLoadBalancersResponse
7144
+ */
6964
7145
  attachLoadBalancers(request: AttachLoadBalancersRequest): Promise<AttachLoadBalancersResponse>;
6965
7146
  attachServerGroupsWithOptions(request: AttachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachServerGroupsResponse>;
6966
7147
  attachServerGroups(request: AttachServerGroupsRequest): Promise<AttachServerGroupsResponse>;
7148
+ /**
7149
+ * Before you call this operation to attach a vServer group to your scaling group, take note of the following items:
7150
+ * * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
7151
+ * * The CLB instance and the scaling group must reside in the same region.
7152
+ * * The CLB instance must be in the Running state.
7153
+ * * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
7154
+ * * The CLB instance and the scaling group must be in the same VPC if their network type is VPC.
7155
+ * * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the vServer groups of the CLB instance contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
7156
+ * * The vServer group that you want to attach to your scaling group must belong to the CLB instance.
7157
+ * * You can attach only a limited number of vServer groups to a scaling group. For information about the quota on vServer groups, see [Limits](~~25863~~).
7158
+ * When you call this operation, you must specify the following parameters:
7159
+ * * LoadBalancerId: the ID of the CLB instance.
7160
+ * * VServerGroupId: the ID of the vServer group.
7161
+ * * Port: the port number of the vServer group.
7162
+ * If a vServer group is attached to a scaling group by using different ports, Auto Scaling considers that more than one vServer group is attached to the scaling group. If multiple vServer groups with the same group ID and port number are specified in the request parameters, only the first vServer group is used. The other vServer groups are ignored.
7163
+ *
7164
+ * @param request AttachVServerGroupsRequest
7165
+ * @param runtime runtime options for this request RuntimeOptions
7166
+ * @return AttachVServerGroupsResponse
7167
+ */
6967
7168
  attachVServerGroupsWithOptions(request: AttachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachVServerGroupsResponse>;
7169
+ /**
7170
+ * Before you call this operation to attach a vServer group to your scaling group, take note of the following items:
7171
+ * * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
7172
+ * * The CLB instance and the scaling group must reside in the same region.
7173
+ * * The CLB instance must be in the Running state.
7174
+ * * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
7175
+ * * The CLB instance and the scaling group must be in the same VPC if their network type is VPC.
7176
+ * * If the network type of the scaling group is VPC, the network type of the CLB instance is classic network, and the vServer groups of the CLB instance contain instances of the VPC network type, the instances and the scaling group must be in the same VPC.
7177
+ * * The vServer group that you want to attach to your scaling group must belong to the CLB instance.
7178
+ * * You can attach only a limited number of vServer groups to a scaling group. For information about the quota on vServer groups, see [Limits](~~25863~~).
7179
+ * When you call this operation, you must specify the following parameters:
7180
+ * * LoadBalancerId: the ID of the CLB instance.
7181
+ * * VServerGroupId: the ID of the vServer group.
7182
+ * * Port: the port number of the vServer group.
7183
+ * If a vServer group is attached to a scaling group by using different ports, Auto Scaling considers that more than one vServer group is attached to the scaling group. If multiple vServer groups with the same group ID and port number are specified in the request parameters, only the first vServer group is used. The other vServer groups are ignored.
7184
+ *
7185
+ * @param request AttachVServerGroupsRequest
7186
+ * @return AttachVServerGroupsResponse
7187
+ */
6968
7188
  attachVServerGroups(request: AttachVServerGroupsRequest): Promise<AttachVServerGroupsResponse>;
6969
7189
  changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse>;
6970
7190
  changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse>;
@@ -7023,7 +7243,22 @@ export default class Client extends OpenApi {
7023
7243
  * @return CreateLifecycleHookResponse
7024
7244
  */
7025
7245
  createLifecycleHook(request: CreateLifecycleHookRequest): Promise<CreateLifecycleHookResponse>;
7246
+ /**
7247
+ * ## Description
7248
+ * You can configure CloudMonitor system events, Message Service (MNS) queues, or MNS topics to receive notifications. When a specified type of scaling activity or resource change occurs in a scaling group, Auto Scaling sends notifications by using CloudMonitor or MNS.
7249
+ *
7250
+ * @param request CreateNotificationConfigurationRequest
7251
+ * @param runtime runtime options for this request RuntimeOptions
7252
+ * @return CreateNotificationConfigurationResponse
7253
+ */
7026
7254
  createNotificationConfigurationWithOptions(request: CreateNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateNotificationConfigurationResponse>;
7255
+ /**
7256
+ * ## Description
7257
+ * You can configure CloudMonitor system events, Message Service (MNS) queues, or MNS topics to receive notifications. When a specified type of scaling activity or resource change occurs in a scaling group, Auto Scaling sends notifications by using CloudMonitor or MNS.
7258
+ *
7259
+ * @param request CreateNotificationConfigurationRequest
7260
+ * @return CreateNotificationConfigurationResponse
7261
+ */
7027
7262
  createNotificationConfiguration(request: CreateNotificationConfigurationRequest): Promise<CreateNotificationConfigurationResponse>;
7028
7263
  /**
7029
7264
  * Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
@@ -7110,18 +7345,19 @@ export default class Client extends OpenApi {
7110
7345
  */
7111
7346
  createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse>;
7112
7347
  /**
7113
- * 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:
7114
- * * 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.
7115
- * * 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.
7348
+ * ## Description
7349
+ * A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling adjusts the number of ECS instances that you want to add or remove. This way, the number of ECS instances can be maintained within the valid range after the scaling rule is executed. The number of ECS instances that is specified in the scaling rule remains unchanged. Example:
7350
+ * * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified. The number of ECS instances that is specified in the scaling rule remains unchanged.
7351
+ * * If your scaling group contains three ECS instances and requires at least two ECS instances, only one ECS instance is removed from your scaling group after you execute a scale-in rule in which five ECS instances are specified. The number of ECS instances that is specified in the scaling rule remains unchanged.
7116
7352
  * Before you call this operation, take note of the following items:
7117
- * * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
7118
- * * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
7119
- * * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
7120
- * * If 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.
7353
+ * * If you set the AdjustmentType parameter to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of the AdjustmentValue parameter must be greater than or equal to 0.
7354
+ * * If you set the AdjustmentType parameter to QuantityChangeInCapacity or PercentChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
7355
+ * * If you set the AdjustmentType parameter to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
7356
+ * * If the cooldown time is specified in a scaling rule, the specified time applies to the scaling group after the rule is executed. Otherwise, the value of the DefaultCooldown parameter of the scaling group applies to the scaling group.
7121
7357
  * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
7122
7358
  * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
7123
- * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
7124
- * * 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.
7359
+ * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule by setting the ScalingRuleAri parameter to the unique identifier of the scaling rule.
7360
+ * * CreateScheduledTask: You can call this operation to create a scheduled task for a specific scaling rule by setting the ScheduledAction parameter to the unique identifier of the scaling rule.
7125
7361
  *
7126
7362
  * @param request CreateScalingRuleRequest
7127
7363
  * @param runtime runtime options for this request RuntimeOptions
@@ -7129,36 +7365,94 @@ export default class Client extends OpenApi {
7129
7365
  */
7130
7366
  createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse>;
7131
7367
  /**
7132
- * 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:
7133
- * * 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.
7134
- * * 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.
7368
+ * ## Description
7369
+ * A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling adjusts the number of ECS instances that you want to add or remove. This way, the number of ECS instances can be maintained within the valid range after the scaling rule is executed. The number of ECS instances that is specified in the scaling rule remains unchanged. Example:
7370
+ * * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified. The number of ECS instances that is specified in the scaling rule remains unchanged.
7371
+ * * If your scaling group contains three ECS instances and requires at least two ECS instances, only one ECS instance is removed from your scaling group after you execute a scale-in rule in which five ECS instances are specified. The number of ECS instances that is specified in the scaling rule remains unchanged.
7135
7372
  * Before you call this operation, take note of the following items:
7136
- * * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
7137
- * * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
7138
- * * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
7139
- * * If 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.
7373
+ * * If you set the AdjustmentType parameter to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of the AdjustmentValue parameter must be greater than or equal to 0.
7374
+ * * If you set the AdjustmentType parameter to QuantityChangeInCapacity or PercentChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
7375
+ * * If you set the AdjustmentType parameter to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
7376
+ * * If the cooldown time is specified in a scaling rule, the specified time applies to the scaling group after the rule is executed. Otherwise, the value of the DefaultCooldown parameter of the scaling group applies to the scaling group.
7140
7377
  * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
7141
7378
  * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
7142
- * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
7143
- * * 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.
7379
+ * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule by setting the ScalingRuleAri parameter to the unique identifier of the scaling rule.
7380
+ * * CreateScheduledTask: You can call this operation to create a scheduled task for a specific scaling rule by setting the ScheduledAction parameter to the unique identifier of the scaling rule.
7144
7381
  *
7145
7382
  * @param request CreateScalingRuleRequest
7146
7383
  * @return CreateScalingRuleResponse
7147
7384
  */
7148
7385
  createScalingRule(request: CreateScalingRuleRequest): Promise<CreateScalingRuleResponse>;
7386
+ /**
7387
+ * * If a scheduled task fails to trigger a scaling activity due to an ongoing scaling activity in a scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the period that is specified by the LaunchExpirationTime parameter. If the scheduled task still fails to trigger a scaling activity after the period ends, the task is automatically skipped.
7388
+ * * If multiple tasks are scheduled at similar points in time to trigger scaling activities in the same scaling group, the earliest task triggers the scaling activity first. Other tasks trigger scaling activities within their launch expiration time. Only one scaling activity can be triggered in a scaling group at a time.`` If the previous scaling activity is complete and another scheduled task attempts to trigger a scaling activity, Auto Scaling executes the scaling rule that is specified in the scheduled task and then triggers a scaling activity.``
7389
+ * * A scheduled task supports the following scaling methods:
7390
+ * * `ScheduledAction`: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
7391
+ * * `ScalingGroupId`: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you created the scheduled task.
7392
+ * > You cannot specify the `ScheduledAction` and ScalingGroupId parameters at the same time.
7393
+ *
7394
+ * @param request CreateScheduledTaskRequest
7395
+ * @param runtime runtime options for this request RuntimeOptions
7396
+ * @return CreateScheduledTaskResponse
7397
+ */
7149
7398
  createScheduledTaskWithOptions(request: CreateScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateScheduledTaskResponse>;
7399
+ /**
7400
+ * * If a scheduled task fails to trigger a scaling activity due to an ongoing scaling activity in a scaling group or because the scaling group is disabled, the scheduled task is automatically retried during the period that is specified by the LaunchExpirationTime parameter. If the scheduled task still fails to trigger a scaling activity after the period ends, the task is automatically skipped.
7401
+ * * If multiple tasks are scheduled at similar points in time to trigger scaling activities in the same scaling group, the earliest task triggers the scaling activity first. Other tasks trigger scaling activities within their launch expiration time. Only one scaling activity can be triggered in a scaling group at a time.`` If the previous scaling activity is complete and another scheduled task attempts to trigger a scaling activity, Auto Scaling executes the scaling rule that is specified in the scheduled task and then triggers a scaling activity.``
7402
+ * * A scheduled task supports the following scaling methods:
7403
+ * * `ScheduledAction`: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
7404
+ * * `ScalingGroupId`: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you created the scheduled task.
7405
+ * > You cannot specify the `ScheduledAction` and ScalingGroupId parameters at the same time.
7406
+ *
7407
+ * @param request CreateScheduledTaskRequest
7408
+ * @return CreateScheduledTaskResponse
7409
+ */
7150
7410
  createScheduledTask(request: CreateScheduledTaskRequest): Promise<CreateScheduledTaskResponse>;
7151
7411
  deactivateScalingConfigurationWithOptions(request: DeactivateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeactivateScalingConfigurationResponse>;
7152
7412
  deactivateScalingConfiguration(request: DeactivateScalingConfigurationRequest): Promise<DeactivateScalingConfigurationResponse>;
7153
7413
  deleteAlarmWithOptions(request: DeleteAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAlarmResponse>;
7154
7414
  deleteAlarm(request: DeleteAlarmRequest): Promise<DeleteAlarmResponse>;
7415
+ /**
7416
+ * You cannot delete a scaling configuration that is used to create elastic container instances in the following scenarios:
7417
+ * * The scaling configuration is in the Active state.
7418
+ * * The scaling group contains elastic container instances that are created based on the scaling configuration.
7419
+ *
7420
+ * @param request DeleteEciScalingConfigurationRequest
7421
+ * @param runtime runtime options for this request RuntimeOptions
7422
+ * @return DeleteEciScalingConfigurationResponse
7423
+ */
7155
7424
  deleteEciScalingConfigurationWithOptions(request: DeleteEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteEciScalingConfigurationResponse>;
7425
+ /**
7426
+ * You cannot delete a scaling configuration that is used to create elastic container instances in the following scenarios:
7427
+ * * The scaling configuration is in the Active state.
7428
+ * * The scaling group contains elastic container instances that are created based on the scaling configuration.
7429
+ *
7430
+ * @param request DeleteEciScalingConfigurationRequest
7431
+ * @return DeleteEciScalingConfigurationResponse
7432
+ */
7156
7433
  deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse>;
7157
7434
  deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse>;
7158
7435
  deleteLifecycleHook(request: DeleteLifecycleHookRequest): Promise<DeleteLifecycleHookResponse>;
7159
7436
  deleteNotificationConfigurationWithOptions(request: DeleteNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNotificationConfigurationResponse>;
7160
7437
  deleteNotificationConfiguration(request: DeleteNotificationConfigurationRequest): Promise<DeleteNotificationConfigurationResponse>;
7438
+ /**
7439
+ * You cannot delete a scaling configuration in one of the following scenarios:
7440
+ * * The scaling configuration in your scaling group is in the Active state.
7441
+ * * The scaling group contains ECS instances that were created based on the scaling configuration.
7442
+ *
7443
+ * @param request DeleteScalingConfigurationRequest
7444
+ * @param runtime runtime options for this request RuntimeOptions
7445
+ * @return DeleteScalingConfigurationResponse
7446
+ */
7161
7447
  deleteScalingConfigurationWithOptions(request: DeleteScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingConfigurationResponse>;
7448
+ /**
7449
+ * You cannot delete a scaling configuration in one of the following scenarios:
7450
+ * * The scaling configuration in your scaling group is in the Active state.
7451
+ * * The scaling group contains ECS instances that were created based on the scaling configuration.
7452
+ *
7453
+ * @param request DeleteScalingConfigurationRequest
7454
+ * @return DeleteScalingConfigurationResponse
7455
+ */
7162
7456
  deleteScalingConfiguration(request: DeleteScalingConfigurationRequest): Promise<DeleteScalingConfigurationResponse>;
7163
7457
  deleteScalingGroupWithOptions(request: DeleteScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingGroupResponse>;
7164
7458
  deleteScalingGroup(request: DeleteScalingGroupRequest): Promise<DeleteScalingGroupResponse>;
@@ -7170,7 +7464,28 @@ export default class Client extends OpenApi {
7170
7464
  describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse>;
7171
7465
  describeEciScalingConfigurationsWithOptions(request: DescribeEciScalingConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationsResponse>;
7172
7466
  describeEciScalingConfigurations(request: DescribeEciScalingConfigurationsRequest): Promise<DescribeEciScalingConfigurationsResponse>;
7467
+ /**
7468
+ * If a scaling activity is executed and a lifecycle hook is created for the scaling activity, the lifecycle hook triggers a lifecycle action. A lifecycle action can be in one of the following states:
7469
+ * * If a lifecycle action is in the Pending state, Elastic Compute Service (ECS) instances are waiting to be added to a scaling group or waiting to be removed from a scaling group.
7470
+ * * If a lifecycle action is in the Timeout state, the lifecycle hook that triggers the lifecycle action expires and ECS instances are added to or removed from a scaling group.
7471
+ * * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
7472
+ * If you do not specify the action to perform, such as execute a specific OOS template, after a lifecycle hook ends, you can call this operation to obtain the token of the lifecycle action that corresponds to the lifecycle hook. Then, you can specify a custom action to perform after the lifecycle hook ends.
7473
+ *
7474
+ * @param request DescribeLifecycleActionsRequest
7475
+ * @param runtime runtime options for this request RuntimeOptions
7476
+ * @return DescribeLifecycleActionsResponse
7477
+ */
7173
7478
  describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse>;
7479
+ /**
7480
+ * If a scaling activity is executed and a lifecycle hook is created for the scaling activity, the lifecycle hook triggers a lifecycle action. A lifecycle action can be in one of the following states:
7481
+ * * If a lifecycle action is in the Pending state, Elastic Compute Service (ECS) instances are waiting to be added to a scaling group or waiting to be removed from a scaling group.
7482
+ * * If a lifecycle action is in the Timeout state, the lifecycle hook that triggers the lifecycle action expires and ECS instances are added to or removed from a scaling group.
7483
+ * * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
7484
+ * If you do not specify the action to perform, such as execute a specific OOS template, after a lifecycle hook ends, you can call this operation to obtain the token of the lifecycle action that corresponds to the lifecycle hook. Then, you can specify a custom action to perform after the lifecycle hook ends.
7485
+ *
7486
+ * @param request DescribeLifecycleActionsRequest
7487
+ * @return DescribeLifecycleActionsResponse
7488
+ */
7174
7489
  describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse>;
7175
7490
  describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse>;
7176
7491
  describeLifecycleHooks(request: DescribeLifecycleHooksRequest): Promise<DescribeLifecycleHooksResponse>;
@@ -7210,7 +7525,7 @@ export default class Client extends OpenApi {
7210
7525
  describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse>;
7211
7526
  describeScalingInstances(request: DescribeScalingInstancesRequest): Promise<DescribeScalingInstancesResponse>;
7212
7527
  /**
7213
- * 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.
7528
+ * You can specify a scaling group ID to query all scaling rules in the scaling group. You can also specify the scaling rule ID, name, unique identifier, and type in the request parameters as filter conditions.
7214
7529
  *
7215
7530
  * @param request DescribeScalingRulesRequest
7216
7531
  * @param runtime runtime options for this request RuntimeOptions
@@ -7218,7 +7533,7 @@ export default class Client extends OpenApi {
7218
7533
  */
7219
7534
  describeScalingRulesWithOptions(request: DescribeScalingRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingRulesResponse>;
7220
7535
  /**
7221
- * 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.
7536
+ * You can specify a scaling group ID to query all scaling rules in the scaling group. You can also specify the scaling rule ID, name, unique identifier, and type in the request parameters as filter conditions.
7222
7537
  *
7223
7538
  * @param request DescribeScalingRulesRequest
7224
7539
  * @return DescribeScalingRulesResponse
@@ -7230,13 +7545,61 @@ export default class Client extends OpenApi {
7230
7545
  detachAlbServerGroups(request: DetachAlbServerGroupsRequest): Promise<DetachAlbServerGroupsResponse>;
7231
7546
  detachDBInstancesWithOptions(request: DetachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachDBInstancesResponse>;
7232
7547
  detachDBInstances(request: DetachDBInstancesRequest): Promise<DetachDBInstancesResponse>;
7548
+ /**
7549
+ * After ECS instances or elastic container instances are removed from a scaling group, you can call the AttachInstances operation to add the ECS instances or elastic container instances that are removed from the scaling group to other scaling groups.
7550
+ * After you remove an ECS instance or elastic container instance by calling the DetachInstances operation, the instance is not stopped or released.
7551
+ * Before you call this operation, make sure that the following conditions are met:
7552
+ * * The specified scaling group is enabled.
7553
+ * * No scaling activities in the specified scaling group are in progress.
7554
+ * > If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7555
+ * A successful call indicates only that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
7556
+ * The number of ECS instances or elastic container instances in a scaling group after you remove a specific number of instances from the scaling group must be equal to or greater than the value of the MinSize parameter. Otherwise, an error is reported when you call the DetachInstances operation.
7557
+ *
7558
+ * @param request DetachInstancesRequest
7559
+ * @param runtime runtime options for this request RuntimeOptions
7560
+ * @return DetachInstancesResponse
7561
+ */
7233
7562
  detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse>;
7563
+ /**
7564
+ * After ECS instances or elastic container instances are removed from a scaling group, you can call the AttachInstances operation to add the ECS instances or elastic container instances that are removed from the scaling group to other scaling groups.
7565
+ * After you remove an ECS instance or elastic container instance by calling the DetachInstances operation, the instance is not stopped or released.
7566
+ * Before you call this operation, make sure that the following conditions are met:
7567
+ * * The specified scaling group is enabled.
7568
+ * * No scaling activities in the specified scaling group are in progress.
7569
+ * > If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7570
+ * A successful call indicates only that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
7571
+ * The number of ECS instances or elastic container instances in a scaling group after you remove a specific number of instances from the scaling group must be equal to or greater than the value of the MinSize parameter. Otherwise, an error is reported when you call the DetachInstances operation.
7572
+ *
7573
+ * @param request DetachInstancesRequest
7574
+ * @return DetachInstancesResponse
7575
+ */
7234
7576
  detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse>;
7235
7577
  detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse>;
7236
7578
  detachLoadBalancers(request: DetachLoadBalancersRequest): Promise<DetachLoadBalancersResponse>;
7237
7579
  detachServerGroupsWithOptions(request: DetachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachServerGroupsResponse>;
7238
7580
  detachServerGroups(request: DetachServerGroupsRequest): Promise<DetachServerGroupsResponse>;
7581
+ /**
7582
+ * You can use the following parameters to specify the vServer groups that you want to detach from your scaling group.
7583
+ * * LoadBalancerId: the ID of the Classic Load Balancer (CLB) instance.
7584
+ * * VServerGroupId: the ID of the vServer group.
7585
+ * * Port: the port number of the vServer group.
7586
+ * If the vServer group that is specified in this call matches the vServer group associated with your scaling group, the vServer group can be detached. Otherwise, the request for detaching the vServer group is ignored, and no error is reported.
7587
+ *
7588
+ * @param request DetachVServerGroupsRequest
7589
+ * @param runtime runtime options for this request RuntimeOptions
7590
+ * @return DetachVServerGroupsResponse
7591
+ */
7239
7592
  detachVServerGroupsWithOptions(request: DetachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachVServerGroupsResponse>;
7593
+ /**
7594
+ * You can use the following parameters to specify the vServer groups that you want to detach from your scaling group.
7595
+ * * LoadBalancerId: the ID of the Classic Load Balancer (CLB) instance.
7596
+ * * VServerGroupId: the ID of the vServer group.
7597
+ * * Port: the port number of the vServer group.
7598
+ * If the vServer group that is specified in this call matches the vServer group associated with your scaling group, the vServer group can be detached. Otherwise, the request for detaching the vServer group is ignored, and no error is reported.
7599
+ *
7600
+ * @param request DetachVServerGroupsRequest
7601
+ * @return DetachVServerGroupsResponse
7602
+ */
7240
7603
  detachVServerGroups(request: DetachVServerGroupsRequest): Promise<DetachVServerGroupsResponse>;
7241
7604
  disableAlarmWithOptions(request: DisableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DisableAlarmResponse>;
7242
7605
  disableAlarm(request: DisableAlarmRequest): Promise<DisableAlarmResponse>;
@@ -7269,7 +7632,34 @@ export default class Client extends OpenApi {
7269
7632
  enableScalingGroup(request: EnableScalingGroupRequest): Promise<EnableScalingGroupResponse>;
7270
7633
  enterStandbyWithOptions(request: EnterStandbyRequest, runtime: $Util.RuntimeOptions): Promise<EnterStandbyResponse>;
7271
7634
  enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse>;
7635
+ /**
7636
+ * Before you call this operation, take note of the following items:
7637
+ * * The scaling group is in the Active state.
7638
+ * * No scaling activities in the scaling group are in progress.
7639
+ * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7640
+ * 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.
7641
+ * 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.
7642
+ * 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.
7643
+ * You can specify only a limited number of ECS instances in each adjustment. For more information, see the description of the AdjustmentValue parameter in the CreateScalingRule topic.
7644
+ *
7645
+ * @param request ExecuteScalingRuleRequest
7646
+ * @param runtime runtime options for this request RuntimeOptions
7647
+ * @return ExecuteScalingRuleResponse
7648
+ */
7272
7649
  executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse>;
7650
+ /**
7651
+ * Before you call this operation, take note of the following items:
7652
+ * * The scaling group is in the Active state.
7653
+ * * No scaling activities in the scaling group are in progress.
7654
+ * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7655
+ * 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.
7656
+ * 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.
7657
+ * 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.
7658
+ * You can specify only a limited number of ECS instances in each adjustment. For more information, see the description of the AdjustmentValue parameter in the CreateScalingRule topic.
7659
+ *
7660
+ * @param request ExecuteScalingRuleRequest
7661
+ * @return ExecuteScalingRuleResponse
7662
+ */
7273
7663
  executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse>;
7274
7664
  exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse>;
7275
7665
  exitStandby(request: ExitStandbyRequest): Promise<ExitStandbyResponse>;
@@ -7357,26 +7747,72 @@ export default class Client extends OpenApi {
7357
7747
  modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
7358
7748
  modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
7359
7749
  modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse>;
7750
+ /**
7751
+ * You can use the following parameters to specify the scaling method of a scheduled task:
7752
+ * * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
7753
+ * * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
7754
+ * > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
7755
+ *
7756
+ * @param request ModifyScheduledTaskRequest
7757
+ * @param runtime runtime options for this request RuntimeOptions
7758
+ * @return ModifyScheduledTaskResponse
7759
+ */
7360
7760
  modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse>;
7761
+ /**
7762
+ * You can use the following parameters to specify the scaling method of a scheduled task:
7763
+ * * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
7764
+ * * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
7765
+ * > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
7766
+ *
7767
+ * @param request ModifyScheduledTaskRequest
7768
+ * @return ModifyScheduledTaskResponse
7769
+ */
7361
7770
  modifyScheduledTask(request: ModifyScheduledTaskRequest): Promise<ModifyScheduledTaskResponse>;
7362
7771
  rebalanceInstancesWithOptions(request: RebalanceInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebalanceInstancesResponse>;
7363
7772
  rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse>;
7773
+ /**
7774
+ * You can call this operation to prolong the length of a lifecycle hook up to 20 times. Take note that the total length of a lifecycle hook cannot exceed 6 hours.
7775
+ *
7776
+ * @param request RecordLifecycleActionHeartbeatRequest
7777
+ * @param runtime runtime options for this request RuntimeOptions
7778
+ * @return RecordLifecycleActionHeartbeatResponse
7779
+ */
7364
7780
  recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse>;
7781
+ /**
7782
+ * You can call this operation to prolong the length of a lifecycle hook up to 20 times. Take note that the total length of a lifecycle hook cannot exceed 6 hours.
7783
+ *
7784
+ * @param request RecordLifecycleActionHeartbeatRequest
7785
+ * @return RecordLifecycleActionHeartbeatResponse
7786
+ */
7365
7787
  recordLifecycleActionHeartbeat(request: RecordLifecycleActionHeartbeatRequest): Promise<RecordLifecycleActionHeartbeatResponse>;
7366
7788
  removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse>;
7367
7789
  removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse>;
7368
7790
  resumeProcessesWithOptions(request: ResumeProcessesRequest, runtime: $Util.RuntimeOptions): Promise<ResumeProcessesResponse>;
7369
7791
  resumeProcesses(request: ResumeProcessesRequest): Promise<ResumeProcessesResponse>;
7370
7792
  /**
7371
- * The ID of the scaling activity.
7793
+ * 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:
7794
+ * * The following conditions must be met:
7795
+ * * The scaling group is in the Active state.
7796
+ * * No scaling activities in the scaling group are in progress.
7797
+ * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7798
+ * * 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.
7799
+ * * 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.
7800
+ * A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
7372
7801
  *
7373
- * @param request ScaleWithAdjustmentRequest
7802
+ * @param tmpReq ScaleWithAdjustmentRequest
7374
7803
  * @param runtime runtime options for this request RuntimeOptions
7375
7804
  * @return ScaleWithAdjustmentResponse
7376
7805
  */
7377
- scaleWithAdjustmentWithOptions(request: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
7806
+ scaleWithAdjustmentWithOptions(tmpReq: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
7378
7807
  /**
7379
- * The ID of the scaling activity.
7808
+ * 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:
7809
+ * * The following conditions must be met:
7810
+ * * The scaling group is in the Active state.
7811
+ * * No scaling activities in the scaling group are in progress.
7812
+ * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7813
+ * * 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.
7814
+ * * 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.
7815
+ * A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
7380
7816
  *
7381
7817
  * @param request ScaleWithAdjustmentRequest
7382
7818
  * @return ScaleWithAdjustmentResponse