@alicloud/ess20220222 1.1.1 → 1.1.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 +38 -0
- package/dist/client.js +47 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +52 -0
package/dist/client.d.ts
CHANGED
|
@@ -844,6 +844,7 @@ export declare class CreateScalingGroupRequest extends $tea.Model {
|
|
|
844
844
|
groupDeletionProtection?: boolean;
|
|
845
845
|
groupType?: string;
|
|
846
846
|
healthCheckType?: string;
|
|
847
|
+
healthCheckTypes?: string[];
|
|
847
848
|
instanceId?: string;
|
|
848
849
|
launchTemplateId?: string;
|
|
849
850
|
launchTemplateOverrides?: CreateScalingGroupRequestLaunchTemplateOverrides[];
|
|
@@ -3365,6 +3366,7 @@ export declare class ModifyScalingGroupRequest extends $tea.Model {
|
|
|
3365
3366
|
disableDesiredCapacity?: boolean;
|
|
3366
3367
|
groupDeletionProtection?: boolean;
|
|
3367
3368
|
healthCheckType?: string;
|
|
3369
|
+
healthCheckTypes?: string[];
|
|
3368
3370
|
launchTemplateId?: string;
|
|
3369
3371
|
launchTemplateOverrides?: ModifyScalingGroupRequestLaunchTemplateOverrides[];
|
|
3370
3372
|
launchTemplateVersion?: string;
|
|
@@ -5969,6 +5971,7 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroups extends $tea
|
|
|
5969
5971
|
groupDeletionProtection?: boolean;
|
|
5970
5972
|
groupType?: string;
|
|
5971
5973
|
healthCheckType?: string;
|
|
5974
|
+
healthCheckTypes?: string[];
|
|
5972
5975
|
initCapacity?: number;
|
|
5973
5976
|
isElasticStrengthInAlarm?: boolean;
|
|
5974
5977
|
launchTemplateId?: string;
|
|
@@ -7900,7 +7903,42 @@ export default class Client extends OpenApi {
|
|
|
7900
7903
|
* @return ModifyScalingConfigurationResponse
|
|
7901
7904
|
*/
|
|
7902
7905
|
modifyScalingConfiguration(request: ModifyScalingConfigurationRequest): Promise<ModifyScalingConfigurationResponse>;
|
|
7906
|
+
/**
|
|
7907
|
+
* * You cannot call this operation to modify the settings of the following parameters:
|
|
7908
|
+
* * RegionId
|
|
7909
|
+
* * LoadBalancerId
|
|
7910
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
7911
|
+
* * DBInstanceId
|
|
7912
|
+
* **
|
|
7913
|
+
* **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
7914
|
+
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
7915
|
+
* * 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.
|
|
7916
|
+
* * 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.
|
|
7917
|
+
* * If the total number of instances in the scaling group is less than the allowed minimum number after you change the value of the MinSize parameter, Auto Scaling automatically adds instances to the scaling group to ensure that the number of instances is within the new range.
|
|
7918
|
+
* * If the total number of instances in the scaling group does not match the expected number of instances after you change the value of the DesiredCapacity parameter, Auto Scaling automatically adds instances to or removes instances from the scaling group to ensure that the number of instances matches the value of the DesiredCapacity parameter.
|
|
7919
|
+
*
|
|
7920
|
+
* @param request ModifyScalingGroupRequest
|
|
7921
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7922
|
+
* @return ModifyScalingGroupResponse
|
|
7923
|
+
*/
|
|
7903
7924
|
modifyScalingGroupWithOptions(request: ModifyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingGroupResponse>;
|
|
7925
|
+
/**
|
|
7926
|
+
* * You cannot call this operation to modify the settings of the following parameters:
|
|
7927
|
+
* * RegionId
|
|
7928
|
+
* * LoadBalancerId
|
|
7929
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
7930
|
+
* * DBInstanceId
|
|
7931
|
+
* **
|
|
7932
|
+
* **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
7933
|
+
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
7934
|
+
* * 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.
|
|
7935
|
+
* * 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.
|
|
7936
|
+
* * If the total number of instances in the scaling group is less than the allowed minimum number after you change the value of the MinSize parameter, Auto Scaling automatically adds instances to the scaling group to ensure that the number of instances is within the new range.
|
|
7937
|
+
* * If the total number of instances in the scaling group does not match the expected number of instances after you change the value of the DesiredCapacity parameter, Auto Scaling automatically adds instances to or removes instances from the scaling group to ensure that the number of instances matches the value of the DesiredCapacity parameter.
|
|
7938
|
+
*
|
|
7939
|
+
* @param request ModifyScalingGroupRequest
|
|
7940
|
+
* @return ModifyScalingGroupResponse
|
|
7941
|
+
*/
|
|
7904
7942
|
modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
|
|
7905
7943
|
modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
|
|
7906
7944
|
modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse>;
|
package/dist/client.js
CHANGED
|
@@ -1286,6 +1286,7 @@ class CreateScalingGroupRequest extends $tea.Model {
|
|
|
1286
1286
|
groupDeletionProtection: 'GroupDeletionProtection',
|
|
1287
1287
|
groupType: 'GroupType',
|
|
1288
1288
|
healthCheckType: 'HealthCheckType',
|
|
1289
|
+
healthCheckTypes: 'HealthCheckTypes',
|
|
1289
1290
|
instanceId: 'InstanceId',
|
|
1290
1291
|
launchTemplateId: 'LaunchTemplateId',
|
|
1291
1292
|
launchTemplateOverrides: 'LaunchTemplateOverrides',
|
|
@@ -1333,6 +1334,7 @@ class CreateScalingGroupRequest extends $tea.Model {
|
|
|
1333
1334
|
groupDeletionProtection: 'boolean',
|
|
1334
1335
|
groupType: 'string',
|
|
1335
1336
|
healthCheckType: 'string',
|
|
1337
|
+
healthCheckTypes: { 'type': 'array', 'itemType': 'string' },
|
|
1336
1338
|
instanceId: 'string',
|
|
1337
1339
|
launchTemplateId: 'string',
|
|
1338
1340
|
launchTemplateOverrides: { 'type': 'array', 'itemType': CreateScalingGroupRequestLaunchTemplateOverrides },
|
|
@@ -4975,6 +4977,7 @@ class ModifyScalingGroupRequest extends $tea.Model {
|
|
|
4975
4977
|
disableDesiredCapacity: 'DisableDesiredCapacity',
|
|
4976
4978
|
groupDeletionProtection: 'GroupDeletionProtection',
|
|
4977
4979
|
healthCheckType: 'HealthCheckType',
|
|
4980
|
+
healthCheckTypes: 'HealthCheckTypes',
|
|
4978
4981
|
launchTemplateId: 'LaunchTemplateId',
|
|
4979
4982
|
launchTemplateOverrides: 'LaunchTemplateOverrides',
|
|
4980
4983
|
launchTemplateVersion: 'LaunchTemplateVersion',
|
|
@@ -5009,6 +5012,7 @@ class ModifyScalingGroupRequest extends $tea.Model {
|
|
|
5009
5012
|
disableDesiredCapacity: 'boolean',
|
|
5010
5013
|
groupDeletionProtection: 'boolean',
|
|
5011
5014
|
healthCheckType: 'string',
|
|
5015
|
+
healthCheckTypes: { 'type': 'array', 'itemType': 'string' },
|
|
5012
5016
|
launchTemplateId: 'string',
|
|
5013
5017
|
launchTemplateOverrides: { 'type': 'array', 'itemType': ModifyScalingGroupRequestLaunchTemplateOverrides },
|
|
5014
5018
|
launchTemplateVersion: 'string',
|
|
@@ -8873,6 +8877,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
|
|
|
8873
8877
|
groupDeletionProtection: 'GroupDeletionProtection',
|
|
8874
8878
|
groupType: 'GroupType',
|
|
8875
8879
|
healthCheckType: 'HealthCheckType',
|
|
8880
|
+
healthCheckTypes: 'HealthCheckTypes',
|
|
8876
8881
|
initCapacity: 'InitCapacity',
|
|
8877
8882
|
isElasticStrengthInAlarm: 'IsElasticStrengthInAlarm',
|
|
8878
8883
|
launchTemplateId: 'LaunchTemplateId',
|
|
@@ -8935,6 +8940,7 @@ class DescribeScalingGroupsResponseBodyScalingGroups extends $tea.Model {
|
|
|
8935
8940
|
groupDeletionProtection: 'boolean',
|
|
8936
8941
|
groupType: 'string',
|
|
8937
8942
|
healthCheckType: 'string',
|
|
8943
|
+
healthCheckTypes: { 'type': 'array', 'itemType': 'string' },
|
|
8938
8944
|
initCapacity: 'number',
|
|
8939
8945
|
isElasticStrengthInAlarm: 'boolean',
|
|
8940
8946
|
launchTemplateId: 'string',
|
|
@@ -12005,6 +12011,9 @@ class Client extends openapi_client_1.default {
|
|
|
12005
12011
|
if (!tea_util_1.default.isUnset(request.healthCheckType)) {
|
|
12006
12012
|
query["HealthCheckType"] = request.healthCheckType;
|
|
12007
12013
|
}
|
|
12014
|
+
if (!tea_util_1.default.isUnset(request.healthCheckTypes)) {
|
|
12015
|
+
query["HealthCheckTypes"] = request.healthCheckTypes;
|
|
12016
|
+
}
|
|
12008
12017
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
12009
12018
|
query["InstanceId"] = request.instanceId;
|
|
12010
12019
|
}
|
|
@@ -14925,6 +14934,24 @@ class Client extends openapi_client_1.default {
|
|
|
14925
14934
|
let runtime = new $Util.RuntimeOptions({});
|
|
14926
14935
|
return await this.modifyScalingConfigurationWithOptions(request, runtime);
|
|
14927
14936
|
}
|
|
14937
|
+
/**
|
|
14938
|
+
* * You cannot call this operation to modify the settings of the following parameters:
|
|
14939
|
+
* * RegionId
|
|
14940
|
+
* * LoadBalancerId
|
|
14941
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
14942
|
+
* * DBInstanceId
|
|
14943
|
+
* **
|
|
14944
|
+
* **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
14945
|
+
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
14946
|
+
* * 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.
|
|
14947
|
+
* * 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.
|
|
14948
|
+
* * If the total number of instances in the scaling group is less than the allowed minimum number after you change the value of the MinSize parameter, Auto Scaling automatically adds instances to the scaling group to ensure that the number of instances is within the new range.
|
|
14949
|
+
* * If the total number of instances in the scaling group does not match the expected number of instances after you change the value of the DesiredCapacity parameter, Auto Scaling automatically adds instances to or removes instances from the scaling group to ensure that the number of instances matches the value of the DesiredCapacity parameter.
|
|
14950
|
+
*
|
|
14951
|
+
* @param request ModifyScalingGroupRequest
|
|
14952
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14953
|
+
* @return ModifyScalingGroupResponse
|
|
14954
|
+
*/
|
|
14928
14955
|
async modifyScalingGroupWithOptions(request, runtime) {
|
|
14929
14956
|
tea_util_1.default.validateModel(request);
|
|
14930
14957
|
let query = {};
|
|
@@ -14958,6 +14985,9 @@ class Client extends openapi_client_1.default {
|
|
|
14958
14985
|
if (!tea_util_1.default.isUnset(request.healthCheckType)) {
|
|
14959
14986
|
query["HealthCheckType"] = request.healthCheckType;
|
|
14960
14987
|
}
|
|
14988
|
+
if (!tea_util_1.default.isUnset(request.healthCheckTypes)) {
|
|
14989
|
+
query["HealthCheckTypes"] = request.healthCheckTypes;
|
|
14990
|
+
}
|
|
14961
14991
|
if (!tea_util_1.default.isUnset(request.launchTemplateId)) {
|
|
14962
14992
|
query["LaunchTemplateId"] = request.launchTemplateId;
|
|
14963
14993
|
}
|
|
@@ -15034,6 +15064,23 @@ class Client extends openapi_client_1.default {
|
|
|
15034
15064
|
});
|
|
15035
15065
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyScalingGroupResponse({}));
|
|
15036
15066
|
}
|
|
15067
|
+
/**
|
|
15068
|
+
* * You cannot call this operation to modify the settings of the following parameters:
|
|
15069
|
+
* * RegionId
|
|
15070
|
+
* * LoadBalancerId
|
|
15071
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
15072
|
+
* * DBInstanceId
|
|
15073
|
+
* **
|
|
15074
|
+
* **Note**If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
15075
|
+
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
15076
|
+
* * 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.
|
|
15077
|
+
* * 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.
|
|
15078
|
+
* * If the total number of instances in the scaling group is less than the allowed minimum number after you change the value of the MinSize parameter, Auto Scaling automatically adds instances to the scaling group to ensure that the number of instances is within the new range.
|
|
15079
|
+
* * If the total number of instances in the scaling group does not match the expected number of instances after you change the value of the DesiredCapacity parameter, Auto Scaling automatically adds instances to or removes instances from the scaling group to ensure that the number of instances matches the value of the DesiredCapacity parameter.
|
|
15080
|
+
*
|
|
15081
|
+
* @param request ModifyScalingGroupRequest
|
|
15082
|
+
* @return ModifyScalingGroupResponse
|
|
15083
|
+
*/
|
|
15037
15084
|
async modifyScalingGroup(request) {
|
|
15038
15085
|
let runtime = new $Util.RuntimeOptions({});
|
|
15039
15086
|
return await this.modifyScalingGroupWithOptions(request, runtime);
|