@alicloud/ess20220222 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +81 -18
- package/dist/client.js +1528 -1412
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +147 -18
package/dist/client.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ export declare class AttachAlbServerGroupsResponse extends $tea.Model {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
export declare class AttachDBInstancesRequest extends $tea.Model {
|
|
143
|
+
attachMode?: string;
|
|
143
144
|
clientToken?: string;
|
|
144
145
|
DBInstances?: string[];
|
|
145
146
|
forceAttach?: boolean;
|
|
@@ -147,6 +148,7 @@ export declare class AttachDBInstancesRequest extends $tea.Model {
|
|
|
147
148
|
regionId?: string;
|
|
148
149
|
resourceOwnerAccount?: string;
|
|
149
150
|
scalingGroupId?: string;
|
|
151
|
+
type?: string;
|
|
150
152
|
static names(): {
|
|
151
153
|
[key: string]: string;
|
|
152
154
|
};
|
|
@@ -722,6 +724,7 @@ export declare class CreateScalingConfigurationRequest extends $tea.Model {
|
|
|
722
724
|
creditSpecification?: string;
|
|
723
725
|
customPriorities?: CreateScalingConfigurationRequestCustomPriorities[];
|
|
724
726
|
dataDisks?: CreateScalingConfigurationRequestDataDisks[];
|
|
727
|
+
dedicatedHostClusterId?: string;
|
|
725
728
|
dedicatedHostId?: string;
|
|
726
729
|
deletionProtection?: boolean;
|
|
727
730
|
deploymentSetId?: string;
|
|
@@ -791,6 +794,7 @@ export declare class CreateScalingConfigurationShrinkRequest extends $tea.Model
|
|
|
791
794
|
creditSpecification?: string;
|
|
792
795
|
customPriorities?: CreateScalingConfigurationShrinkRequestCustomPriorities[];
|
|
793
796
|
dataDisks?: CreateScalingConfigurationShrinkRequestDataDisks[];
|
|
797
|
+
dedicatedHostClusterId?: string;
|
|
794
798
|
dedicatedHostId?: string;
|
|
795
799
|
deletionProtection?: boolean;
|
|
796
800
|
deploymentSetId?: string;
|
|
@@ -886,6 +890,7 @@ export declare class CreateScalingGroupRequest extends $tea.Model {
|
|
|
886
890
|
containerGroupId?: string;
|
|
887
891
|
customPolicyARN?: string;
|
|
888
892
|
DBInstanceIds?: string;
|
|
893
|
+
DBInstances?: CreateScalingGroupRequestDBInstances[];
|
|
889
894
|
defaultCooldown?: number;
|
|
890
895
|
desiredCapacity?: number;
|
|
891
896
|
groupDeletionProtection?: boolean;
|
|
@@ -2394,6 +2399,7 @@ export declare class DetachDBInstancesRequest extends $tea.Model {
|
|
|
2394
2399
|
forceDetach?: boolean;
|
|
2395
2400
|
ownerId?: number;
|
|
2396
2401
|
regionId?: string;
|
|
2402
|
+
removeSecurityGroup?: boolean;
|
|
2397
2403
|
resourceOwnerAccount?: string;
|
|
2398
2404
|
scalingGroupId?: string;
|
|
2399
2405
|
static names(): {
|
|
@@ -3392,6 +3398,7 @@ export declare class ModifyScalingConfigurationRequest extends $tea.Model {
|
|
|
3392
3398
|
creditSpecification?: string;
|
|
3393
3399
|
customPriorities?: ModifyScalingConfigurationRequestCustomPriorities[];
|
|
3394
3400
|
dataDisks?: ModifyScalingConfigurationRequestDataDisks[];
|
|
3401
|
+
dedicatedHostClusterId?: string;
|
|
3395
3402
|
dedicatedHostId?: string;
|
|
3396
3403
|
deletionProtection?: boolean;
|
|
3397
3404
|
deploymentSetId?: string;
|
|
@@ -3457,6 +3464,7 @@ export declare class ModifyScalingConfigurationShrinkRequest extends $tea.Model
|
|
|
3457
3464
|
creditSpecification?: string;
|
|
3458
3465
|
customPriorities?: ModifyScalingConfigurationShrinkRequestCustomPriorities[];
|
|
3459
3466
|
dataDisks?: ModifyScalingConfigurationShrinkRequestDataDisks[];
|
|
3467
|
+
dedicatedHostClusterId?: string;
|
|
3460
3468
|
dedicatedHostId?: string;
|
|
3461
3469
|
deletionProtection?: boolean;
|
|
3462
3470
|
deploymentSetId?: string;
|
|
@@ -5246,6 +5254,20 @@ export declare class CreateScalingGroupRequestAlbServerGroups extends $tea.Model
|
|
|
5246
5254
|
[key: string]: any;
|
|
5247
5255
|
});
|
|
5248
5256
|
}
|
|
5257
|
+
export declare class CreateScalingGroupRequestDBInstances extends $tea.Model {
|
|
5258
|
+
attachMode?: string;
|
|
5259
|
+
DBInstanceId?: string;
|
|
5260
|
+
type?: string;
|
|
5261
|
+
static names(): {
|
|
5262
|
+
[key: string]: string;
|
|
5263
|
+
};
|
|
5264
|
+
static types(): {
|
|
5265
|
+
[key: string]: any;
|
|
5266
|
+
};
|
|
5267
|
+
constructor(map?: {
|
|
5268
|
+
[key: string]: any;
|
|
5269
|
+
});
|
|
5270
|
+
}
|
|
5249
5271
|
export declare class CreateScalingGroupRequestLaunchTemplateOverrides extends $tea.Model {
|
|
5250
5272
|
instanceType?: string;
|
|
5251
5273
|
spotPriceLimit?: number;
|
|
@@ -6389,6 +6411,7 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
|
|
|
6389
6411
|
creditSpecification?: string;
|
|
6390
6412
|
customPriorities?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsCustomPriorities[];
|
|
6391
6413
|
dataDisks?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsDataDisks[];
|
|
6414
|
+
dedicatedHostClusterId?: string;
|
|
6392
6415
|
dedicatedHostId?: string;
|
|
6393
6416
|
deletionProtection?: boolean;
|
|
6394
6417
|
deploymentSetId?: string;
|
|
@@ -6654,6 +6677,20 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroupsAlbServerGrou
|
|
|
6654
6677
|
[key: string]: any;
|
|
6655
6678
|
});
|
|
6656
6679
|
}
|
|
6680
|
+
export declare class DescribeScalingGroupsResponseBodyScalingGroupsDBInstances extends $tea.Model {
|
|
6681
|
+
DBInstanceId?: string;
|
|
6682
|
+
securityGroupIds?: string[];
|
|
6683
|
+
type?: string;
|
|
6684
|
+
static names(): {
|
|
6685
|
+
[key: string]: string;
|
|
6686
|
+
};
|
|
6687
|
+
static types(): {
|
|
6688
|
+
[key: string]: any;
|
|
6689
|
+
};
|
|
6690
|
+
constructor(map?: {
|
|
6691
|
+
[key: string]: any;
|
|
6692
|
+
});
|
|
6693
|
+
}
|
|
6657
6694
|
export declare class DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides extends $tea.Model {
|
|
6658
6695
|
instanceType?: string;
|
|
6659
6696
|
spotPriceLimit?: number;
|
|
@@ -6748,6 +6785,7 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroups extends $tea
|
|
|
6748
6785
|
currentHostName?: string;
|
|
6749
6786
|
customPolicyARN?: string;
|
|
6750
6787
|
DBInstanceIds?: string[];
|
|
6788
|
+
DBInstances?: DescribeScalingGroupsResponseBodyScalingGroupsDBInstances[];
|
|
6751
6789
|
defaultCooldown?: number;
|
|
6752
6790
|
desiredCapacity?: number;
|
|
6753
6791
|
enableDesiredCapacity?: boolean;
|
|
@@ -8279,7 +8317,7 @@ export default class Client extends OpenApi {
|
|
|
8279
8317
|
* A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
|
|
8280
8318
|
* You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
|
|
8281
8319
|
* A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
|
|
8282
|
-
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the
|
|
8320
|
+
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the [Regions and zones](~~40654~~) topic.
|
|
8283
8321
|
* If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
|
|
8284
8322
|
* * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
|
|
8285
8323
|
* * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
|
|
@@ -8308,7 +8346,7 @@ export default class Client extends OpenApi {
|
|
|
8308
8346
|
* A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
|
|
8309
8347
|
* You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
|
|
8310
8348
|
* A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
|
|
8311
|
-
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the
|
|
8349
|
+
* The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the [Regions and zones](~~40654~~) topic.
|
|
8312
8350
|
* If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
|
|
8313
8351
|
* * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
|
|
8314
8352
|
* * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
|
|
@@ -8662,11 +8700,11 @@ export default class Client extends OpenApi {
|
|
|
8662
8700
|
listTagValuesWithOptions(request: ListTagValuesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagValuesResponse>;
|
|
8663
8701
|
listTagValues(request: ListTagValuesRequest): Promise<ListTagValuesResponse>;
|
|
8664
8702
|
/**
|
|
8665
|
-
* * 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~~).
|
|
8666
|
-
* * 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.
|
|
8667
|
-
* * If you set MetricType to custom, the valid values are your custom metrics.
|
|
8668
|
-
* * For information about the metrics that are supported if you set MetricType to system, see
|
|
8669
|
-
* > 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.
|
|
8703
|
+
* * 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 the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
|
|
8704
|
+
* * 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.
|
|
8705
|
+
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
8706
|
+
* * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
|
|
8707
|
+
* > 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.
|
|
8670
8708
|
*
|
|
8671
8709
|
* @param request ModifyAlarmRequest
|
|
8672
8710
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8674,11 +8712,11 @@ export default class Client extends OpenApi {
|
|
|
8674
8712
|
*/
|
|
8675
8713
|
modifyAlarmWithOptions(request: ModifyAlarmRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlarmResponse>;
|
|
8676
8714
|
/**
|
|
8677
|
-
* * 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~~).
|
|
8678
|
-
* * 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.
|
|
8679
|
-
* * If you set MetricType to custom, the valid values are your custom metrics.
|
|
8680
|
-
* * For information about the metrics that are supported if you set MetricType to system, see
|
|
8681
|
-
* > 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.
|
|
8715
|
+
* * 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 the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
|
|
8716
|
+
* * 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.
|
|
8717
|
+
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
8718
|
+
* * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](~~74854~~).
|
|
8719
|
+
* > 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.
|
|
8682
8720
|
*
|
|
8683
8721
|
* @param request ModifyAlarmRequest
|
|
8684
8722
|
* @return ModifyAlarmResponse
|
|
@@ -8741,10 +8779,9 @@ export default class Client extends OpenApi {
|
|
|
8741
8779
|
* * You cannot call this operation to modify the settings of the following parameters:
|
|
8742
8780
|
* * RegionId
|
|
8743
8781
|
* * LoadBalancerId
|
|
8744
|
-
*
|
|
8782
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
8745
8783
|
* * DBInstanceId
|
|
8746
|
-
*
|
|
8747
|
-
* **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
8784
|
+
* > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
8748
8785
|
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
8749
8786
|
* * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
|
|
8750
8787
|
* * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
|
|
@@ -8760,10 +8797,9 @@ export default class Client extends OpenApi {
|
|
|
8760
8797
|
* * You cannot call this operation to modify the settings of the following parameters:
|
|
8761
8798
|
* * RegionId
|
|
8762
8799
|
* * LoadBalancerId
|
|
8763
|
-
*
|
|
8800
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
8764
8801
|
* * DBInstanceId
|
|
8765
|
-
*
|
|
8766
|
-
* **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
8802
|
+
* > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
8767
8803
|
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
8768
8804
|
* * If you enable a new scaling configuration, Elastic Compute Service (ECS) instances that are created based on the previous scaling configuration still run as expected in the scaling group.
|
|
8769
8805
|
* * If the total number of instances in the scaling group is greater than the allowed maximum number after you change the value of the MaxSize parameter, Auto Scaling automatically removes instances from the scaling group to ensure that the number of instances is within the new range.
|
|
@@ -8814,7 +8850,34 @@ export default class Client extends OpenApi {
|
|
|
8814
8850
|
* @return RecordLifecycleActionHeartbeatResponse
|
|
8815
8851
|
*/
|
|
8816
8852
|
recordLifecycleActionHeartbeat(request: RecordLifecycleActionHeartbeatRequest): Promise<RecordLifecycleActionHeartbeatResponse>;
|
|
8853
|
+
/**
|
|
8854
|
+
* * Before you call this operation, make sure that the following requirements are met:
|
|
8855
|
+
* * The scaling group is in the Active state.
|
|
8856
|
+
* * No scaling activity is in progress within the scaling group.
|
|
8857
|
+
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
8858
|
+
* * 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.
|
|
8859
|
+
* * 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.
|
|
8860
|
+
* * 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.
|
|
8861
|
+
* 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.
|
|
8862
|
+
*
|
|
8863
|
+
* @param request RemoveInstancesRequest
|
|
8864
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
8865
|
+
* @return RemoveInstancesResponse
|
|
8866
|
+
*/
|
|
8817
8867
|
removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse>;
|
|
8868
|
+
/**
|
|
8869
|
+
* * Before you call this operation, make sure that the following requirements are met:
|
|
8870
|
+
* * The scaling group is in the Active state.
|
|
8871
|
+
* * No scaling activity is in progress within the scaling group.
|
|
8872
|
+
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
8873
|
+
* * 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.
|
|
8874
|
+
* * 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.
|
|
8875
|
+
* * 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.
|
|
8876
|
+
* 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.
|
|
8877
|
+
*
|
|
8878
|
+
* @param request RemoveInstancesRequest
|
|
8879
|
+
* @return RemoveInstancesResponse
|
|
8880
|
+
*/
|
|
8818
8881
|
removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse>;
|
|
8819
8882
|
resumeProcessesWithOptions(request: ResumeProcessesRequest, runtime: $Util.RuntimeOptions): Promise<ResumeProcessesResponse>;
|
|
8820
8883
|
resumeProcesses(request: ResumeProcessesRequest): Promise<ResumeProcessesResponse>;
|