@alicloud/ess20220222 1.3.2 → 1.4.1
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 +1646 -605
- package/dist/client.js +1716 -613
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1745 -605
package/src/client.ts
CHANGED
|
@@ -3618,6 +3618,108 @@ export class DescribeNotificationTypesResponse extends $tea.Model {
|
|
|
3618
3618
|
}
|
|
3619
3619
|
}
|
|
3620
3620
|
|
|
3621
|
+
export class DescribePatternTypesRequest extends $tea.Model {
|
|
3622
|
+
architecture?: string[];
|
|
3623
|
+
burstablePerformance?: string;
|
|
3624
|
+
channelId?: number;
|
|
3625
|
+
cores?: number;
|
|
3626
|
+
coresList?: number[];
|
|
3627
|
+
excludedInstanceType?: string[];
|
|
3628
|
+
instanceFamilyLevel?: string;
|
|
3629
|
+
maxPrice?: number;
|
|
3630
|
+
memory?: number;
|
|
3631
|
+
memoryList?: number[];
|
|
3632
|
+
regionId?: string;
|
|
3633
|
+
spotStrategy?: string;
|
|
3634
|
+
vSwitchId?: string[];
|
|
3635
|
+
static names(): { [key: string]: string } {
|
|
3636
|
+
return {
|
|
3637
|
+
architecture: 'Architecture',
|
|
3638
|
+
burstablePerformance: 'BurstablePerformance',
|
|
3639
|
+
channelId: 'ChannelId',
|
|
3640
|
+
cores: 'Cores',
|
|
3641
|
+
coresList: 'CoresList',
|
|
3642
|
+
excludedInstanceType: 'ExcludedInstanceType',
|
|
3643
|
+
instanceFamilyLevel: 'InstanceFamilyLevel',
|
|
3644
|
+
maxPrice: 'MaxPrice',
|
|
3645
|
+
memory: 'Memory',
|
|
3646
|
+
memoryList: 'MemoryList',
|
|
3647
|
+
regionId: 'RegionId',
|
|
3648
|
+
spotStrategy: 'SpotStrategy',
|
|
3649
|
+
vSwitchId: 'VSwitchId',
|
|
3650
|
+
};
|
|
3651
|
+
}
|
|
3652
|
+
|
|
3653
|
+
static types(): { [key: string]: any } {
|
|
3654
|
+
return {
|
|
3655
|
+
architecture: { 'type': 'array', 'itemType': 'string' },
|
|
3656
|
+
burstablePerformance: 'string',
|
|
3657
|
+
channelId: 'number',
|
|
3658
|
+
cores: 'number',
|
|
3659
|
+
coresList: { 'type': 'array', 'itemType': 'number' },
|
|
3660
|
+
excludedInstanceType: { 'type': 'array', 'itemType': 'string' },
|
|
3661
|
+
instanceFamilyLevel: 'string',
|
|
3662
|
+
maxPrice: 'number',
|
|
3663
|
+
memory: 'number',
|
|
3664
|
+
memoryList: { 'type': 'array', 'itemType': 'number' },
|
|
3665
|
+
regionId: 'string',
|
|
3666
|
+
spotStrategy: 'string',
|
|
3667
|
+
vSwitchId: { 'type': 'array', 'itemType': 'string' },
|
|
3668
|
+
};
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
constructor(map?: { [key: string]: any }) {
|
|
3672
|
+
super(map);
|
|
3673
|
+
}
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
export class DescribePatternTypesResponseBody extends $tea.Model {
|
|
3677
|
+
patternTypes?: DescribePatternTypesResponseBodyPatternTypes[];
|
|
3678
|
+
requestId?: string;
|
|
3679
|
+
static names(): { [key: string]: string } {
|
|
3680
|
+
return {
|
|
3681
|
+
patternTypes: 'PatternTypes',
|
|
3682
|
+
requestId: 'RequestId',
|
|
3683
|
+
};
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
static types(): { [key: string]: any } {
|
|
3687
|
+
return {
|
|
3688
|
+
patternTypes: { 'type': 'array', 'itemType': DescribePatternTypesResponseBodyPatternTypes },
|
|
3689
|
+
requestId: 'string',
|
|
3690
|
+
};
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
constructor(map?: { [key: string]: any }) {
|
|
3694
|
+
super(map);
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
export class DescribePatternTypesResponse extends $tea.Model {
|
|
3699
|
+
headers?: { [key: string]: string };
|
|
3700
|
+
statusCode?: number;
|
|
3701
|
+
body?: DescribePatternTypesResponseBody;
|
|
3702
|
+
static names(): { [key: string]: string } {
|
|
3703
|
+
return {
|
|
3704
|
+
headers: 'headers',
|
|
3705
|
+
statusCode: 'statusCode',
|
|
3706
|
+
body: 'body',
|
|
3707
|
+
};
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
static types(): { [key: string]: any } {
|
|
3711
|
+
return {
|
|
3712
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3713
|
+
statusCode: 'number',
|
|
3714
|
+
body: DescribePatternTypesResponseBody,
|
|
3715
|
+
};
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
constructor(map?: { [key: string]: any }) {
|
|
3719
|
+
super(map);
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3621
3723
|
export class DescribeRegionsRequest extends $tea.Model {
|
|
3622
3724
|
acceptLanguage?: string;
|
|
3623
3725
|
ownerId?: number;
|
|
@@ -4675,6 +4777,7 @@ export class DetachInstancesRequest extends $tea.Model {
|
|
|
4675
4777
|
clientToken?: string;
|
|
4676
4778
|
decreaseDesiredCapacity?: boolean;
|
|
4677
4779
|
detachOption?: string;
|
|
4780
|
+
ignoreInvalidInstance?: boolean;
|
|
4678
4781
|
instanceIds?: string[];
|
|
4679
4782
|
lifecycleHook?: boolean;
|
|
4680
4783
|
ownerAccount?: string;
|
|
@@ -4687,6 +4790,7 @@ export class DetachInstancesRequest extends $tea.Model {
|
|
|
4687
4790
|
clientToken: 'ClientToken',
|
|
4688
4791
|
decreaseDesiredCapacity: 'DecreaseDesiredCapacity',
|
|
4689
4792
|
detachOption: 'DetachOption',
|
|
4793
|
+
ignoreInvalidInstance: 'IgnoreInvalidInstance',
|
|
4690
4794
|
instanceIds: 'InstanceIds',
|
|
4691
4795
|
lifecycleHook: 'LifecycleHook',
|
|
4692
4796
|
ownerAccount: 'OwnerAccount',
|
|
@@ -4702,6 +4806,7 @@ export class DetachInstancesRequest extends $tea.Model {
|
|
|
4702
4806
|
clientToken: 'string',
|
|
4703
4807
|
decreaseDesiredCapacity: 'boolean',
|
|
4704
4808
|
detachOption: 'string',
|
|
4809
|
+
ignoreInvalidInstance: 'boolean',
|
|
4705
4810
|
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
4706
4811
|
lifecycleHook: 'boolean',
|
|
4707
4812
|
ownerAccount: 'string',
|
|
@@ -7393,6 +7498,7 @@ export class RecordLifecycleActionHeartbeatResponse extends $tea.Model {
|
|
|
7393
7498
|
export class RemoveInstancesRequest extends $tea.Model {
|
|
7394
7499
|
clientToken?: string;
|
|
7395
7500
|
decreaseDesiredCapacity?: boolean;
|
|
7501
|
+
ignoreInvalidInstance?: boolean;
|
|
7396
7502
|
instanceIds?: string[];
|
|
7397
7503
|
ownerAccount?: string;
|
|
7398
7504
|
ownerId?: number;
|
|
@@ -7405,6 +7511,7 @@ export class RemoveInstancesRequest extends $tea.Model {
|
|
|
7405
7511
|
return {
|
|
7406
7512
|
clientToken: 'ClientToken',
|
|
7407
7513
|
decreaseDesiredCapacity: 'DecreaseDesiredCapacity',
|
|
7514
|
+
ignoreInvalidInstance: 'IgnoreInvalidInstance',
|
|
7408
7515
|
instanceIds: 'InstanceIds',
|
|
7409
7516
|
ownerAccount: 'OwnerAccount',
|
|
7410
7517
|
ownerId: 'OwnerId',
|
|
@@ -7420,6 +7527,7 @@ export class RemoveInstancesRequest extends $tea.Model {
|
|
|
7420
7527
|
return {
|
|
7421
7528
|
clientToken: 'string',
|
|
7422
7529
|
decreaseDesiredCapacity: 'boolean',
|
|
7530
|
+
ignoreInvalidInstance: 'boolean',
|
|
7423
7531
|
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
7424
7532
|
ownerAccount: 'string',
|
|
7425
7533
|
ownerId: 'number',
|
|
@@ -12087,6 +12195,37 @@ export class DescribeNotificationConfigurationsResponseBodyNotificationConfigura
|
|
|
12087
12195
|
}
|
|
12088
12196
|
}
|
|
12089
12197
|
|
|
12198
|
+
export class DescribePatternTypesResponseBodyPatternTypes extends $tea.Model {
|
|
12199
|
+
cores?: number;
|
|
12200
|
+
instanceFamilyLevel?: string;
|
|
12201
|
+
instanceType?: string;
|
|
12202
|
+
instanceTypeFamily?: string;
|
|
12203
|
+
memory?: number;
|
|
12204
|
+
static names(): { [key: string]: string } {
|
|
12205
|
+
return {
|
|
12206
|
+
cores: 'Cores',
|
|
12207
|
+
instanceFamilyLevel: 'InstanceFamilyLevel',
|
|
12208
|
+
instanceType: 'InstanceType',
|
|
12209
|
+
instanceTypeFamily: 'InstanceTypeFamily',
|
|
12210
|
+
memory: 'Memory',
|
|
12211
|
+
};
|
|
12212
|
+
}
|
|
12213
|
+
|
|
12214
|
+
static types(): { [key: string]: any } {
|
|
12215
|
+
return {
|
|
12216
|
+
cores: 'number',
|
|
12217
|
+
instanceFamilyLevel: 'string',
|
|
12218
|
+
instanceType: 'string',
|
|
12219
|
+
instanceTypeFamily: 'string',
|
|
12220
|
+
memory: 'number',
|
|
12221
|
+
};
|
|
12222
|
+
}
|
|
12223
|
+
|
|
12224
|
+
constructor(map?: { [key: string]: any }) {
|
|
12225
|
+
super(map);
|
|
12226
|
+
}
|
|
12227
|
+
}
|
|
12228
|
+
|
|
12090
12229
|
export class DescribeRegionsResponseBodyRegions extends $tea.Model {
|
|
12091
12230
|
classicUnavailable?: boolean;
|
|
12092
12231
|
localName?: string;
|
|
@@ -15811,6 +15950,16 @@ export default class Client extends OpenApi {
|
|
|
15811
15950
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
15812
15951
|
}
|
|
15813
15952
|
|
|
15953
|
+
/**
|
|
15954
|
+
* @summary Manages scaling configurations of the Elastic Container Instance type. If you want to efficiently create or update a scaling configuration of the Elastic Container Instance type by using a configuration file, you can call the ApplyEciScalingConfiguration operation.
|
|
15955
|
+
*
|
|
15956
|
+
* @description You can manage scaling configurations of the Elastic Container Instance type by using a YAML configuration file based on the following logic:
|
|
15957
|
+
* If you specify the ID of a scaling configuration, you can update the scaling configuration by using the YAML configuration file. If you do not specify the ID of a scaling configuration, you can create a scaling configuration by using the YAML configuration file.
|
|
15958
|
+
*
|
|
15959
|
+
* @param request ApplyEciScalingConfigurationRequest
|
|
15960
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
15961
|
+
* @return ApplyEciScalingConfigurationResponse
|
|
15962
|
+
*/
|
|
15814
15963
|
async applyEciScalingConfigurationWithOptions(request: ApplyEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ApplyEciScalingConfigurationResponse> {
|
|
15815
15964
|
Util.validateModel(request);
|
|
15816
15965
|
let query = { };
|
|
@@ -15851,11 +16000,61 @@ export default class Client extends OpenApi {
|
|
|
15851
16000
|
return $tea.cast<ApplyEciScalingConfigurationResponse>(await this.callApi(params, req, runtime), new ApplyEciScalingConfigurationResponse({}));
|
|
15852
16001
|
}
|
|
15853
16002
|
|
|
16003
|
+
/**
|
|
16004
|
+
* @summary Manages scaling configurations of the Elastic Container Instance type. If you want to efficiently create or update a scaling configuration of the Elastic Container Instance type by using a configuration file, you can call the ApplyEciScalingConfiguration operation.
|
|
16005
|
+
*
|
|
16006
|
+
* @description You can manage scaling configurations of the Elastic Container Instance type by using a YAML configuration file based on the following logic:
|
|
16007
|
+
* If you specify the ID of a scaling configuration, you can update the scaling configuration by using the YAML configuration file. If you do not specify the ID of a scaling configuration, you can create a scaling configuration by using the YAML configuration file.
|
|
16008
|
+
*
|
|
16009
|
+
* @param request ApplyEciScalingConfigurationRequest
|
|
16010
|
+
* @return ApplyEciScalingConfigurationResponse
|
|
16011
|
+
*/
|
|
15854
16012
|
async applyEciScalingConfiguration(request: ApplyEciScalingConfigurationRequest): Promise<ApplyEciScalingConfigurationResponse> {
|
|
15855
16013
|
let runtime = new $Util.RuntimeOptions({ });
|
|
15856
16014
|
return await this.applyEciScalingConfigurationWithOptions(request, runtime);
|
|
15857
16015
|
}
|
|
15858
16016
|
|
|
16017
|
+
/**
|
|
16018
|
+
* @summary 基于yaml配置进行弹性伸缩管理
|
|
16019
|
+
*
|
|
16020
|
+
* @description You can call the ApplyScalingGroup operation to create scaling groups of the Elastic Container Instance type with ease. The resources of the scaling groups are defined in Kubernetes Deployment YAML files. You can also call this operation to extend annotations for elastic container instances in Kubernetes Deployment YAML files. For more information, see "Supported annotations" in this topic.
|
|
16021
|
+
* Mapping between YAML files and scaling groups: You can map the triplet of namespace, kind, and name in a YAML file to a scaling group name. A YAML file and a scaling group have a one-to-one mapping relationship in a region. For example, if you use the Kubernetes Deployment YAML file whose name is NGINX in the default namespace to create a scaling group in a region, the unique name of the mapped scaling group is k8s_default_Deployment_nginx.
|
|
16022
|
+
* You can use a Kubernetes Deployment YAML file to manage a scaling group based on the following logic:
|
|
16023
|
+
* * If an existing scaling group has a mapping relationship with your Kubernetes Deployment YAML file, you can update the scaling group by using the YAML file.
|
|
16024
|
+
* * If no scaling group that has a mapping relationship with your Kubernetes Deployment YAML file exists, you can create a scaling group with ease by using the YAML file.
|
|
16025
|
+
* ### Precautions
|
|
16026
|
+
* 1. If you do not specify a virtual private cloud (VPC), vSwitch, security group, or annotation in your Kubernetes Deployment YAML file, the system creates a default VPC that has default vSwitches and uses the default security group ess-default-sg of Auto Scaling. By default, the security group rule allows traffic on Transmission Control Protocol (TCP)-based port 22 and port 3389 and enables Internet Control Message Protocol (ICMP) for IPv4 addresses. If you want to enable other ports or protocols, you can create custom security group rules.
|
|
16027
|
+
* 2. If you want to use a public image, you must enable the Internet access feature and configure the k8s.aliyun.com/eci-with-eip pod annotation to enable the elastic IP address (EIP) feature.
|
|
16028
|
+
* 3. After you call the ApplyScalingGroup operation to apply a Kubernetes Deployment YAML file, the scaling group immediately enters the Enabled state and the scaling configuration immediately enters the Active state. If the number of replicas that you specified in the YAML file is grater than 0, elastic container instances are automatically created.
|
|
16029
|
+
* ### Supported annotations
|
|
16030
|
+
* For more information about annotations, see [ECI Pod Annotation](https://help.aliyun.com/document_detail/186939.html).
|
|
16031
|
+
* |Annotation|Example|Description|
|
|
16032
|
+
* |---|---|---|
|
|
16033
|
+
* |k8s.aliyun.com/ess-scaling-group-min-size|1|The minimum size of the scaling group that you want to create. Default value: 0.|
|
|
16034
|
+
* |k8s.aliyun.com/ess-scaling-group-max-size|20|The maximum size of the scaling group that you want to create. Default value: maximum number of replicas or 30, whichever is greater.|
|
|
16035
|
+
* |k8s.aliyun.com/eci-ntp-server|100.100.*.*|The IP address of the Network Time Protocol (NTP) server.|
|
|
16036
|
+
* |k8s.aliyun.com/eci-use-specs|2-4Gi|The specifications of 2 vCPUs and 4 GB memory. For more information, see [Create pods by specifying multiple specifications](https://help.aliyun.com/document_detail/451267.html).|
|
|
16037
|
+
* |k8s.aliyun.com/eci-vswitch|vsw-bp1xpiowfm5vo8o3c\\*\\*\\*\\*|The ID of the vSwitch. You can specify multiple vSwitches to specify multiple zones.|
|
|
16038
|
+
* |k8s.aliyun.com/eci-security-group|sg-bp1dktddjsg5nktv\\*\\*\\*\\*|The ID of the security group. Before you configure this annotation, take note of the following requirements:<ul data-sourcepos="26:74-26:168"><li data-sourcepos="26:78-26:114">You can specify one or more security groups. You can specify up to five security groups for each scaling group.</li><li data-sourcepos="26:114-26:140">If you specify multiple security groups, the security groups must belong to the same VPC.</li><li data-sourcepos="26:140-26:163">If you specify multiple security groups, the security groups must be of the same type.</li></ul>|
|
|
16039
|
+
* |k8s.aliyun.com/eci-sls-enable|"false"|If you set the value to false, the log collection feature is disabled.
|
|
16040
|
+
* If you do not want to use Custom Resource Definition (CRD) for Simple Log Service to collect logs of specific pods, you can configure this annotation for the pods and set the value to false. This prevents resource wastes caused by Logtails created by the system.|
|
|
16041
|
+
* |k8s.aliyun.com/eci-spot-strategy|SpotAsPriceGo|The bidding policy for the preemptible instance. Valid values:<ul data-sourcepos="28:69-28:204"><li data-sourcepos="28:73-28:158">SpotWithPriceLimit: The instance is created as a preemptible instance for which you specify the maximum hourly price If you set the value to SpotWithPriceLimit, you must configure the k8s.aliyun.com/eci-spot-price-limit annotation.</li><li data-sourcepos="28:158-28:199">SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is used as the bid price.</li></ul>|
|
|
16042
|
+
* |k8s.aliyun.com/eci-spot-price-limit|"0.5"|The maximum hourly price of the preemptible instance. This value can be accurate to up to three decimal places.
|
|
16043
|
+
* This annotation takes effect only when you set the k8s.aliyun.com/eci-spot-strategy annotation to SpotWithPriceLimit.|
|
|
16044
|
+
* |k8s.aliyun.com/eci-with-eip|"true"|If you set the value to true, an EIP is automatically created and bound to each elastic container instance.|
|
|
16045
|
+
* |k8s.aliyun.com/eci-data-cache-bucket|default|The bucket of the specified DataCache. If you want to use a DataCache to create a pod, you must configure this annotation.|
|
|
16046
|
+
* |k8s.aliyun.com/eci-data-cache-pl|PL1|The performance level (PL) of the cloud disk that you want to create by using the specified DataCache.
|
|
16047
|
+
* By default, enhanced SSDs (ESSDs) are created. Default value: PL1.|
|
|
16048
|
+
* |k8s.aliyun.com/eci-data-cache-provisionedIops|"40000"|The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50000, 1000 × Capacity - Baseline IOPS}. Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. For more information, see [ESSD AutoPL](https://help.aliyun.com/document_detail/368372.html).
|
|
16049
|
+
* If you configure this annotation, the cloud disk that is created by using the specified DataCache is of the ESSD AutoPL type.|
|
|
16050
|
+
* |k8s.aliyun.com/eci-data-cache-burstingEnabled|"true"|Specifies whether the Burst feature is enabled for the ESSD AutoPL disk. For more information, see [ESSD AutoPL](https://help.aliyun.com/document_detail/368372.html).
|
|
16051
|
+
* If you configure this annotation, the cloud disk that is created by using the specified DataCache is of the ESSD AutoPL type.|
|
|
16052
|
+
* |k8s.aliyun.com/eci-custom-tags|"env:test,name:alice"|The tags that you want to add to each elastic container instance. You can add up to three tags for each elastic container instance. Separate a tag key and a tag value with a colon (:). Separate multiple tags with commas (,).|
|
|
16053
|
+
*
|
|
16054
|
+
* @param request ApplyScalingGroupRequest
|
|
16055
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16056
|
+
* @return ApplyScalingGroupResponse
|
|
16057
|
+
*/
|
|
15859
16058
|
async applyScalingGroupWithOptions(request: ApplyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ApplyScalingGroupResponse> {
|
|
15860
16059
|
Util.validateModel(request);
|
|
15861
16060
|
let query = { };
|
|
@@ -15888,20 +16087,62 @@ export default class Client extends OpenApi {
|
|
|
15888
16087
|
return $tea.cast<ApplyScalingGroupResponse>(await this.callApi(params, req, runtime), new ApplyScalingGroupResponse({}));
|
|
15889
16088
|
}
|
|
15890
16089
|
|
|
16090
|
+
/**
|
|
16091
|
+
* @summary 基于yaml配置进行弹性伸缩管理
|
|
16092
|
+
*
|
|
16093
|
+
* @description You can call the ApplyScalingGroup operation to create scaling groups of the Elastic Container Instance type with ease. The resources of the scaling groups are defined in Kubernetes Deployment YAML files. You can also call this operation to extend annotations for elastic container instances in Kubernetes Deployment YAML files. For more information, see "Supported annotations" in this topic.
|
|
16094
|
+
* Mapping between YAML files and scaling groups: You can map the triplet of namespace, kind, and name in a YAML file to a scaling group name. A YAML file and a scaling group have a one-to-one mapping relationship in a region. For example, if you use the Kubernetes Deployment YAML file whose name is NGINX in the default namespace to create a scaling group in a region, the unique name of the mapped scaling group is k8s_default_Deployment_nginx.
|
|
16095
|
+
* You can use a Kubernetes Deployment YAML file to manage a scaling group based on the following logic:
|
|
16096
|
+
* * If an existing scaling group has a mapping relationship with your Kubernetes Deployment YAML file, you can update the scaling group by using the YAML file.
|
|
16097
|
+
* * If no scaling group that has a mapping relationship with your Kubernetes Deployment YAML file exists, you can create a scaling group with ease by using the YAML file.
|
|
16098
|
+
* ### Precautions
|
|
16099
|
+
* 1. If you do not specify a virtual private cloud (VPC), vSwitch, security group, or annotation in your Kubernetes Deployment YAML file, the system creates a default VPC that has default vSwitches and uses the default security group ess-default-sg of Auto Scaling. By default, the security group rule allows traffic on Transmission Control Protocol (TCP)-based port 22 and port 3389 and enables Internet Control Message Protocol (ICMP) for IPv4 addresses. If you want to enable other ports or protocols, you can create custom security group rules.
|
|
16100
|
+
* 2. If you want to use a public image, you must enable the Internet access feature and configure the k8s.aliyun.com/eci-with-eip pod annotation to enable the elastic IP address (EIP) feature.
|
|
16101
|
+
* 3. After you call the ApplyScalingGroup operation to apply a Kubernetes Deployment YAML file, the scaling group immediately enters the Enabled state and the scaling configuration immediately enters the Active state. If the number of replicas that you specified in the YAML file is grater than 0, elastic container instances are automatically created.
|
|
16102
|
+
* ### Supported annotations
|
|
16103
|
+
* For more information about annotations, see [ECI Pod Annotation](https://help.aliyun.com/document_detail/186939.html).
|
|
16104
|
+
* |Annotation|Example|Description|
|
|
16105
|
+
* |---|---|---|
|
|
16106
|
+
* |k8s.aliyun.com/ess-scaling-group-min-size|1|The minimum size of the scaling group that you want to create. Default value: 0.|
|
|
16107
|
+
* |k8s.aliyun.com/ess-scaling-group-max-size|20|The maximum size of the scaling group that you want to create. Default value: maximum number of replicas or 30, whichever is greater.|
|
|
16108
|
+
* |k8s.aliyun.com/eci-ntp-server|100.100.*.*|The IP address of the Network Time Protocol (NTP) server.|
|
|
16109
|
+
* |k8s.aliyun.com/eci-use-specs|2-4Gi|The specifications of 2 vCPUs and 4 GB memory. For more information, see [Create pods by specifying multiple specifications](https://help.aliyun.com/document_detail/451267.html).|
|
|
16110
|
+
* |k8s.aliyun.com/eci-vswitch|vsw-bp1xpiowfm5vo8o3c\\*\\*\\*\\*|The ID of the vSwitch. You can specify multiple vSwitches to specify multiple zones.|
|
|
16111
|
+
* |k8s.aliyun.com/eci-security-group|sg-bp1dktddjsg5nktv\\*\\*\\*\\*|The ID of the security group. Before you configure this annotation, take note of the following requirements:<ul data-sourcepos="26:74-26:168"><li data-sourcepos="26:78-26:114">You can specify one or more security groups. You can specify up to five security groups for each scaling group.</li><li data-sourcepos="26:114-26:140">If you specify multiple security groups, the security groups must belong to the same VPC.</li><li data-sourcepos="26:140-26:163">If you specify multiple security groups, the security groups must be of the same type.</li></ul>|
|
|
16112
|
+
* |k8s.aliyun.com/eci-sls-enable|"false"|If you set the value to false, the log collection feature is disabled.
|
|
16113
|
+
* If you do not want to use Custom Resource Definition (CRD) for Simple Log Service to collect logs of specific pods, you can configure this annotation for the pods and set the value to false. This prevents resource wastes caused by Logtails created by the system.|
|
|
16114
|
+
* |k8s.aliyun.com/eci-spot-strategy|SpotAsPriceGo|The bidding policy for the preemptible instance. Valid values:<ul data-sourcepos="28:69-28:204"><li data-sourcepos="28:73-28:158">SpotWithPriceLimit: The instance is created as a preemptible instance for which you specify the maximum hourly price If you set the value to SpotWithPriceLimit, you must configure the k8s.aliyun.com/eci-spot-price-limit annotation.</li><li data-sourcepos="28:158-28:199">SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is used as the bid price.</li></ul>|
|
|
16115
|
+
* |k8s.aliyun.com/eci-spot-price-limit|"0.5"|The maximum hourly price of the preemptible instance. This value can be accurate to up to three decimal places.
|
|
16116
|
+
* This annotation takes effect only when you set the k8s.aliyun.com/eci-spot-strategy annotation to SpotWithPriceLimit.|
|
|
16117
|
+
* |k8s.aliyun.com/eci-with-eip|"true"|If you set the value to true, an EIP is automatically created and bound to each elastic container instance.|
|
|
16118
|
+
* |k8s.aliyun.com/eci-data-cache-bucket|default|The bucket of the specified DataCache. If you want to use a DataCache to create a pod, you must configure this annotation.|
|
|
16119
|
+
* |k8s.aliyun.com/eci-data-cache-pl|PL1|The performance level (PL) of the cloud disk that you want to create by using the specified DataCache.
|
|
16120
|
+
* By default, enhanced SSDs (ESSDs) are created. Default value: PL1.|
|
|
16121
|
+
* |k8s.aliyun.com/eci-data-cache-provisionedIops|"40000"|The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50000, 1000 × Capacity - Baseline IOPS}. Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. For more information, see [ESSD AutoPL](https://help.aliyun.com/document_detail/368372.html).
|
|
16122
|
+
* If you configure this annotation, the cloud disk that is created by using the specified DataCache is of the ESSD AutoPL type.|
|
|
16123
|
+
* |k8s.aliyun.com/eci-data-cache-burstingEnabled|"true"|Specifies whether the Burst feature is enabled for the ESSD AutoPL disk. For more information, see [ESSD AutoPL](https://help.aliyun.com/document_detail/368372.html).
|
|
16124
|
+
* If you configure this annotation, the cloud disk that is created by using the specified DataCache is of the ESSD AutoPL type.|
|
|
16125
|
+
* |k8s.aliyun.com/eci-custom-tags|"env:test,name:alice"|The tags that you want to add to each elastic container instance. You can add up to three tags for each elastic container instance. Separate a tag key and a tag value with a colon (:). Separate multiple tags with commas (,).|
|
|
16126
|
+
*
|
|
16127
|
+
* @param request ApplyScalingGroupRequest
|
|
16128
|
+
* @return ApplyScalingGroupResponse
|
|
16129
|
+
*/
|
|
15891
16130
|
async applyScalingGroup(request: ApplyScalingGroupRequest): Promise<ApplyScalingGroupResponse> {
|
|
15892
16131
|
let runtime = new $Util.RuntimeOptions({ });
|
|
15893
16132
|
return await this.applyScalingGroupWithOptions(request, runtime);
|
|
15894
16133
|
}
|
|
15895
16134
|
|
|
15896
16135
|
/**
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
15903
|
-
|
|
15904
|
-
|
|
16136
|
+
* @summary Associates Application Load Balancer (ALB) server groups with a scaling group.
|
|
16137
|
+
*
|
|
16138
|
+
* @description Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
|
|
16139
|
+
* * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
|
|
16140
|
+
* * The ALB server group is in the Available state.
|
|
16141
|
+
* * 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).
|
|
16142
|
+
*
|
|
16143
|
+
* @param request AttachAlbServerGroupsRequest
|
|
16144
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16145
|
+
* @return AttachAlbServerGroupsResponse
|
|
15905
16146
|
*/
|
|
15906
16147
|
async attachAlbServerGroupsWithOptions(request: AttachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachAlbServerGroupsResponse> {
|
|
15907
16148
|
Util.validateModel(request);
|
|
@@ -15952,13 +16193,15 @@ export default class Client extends OpenApi {
|
|
|
15952
16193
|
}
|
|
15953
16194
|
|
|
15954
16195
|
/**
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
16196
|
+
* @summary Associates Application Load Balancer (ALB) server groups with a scaling group.
|
|
16197
|
+
*
|
|
16198
|
+
* @description Before you associate an ALB server group with a scaling group, make sure that the following requirements are met:
|
|
16199
|
+
* * The scaling group resides in a virtual private cloud (VPC). The scaling group and the ALB server group must reside in the same VPC.
|
|
16200
|
+
* * The ALB server group is in the Available state.
|
|
16201
|
+
* * 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).
|
|
16202
|
+
*
|
|
16203
|
+
* @param request AttachAlbServerGroupsRequest
|
|
16204
|
+
* @return AttachAlbServerGroupsResponse
|
|
15962
16205
|
*/
|
|
15963
16206
|
async attachAlbServerGroups(request: AttachAlbServerGroupsRequest): Promise<AttachAlbServerGroupsResponse> {
|
|
15964
16207
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -15966,15 +16209,17 @@ export default class Client extends OpenApi {
|
|
|
15966
16209
|
}
|
|
15967
16210
|
|
|
15968
16211
|
/**
|
|
15969
|
-
|
|
15970
|
-
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
|
|
15974
|
-
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
|
|
16212
|
+
* @summary Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
16213
|
+
*
|
|
16214
|
+
* @description Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
16215
|
+
* * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
16216
|
+
* * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](https://help.aliyun.com/document_detail/41872.html).
|
|
16217
|
+
* * The ApsaraDB RDS instance must be in the Running state.
|
|
16218
|
+
* 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](https://help.aliyun.com/document_detail/43185.html).
|
|
16219
|
+
*
|
|
16220
|
+
* @param request AttachDBInstancesRequest
|
|
16221
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16222
|
+
* @return AttachDBInstancesResponse
|
|
15978
16223
|
*/
|
|
15979
16224
|
async attachDBInstancesWithOptions(request: AttachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachDBInstancesResponse> {
|
|
15980
16225
|
Util.validateModel(request);
|
|
@@ -16033,14 +16278,16 @@ export default class Client extends OpenApi {
|
|
|
16033
16278
|
}
|
|
16034
16279
|
|
|
16035
16280
|
/**
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
|
|
16281
|
+
* @summary Associates one or more ApsaraDB RDS instances with a scaling group.
|
|
16282
|
+
*
|
|
16283
|
+
* @description Before you associate an ApsaraDB RDS instance with a scaling group, make sure that the ApsaraDB RDS instance meets the following requirements:
|
|
16284
|
+
* * The ApsaraDB RDS instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
16285
|
+
* * The ApsaraDB RDS instance must be unlocked. For more information about the lock policy, see [ApsaraDB RDS usage notes](https://help.aliyun.com/document_detail/41872.html).
|
|
16286
|
+
* * The ApsaraDB RDS instance must be in the Running state.
|
|
16287
|
+
* 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](https://help.aliyun.com/document_detail/43185.html).
|
|
16288
|
+
*
|
|
16289
|
+
* @param request AttachDBInstancesRequest
|
|
16290
|
+
* @return AttachDBInstancesResponse
|
|
16044
16291
|
*/
|
|
16045
16292
|
async attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse> {
|
|
16046
16293
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -16048,24 +16295,26 @@ export default class Client extends OpenApi {
|
|
|
16048
16295
|
}
|
|
16049
16296
|
|
|
16050
16297
|
/**
|
|
16051
|
-
|
|
16052
|
-
|
|
16053
|
-
|
|
16054
|
-
|
|
16055
|
-
|
|
16056
|
-
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16298
|
+
* @summary Adds instances to a scaling group. You can call the AttachInstances operation to add independent Elastic Compute Service (ECS) instances, elastic container instances, or non-Alibaba Cloud instances to your scaling group to provide services. You can also call this operation to change the state of ECS instances in your scaling group from Economical Mode to In Service.
|
|
16299
|
+
*
|
|
16300
|
+
* @description Before you call this operation, take note of the following items:
|
|
16301
|
+
* * The scaling group is in the Active state.
|
|
16302
|
+
* * No scaling activities in the scaling group are in progress.
|
|
16303
|
+
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
16304
|
+
* * The instances reside in the same region as the scaling group.
|
|
16305
|
+
* * The instances must be in the Running state.
|
|
16306
|
+
* * The instances are not added to other scaling groups.
|
|
16307
|
+
* * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
|
|
16308
|
+
* * 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.
|
|
16309
|
+
* * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
|
|
16310
|
+
* If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
16311
|
+
* 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.
|
|
16312
|
+
* 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.
|
|
16313
|
+
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
16314
|
+
*
|
|
16315
|
+
* @param request AttachInstancesRequest
|
|
16316
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16317
|
+
* @return AttachInstancesResponse
|
|
16069
16318
|
*/
|
|
16070
16319
|
async attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse> {
|
|
16071
16320
|
Util.validateModel(request);
|
|
@@ -16132,23 +16381,25 @@ export default class Client extends OpenApi {
|
|
|
16132
16381
|
}
|
|
16133
16382
|
|
|
16134
16383
|
/**
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
|
|
16384
|
+
* @summary Adds instances to a scaling group. You can call the AttachInstances operation to add independent Elastic Compute Service (ECS) instances, elastic container instances, or non-Alibaba Cloud instances to your scaling group to provide services. You can also call this operation to change the state of ECS instances in your scaling group from Economical Mode to In Service.
|
|
16385
|
+
*
|
|
16386
|
+
* @description Before you call this operation, take note of the following items:
|
|
16387
|
+
* * The scaling group is in the Active state.
|
|
16388
|
+
* * No scaling activities in the scaling group are in progress.
|
|
16389
|
+
* The ECS instances or the elastic container instances that you want to add to a scaling group must meet the following requirements:
|
|
16390
|
+
* * The instances reside in the same region as the scaling group.
|
|
16391
|
+
* * The instances must be in the Running state.
|
|
16392
|
+
* * The instances are not added to other scaling groups.
|
|
16393
|
+
* * The instances use the subscription or pay-as-you-go billing method, or are preemptible instances.
|
|
16394
|
+
* * 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.
|
|
16395
|
+
* * If the VswitchID parameter is not specified for a scaling group, the instances that are in VPCs cannot be added to the scaling group.
|
|
16396
|
+
* If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
16397
|
+
* 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.
|
|
16398
|
+
* 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.
|
|
16399
|
+
* Instances that are manually added by calling the AttachInstances operation are not associated with the active scaling configuration of the scaling group.
|
|
16400
|
+
*
|
|
16401
|
+
* @param request AttachInstancesRequest
|
|
16402
|
+
* @return AttachInstancesResponse
|
|
16152
16403
|
*/
|
|
16153
16404
|
async attachInstances(request: AttachInstancesRequest): Promise<AttachInstancesResponse> {
|
|
16154
16405
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -16156,18 +16407,19 @@ export default class Client extends OpenApi {
|
|
|
16156
16407
|
}
|
|
16157
16408
|
|
|
16158
16409
|
/**
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16410
|
+
* @summary Attaches load balancers to a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups. Load balancers help distribute the access traffic to the instances in scaling groups, which effectively improves the service performance of the scaling groups. You can call the AttachLoadBalancers operation to attach one or more load balancers to your scaling group.
|
|
16411
|
+
*
|
|
16412
|
+
* @description Before you call this operation, make sure that the following requirements are met:
|
|
16413
|
+
* * The load balancer and the scaling group belong to the same Alibaba Cloud account and region.
|
|
16414
|
+
* * The load balancer is in the `Running` state.
|
|
16415
|
+
* * At least one listener is configured for the load balancer, and the health check feature is enabled for the load balancer.
|
|
16416
|
+
* * If the network type of the load balancer and the scaling group is virtual private cloud (VPC), they use the same VPC.
|
|
16417
|
+
* * If the network type of the scaling group is VPC, and that of the load balancer is classic network and a backend server of the load balancer uses a VPC, the scaling group and the backend server use the same VPC.
|
|
16418
|
+
* * The attachment of load balancers ensures that the cumulative number of load balancers attached to the scaling group stays within the predefined maximum limit. For information about the load balancer quota, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
16419
|
+
*
|
|
16420
|
+
* @param request AttachLoadBalancersRequest
|
|
16421
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16422
|
+
* @return AttachLoadBalancersResponse
|
|
16171
16423
|
*/
|
|
16172
16424
|
async attachLoadBalancersWithOptions(request: AttachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<AttachLoadBalancersResponse> {
|
|
16173
16425
|
Util.validateModel(request);
|
|
@@ -16222,23 +16474,31 @@ export default class Client extends OpenApi {
|
|
|
16222
16474
|
}
|
|
16223
16475
|
|
|
16224
16476
|
/**
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16477
|
+
* @summary Attaches load balancers to a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups. Load balancers help distribute the access traffic to the instances in scaling groups, which effectively improves the service performance of the scaling groups. You can call the AttachLoadBalancers operation to attach one or more load balancers to your scaling group.
|
|
16478
|
+
*
|
|
16479
|
+
* @description Before you call this operation, make sure that the following requirements are met:
|
|
16480
|
+
* * The load balancer and the scaling group belong to the same Alibaba Cloud account and region.
|
|
16481
|
+
* * The load balancer is in the `Running` state.
|
|
16482
|
+
* * At least one listener is configured for the load balancer, and the health check feature is enabled for the load balancer.
|
|
16483
|
+
* * If the network type of the load balancer and the scaling group is virtual private cloud (VPC), they use the same VPC.
|
|
16484
|
+
* * If the network type of the scaling group is VPC, and that of the load balancer is classic network and a backend server of the load balancer uses a VPC, the scaling group and the backend server use the same VPC.
|
|
16485
|
+
* * The attachment of load balancers ensures that the cumulative number of load balancers attached to the scaling group stays within the predefined maximum limit. For information about the load balancer quota, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
16486
|
+
*
|
|
16487
|
+
* @param request AttachLoadBalancersRequest
|
|
16488
|
+
* @return AttachLoadBalancersResponse
|
|
16236
16489
|
*/
|
|
16237
16490
|
async attachLoadBalancers(request: AttachLoadBalancersRequest): Promise<AttachLoadBalancersResponse> {
|
|
16238
16491
|
let runtime = new $Util.RuntimeOptions({ });
|
|
16239
16492
|
return await this.attachLoadBalancersWithOptions(request, runtime);
|
|
16240
16493
|
}
|
|
16241
16494
|
|
|
16495
|
+
/**
|
|
16496
|
+
* @summary Attaches one or more server groups to a scaling group. You can attach the following server groups to a scaling group: Application Load Balancer (ALB) and Network Load Balancer (NLB) server groups.
|
|
16497
|
+
*
|
|
16498
|
+
* @param request AttachServerGroupsRequest
|
|
16499
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16500
|
+
* @return AttachServerGroupsResponse
|
|
16501
|
+
*/
|
|
16242
16502
|
async attachServerGroupsWithOptions(request: AttachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachServerGroupsResponse> {
|
|
16243
16503
|
Util.validateModel(request);
|
|
16244
16504
|
let query = { };
|
|
@@ -16287,30 +16547,38 @@ export default class Client extends OpenApi {
|
|
|
16287
16547
|
return $tea.cast<AttachServerGroupsResponse>(await this.callApi(params, req, runtime), new AttachServerGroupsResponse({}));
|
|
16288
16548
|
}
|
|
16289
16549
|
|
|
16550
|
+
/**
|
|
16551
|
+
* @summary Attaches one or more server groups to a scaling group. You can attach the following server groups to a scaling group: Application Load Balancer (ALB) and Network Load Balancer (NLB) server groups.
|
|
16552
|
+
*
|
|
16553
|
+
* @param request AttachServerGroupsRequest
|
|
16554
|
+
* @return AttachServerGroupsResponse
|
|
16555
|
+
*/
|
|
16290
16556
|
async attachServerGroups(request: AttachServerGroupsRequest): Promise<AttachServerGroupsResponse> {
|
|
16291
16557
|
let runtime = new $Util.RuntimeOptions({ });
|
|
16292
16558
|
return await this.attachServerGroupsWithOptions(request, runtime);
|
|
16293
16559
|
}
|
|
16294
16560
|
|
|
16295
16561
|
/**
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16562
|
+
* @summary Associates Sever Load Balancer (SLB) vServer groups with a scaling group.
|
|
16563
|
+
*
|
|
16564
|
+
* @description Before you call this operation to attach a vServer group to your scaling group, take note of the following items:
|
|
16565
|
+
* * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
16566
|
+
* * The CLB instance and the scaling group must reside in the same region.
|
|
16567
|
+
* * The CLB instance must be in the Running state.
|
|
16568
|
+
* * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
|
|
16569
|
+
* * The CLB instance and the scaling group must be in the same VPC if their network type is VPC.
|
|
16570
|
+
* * 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.
|
|
16571
|
+
* * The vServer group that you want to attach to your scaling group must belong to the CLB instance.
|
|
16572
|
+
* * You can attach only a limited number of vServer groups to a scaling group. For information about the quota on vServer groups, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
16573
|
+
* When you call this operation, you must specify the following parameters:
|
|
16574
|
+
* * LoadBalancerId: the ID of the CLB instance.
|
|
16575
|
+
* * VServerGroupId: the ID of the vServer group.
|
|
16576
|
+
* * Port: the port number of the vServer group.
|
|
16577
|
+
* 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.
|
|
16578
|
+
*
|
|
16579
|
+
* @param request AttachVServerGroupsRequest
|
|
16580
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16581
|
+
* @return AttachVServerGroupsResponse
|
|
16314
16582
|
*/
|
|
16315
16583
|
async attachVServerGroupsWithOptions(request: AttachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachVServerGroupsResponse> {
|
|
16316
16584
|
Util.validateModel(request);
|
|
@@ -16361,29 +16629,38 @@ export default class Client extends OpenApi {
|
|
|
16361
16629
|
}
|
|
16362
16630
|
|
|
16363
16631
|
/**
|
|
16364
|
-
|
|
16365
|
-
|
|
16366
|
-
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
|
|
16377
|
-
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16632
|
+
* @summary Associates Sever Load Balancer (SLB) vServer groups with a scaling group.
|
|
16633
|
+
*
|
|
16634
|
+
* @description Before you call this operation to attach a vServer group to your scaling group, take note of the following items:
|
|
16635
|
+
* * The CLB instance and the scaling group must belong to the same Alibaba Cloud account.
|
|
16636
|
+
* * The CLB instance and the scaling group must reside in the same region.
|
|
16637
|
+
* * The CLB instance must be in the Running state.
|
|
16638
|
+
* * The CLB instance must be configured with at least one listener. Health check is enabled for the CLB instance.
|
|
16639
|
+
* * The CLB instance and the scaling group must be in the same VPC if their network type is VPC.
|
|
16640
|
+
* * 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.
|
|
16641
|
+
* * The vServer group that you want to attach to your scaling group must belong to the CLB instance.
|
|
16642
|
+
* * You can attach only a limited number of vServer groups to a scaling group. For information about the quota on vServer groups, see [Limits](https://help.aliyun.com/document_detail/25863.html).
|
|
16643
|
+
* When you call this operation, you must specify the following parameters:
|
|
16644
|
+
* * LoadBalancerId: the ID of the CLB instance.
|
|
16645
|
+
* * VServerGroupId: the ID of the vServer group.
|
|
16646
|
+
* * Port: the port number of the vServer group.
|
|
16647
|
+
* 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.
|
|
16648
|
+
*
|
|
16649
|
+
* @param request AttachVServerGroupsRequest
|
|
16650
|
+
* @return AttachVServerGroupsResponse
|
|
16381
16651
|
*/
|
|
16382
16652
|
async attachVServerGroups(request: AttachVServerGroupsRequest): Promise<AttachVServerGroupsResponse> {
|
|
16383
16653
|
let runtime = new $Util.RuntimeOptions({ });
|
|
16384
16654
|
return await this.attachVServerGroupsWithOptions(request, runtime);
|
|
16385
16655
|
}
|
|
16386
16656
|
|
|
16657
|
+
/**
|
|
16658
|
+
* @summary Adds a scaling group to a resource group.
|
|
16659
|
+
*
|
|
16660
|
+
* @param request ChangeResourceGroupRequest
|
|
16661
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16662
|
+
* @return ChangeResourceGroupResponse
|
|
16663
|
+
*/
|
|
16387
16664
|
async changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse> {
|
|
16388
16665
|
Util.validateModel(request);
|
|
16389
16666
|
let query = { };
|
|
@@ -16428,17 +16705,25 @@ export default class Client extends OpenApi {
|
|
|
16428
16705
|
return $tea.cast<ChangeResourceGroupResponse>(await this.callApi(params, req, runtime), new ChangeResourceGroupResponse({}));
|
|
16429
16706
|
}
|
|
16430
16707
|
|
|
16708
|
+
/**
|
|
16709
|
+
* @summary Adds a scaling group to a resource group.
|
|
16710
|
+
*
|
|
16711
|
+
* @param request ChangeResourceGroupRequest
|
|
16712
|
+
* @return ChangeResourceGroupResponse
|
|
16713
|
+
*/
|
|
16431
16714
|
async changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse> {
|
|
16432
16715
|
let runtime = new $Util.RuntimeOptions({ });
|
|
16433
16716
|
return await this.changeResourceGroupWithOptions(request, runtime);
|
|
16434
16717
|
}
|
|
16435
16718
|
|
|
16436
16719
|
/**
|
|
16437
|
-
|
|
16438
|
-
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
|
|
16720
|
+
* @summary Ends the timeout period of a lifecycle hook ahead of schedule. If you have created a lifecycle hook for your scaling group, you can call the CompleteLifecycleAction operation to end the timeout period of the lifecycle hook ahead of schedule based on your business requirements.
|
|
16721
|
+
*
|
|
16722
|
+
* @description When you manually cut short the timeout period of a lifecycle hook, Auto Scaling proceeds with one of the following actions based on the predefined settings: responding to the scaling request, aborting the scaling request, and initiating a rollback process.
|
|
16723
|
+
*
|
|
16724
|
+
* @param request CompleteLifecycleActionRequest
|
|
16725
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16726
|
+
* @return CompleteLifecycleActionResponse
|
|
16442
16727
|
*/
|
|
16443
16728
|
async completeLifecycleActionWithOptions(request: CompleteLifecycleActionRequest, runtime: $Util.RuntimeOptions): Promise<CompleteLifecycleActionResponse> {
|
|
16444
16729
|
Util.validateModel(request);
|
|
@@ -16493,16 +16778,31 @@ export default class Client extends OpenApi {
|
|
|
16493
16778
|
}
|
|
16494
16779
|
|
|
16495
16780
|
/**
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
-
|
|
16499
|
-
|
|
16781
|
+
* @summary Ends the timeout period of a lifecycle hook ahead of schedule. If you have created a lifecycle hook for your scaling group, you can call the CompleteLifecycleAction operation to end the timeout period of the lifecycle hook ahead of schedule based on your business requirements.
|
|
16782
|
+
*
|
|
16783
|
+
* @description When you manually cut short the timeout period of a lifecycle hook, Auto Scaling proceeds with one of the following actions based on the predefined settings: responding to the scaling request, aborting the scaling request, and initiating a rollback process.
|
|
16784
|
+
*
|
|
16785
|
+
* @param request CompleteLifecycleActionRequest
|
|
16786
|
+
* @return CompleteLifecycleActionResponse
|
|
16500
16787
|
*/
|
|
16501
16788
|
async completeLifecycleAction(request: CompleteLifecycleActionRequest): Promise<CompleteLifecycleActionResponse> {
|
|
16502
16789
|
let runtime = new $Util.RuntimeOptions({ });
|
|
16503
16790
|
return await this.completeLifecycleActionWithOptions(request, runtime);
|
|
16504
16791
|
}
|
|
16505
16792
|
|
|
16793
|
+
/**
|
|
16794
|
+
* @summary Creates an event-triggered task.
|
|
16795
|
+
*
|
|
16796
|
+
* @description * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](https://help.aliyun.com/document_detail/74861.html).
|
|
16797
|
+
* * 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.
|
|
16798
|
+
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
16799
|
+
* * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](https://help.aliyun.com/document_detail/74854.html).
|
|
16800
|
+
* > 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.
|
|
16801
|
+
*
|
|
16802
|
+
* @param request CreateAlarmRequest
|
|
16803
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16804
|
+
* @return CreateAlarmResponse
|
|
16805
|
+
*/
|
|
16506
16806
|
async createAlarmWithOptions(request: CreateAlarmRequest, runtime: $Util.RuntimeOptions): Promise<CreateAlarmResponse> {
|
|
16507
16807
|
Util.validateModel(request);
|
|
16508
16808
|
let query = { };
|
|
@@ -16599,18 +16899,32 @@ export default class Client extends OpenApi {
|
|
|
16599
16899
|
return $tea.cast<CreateAlarmResponse>(await this.callApi(params, req, runtime), new CreateAlarmResponse({}));
|
|
16600
16900
|
}
|
|
16601
16901
|
|
|
16902
|
+
/**
|
|
16903
|
+
* @summary Creates an event-triggered task.
|
|
16904
|
+
*
|
|
16905
|
+
* @description * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](https://help.aliyun.com/document_detail/74861.html).
|
|
16906
|
+
* * 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.
|
|
16907
|
+
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
16908
|
+
* * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](https://help.aliyun.com/document_detail/74854.html).
|
|
16909
|
+
* > 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.
|
|
16910
|
+
*
|
|
16911
|
+
* @param request CreateAlarmRequest
|
|
16912
|
+
* @return CreateAlarmResponse
|
|
16913
|
+
*/
|
|
16602
16914
|
async createAlarm(request: CreateAlarmRequest): Promise<CreateAlarmResponse> {
|
|
16603
16915
|
let runtime = new $Util.RuntimeOptions({ });
|
|
16604
16916
|
return await this.createAlarmWithOptions(request, runtime);
|
|
16605
16917
|
}
|
|
16606
16918
|
|
|
16607
16919
|
/**
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16920
|
+
* @summary Creates a scaling configuration of the Elastic Container Instance type. Auto Scaling uses the scaling configuration as a template to create elastic container instances to meet your business requirements during scale-outs.
|
|
16921
|
+
*
|
|
16922
|
+
* @description A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
|
|
16923
|
+
* You can specify the Cpu and Memory parameters to determine the range of instance types. If you specify the parameters, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Auto Scaling preferentially creates elastic container instances of the instance type that is provided at the lowest price. This scaling mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
16924
|
+
*
|
|
16925
|
+
* @param request CreateEciScalingConfigurationRequest
|
|
16926
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
16927
|
+
* @return CreateEciScalingConfigurationResponse
|
|
16614
16928
|
*/
|
|
16615
16929
|
async createEciScalingConfigurationWithOptions(request: CreateEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateEciScalingConfigurationResponse> {
|
|
16616
16930
|
Util.validateModel(request);
|
|
@@ -16829,11 +17143,13 @@ export default class Client extends OpenApi {
|
|
|
16829
17143
|
}
|
|
16830
17144
|
|
|
16831
17145
|
/**
|
|
16832
|
-
|
|
16833
|
-
|
|
16834
|
-
|
|
16835
|
-
|
|
16836
|
-
|
|
17146
|
+
* @summary Creates a scaling configuration of the Elastic Container Instance type. Auto Scaling uses the scaling configuration as a template to create elastic container instances to meet your business requirements during scale-outs.
|
|
17147
|
+
*
|
|
17148
|
+
* @description A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
|
|
17149
|
+
* You can specify the Cpu and Memory parameters to determine the range of instance types. If you specify the parameters, Auto Scaling determines the available instance types based on factors such as I/O optimization requirements and zones. Auto Scaling preferentially creates elastic container instances of the instance type that is provided at the lowest price. This scaling mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
17150
|
+
*
|
|
17151
|
+
* @param request CreateEciScalingConfigurationRequest
|
|
17152
|
+
* @return CreateEciScalingConfigurationResponse
|
|
16837
17153
|
*/
|
|
16838
17154
|
async createEciScalingConfiguration(request: CreateEciScalingConfigurationRequest): Promise<CreateEciScalingConfigurationResponse> {
|
|
16839
17155
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -16841,14 +17157,16 @@ export default class Client extends OpenApi {
|
|
|
16841
17157
|
}
|
|
16842
17158
|
|
|
16843
17159
|
/**
|
|
16844
|
-
|
|
16845
|
-
|
|
16846
|
-
|
|
16847
|
-
|
|
16848
|
-
|
|
16849
|
-
|
|
16850
|
-
|
|
16851
|
-
|
|
17160
|
+
* @summary Creates one or more lifecycle hooks.
|
|
17161
|
+
*
|
|
17162
|
+
* @description You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
|
|
17163
|
+
* During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
|
|
17164
|
+
* You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](https://help.aliyun.com/document_detail/120810.html).
|
|
17165
|
+
* > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
|
|
17166
|
+
*
|
|
17167
|
+
* @param request CreateLifecycleHookRequest
|
|
17168
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17169
|
+
* @return CreateLifecycleHookResponse
|
|
16852
17170
|
*/
|
|
16853
17171
|
async createLifecycleHookWithOptions(request: CreateLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<CreateLifecycleHookResponse> {
|
|
16854
17172
|
Util.validateModel(request);
|
|
@@ -16911,13 +17229,15 @@ export default class Client extends OpenApi {
|
|
|
16911
17229
|
}
|
|
16912
17230
|
|
|
16913
17231
|
/**
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
17232
|
+
* @summary Creates one or more lifecycle hooks.
|
|
17233
|
+
*
|
|
17234
|
+
* @description You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
|
|
17235
|
+
* During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
|
|
17236
|
+
* You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](https://help.aliyun.com/document_detail/120810.html).
|
|
17237
|
+
* > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
|
|
17238
|
+
*
|
|
17239
|
+
* @param request CreateLifecycleHookRequest
|
|
17240
|
+
* @return CreateLifecycleHookResponse
|
|
16921
17241
|
*/
|
|
16922
17242
|
async createLifecycleHook(request: CreateLifecycleHookRequest): Promise<CreateLifecycleHookResponse> {
|
|
16923
17243
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -16925,12 +17245,14 @@ export default class Client extends OpenApi {
|
|
|
16925
17245
|
}
|
|
16926
17246
|
|
|
16927
17247
|
/**
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
|
|
16932
|
-
|
|
16933
|
-
|
|
17248
|
+
* @summary Creates a notification rule. You can call the CreateNotificationConfiguration operation to create a notification rule to stay informed about scaling events or resource changes. This helps you learn about the dynamic status of your scaling group in real time and further automates the management of scaling events.
|
|
17249
|
+
*
|
|
17250
|
+
* @description ## Description
|
|
17251
|
+
* 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.
|
|
17252
|
+
*
|
|
17253
|
+
* @param request CreateNotificationConfigurationRequest
|
|
17254
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17255
|
+
* @return CreateNotificationConfigurationResponse
|
|
16934
17256
|
*/
|
|
16935
17257
|
async createNotificationConfigurationWithOptions(request: CreateNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateNotificationConfigurationResponse> {
|
|
16936
17258
|
Util.validateModel(request);
|
|
@@ -16977,11 +17299,13 @@ export default class Client extends OpenApi {
|
|
|
16977
17299
|
}
|
|
16978
17300
|
|
|
16979
17301
|
/**
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
17302
|
+
* @summary Creates a notification rule. You can call the CreateNotificationConfiguration operation to create a notification rule to stay informed about scaling events or resource changes. This helps you learn about the dynamic status of your scaling group in real time and further automates the management of scaling events.
|
|
17303
|
+
*
|
|
17304
|
+
* @description ## Description
|
|
17305
|
+
* 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.
|
|
17306
|
+
*
|
|
17307
|
+
* @param request CreateNotificationConfigurationRequest
|
|
17308
|
+
* @return CreateNotificationConfigurationResponse
|
|
16985
17309
|
*/
|
|
16986
17310
|
async createNotificationConfiguration(request: CreateNotificationConfigurationRequest): Promise<CreateNotificationConfigurationResponse> {
|
|
16987
17311
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -16989,17 +17313,19 @@ export default class Client extends OpenApi {
|
|
|
16989
17313
|
}
|
|
16990
17314
|
|
|
16991
17315
|
/**
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17316
|
+
* @summary Creates a scaling configuration.
|
|
17317
|
+
*
|
|
17318
|
+
* @description Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
17319
|
+
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
|
|
17320
|
+
* * InstanceType: In this mode, you must specify one instance type.
|
|
17321
|
+
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
17322
|
+
* * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
|
|
17323
|
+
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
17324
|
+
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
|
|
17325
|
+
*
|
|
17326
|
+
* @param tmpReq CreateScalingConfigurationRequest
|
|
17327
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17328
|
+
* @return CreateScalingConfigurationResponse
|
|
17003
17329
|
*/
|
|
17004
17330
|
async createScalingConfigurationWithOptions(tmpReq: CreateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingConfigurationResponse> {
|
|
17005
17331
|
Util.validateModel(tmpReq);
|
|
@@ -17256,16 +17582,18 @@ export default class Client extends OpenApi {
|
|
|
17256
17582
|
}
|
|
17257
17583
|
|
|
17258
17584
|
/**
|
|
17259
|
-
|
|
17260
|
-
|
|
17261
|
-
|
|
17262
|
-
|
|
17263
|
-
|
|
17264
|
-
|
|
17265
|
-
|
|
17266
|
-
|
|
17267
|
-
|
|
17268
|
-
|
|
17585
|
+
* @summary Creates a scaling configuration.
|
|
17586
|
+
*
|
|
17587
|
+
* @description Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
|
|
17588
|
+
* * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
|
|
17589
|
+
* * InstanceType: In this mode, you must specify one instance type.
|
|
17590
|
+
* * InstanceTypes: In this mode, you can specify more than one instance type.
|
|
17591
|
+
* * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
|
|
17592
|
+
* * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
|
|
17593
|
+
* > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
|
|
17594
|
+
*
|
|
17595
|
+
* @param request CreateScalingConfigurationRequest
|
|
17596
|
+
* @return CreateScalingConfigurationResponse
|
|
17269
17597
|
*/
|
|
17270
17598
|
async createScalingConfiguration(request: CreateScalingConfigurationRequest): Promise<CreateScalingConfigurationResponse> {
|
|
17271
17599
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -17273,32 +17601,34 @@ export default class Client extends OpenApi {
|
|
|
17273
17601
|
}
|
|
17274
17602
|
|
|
17275
17603
|
/**
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
|
|
17280
|
-
|
|
17281
|
-
|
|
17282
|
-
|
|
17283
|
-
|
|
17284
|
-
|
|
17285
|
-
|
|
17286
|
-
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
17293
|
-
|
|
17294
|
-
|
|
17295
|
-
|
|
17296
|
-
|
|
17297
|
-
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17604
|
+
* @summary Creates a scaling group.
|
|
17605
|
+
*
|
|
17606
|
+
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
|
|
17607
|
+
* 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.
|
|
17608
|
+
* 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.
|
|
17609
|
+
* 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](https://help.aliyun.com/document_detail/40654.html) topic.
|
|
17610
|
+
* 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:
|
|
17611
|
+
* * 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.
|
|
17612
|
+
* * 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.
|
|
17613
|
+
* > If you specify the default server group and multiple vServer groups at the same time, ECS instances are added to all specified server groups.
|
|
17614
|
+
* The default weight of an ECS instance that is added as a backend server of a CLB instance is 50. The CLB instance that you want to associate with your scaling group must meet the following requirements:
|
|
17615
|
+
* * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
|
|
17616
|
+
* * The health check feature must be enabled on all listener ports that are configured for the CLB instance. Otherwise, the scaling group fails to be created.
|
|
17617
|
+
* If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances that are in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
|
|
17618
|
+
* If you associate an ApsaraDB RDS instance with a scaling group, Auto Scaling automatically adds the private IP addresses of the ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance. The ApsaraDB RDS instance that you want to associate with your scaling group must meet the following requirements:
|
|
17619
|
+
* * The ApsaraDB RDS instance must be in the Running state. You can call the DescribeDBInstances operation to query the state of the ApsaraDB RDS instance.
|
|
17620
|
+
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic.
|
|
17621
|
+
* If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
|
|
17622
|
+
* * You can use the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools parameters to specify the instance allocation method based on the cost optimization policy. This instance allocation method is prioritized during scaling.
|
|
17623
|
+
* * If you do not specify the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools parameter, the instance types that are provided at the lowest price are used to create instances based on the cost optimization policy.
|
|
17624
|
+
* If you set the `Tags.Propagate` parameter of the scaling group to true, the following rules apply:
|
|
17625
|
+
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
17626
|
+
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
17627
|
+
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
17628
|
+
*
|
|
17629
|
+
* @param request CreateScalingGroupRequest
|
|
17630
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17631
|
+
* @return CreateScalingGroupResponse
|
|
17302
17632
|
*/
|
|
17303
17633
|
async createScalingGroupWithOptions(request: CreateScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingGroupResponse> {
|
|
17304
17634
|
Util.validateModel(request);
|
|
@@ -17501,31 +17831,33 @@ export default class Client extends OpenApi {
|
|
|
17501
17831
|
}
|
|
17502
17832
|
|
|
17503
17833
|
/**
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17507
|
-
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
|
|
17512
|
-
|
|
17513
|
-
|
|
17514
|
-
|
|
17515
|
-
|
|
17516
|
-
|
|
17517
|
-
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
|
|
17521
|
-
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
|
|
17834
|
+
* @summary Creates a scaling group.
|
|
17835
|
+
*
|
|
17836
|
+
* @description A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
|
|
17837
|
+
* 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.
|
|
17838
|
+
* 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.
|
|
17839
|
+
* 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](https://help.aliyun.com/document_detail/40654.html) topic.
|
|
17840
|
+
* 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:
|
|
17841
|
+
* * 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.
|
|
17842
|
+
* * 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.
|
|
17843
|
+
* > If you specify the default server group and multiple vServer groups at the same time, ECS instances are added to all specified server groups.
|
|
17844
|
+
* The default weight of an ECS instance that is added as a backend server of a CLB instance is 50. The CLB instance that you want to associate with your scaling group must meet the following requirements:
|
|
17845
|
+
* * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
|
|
17846
|
+
* * The health check feature must be enabled on all listener ports that are configured for the CLB instance. Otherwise, the scaling group fails to be created.
|
|
17847
|
+
* If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances that are in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
|
|
17848
|
+
* If you associate an ApsaraDB RDS instance with a scaling group, Auto Scaling automatically adds the private IP addresses of the ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance. The ApsaraDB RDS instance that you want to associate with your scaling group must meet the following requirements:
|
|
17849
|
+
* * The ApsaraDB RDS instance must be in the Running state. You can call the DescribeDBInstances operation to query the state of the ApsaraDB RDS instance.
|
|
17850
|
+
* * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic.
|
|
17851
|
+
* If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
|
|
17852
|
+
* * You can use the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools parameters to specify the instance allocation method based on the cost optimization policy. This instance allocation method is prioritized during scaling.
|
|
17853
|
+
* * If you do not specify the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools parameter, the instance types that are provided at the lowest price are used to create instances based on the cost optimization policy.
|
|
17854
|
+
* If you set the `Tags.Propagate` parameter of the scaling group to true, the following rules apply:
|
|
17855
|
+
* * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
|
|
17856
|
+
* * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
|
|
17857
|
+
* * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
|
|
17858
|
+
*
|
|
17859
|
+
* @param request CreateScalingGroupRequest
|
|
17860
|
+
* @return CreateScalingGroupResponse
|
|
17529
17861
|
*/
|
|
17530
17862
|
async createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse> {
|
|
17531
17863
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -17533,23 +17865,25 @@ export default class Client extends OpenApi {
|
|
|
17533
17865
|
}
|
|
17534
17866
|
|
|
17535
17867
|
/**
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17544
|
-
|
|
17545
|
-
|
|
17546
|
-
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
|
|
17550
|
-
|
|
17551
|
-
|
|
17552
|
-
|
|
17868
|
+
* @summary Creates a scaling rule.
|
|
17869
|
+
*
|
|
17870
|
+
* @description ## Description
|
|
17871
|
+
* 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:
|
|
17872
|
+
* * 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.
|
|
17873
|
+
* * 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.
|
|
17874
|
+
* Before you call this operation, take note of the following items:
|
|
17875
|
+
* * 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.
|
|
17876
|
+
* * 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.
|
|
17877
|
+
* * 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.
|
|
17878
|
+
* * 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.
|
|
17879
|
+
* * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
|
|
17880
|
+
* * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
|
|
17881
|
+
* * 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.
|
|
17882
|
+
* * 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.
|
|
17883
|
+
*
|
|
17884
|
+
* @param request CreateScalingRuleRequest
|
|
17885
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17886
|
+
* @return CreateScalingRuleResponse
|
|
17553
17887
|
*/
|
|
17554
17888
|
async createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse> {
|
|
17555
17889
|
Util.validateModel(request);
|
|
@@ -17668,22 +18002,24 @@ export default class Client extends OpenApi {
|
|
|
17668
18002
|
}
|
|
17669
18003
|
|
|
17670
18004
|
/**
|
|
17671
|
-
|
|
17672
|
-
|
|
17673
|
-
|
|
17674
|
-
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
|
|
17678
|
-
|
|
17679
|
-
|
|
17680
|
-
|
|
17681
|
-
|
|
17682
|
-
|
|
17683
|
-
|
|
17684
|
-
|
|
17685
|
-
|
|
17686
|
-
|
|
18005
|
+
* @summary Creates a scaling rule.
|
|
18006
|
+
*
|
|
18007
|
+
* @description ## Description
|
|
18008
|
+
* 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:
|
|
18009
|
+
* * 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.
|
|
18010
|
+
* * 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.
|
|
18011
|
+
* Before you call this operation, take note of the following items:
|
|
18012
|
+
* * 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.
|
|
18013
|
+
* * 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.
|
|
18014
|
+
* * 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.
|
|
18015
|
+
* * 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.
|
|
18016
|
+
* * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
|
|
18017
|
+
* * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
|
|
18018
|
+
* * 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.
|
|
18019
|
+
* * 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.
|
|
18020
|
+
*
|
|
18021
|
+
* @param request CreateScalingRuleRequest
|
|
18022
|
+
* @return CreateScalingRuleResponse
|
|
17687
18023
|
*/
|
|
17688
18024
|
async createScalingRule(request: CreateScalingRuleRequest): Promise<CreateScalingRuleResponse> {
|
|
17689
18025
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -17691,16 +18027,18 @@ export default class Client extends OpenApi {
|
|
|
17691
18027
|
}
|
|
17692
18028
|
|
|
17693
18029
|
/**
|
|
17694
|
-
|
|
17695
|
-
|
|
17696
|
-
|
|
17697
|
-
|
|
17698
|
-
|
|
17699
|
-
|
|
17700
|
-
|
|
17701
|
-
|
|
17702
|
-
|
|
17703
|
-
|
|
18030
|
+
* @summary Creates a scheduled task. A scheduled task is a type of scaling task that enables automatic execution of a specific scaling rule at a specified point in time. You can call the CreateScheduledTask operation to create a scheduled task to implement automatic scaling of computing resources. This ensures your business continuity and minimizes resource costs.
|
|
18031
|
+
*
|
|
18032
|
+
* @description * 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.
|
|
18033
|
+
* * 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.``
|
|
18034
|
+
* * A scheduled task supports the following scaling methods:
|
|
18035
|
+
* * `ScheduledAction`: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
18036
|
+
* * `ScalingGroupId`: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you created the scheduled task.
|
|
18037
|
+
* > You cannot specify the `ScheduledAction` and ScalingGroupId parameters at the same time.
|
|
18038
|
+
*
|
|
18039
|
+
* @param request CreateScheduledTaskRequest
|
|
18040
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18041
|
+
* @return CreateScheduledTaskResponse
|
|
17704
18042
|
*/
|
|
17705
18043
|
async createScheduledTaskWithOptions(request: CreateScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateScheduledTaskResponse> {
|
|
17706
18044
|
Util.validateModel(request);
|
|
@@ -17791,21 +18129,32 @@ export default class Client extends OpenApi {
|
|
|
17791
18129
|
}
|
|
17792
18130
|
|
|
17793
18131
|
/**
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
18132
|
+
* @summary Creates a scheduled task. A scheduled task is a type of scaling task that enables automatic execution of a specific scaling rule at a specified point in time. You can call the CreateScheduledTask operation to create a scheduled task to implement automatic scaling of computing resources. This ensures your business continuity and minimizes resource costs.
|
|
18133
|
+
*
|
|
18134
|
+
* @description * 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.
|
|
18135
|
+
* * 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.``
|
|
18136
|
+
* * A scheduled task supports the following scaling methods:
|
|
18137
|
+
* * `ScheduledAction`: Specify an existing scaling rule that you want Auto Scaling to execute when the scheduled task is triggered.
|
|
18138
|
+
* * `ScalingGroupId`: Specify the minimum number, maximum number, or expected number of instances for the scaling group for which you created the scheduled task.
|
|
18139
|
+
* > You cannot specify the `ScheduledAction` and ScalingGroupId parameters at the same time.
|
|
18140
|
+
*
|
|
18141
|
+
* @param request CreateScheduledTaskRequest
|
|
18142
|
+
* @return CreateScheduledTaskResponse
|
|
17803
18143
|
*/
|
|
17804
18144
|
async createScheduledTask(request: CreateScheduledTaskRequest): Promise<CreateScheduledTaskResponse> {
|
|
17805
18145
|
let runtime = new $Util.RuntimeOptions({ });
|
|
17806
18146
|
return await this.createScheduledTaskWithOptions(request, runtime);
|
|
17807
18147
|
}
|
|
17808
18148
|
|
|
18149
|
+
/**
|
|
18150
|
+
* @summary Deactivates a scaling configuration.
|
|
18151
|
+
*
|
|
18152
|
+
* @description * You can call this operation to deactivate a scaling configuration only in a disabled scaling group.
|
|
18153
|
+
*
|
|
18154
|
+
* @param request DeactivateScalingConfigurationRequest
|
|
18155
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18156
|
+
* @return DeactivateScalingConfigurationResponse
|
|
18157
|
+
*/
|
|
17809
18158
|
async deactivateScalingConfigurationWithOptions(request: DeactivateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeactivateScalingConfigurationResponse> {
|
|
17810
18159
|
Util.validateModel(request);
|
|
17811
18160
|
let query = { };
|
|
@@ -17842,11 +18191,26 @@ export default class Client extends OpenApi {
|
|
|
17842
18191
|
return $tea.cast<DeactivateScalingConfigurationResponse>(await this.callApi(params, req, runtime), new DeactivateScalingConfigurationResponse({}));
|
|
17843
18192
|
}
|
|
17844
18193
|
|
|
18194
|
+
/**
|
|
18195
|
+
* @summary Deactivates a scaling configuration.
|
|
18196
|
+
*
|
|
18197
|
+
* @description * You can call this operation to deactivate a scaling configuration only in a disabled scaling group.
|
|
18198
|
+
*
|
|
18199
|
+
* @param request DeactivateScalingConfigurationRequest
|
|
18200
|
+
* @return DeactivateScalingConfigurationResponse
|
|
18201
|
+
*/
|
|
17845
18202
|
async deactivateScalingConfiguration(request: DeactivateScalingConfigurationRequest): Promise<DeactivateScalingConfigurationResponse> {
|
|
17846
18203
|
let runtime = new $Util.RuntimeOptions({ });
|
|
17847
18204
|
return await this.deactivateScalingConfigurationWithOptions(request, runtime);
|
|
17848
18205
|
}
|
|
17849
18206
|
|
|
18207
|
+
/**
|
|
18208
|
+
* @summary Deletes an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you no longer need an event-triggered task, you can call the DeleteAlarm operation to delete it.
|
|
18209
|
+
*
|
|
18210
|
+
* @param request DeleteAlarmRequest
|
|
18211
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18212
|
+
* @return DeleteAlarmResponse
|
|
18213
|
+
*/
|
|
17850
18214
|
async deleteAlarmWithOptions(request: DeleteAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAlarmResponse> {
|
|
17851
18215
|
Util.validateModel(request);
|
|
17852
18216
|
let query = { };
|
|
@@ -17883,19 +18247,27 @@ export default class Client extends OpenApi {
|
|
|
17883
18247
|
return $tea.cast<DeleteAlarmResponse>(await this.callApi(params, req, runtime), new DeleteAlarmResponse({}));
|
|
17884
18248
|
}
|
|
17885
18249
|
|
|
18250
|
+
/**
|
|
18251
|
+
* @summary Deletes an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you no longer need an event-triggered task, you can call the DeleteAlarm operation to delete it.
|
|
18252
|
+
*
|
|
18253
|
+
* @param request DeleteAlarmRequest
|
|
18254
|
+
* @return DeleteAlarmResponse
|
|
18255
|
+
*/
|
|
17886
18256
|
async deleteAlarm(request: DeleteAlarmRequest): Promise<DeleteAlarmResponse> {
|
|
17887
18257
|
let runtime = new $Util.RuntimeOptions({ });
|
|
17888
18258
|
return await this.deleteAlarmWithOptions(request, runtime);
|
|
17889
18259
|
}
|
|
17890
18260
|
|
|
17891
18261
|
/**
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17898
|
-
|
|
18262
|
+
* @summary Deletes a scaling configuration of the Elastic Container Instance type. If the scaling configuration of a scaling group is in the Inactive state and the scaling group contains no elastic container instances created from the scaling configuration, you can call the DeleteEciScalingConfiguration operation to delete the scaling configuration to free up the scaling configuration quota.
|
|
18263
|
+
*
|
|
18264
|
+
* @description You cannot call this operation to delete a scaling configuration in the following scenarios:
|
|
18265
|
+
* * The scaling configuration is in the Active state.
|
|
18266
|
+
* * The scaling group contains elastic container instances created from the scaling configuration.
|
|
18267
|
+
*
|
|
18268
|
+
* @param request DeleteEciScalingConfigurationRequest
|
|
18269
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18270
|
+
* @return DeleteEciScalingConfigurationResponse
|
|
17899
18271
|
*/
|
|
17900
18272
|
async deleteEciScalingConfigurationWithOptions(request: DeleteEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteEciScalingConfigurationResponse> {
|
|
17901
18273
|
Util.validateModel(request);
|
|
@@ -17938,18 +18310,31 @@ export default class Client extends OpenApi {
|
|
|
17938
18310
|
}
|
|
17939
18311
|
|
|
17940
18312
|
/**
|
|
17941
|
-
|
|
17942
|
-
|
|
17943
|
-
|
|
17944
|
-
|
|
17945
|
-
|
|
17946
|
-
|
|
18313
|
+
* @summary Deletes a scaling configuration of the Elastic Container Instance type. If the scaling configuration of a scaling group is in the Inactive state and the scaling group contains no elastic container instances created from the scaling configuration, you can call the DeleteEciScalingConfiguration operation to delete the scaling configuration to free up the scaling configuration quota.
|
|
18314
|
+
*
|
|
18315
|
+
* @description You cannot call this operation to delete a scaling configuration in the following scenarios:
|
|
18316
|
+
* * The scaling configuration is in the Active state.
|
|
18317
|
+
* * The scaling group contains elastic container instances created from the scaling configuration.
|
|
18318
|
+
*
|
|
18319
|
+
* @param request DeleteEciScalingConfigurationRequest
|
|
18320
|
+
* @return DeleteEciScalingConfigurationResponse
|
|
17947
18321
|
*/
|
|
17948
18322
|
async deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse> {
|
|
17949
18323
|
let runtime = new $Util.RuntimeOptions({ });
|
|
17950
18324
|
return await this.deleteEciScalingConfigurationWithOptions(request, runtime);
|
|
17951
18325
|
}
|
|
17952
18326
|
|
|
18327
|
+
/**
|
|
18328
|
+
* @summary Deletes a lifecycle hook.
|
|
18329
|
+
*
|
|
18330
|
+
* @description If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
|
|
18331
|
+
* * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
|
|
18332
|
+
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
|
|
18333
|
+
*
|
|
18334
|
+
* @param request DeleteLifecycleHookRequest
|
|
18335
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18336
|
+
* @return DeleteLifecycleHookResponse
|
|
18337
|
+
*/
|
|
17953
18338
|
async deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse> {
|
|
17954
18339
|
Util.validateModel(request);
|
|
17955
18340
|
let query = { };
|
|
@@ -17998,11 +18383,28 @@ export default class Client extends OpenApi {
|
|
|
17998
18383
|
return $tea.cast<DeleteLifecycleHookResponse>(await this.callApi(params, req, runtime), new DeleteLifecycleHookResponse({}));
|
|
17999
18384
|
}
|
|
18000
18385
|
|
|
18386
|
+
/**
|
|
18387
|
+
* @summary Deletes a lifecycle hook.
|
|
18388
|
+
*
|
|
18389
|
+
* @description If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
|
|
18390
|
+
* * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
|
|
18391
|
+
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
|
|
18392
|
+
*
|
|
18393
|
+
* @param request DeleteLifecycleHookRequest
|
|
18394
|
+
* @return DeleteLifecycleHookResponse
|
|
18395
|
+
*/
|
|
18001
18396
|
async deleteLifecycleHook(request: DeleteLifecycleHookRequest): Promise<DeleteLifecycleHookResponse> {
|
|
18002
18397
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18003
18398
|
return await this.deleteLifecycleHookWithOptions(request, runtime);
|
|
18004
18399
|
}
|
|
18005
18400
|
|
|
18401
|
+
/**
|
|
18402
|
+
* @summary Deletes event notification rules. The event notification feature facilitates efficient issue identification and event management by automatically forwarding notifications from Auto Scaling to designated endpoints such as CloudMonitor or Message Service (MNS) topics and queues. If you no longer require an event notification rule, you can call the DeleteNotificationConfiguration operation to delete it.
|
|
18403
|
+
*
|
|
18404
|
+
* @param request DeleteNotificationConfigurationRequest
|
|
18405
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18406
|
+
* @return DeleteNotificationConfigurationResponse
|
|
18407
|
+
*/
|
|
18006
18408
|
async deleteNotificationConfigurationWithOptions(request: DeleteNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNotificationConfigurationResponse> {
|
|
18007
18409
|
Util.validateModel(request);
|
|
18008
18410
|
let query = { };
|
|
@@ -18043,19 +18445,27 @@ export default class Client extends OpenApi {
|
|
|
18043
18445
|
return $tea.cast<DeleteNotificationConfigurationResponse>(await this.callApi(params, req, runtime), new DeleteNotificationConfigurationResponse({}));
|
|
18044
18446
|
}
|
|
18045
18447
|
|
|
18448
|
+
/**
|
|
18449
|
+
* @summary Deletes event notification rules. The event notification feature facilitates efficient issue identification and event management by automatically forwarding notifications from Auto Scaling to designated endpoints such as CloudMonitor or Message Service (MNS) topics and queues. If you no longer require an event notification rule, you can call the DeleteNotificationConfiguration operation to delete it.
|
|
18450
|
+
*
|
|
18451
|
+
* @param request DeleteNotificationConfigurationRequest
|
|
18452
|
+
* @return DeleteNotificationConfigurationResponse
|
|
18453
|
+
*/
|
|
18046
18454
|
async deleteNotificationConfiguration(request: DeleteNotificationConfigurationRequest): Promise<DeleteNotificationConfigurationResponse> {
|
|
18047
18455
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18048
18456
|
return await this.deleteNotificationConfigurationWithOptions(request, runtime);
|
|
18049
18457
|
}
|
|
18050
18458
|
|
|
18051
18459
|
/**
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
|
-
|
|
18058
|
-
|
|
18460
|
+
* @summary Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
18461
|
+
*
|
|
18462
|
+
* @description You cannot delete a scaling configuration in one of the following scenarios:
|
|
18463
|
+
* * The scaling configuration in your scaling group is in the Active state.
|
|
18464
|
+
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
18465
|
+
*
|
|
18466
|
+
* @param request DeleteScalingConfigurationRequest
|
|
18467
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18468
|
+
* @return DeleteScalingConfigurationResponse
|
|
18059
18469
|
*/
|
|
18060
18470
|
async deleteScalingConfigurationWithOptions(request: DeleteScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingConfigurationResponse> {
|
|
18061
18471
|
Util.validateModel(request);
|
|
@@ -18094,18 +18504,38 @@ export default class Client extends OpenApi {
|
|
|
18094
18504
|
}
|
|
18095
18505
|
|
|
18096
18506
|
/**
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
|
|
18507
|
+
* @summary Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
|
|
18508
|
+
*
|
|
18509
|
+
* @description You cannot delete a scaling configuration in one of the following scenarios:
|
|
18510
|
+
* * The scaling configuration in your scaling group is in the Active state.
|
|
18511
|
+
* * The scaling group contains ECS instances that were created based on the scaling configuration.
|
|
18512
|
+
*
|
|
18513
|
+
* @param request DeleteScalingConfigurationRequest
|
|
18514
|
+
* @return DeleteScalingConfigurationResponse
|
|
18103
18515
|
*/
|
|
18104
18516
|
async deleteScalingConfiguration(request: DeleteScalingConfigurationRequest): Promise<DeleteScalingConfigurationResponse> {
|
|
18105
18517
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18106
18518
|
return await this.deleteScalingConfigurationWithOptions(request, runtime);
|
|
18107
18519
|
}
|
|
18108
18520
|
|
|
18521
|
+
/**
|
|
18522
|
+
* @summary Deletes a scaling group. If you want to enable policy-based automatic addition or removal of instances of a specific type to meet evolving business requirements, you can create scaling groups to manage your computing power with ease. The computing power refers to the instances that provide the computing capability. If you no longer require a scaling group, you can call the DeleteScalingGroup operation to delete it to free up the scaling group quota.
|
|
18523
|
+
*
|
|
18524
|
+
* @description Before you call the DeleteScalingGroup operation, take note of the following items:
|
|
18525
|
+
* * If you delete a scaling group, the scaling configurations, scaling rules, scaling activities, and scaling requests related to the scaling group are also deleted.
|
|
18526
|
+
* * If you delete a scaling group, the scheduled tasks and event-triggered tasks of the scaling group are not deleted. The Server Load Balancer (SLB) instances and ApsaraDB RDS instances that are attached to the scaling group are also not deleted.
|
|
18527
|
+
* * If the scaling group that you want to delete contains ECS instances or elastic container instances that are in the In Service state, Auto Scaling stops the instances and then removes all manually added instances from the scaling group or releases all automatically created instances in the scaling group before the scaling group is deleted.
|
|
18528
|
+
* **
|
|
18529
|
+
* **Note** Before you delete a scaling group, make sure that the Deletion Protection feature is disabled. If you have enabled the Deletion Protection feature for a scaling group, disable the feature on the Modify Scaling Group page before you delete the scaling group.
|
|
18530
|
+
* * If you do not disable the Deletion Protection feature for a scaling group, you cannot delete the scaling group by using the Auto Scaling console or calling this operation. The Deletion Protection feature is an effective measure to safeguard scaling groups against unintended deletion.
|
|
18531
|
+
* * Prior to deleting a scaling group, make sure that your ECS instances within the scaling group are safeguarded against unintended release. Even if you have already enabled the Release Protection feature for the ECS instances, you must manually put these ECS instances into the Protected state. Doing so guarantees that the ECS instances will not be forcibly released during the deletion process of the scaling group, providing an extra layer of security.
|
|
18532
|
+
* **
|
|
18533
|
+
* **Note** Before you delete a scaling group, we recommend that you enable the Deletion Protection feature for ECS instances that you want to retain. This action guarantees that the ECS instances are not forcibly released after you delete the scaling group. For more information, see [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).
|
|
18534
|
+
*
|
|
18535
|
+
* @param request DeleteScalingGroupRequest
|
|
18536
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18537
|
+
* @return DeleteScalingGroupResponse
|
|
18538
|
+
*/
|
|
18109
18539
|
async deleteScalingGroupWithOptions(request: DeleteScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingGroupResponse> {
|
|
18110
18540
|
Util.validateModel(request);
|
|
18111
18541
|
let query = { };
|
|
@@ -18150,11 +18580,35 @@ export default class Client extends OpenApi {
|
|
|
18150
18580
|
return $tea.cast<DeleteScalingGroupResponse>(await this.callApi(params, req, runtime), new DeleteScalingGroupResponse({}));
|
|
18151
18581
|
}
|
|
18152
18582
|
|
|
18583
|
+
/**
|
|
18584
|
+
* @summary Deletes a scaling group. If you want to enable policy-based automatic addition or removal of instances of a specific type to meet evolving business requirements, you can create scaling groups to manage your computing power with ease. The computing power refers to the instances that provide the computing capability. If you no longer require a scaling group, you can call the DeleteScalingGroup operation to delete it to free up the scaling group quota.
|
|
18585
|
+
*
|
|
18586
|
+
* @description Before you call the DeleteScalingGroup operation, take note of the following items:
|
|
18587
|
+
* * If you delete a scaling group, the scaling configurations, scaling rules, scaling activities, and scaling requests related to the scaling group are also deleted.
|
|
18588
|
+
* * If you delete a scaling group, the scheduled tasks and event-triggered tasks of the scaling group are not deleted. The Server Load Balancer (SLB) instances and ApsaraDB RDS instances that are attached to the scaling group are also not deleted.
|
|
18589
|
+
* * If the scaling group that you want to delete contains ECS instances or elastic container instances that are in the In Service state, Auto Scaling stops the instances and then removes all manually added instances from the scaling group or releases all automatically created instances in the scaling group before the scaling group is deleted.
|
|
18590
|
+
* **
|
|
18591
|
+
* **Note** Before you delete a scaling group, make sure that the Deletion Protection feature is disabled. If you have enabled the Deletion Protection feature for a scaling group, disable the feature on the Modify Scaling Group page before you delete the scaling group.
|
|
18592
|
+
* * If you do not disable the Deletion Protection feature for a scaling group, you cannot delete the scaling group by using the Auto Scaling console or calling this operation. The Deletion Protection feature is an effective measure to safeguard scaling groups against unintended deletion.
|
|
18593
|
+
* * Prior to deleting a scaling group, make sure that your ECS instances within the scaling group are safeguarded against unintended release. Even if you have already enabled the Release Protection feature for the ECS instances, you must manually put these ECS instances into the Protected state. Doing so guarantees that the ECS instances will not be forcibly released during the deletion process of the scaling group, providing an extra layer of security.
|
|
18594
|
+
* **
|
|
18595
|
+
* **Note** Before you delete a scaling group, we recommend that you enable the Deletion Protection feature for ECS instances that you want to retain. This action guarantees that the ECS instances are not forcibly released after you delete the scaling group. For more information, see [SetInstancesProtection](https://help.aliyun.com/document_detail/459342.html).
|
|
18596
|
+
*
|
|
18597
|
+
* @param request DeleteScalingGroupRequest
|
|
18598
|
+
* @return DeleteScalingGroupResponse
|
|
18599
|
+
*/
|
|
18153
18600
|
async deleteScalingGroup(request: DeleteScalingGroupRequest): Promise<DeleteScalingGroupResponse> {
|
|
18154
18601
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18155
18602
|
return await this.deleteScalingGroupWithOptions(request, runtime);
|
|
18156
18603
|
}
|
|
18157
18604
|
|
|
18605
|
+
/**
|
|
18606
|
+
* @summary Deletes a scaling rule.
|
|
18607
|
+
*
|
|
18608
|
+
* @param request DeleteScalingRuleRequest
|
|
18609
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18610
|
+
* @return DeleteScalingRuleResponse
|
|
18611
|
+
*/
|
|
18158
18612
|
async deleteScalingRuleWithOptions(request: DeleteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingRuleResponse> {
|
|
18159
18613
|
Util.validateModel(request);
|
|
18160
18614
|
let query = { };
|
|
@@ -18195,11 +18649,24 @@ export default class Client extends OpenApi {
|
|
|
18195
18649
|
return $tea.cast<DeleteScalingRuleResponse>(await this.callApi(params, req, runtime), new DeleteScalingRuleResponse({}));
|
|
18196
18650
|
}
|
|
18197
18651
|
|
|
18652
|
+
/**
|
|
18653
|
+
* @summary Deletes a scaling rule.
|
|
18654
|
+
*
|
|
18655
|
+
* @param request DeleteScalingRuleRequest
|
|
18656
|
+
* @return DeleteScalingRuleResponse
|
|
18657
|
+
*/
|
|
18198
18658
|
async deleteScalingRule(request: DeleteScalingRuleRequest): Promise<DeleteScalingRuleResponse> {
|
|
18199
18659
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18200
18660
|
return await this.deleteScalingRuleWithOptions(request, runtime);
|
|
18201
18661
|
}
|
|
18202
18662
|
|
|
18663
|
+
/**
|
|
18664
|
+
* @summary Deletes scheduled tasks. For workloads with predictable patterns, you can create scheduled tasks to align with your business requirements and optimize resource utilization for cost savings. These tasks automatically ensure that sufficient computing resources are provisioned in anticipation of peak hours and efficiently release unused resources during off-peak hours, thereby streamlining operational efficiency and reducing expenses. If you no longer require a scheduled task, you can call the DeleteScheduledTask operation to delete it.
|
|
18665
|
+
*
|
|
18666
|
+
* @param request DeleteScheduledTaskRequest
|
|
18667
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18668
|
+
* @return DeleteScheduledTaskResponse
|
|
18669
|
+
*/
|
|
18203
18670
|
async deleteScheduledTaskWithOptions(request: DeleteScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScheduledTaskResponse> {
|
|
18204
18671
|
Util.validateModel(request);
|
|
18205
18672
|
let query = { };
|
|
@@ -18240,11 +18707,24 @@ export default class Client extends OpenApi {
|
|
|
18240
18707
|
return $tea.cast<DeleteScheduledTaskResponse>(await this.callApi(params, req, runtime), new DeleteScheduledTaskResponse({}));
|
|
18241
18708
|
}
|
|
18242
18709
|
|
|
18710
|
+
/**
|
|
18711
|
+
* @summary Deletes scheduled tasks. For workloads with predictable patterns, you can create scheduled tasks to align with your business requirements and optimize resource utilization for cost savings. These tasks automatically ensure that sufficient computing resources are provisioned in anticipation of peak hours and efficiently release unused resources during off-peak hours, thereby streamlining operational efficiency and reducing expenses. If you no longer require a scheduled task, you can call the DeleteScheduledTask operation to delete it.
|
|
18712
|
+
*
|
|
18713
|
+
* @param request DeleteScheduledTaskRequest
|
|
18714
|
+
* @return DeleteScheduledTaskResponse
|
|
18715
|
+
*/
|
|
18243
18716
|
async deleteScheduledTask(request: DeleteScheduledTaskRequest): Promise<DeleteScheduledTaskResponse> {
|
|
18244
18717
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18245
18718
|
return await this.deleteScheduledTaskWithOptions(request, runtime);
|
|
18246
18719
|
}
|
|
18247
18720
|
|
|
18721
|
+
/**
|
|
18722
|
+
* @summary Queries event-triggered tasks.
|
|
18723
|
+
*
|
|
18724
|
+
* @param request DescribeAlarmsRequest
|
|
18725
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18726
|
+
* @return DescribeAlarmsResponse
|
|
18727
|
+
*/
|
|
18248
18728
|
async describeAlarmsWithOptions(request: DescribeAlarmsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAlarmsResponse> {
|
|
18249
18729
|
Util.validateModel(request);
|
|
18250
18730
|
let query = { };
|
|
@@ -18309,11 +18789,24 @@ export default class Client extends OpenApi {
|
|
|
18309
18789
|
return $tea.cast<DescribeAlarmsResponse>(await this.callApi(params, req, runtime), new DescribeAlarmsResponse({}));
|
|
18310
18790
|
}
|
|
18311
18791
|
|
|
18792
|
+
/**
|
|
18793
|
+
* @summary Queries event-triggered tasks.
|
|
18794
|
+
*
|
|
18795
|
+
* @param request DescribeAlarmsRequest
|
|
18796
|
+
* @return DescribeAlarmsResponse
|
|
18797
|
+
*/
|
|
18312
18798
|
async describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse> {
|
|
18313
18799
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18314
18800
|
return await this.describeAlarmsWithOptions(request, runtime);
|
|
18315
18801
|
}
|
|
18316
18802
|
|
|
18803
|
+
/**
|
|
18804
|
+
* @summary Queries scaling configurations of the Elastic Container Instance type to learn the scaling configuration details. This allows you to select an appropriate template when you create elastic container instances. If you set OutputFormat to yaml, the output is a Kubernetes Deployment file in the YAML format.
|
|
18805
|
+
*
|
|
18806
|
+
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
18807
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18808
|
+
* @return DescribeEciScalingConfigurationDetailResponse
|
|
18809
|
+
*/
|
|
18317
18810
|
async describeEciScalingConfigurationDetailWithOptions(request: DescribeEciScalingConfigurationDetailRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationDetailResponse> {
|
|
18318
18811
|
Util.validateModel(request);
|
|
18319
18812
|
let query = { };
|
|
@@ -18350,11 +18843,24 @@ export default class Client extends OpenApi {
|
|
|
18350
18843
|
return $tea.cast<DescribeEciScalingConfigurationDetailResponse>(await this.callApi(params, req, runtime), new DescribeEciScalingConfigurationDetailResponse({}));
|
|
18351
18844
|
}
|
|
18352
18845
|
|
|
18846
|
+
/**
|
|
18847
|
+
* @summary Queries scaling configurations of the Elastic Container Instance type to learn the scaling configuration details. This allows you to select an appropriate template when you create elastic container instances. If you set OutputFormat to yaml, the output is a Kubernetes Deployment file in the YAML format.
|
|
18848
|
+
*
|
|
18849
|
+
* @param request DescribeEciScalingConfigurationDetailRequest
|
|
18850
|
+
* @return DescribeEciScalingConfigurationDetailResponse
|
|
18851
|
+
*/
|
|
18353
18852
|
async describeEciScalingConfigurationDetail(request: DescribeEciScalingConfigurationDetailRequest): Promise<DescribeEciScalingConfigurationDetailResponse> {
|
|
18354
18853
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18355
18854
|
return await this.describeEciScalingConfigurationDetailWithOptions(request, runtime);
|
|
18356
18855
|
}
|
|
18357
18856
|
|
|
18857
|
+
/**
|
|
18858
|
+
* @summary Queries scaling configurations of the Elastic Container Instance type to learn the scaling configuration details. This allows you to select an appropriate template when you create elastic container instances.
|
|
18859
|
+
*
|
|
18860
|
+
* @param request DescribeEciScalingConfigurationsRequest
|
|
18861
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18862
|
+
* @return DescribeEciScalingConfigurationsResponse
|
|
18863
|
+
*/
|
|
18358
18864
|
async describeEciScalingConfigurationsWithOptions(request: DescribeEciScalingConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationsResponse> {
|
|
18359
18865
|
Util.validateModel(request);
|
|
18360
18866
|
let query = { };
|
|
@@ -18415,21 +18921,29 @@ export default class Client extends OpenApi {
|
|
|
18415
18921
|
return $tea.cast<DescribeEciScalingConfigurationsResponse>(await this.callApi(params, req, runtime), new DescribeEciScalingConfigurationsResponse({}));
|
|
18416
18922
|
}
|
|
18417
18923
|
|
|
18924
|
+
/**
|
|
18925
|
+
* @summary Queries scaling configurations of the Elastic Container Instance type to learn the scaling configuration details. This allows you to select an appropriate template when you create elastic container instances.
|
|
18926
|
+
*
|
|
18927
|
+
* @param request DescribeEciScalingConfigurationsRequest
|
|
18928
|
+
* @return DescribeEciScalingConfigurationsResponse
|
|
18929
|
+
*/
|
|
18418
18930
|
async describeEciScalingConfigurations(request: DescribeEciScalingConfigurationsRequest): Promise<DescribeEciScalingConfigurationsResponse> {
|
|
18419
18931
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18420
18932
|
return await this.describeEciScalingConfigurationsWithOptions(request, runtime);
|
|
18421
18933
|
}
|
|
18422
18934
|
|
|
18423
18935
|
/**
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18936
|
+
* @summary Queries lifecycle actions.
|
|
18937
|
+
*
|
|
18938
|
+
* @description 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:
|
|
18939
|
+
* * 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.
|
|
18940
|
+
* * 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.
|
|
18941
|
+
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
18942
|
+
* 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.
|
|
18943
|
+
*
|
|
18944
|
+
* @param request DescribeLifecycleActionsRequest
|
|
18945
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
18946
|
+
* @return DescribeLifecycleActionsResponse
|
|
18433
18947
|
*/
|
|
18434
18948
|
async describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse> {
|
|
18435
18949
|
Util.validateModel(request);
|
|
@@ -18480,20 +18994,34 @@ export default class Client extends OpenApi {
|
|
|
18480
18994
|
}
|
|
18481
18995
|
|
|
18482
18996
|
/**
|
|
18483
|
-
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
|
|
18997
|
+
* @summary Queries lifecycle actions.
|
|
18998
|
+
*
|
|
18999
|
+
* @description 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:
|
|
19000
|
+
* * 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.
|
|
19001
|
+
* * 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.
|
|
19002
|
+
* * If a lifecycle action is in the Completed state, you manually end the lifecycle hook that triggers the lifecycle action ahead of schedule.
|
|
19003
|
+
* 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.
|
|
19004
|
+
*
|
|
19005
|
+
* @param request DescribeLifecycleActionsRequest
|
|
19006
|
+
* @return DescribeLifecycleActionsResponse
|
|
18491
19007
|
*/
|
|
18492
19008
|
async describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse> {
|
|
18493
19009
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18494
19010
|
return await this.describeLifecycleActionsWithOptions(request, runtime);
|
|
18495
19011
|
}
|
|
18496
19012
|
|
|
19013
|
+
/**
|
|
19014
|
+
* @summary Queries lifecycle hooks.
|
|
19015
|
+
*
|
|
19016
|
+
* @description You can use one of the following methods to query lifecycle hooks:
|
|
19017
|
+
* * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
|
|
19018
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
19019
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
19020
|
+
*
|
|
19021
|
+
* @param request DescribeLifecycleHooksRequest
|
|
19022
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19023
|
+
* @return DescribeLifecycleHooksResponse
|
|
19024
|
+
*/
|
|
18497
19025
|
async describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse> {
|
|
18498
19026
|
Util.validateModel(request);
|
|
18499
19027
|
let query = { };
|
|
@@ -18550,11 +19078,29 @@ export default class Client extends OpenApi {
|
|
|
18550
19078
|
return $tea.cast<DescribeLifecycleHooksResponse>(await this.callApi(params, req, runtime), new DescribeLifecycleHooksResponse({}));
|
|
18551
19079
|
}
|
|
18552
19080
|
|
|
19081
|
+
/**
|
|
19082
|
+
* @summary Queries lifecycle hooks.
|
|
19083
|
+
*
|
|
19084
|
+
* @description You can use one of the following methods to query lifecycle hooks:
|
|
19085
|
+
* * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
|
|
19086
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter.
|
|
19087
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
|
|
19088
|
+
*
|
|
19089
|
+
* @param request DescribeLifecycleHooksRequest
|
|
19090
|
+
* @return DescribeLifecycleHooksResponse
|
|
19091
|
+
*/
|
|
18553
19092
|
async describeLifecycleHooks(request: DescribeLifecycleHooksRequest): Promise<DescribeLifecycleHooksResponse> {
|
|
18554
19093
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18555
19094
|
return await this.describeLifecycleHooksWithOptions(request, runtime);
|
|
18556
19095
|
}
|
|
18557
19096
|
|
|
19097
|
+
/**
|
|
19098
|
+
* @summary Queries resource quotas. You can call the DescribeLimitation operation to query the upper limits on resources such as scheduled tasks that can be created in a scaling group, load balancers that can be attached to a scaling group, instances that can be contained in a scaling group, and scaling configurations that can be created in a scaling group.
|
|
19099
|
+
*
|
|
19100
|
+
* @param request DescribeLimitationRequest
|
|
19101
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19102
|
+
* @return DescribeLimitationResponse
|
|
19103
|
+
*/
|
|
18558
19104
|
async describeLimitationWithOptions(request: DescribeLimitationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLimitationResponse> {
|
|
18559
19105
|
Util.validateModel(request);
|
|
18560
19106
|
let query = { };
|
|
@@ -18583,11 +19129,24 @@ export default class Client extends OpenApi {
|
|
|
18583
19129
|
return $tea.cast<DescribeLimitationResponse>(await this.callApi(params, req, runtime), new DescribeLimitationResponse({}));
|
|
18584
19130
|
}
|
|
18585
19131
|
|
|
19132
|
+
/**
|
|
19133
|
+
* @summary Queries resource quotas. You can call the DescribeLimitation operation to query the upper limits on resources such as scheduled tasks that can be created in a scaling group, load balancers that can be attached to a scaling group, instances that can be contained in a scaling group, and scaling configurations that can be created in a scaling group.
|
|
19134
|
+
*
|
|
19135
|
+
* @param request DescribeLimitationRequest
|
|
19136
|
+
* @return DescribeLimitationResponse
|
|
19137
|
+
*/
|
|
18586
19138
|
async describeLimitation(request: DescribeLimitationRequest): Promise<DescribeLimitationResponse> {
|
|
18587
19139
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18588
19140
|
return await this.describeLimitationWithOptions(request, runtime);
|
|
18589
19141
|
}
|
|
18590
19142
|
|
|
19143
|
+
/**
|
|
19144
|
+
* @summary Queries event notifications.
|
|
19145
|
+
*
|
|
19146
|
+
* @param request DescribeNotificationConfigurationsRequest
|
|
19147
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19148
|
+
* @return DescribeNotificationConfigurationsResponse
|
|
19149
|
+
*/
|
|
18591
19150
|
async describeNotificationConfigurationsWithOptions(request: DescribeNotificationConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeNotificationConfigurationsResponse> {
|
|
18592
19151
|
Util.validateModel(request);
|
|
18593
19152
|
let query = { };
|
|
@@ -18624,11 +19183,24 @@ export default class Client extends OpenApi {
|
|
|
18624
19183
|
return $tea.cast<DescribeNotificationConfigurationsResponse>(await this.callApi(params, req, runtime), new DescribeNotificationConfigurationsResponse({}));
|
|
18625
19184
|
}
|
|
18626
19185
|
|
|
19186
|
+
/**
|
|
19187
|
+
* @summary Queries event notifications.
|
|
19188
|
+
*
|
|
19189
|
+
* @param request DescribeNotificationConfigurationsRequest
|
|
19190
|
+
* @return DescribeNotificationConfigurationsResponse
|
|
19191
|
+
*/
|
|
18627
19192
|
async describeNotificationConfigurations(request: DescribeNotificationConfigurationsRequest): Promise<DescribeNotificationConfigurationsResponse> {
|
|
18628
19193
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18629
19194
|
return await this.describeNotificationConfigurationsWithOptions(request, runtime);
|
|
18630
19195
|
}
|
|
18631
19196
|
|
|
19197
|
+
/**
|
|
19198
|
+
* @summary Queries notification types.
|
|
19199
|
+
*
|
|
19200
|
+
* @param request DescribeNotificationTypesRequest
|
|
19201
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19202
|
+
* @return DescribeNotificationTypesResponse
|
|
19203
|
+
*/
|
|
18632
19204
|
async describeNotificationTypesWithOptions(request: DescribeNotificationTypesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeNotificationTypesResponse> {
|
|
18633
19205
|
Util.validateModel(request);
|
|
18634
19206
|
let query = { };
|
|
@@ -18657,11 +19229,62 @@ export default class Client extends OpenApi {
|
|
|
18657
19229
|
return $tea.cast<DescribeNotificationTypesResponse>(await this.callApi(params, req, runtime), new DescribeNotificationTypesResponse({}));
|
|
18658
19230
|
}
|
|
18659
19231
|
|
|
19232
|
+
/**
|
|
19233
|
+
* @summary Queries notification types.
|
|
19234
|
+
*
|
|
19235
|
+
* @param request DescribeNotificationTypesRequest
|
|
19236
|
+
* @return DescribeNotificationTypesResponse
|
|
19237
|
+
*/
|
|
18660
19238
|
async describeNotificationTypes(request: DescribeNotificationTypesRequest): Promise<DescribeNotificationTypesResponse> {
|
|
18661
19239
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18662
19240
|
return await this.describeNotificationTypesWithOptions(request, runtime);
|
|
18663
19241
|
}
|
|
18664
19242
|
|
|
19243
|
+
/**
|
|
19244
|
+
* @summary DescribePatternTypes
|
|
19245
|
+
*
|
|
19246
|
+
* @param request DescribePatternTypesRequest
|
|
19247
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19248
|
+
* @return DescribePatternTypesResponse
|
|
19249
|
+
*/
|
|
19250
|
+
async describePatternTypesWithOptions(request: DescribePatternTypesRequest, runtime: $Util.RuntimeOptions): Promise<DescribePatternTypesResponse> {
|
|
19251
|
+
Util.validateModel(request);
|
|
19252
|
+
let query = OpenApiUtil.query(Util.toMap(request));
|
|
19253
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19254
|
+
query: OpenApiUtil.query(query),
|
|
19255
|
+
});
|
|
19256
|
+
let params = new $OpenApi.Params({
|
|
19257
|
+
action: "DescribePatternTypes",
|
|
19258
|
+
version: "2022-02-22",
|
|
19259
|
+
protocol: "HTTPS",
|
|
19260
|
+
pathname: "/",
|
|
19261
|
+
method: "GET",
|
|
19262
|
+
authType: "AK",
|
|
19263
|
+
style: "RPC",
|
|
19264
|
+
reqBodyType: "formData",
|
|
19265
|
+
bodyType: "json",
|
|
19266
|
+
});
|
|
19267
|
+
return $tea.cast<DescribePatternTypesResponse>(await this.callApi(params, req, runtime), new DescribePatternTypesResponse({}));
|
|
19268
|
+
}
|
|
19269
|
+
|
|
19270
|
+
/**
|
|
19271
|
+
* @summary DescribePatternTypes
|
|
19272
|
+
*
|
|
19273
|
+
* @param request DescribePatternTypesRequest
|
|
19274
|
+
* @return DescribePatternTypesResponse
|
|
19275
|
+
*/
|
|
19276
|
+
async describePatternTypes(request: DescribePatternTypesRequest): Promise<DescribePatternTypesResponse> {
|
|
19277
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
19278
|
+
return await this.describePatternTypesWithOptions(request, runtime);
|
|
19279
|
+
}
|
|
19280
|
+
|
|
19281
|
+
/**
|
|
19282
|
+
* @summary Queries regions. Before you activate Auto Scaling, you can call the DescribeRegions operation to query the regions where Auto Scaling is officially launched. This preliminary step facilitates the strategic selection of both the optimal region and availability zones for activating Auto Scaling, thereby guaranteeing the finest access speeds and operational efficiency within your chosen geographical area.
|
|
19283
|
+
*
|
|
19284
|
+
* @param request DescribeRegionsRequest
|
|
19285
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19286
|
+
* @return DescribeRegionsResponse
|
|
19287
|
+
*/
|
|
18665
19288
|
async describeRegionsWithOptions(request: DescribeRegionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRegionsResponse> {
|
|
18666
19289
|
Util.validateModel(request);
|
|
18667
19290
|
let query = { };
|
|
@@ -18698,19 +19321,27 @@ export default class Client extends OpenApi {
|
|
|
18698
19321
|
return $tea.cast<DescribeRegionsResponse>(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
|
|
18699
19322
|
}
|
|
18700
19323
|
|
|
19324
|
+
/**
|
|
19325
|
+
* @summary Queries regions. Before you activate Auto Scaling, you can call the DescribeRegions operation to query the regions where Auto Scaling is officially launched. This preliminary step facilitates the strategic selection of both the optimal region and availability zones for activating Auto Scaling, thereby guaranteeing the finest access speeds and operational efficiency within your chosen geographical area.
|
|
19326
|
+
*
|
|
19327
|
+
* @param request DescribeRegionsRequest
|
|
19328
|
+
* @return DescribeRegionsResponse
|
|
19329
|
+
*/
|
|
18701
19330
|
async describeRegions(request: DescribeRegionsRequest): Promise<DescribeRegionsResponse> {
|
|
18702
19331
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18703
19332
|
return await this.describeRegionsWithOptions(request, runtime);
|
|
18704
19333
|
}
|
|
18705
19334
|
|
|
18706
19335
|
/**
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
19336
|
+
* @summary Queries scaling activities.
|
|
19337
|
+
*
|
|
19338
|
+
* @description You can specify a scaling group ID to query all scaling activities in the scaling group.
|
|
19339
|
+
* You can filter query results based on the status of scaling activities.
|
|
19340
|
+
* You can query scaling activities that are executed in the previous 30 days.
|
|
19341
|
+
*
|
|
19342
|
+
* @param request DescribeScalingActivitiesRequest
|
|
19343
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19344
|
+
* @return DescribeScalingActivitiesResponse
|
|
18714
19345
|
*/
|
|
18715
19346
|
async describeScalingActivitiesWithOptions(request: DescribeScalingActivitiesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingActivitiesResponse> {
|
|
18716
19347
|
Util.validateModel(request);
|
|
@@ -18773,18 +19404,27 @@ export default class Client extends OpenApi {
|
|
|
18773
19404
|
}
|
|
18774
19405
|
|
|
18775
19406
|
/**
|
|
18776
|
-
|
|
18777
|
-
|
|
18778
|
-
|
|
18779
|
-
|
|
18780
|
-
|
|
18781
|
-
|
|
19407
|
+
* @summary Queries scaling activities.
|
|
19408
|
+
*
|
|
19409
|
+
* @description You can specify a scaling group ID to query all scaling activities in the scaling group.
|
|
19410
|
+
* You can filter query results based on the status of scaling activities.
|
|
19411
|
+
* You can query scaling activities that are executed in the previous 30 days.
|
|
19412
|
+
*
|
|
19413
|
+
* @param request DescribeScalingActivitiesRequest
|
|
19414
|
+
* @return DescribeScalingActivitiesResponse
|
|
18782
19415
|
*/
|
|
18783
19416
|
async describeScalingActivities(request: DescribeScalingActivitiesRequest): Promise<DescribeScalingActivitiesResponse> {
|
|
18784
19417
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18785
19418
|
return await this.describeScalingActivitiesWithOptions(request, runtime);
|
|
18786
19419
|
}
|
|
18787
19420
|
|
|
19421
|
+
/**
|
|
19422
|
+
* @summary Queries the details about a scaling activity.
|
|
19423
|
+
*
|
|
19424
|
+
* @param request DescribeScalingActivityDetailRequest
|
|
19425
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19426
|
+
* @return DescribeScalingActivityDetailResponse
|
|
19427
|
+
*/
|
|
18788
19428
|
async describeScalingActivityDetailWithOptions(request: DescribeScalingActivityDetailRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingActivityDetailResponse> {
|
|
18789
19429
|
Util.validateModel(request);
|
|
18790
19430
|
let query = { };
|
|
@@ -18821,11 +19461,24 @@ export default class Client extends OpenApi {
|
|
|
18821
19461
|
return $tea.cast<DescribeScalingActivityDetailResponse>(await this.callApi(params, req, runtime), new DescribeScalingActivityDetailResponse({}));
|
|
18822
19462
|
}
|
|
18823
19463
|
|
|
19464
|
+
/**
|
|
19465
|
+
* @summary Queries the details about a scaling activity.
|
|
19466
|
+
*
|
|
19467
|
+
* @param request DescribeScalingActivityDetailRequest
|
|
19468
|
+
* @return DescribeScalingActivityDetailResponse
|
|
19469
|
+
*/
|
|
18824
19470
|
async describeScalingActivityDetail(request: DescribeScalingActivityDetailRequest): Promise<DescribeScalingActivityDetailResponse> {
|
|
18825
19471
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18826
19472
|
return await this.describeScalingActivityDetailWithOptions(request, runtime);
|
|
18827
19473
|
}
|
|
18828
19474
|
|
|
19475
|
+
/**
|
|
19476
|
+
* @summary Queries scaling configurations.
|
|
19477
|
+
*
|
|
19478
|
+
* @param request DescribeScalingConfigurationsRequest
|
|
19479
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19480
|
+
* @return DescribeScalingConfigurationsResponse
|
|
19481
|
+
*/
|
|
18829
19482
|
async describeScalingConfigurationsWithOptions(request: DescribeScalingConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingConfigurationsResponse> {
|
|
18830
19483
|
Util.validateModel(request);
|
|
18831
19484
|
let query = { };
|
|
@@ -18886,11 +19539,24 @@ export default class Client extends OpenApi {
|
|
|
18886
19539
|
return $tea.cast<DescribeScalingConfigurationsResponse>(await this.callApi(params, req, runtime), new DescribeScalingConfigurationsResponse({}));
|
|
18887
19540
|
}
|
|
18888
19541
|
|
|
19542
|
+
/**
|
|
19543
|
+
* @summary Queries scaling configurations.
|
|
19544
|
+
*
|
|
19545
|
+
* @param request DescribeScalingConfigurationsRequest
|
|
19546
|
+
* @return DescribeScalingConfigurationsResponse
|
|
19547
|
+
*/
|
|
18889
19548
|
async describeScalingConfigurations(request: DescribeScalingConfigurationsRequest): Promise<DescribeScalingConfigurationsResponse> {
|
|
18890
19549
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18891
19550
|
return await this.describeScalingConfigurationsWithOptions(request, runtime);
|
|
18892
19551
|
}
|
|
18893
19552
|
|
|
19553
|
+
/**
|
|
19554
|
+
* @summary Queries a scaling group. You can call the DescribeScalingGroupDetail operation to query the basic information, instances, and scaling configurations of a scaling group. If you set OutputFormat to yaml, a Kubernetes Deployment file that is in the YAML format is returned.
|
|
19555
|
+
*
|
|
19556
|
+
* @param request DescribeScalingGroupDetailRequest
|
|
19557
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19558
|
+
* @return DescribeScalingGroupDetailResponse
|
|
19559
|
+
*/
|
|
18894
19560
|
async describeScalingGroupDetailWithOptions(request: DescribeScalingGroupDetailRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingGroupDetailResponse> {
|
|
18895
19561
|
Util.validateModel(request);
|
|
18896
19562
|
let query = { };
|
|
@@ -18927,11 +19593,24 @@ export default class Client extends OpenApi {
|
|
|
18927
19593
|
return $tea.cast<DescribeScalingGroupDetailResponse>(await this.callApi(params, req, runtime), new DescribeScalingGroupDetailResponse({}));
|
|
18928
19594
|
}
|
|
18929
19595
|
|
|
19596
|
+
/**
|
|
19597
|
+
* @summary Queries a scaling group. You can call the DescribeScalingGroupDetail operation to query the basic information, instances, and scaling configurations of a scaling group. If you set OutputFormat to yaml, a Kubernetes Deployment file that is in the YAML format is returned.
|
|
19598
|
+
*
|
|
19599
|
+
* @param request DescribeScalingGroupDetailRequest
|
|
19600
|
+
* @return DescribeScalingGroupDetailResponse
|
|
19601
|
+
*/
|
|
18930
19602
|
async describeScalingGroupDetail(request: DescribeScalingGroupDetailRequest): Promise<DescribeScalingGroupDetailResponse> {
|
|
18931
19603
|
let runtime = new $Util.RuntimeOptions({ });
|
|
18932
19604
|
return await this.describeScalingGroupDetailWithOptions(request, runtime);
|
|
18933
19605
|
}
|
|
18934
19606
|
|
|
19607
|
+
/**
|
|
19608
|
+
* @summary Queries scaling groups. If you want to query the basic information, instances, and scaling configurations of a scaling group, you can call the DescribeScalingGroups operation.
|
|
19609
|
+
*
|
|
19610
|
+
* @param request DescribeScalingGroupsRequest
|
|
19611
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19612
|
+
* @return DescribeScalingGroupsResponse
|
|
19613
|
+
*/
|
|
18935
19614
|
async describeScalingGroupsWithOptions(request: DescribeScalingGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingGroupsResponse> {
|
|
18936
19615
|
Util.validateModel(request);
|
|
18937
19616
|
let query = { };
|
|
@@ -19004,11 +19683,24 @@ export default class Client extends OpenApi {
|
|
|
19004
19683
|
return $tea.cast<DescribeScalingGroupsResponse>(await this.callApi(params, req, runtime), new DescribeScalingGroupsResponse({}));
|
|
19005
19684
|
}
|
|
19006
19685
|
|
|
19686
|
+
/**
|
|
19687
|
+
* @summary Queries scaling groups. If you want to query the basic information, instances, and scaling configurations of a scaling group, you can call the DescribeScalingGroups operation.
|
|
19688
|
+
*
|
|
19689
|
+
* @param request DescribeScalingGroupsRequest
|
|
19690
|
+
* @return DescribeScalingGroupsResponse
|
|
19691
|
+
*/
|
|
19007
19692
|
async describeScalingGroups(request: DescribeScalingGroupsRequest): Promise<DescribeScalingGroupsResponse> {
|
|
19008
19693
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19009
19694
|
return await this.describeScalingGroupsWithOptions(request, runtime);
|
|
19010
19695
|
}
|
|
19011
19696
|
|
|
19697
|
+
/**
|
|
19698
|
+
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group
|
|
19699
|
+
*
|
|
19700
|
+
* @param request DescribeScalingInstancesRequest
|
|
19701
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19702
|
+
* @return DescribeScalingInstancesResponse
|
|
19703
|
+
*/
|
|
19012
19704
|
async describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse> {
|
|
19013
19705
|
Util.validateModel(request);
|
|
19014
19706
|
let query = { };
|
|
@@ -19093,17 +19785,25 @@ export default class Client extends OpenApi {
|
|
|
19093
19785
|
return $tea.cast<DescribeScalingInstancesResponse>(await this.callApi(params, req, runtime), new DescribeScalingInstancesResponse({}));
|
|
19094
19786
|
}
|
|
19095
19787
|
|
|
19788
|
+
/**
|
|
19789
|
+
* @summary Queries the Elastic Compute Service (ECS) instances in a scaling group
|
|
19790
|
+
*
|
|
19791
|
+
* @param request DescribeScalingInstancesRequest
|
|
19792
|
+
* @return DescribeScalingInstancesResponse
|
|
19793
|
+
*/
|
|
19096
19794
|
async describeScalingInstances(request: DescribeScalingInstancesRequest): Promise<DescribeScalingInstancesResponse> {
|
|
19097
19795
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19098
19796
|
return await this.describeScalingInstancesWithOptions(request, runtime);
|
|
19099
19797
|
}
|
|
19100
19798
|
|
|
19101
19799
|
/**
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19800
|
+
* @summary Queries all scaling rules in a scaling group.
|
|
19801
|
+
*
|
|
19802
|
+
* @description 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.
|
|
19803
|
+
*
|
|
19804
|
+
* @param request DescribeScalingRulesRequest
|
|
19805
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19806
|
+
* @return DescribeScalingRulesResponse
|
|
19107
19807
|
*/
|
|
19108
19808
|
async describeScalingRulesWithOptions(request: DescribeScalingRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingRulesResponse> {
|
|
19109
19809
|
Util.validateModel(request);
|
|
@@ -19178,16 +19878,27 @@ export default class Client extends OpenApi {
|
|
|
19178
19878
|
}
|
|
19179
19879
|
|
|
19180
19880
|
/**
|
|
19181
|
-
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
|
|
19881
|
+
* @summary Queries all scaling rules in a scaling group.
|
|
19882
|
+
*
|
|
19883
|
+
* @description 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.
|
|
19884
|
+
*
|
|
19885
|
+
* @param request DescribeScalingRulesRequest
|
|
19886
|
+
* @return DescribeScalingRulesResponse
|
|
19185
19887
|
*/
|
|
19186
19888
|
async describeScalingRules(request: DescribeScalingRulesRequest): Promise<DescribeScalingRulesResponse> {
|
|
19187
19889
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19188
19890
|
return await this.describeScalingRulesWithOptions(request, runtime);
|
|
19189
19891
|
}
|
|
19190
19892
|
|
|
19893
|
+
/**
|
|
19894
|
+
* @summary Queries scheduled tasks.
|
|
19895
|
+
*
|
|
19896
|
+
* @description You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
19897
|
+
*
|
|
19898
|
+
* @param request DescribeScheduledTasksRequest
|
|
19899
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19900
|
+
* @return DescribeScheduledTasksResponse
|
|
19901
|
+
*/
|
|
19191
19902
|
async describeScheduledTasksWithOptions(request: DescribeScheduledTasksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScheduledTasksResponse> {
|
|
19192
19903
|
Util.validateModel(request);
|
|
19193
19904
|
let query = { };
|
|
@@ -19252,11 +19963,26 @@ export default class Client extends OpenApi {
|
|
|
19252
19963
|
return $tea.cast<DescribeScheduledTasksResponse>(await this.callApi(params, req, runtime), new DescribeScheduledTasksResponse({}));
|
|
19253
19964
|
}
|
|
19254
19965
|
|
|
19966
|
+
/**
|
|
19967
|
+
* @summary Queries scheduled tasks.
|
|
19968
|
+
*
|
|
19969
|
+
* @description You can query scheduled tasks by scaling rule, task ID, or task name.
|
|
19970
|
+
*
|
|
19971
|
+
* @param request DescribeScheduledTasksRequest
|
|
19972
|
+
* @return DescribeScheduledTasksResponse
|
|
19973
|
+
*/
|
|
19255
19974
|
async describeScheduledTasks(request: DescribeScheduledTasksRequest): Promise<DescribeScheduledTasksResponse> {
|
|
19256
19975
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19257
19976
|
return await this.describeScheduledTasksWithOptions(request, runtime);
|
|
19258
19977
|
}
|
|
19259
19978
|
|
|
19979
|
+
/**
|
|
19980
|
+
* @summary Disassociates one or more Application Load Balancer (ALB) server groups from a scaling group.
|
|
19981
|
+
*
|
|
19982
|
+
* @param request DetachAlbServerGroupsRequest
|
|
19983
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
19984
|
+
* @return DetachAlbServerGroupsResponse
|
|
19985
|
+
*/
|
|
19260
19986
|
async detachAlbServerGroupsWithOptions(request: DetachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachAlbServerGroupsResponse> {
|
|
19261
19987
|
Util.validateModel(request);
|
|
19262
19988
|
let query = { };
|
|
@@ -19305,11 +20031,24 @@ export default class Client extends OpenApi {
|
|
|
19305
20031
|
return $tea.cast<DetachAlbServerGroupsResponse>(await this.callApi(params, req, runtime), new DetachAlbServerGroupsResponse({}));
|
|
19306
20032
|
}
|
|
19307
20033
|
|
|
20034
|
+
/**
|
|
20035
|
+
* @summary Disassociates one or more Application Load Balancer (ALB) server groups from a scaling group.
|
|
20036
|
+
*
|
|
20037
|
+
* @param request DetachAlbServerGroupsRequest
|
|
20038
|
+
* @return DetachAlbServerGroupsResponse
|
|
20039
|
+
*/
|
|
19308
20040
|
async detachAlbServerGroups(request: DetachAlbServerGroupsRequest): Promise<DetachAlbServerGroupsResponse> {
|
|
19309
20041
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19310
20042
|
return await this.detachAlbServerGroupsWithOptions(request, runtime);
|
|
19311
20043
|
}
|
|
19312
20044
|
|
|
20045
|
+
/**
|
|
20046
|
+
* @summary Disassociates one or more ApsaraDB RDS instances from a scaling group.
|
|
20047
|
+
*
|
|
20048
|
+
* @param request DetachDBInstancesRequest
|
|
20049
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20050
|
+
* @return DetachDBInstancesResponse
|
|
20051
|
+
*/
|
|
19313
20052
|
async detachDBInstancesWithOptions(request: DetachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachDBInstancesResponse> {
|
|
19314
20053
|
Util.validateModel(request);
|
|
19315
20054
|
let query = { };
|
|
@@ -19362,24 +20101,32 @@ export default class Client extends OpenApi {
|
|
|
19362
20101
|
return $tea.cast<DetachDBInstancesResponse>(await this.callApi(params, req, runtime), new DetachDBInstancesResponse({}));
|
|
19363
20102
|
}
|
|
19364
20103
|
|
|
20104
|
+
/**
|
|
20105
|
+
* @summary Disassociates one or more ApsaraDB RDS instances from a scaling group.
|
|
20106
|
+
*
|
|
20107
|
+
* @param request DetachDBInstancesRequest
|
|
20108
|
+
* @return DetachDBInstancesResponse
|
|
20109
|
+
*/
|
|
19365
20110
|
async detachDBInstances(request: DetachDBInstancesRequest): Promise<DetachDBInstancesResponse> {
|
|
19366
20111
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19367
20112
|
return await this.detachDBInstancesWithOptions(request, runtime);
|
|
19368
20113
|
}
|
|
19369
20114
|
|
|
19370
20115
|
/**
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
20116
|
+
* @summary Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
|
|
20117
|
+
*
|
|
20118
|
+
* @description 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.
|
|
20119
|
+
* After you remove an ECS instance or elastic container instance by calling the DetachInstances operation, the instance is not stopped or released.
|
|
20120
|
+
* Before you call this operation, make sure that the following conditions are met:
|
|
20121
|
+
* * The specified scaling group is enabled.
|
|
20122
|
+
* * No scaling activities in the specified scaling group are in progress.
|
|
20123
|
+
* > If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
20124
|
+
* 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.
|
|
20125
|
+
* 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.
|
|
20126
|
+
*
|
|
20127
|
+
* @param request DetachInstancesRequest
|
|
20128
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20129
|
+
* @return DetachInstancesResponse
|
|
19383
20130
|
*/
|
|
19384
20131
|
async detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse> {
|
|
19385
20132
|
Util.validateModel(request);
|
|
@@ -19396,6 +20143,10 @@ export default class Client extends OpenApi {
|
|
|
19396
20143
|
query["DetachOption"] = request.detachOption;
|
|
19397
20144
|
}
|
|
19398
20145
|
|
|
20146
|
+
if (!Util.isUnset(request.ignoreInvalidInstance)) {
|
|
20147
|
+
query["IgnoreInvalidInstance"] = request.ignoreInvalidInstance;
|
|
20148
|
+
}
|
|
20149
|
+
|
|
19399
20150
|
if (!Util.isUnset(request.instanceIds)) {
|
|
19400
20151
|
query["InstanceIds"] = request.instanceIds;
|
|
19401
20152
|
}
|
|
@@ -19442,23 +20193,32 @@ export default class Client extends OpenApi {
|
|
|
19442
20193
|
}
|
|
19443
20194
|
|
|
19444
20195
|
/**
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
|
|
20196
|
+
* @summary Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
|
|
20197
|
+
*
|
|
20198
|
+
* @description 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.
|
|
20199
|
+
* After you remove an ECS instance or elastic container instance by calling the DetachInstances operation, the instance is not stopped or released.
|
|
20200
|
+
* Before you call this operation, make sure that the following conditions are met:
|
|
20201
|
+
* * The specified scaling group is enabled.
|
|
20202
|
+
* * No scaling activities in the specified scaling group are in progress.
|
|
20203
|
+
* > If no scaling activities in the specified scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
20204
|
+
* 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.
|
|
20205
|
+
* 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.
|
|
20206
|
+
*
|
|
20207
|
+
* @param request DetachInstancesRequest
|
|
20208
|
+
* @return DetachInstancesResponse
|
|
19456
20209
|
*/
|
|
19457
20210
|
async detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse> {
|
|
19458
20211
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19459
20212
|
return await this.detachInstancesWithOptions(request, runtime);
|
|
19460
20213
|
}
|
|
19461
20214
|
|
|
20215
|
+
/**
|
|
20216
|
+
* @summary Detaches one or more Classic Load Balancer (CLB) instances from a scaling group.
|
|
20217
|
+
*
|
|
20218
|
+
* @param request DetachLoadBalancersRequest
|
|
20219
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20220
|
+
* @return DetachLoadBalancersResponse
|
|
20221
|
+
*/
|
|
19462
20222
|
async detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse> {
|
|
19463
20223
|
Util.validateModel(request);
|
|
19464
20224
|
let query = { };
|
|
@@ -19511,11 +20271,24 @@ export default class Client extends OpenApi {
|
|
|
19511
20271
|
return $tea.cast<DetachLoadBalancersResponse>(await this.callApi(params, req, runtime), new DetachLoadBalancersResponse({}));
|
|
19512
20272
|
}
|
|
19513
20273
|
|
|
20274
|
+
/**
|
|
20275
|
+
* @summary Detaches one or more Classic Load Balancer (CLB) instances from a scaling group.
|
|
20276
|
+
*
|
|
20277
|
+
* @param request DetachLoadBalancersRequest
|
|
20278
|
+
* @return DetachLoadBalancersResponse
|
|
20279
|
+
*/
|
|
19514
20280
|
async detachLoadBalancers(request: DetachLoadBalancersRequest): Promise<DetachLoadBalancersResponse> {
|
|
19515
20281
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19516
20282
|
return await this.detachLoadBalancersWithOptions(request, runtime);
|
|
19517
20283
|
}
|
|
19518
20284
|
|
|
20285
|
+
/**
|
|
20286
|
+
* @summary Detaches one or more server groups from a scaling group. You can attach and detach the following server groups from a scaling group: Application Load Balancer (ALB) and Network Load Balancer (NLB) server groups.
|
|
20287
|
+
*
|
|
20288
|
+
* @param request DetachServerGroupsRequest
|
|
20289
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20290
|
+
* @return DetachServerGroupsResponse
|
|
20291
|
+
*/
|
|
19519
20292
|
async detachServerGroupsWithOptions(request: DetachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachServerGroupsResponse> {
|
|
19520
20293
|
Util.validateModel(request);
|
|
19521
20294
|
let query = { };
|
|
@@ -19564,21 +20337,30 @@ export default class Client extends OpenApi {
|
|
|
19564
20337
|
return $tea.cast<DetachServerGroupsResponse>(await this.callApi(params, req, runtime), new DetachServerGroupsResponse({}));
|
|
19565
20338
|
}
|
|
19566
20339
|
|
|
20340
|
+
/**
|
|
20341
|
+
* @summary Detaches one or more server groups from a scaling group. You can attach and detach the following server groups from a scaling group: Application Load Balancer (ALB) and Network Load Balancer (NLB) server groups.
|
|
20342
|
+
*
|
|
20343
|
+
* @param request DetachServerGroupsRequest
|
|
20344
|
+
* @return DetachServerGroupsResponse
|
|
20345
|
+
*/
|
|
19567
20346
|
async detachServerGroups(request: DetachServerGroupsRequest): Promise<DetachServerGroupsResponse> {
|
|
19568
20347
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19569
20348
|
return await this.detachServerGroupsWithOptions(request, runtime);
|
|
19570
20349
|
}
|
|
19571
20350
|
|
|
19572
20351
|
/**
|
|
19573
|
-
|
|
19574
|
-
|
|
19575
|
-
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
20352
|
+
* @summary Detaches vServer groups from a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups to improve service performance. If the load balancer currently attached to your scaling group is no longer needed to distribute the access traffic to the instances in your scaling group, you can call the DetachVServerGroups operation to detach one or more vServer groups of this load balancer from the scaling group.
|
|
20353
|
+
*
|
|
20354
|
+
* @description * When you call the DetachVServerGroups operation, you must use the following parameters to specify the vServer groups that you want to detach from your scaling group:
|
|
20355
|
+
* * LoadBalancerId: the ID of the load balancer
|
|
20356
|
+
* * VServerGroupId: the ID of the vServer group
|
|
20357
|
+
* * Port: the port number of the vServer group
|
|
20358
|
+
* * When the vServer group specified by the request parameters matches that attached to your scaling group, this operation yields a favorable result. Otherwise, the request is ignored and no error is reported.
|
|
20359
|
+
* * Before you call this operation, you must make sure that the load balancer has ceased routing the access traffic to the instances in the scaling group. Failure to do so may lead to service requests being dropped or lost during the detachment process.
|
|
20360
|
+
*
|
|
20361
|
+
* @param request DetachVServerGroupsRequest
|
|
20362
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20363
|
+
* @return DetachVServerGroupsResponse
|
|
19582
20364
|
*/
|
|
19583
20365
|
async detachVServerGroupsWithOptions(request: DetachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachVServerGroupsResponse> {
|
|
19584
20366
|
Util.validateModel(request);
|
|
@@ -19629,20 +20411,32 @@ export default class Client extends OpenApi {
|
|
|
19629
20411
|
}
|
|
19630
20412
|
|
|
19631
20413
|
/**
|
|
19632
|
-
|
|
19633
|
-
|
|
19634
|
-
|
|
19635
|
-
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
|
|
20414
|
+
* @summary Detaches vServer groups from a scaling group. Auto Scaling supports the attachment of load balancers to scaling groups to improve service performance. If the load balancer currently attached to your scaling group is no longer needed to distribute the access traffic to the instances in your scaling group, you can call the DetachVServerGroups operation to detach one or more vServer groups of this load balancer from the scaling group.
|
|
20415
|
+
*
|
|
20416
|
+
* @description * When you call the DetachVServerGroups operation, you must use the following parameters to specify the vServer groups that you want to detach from your scaling group:
|
|
20417
|
+
* * LoadBalancerId: the ID of the load balancer
|
|
20418
|
+
* * VServerGroupId: the ID of the vServer group
|
|
20419
|
+
* * Port: the port number of the vServer group
|
|
20420
|
+
* * When the vServer group specified by the request parameters matches that attached to your scaling group, this operation yields a favorable result. Otherwise, the request is ignored and no error is reported.
|
|
20421
|
+
* * Before you call this operation, you must make sure that the load balancer has ceased routing the access traffic to the instances in the scaling group. Failure to do so may lead to service requests being dropped or lost during the detachment process.
|
|
20422
|
+
*
|
|
20423
|
+
* @param request DetachVServerGroupsRequest
|
|
20424
|
+
* @return DetachVServerGroupsResponse
|
|
19640
20425
|
*/
|
|
19641
20426
|
async detachVServerGroups(request: DetachVServerGroupsRequest): Promise<DetachVServerGroupsResponse> {
|
|
19642
20427
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19643
20428
|
return await this.detachVServerGroupsWithOptions(request, runtime);
|
|
19644
20429
|
}
|
|
19645
20430
|
|
|
20431
|
+
/**
|
|
20432
|
+
* @summary Disables an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you currently do not need an event-triggered task, you can call the DisableAlarm operation to disable it.
|
|
20433
|
+
*
|
|
20434
|
+
* @description Before you disable an event-triggered task, make sure that the task is in the `Normal`, `Alert`, or `Insufficient Data` state.
|
|
20435
|
+
*
|
|
20436
|
+
* @param request DisableAlarmRequest
|
|
20437
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20438
|
+
* @return DisableAlarmResponse
|
|
20439
|
+
*/
|
|
19646
20440
|
async disableAlarmWithOptions(request: DisableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DisableAlarmResponse> {
|
|
19647
20441
|
Util.validateModel(request);
|
|
19648
20442
|
let query = { };
|
|
@@ -19679,11 +20473,30 @@ export default class Client extends OpenApi {
|
|
|
19679
20473
|
return $tea.cast<DisableAlarmResponse>(await this.callApi(params, req, runtime), new DisableAlarmResponse({}));
|
|
19680
20474
|
}
|
|
19681
20475
|
|
|
20476
|
+
/**
|
|
20477
|
+
* @summary Disables an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you currently do not need an event-triggered task, you can call the DisableAlarm operation to disable it.
|
|
20478
|
+
*
|
|
20479
|
+
* @description Before you disable an event-triggered task, make sure that the task is in the `Normal`, `Alert`, or `Insufficient Data` state.
|
|
20480
|
+
*
|
|
20481
|
+
* @param request DisableAlarmRequest
|
|
20482
|
+
* @return DisableAlarmResponse
|
|
20483
|
+
*/
|
|
19682
20484
|
async disableAlarm(request: DisableAlarmRequest): Promise<DisableAlarmResponse> {
|
|
19683
20485
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19684
20486
|
return await this.disableAlarmWithOptions(request, runtime);
|
|
19685
20487
|
}
|
|
19686
20488
|
|
|
20489
|
+
/**
|
|
20490
|
+
* @summary Disables a scaling group.
|
|
20491
|
+
*
|
|
20492
|
+
* @description Before you call this operation to disable a scaling group, take note of the following items:
|
|
20493
|
+
* * When you call this operation, ongoing scaling activities will continue until they are complete, but new activities will be rejected.
|
|
20494
|
+
* * You can disable only scaling groups that are in the Active state.
|
|
20495
|
+
*
|
|
20496
|
+
* @param request DisableScalingGroupRequest
|
|
20497
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20498
|
+
* @return DisableScalingGroupResponse
|
|
20499
|
+
*/
|
|
19687
20500
|
async disableScalingGroupWithOptions(request: DisableScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DisableScalingGroupResponse> {
|
|
19688
20501
|
Util.validateModel(request);
|
|
19689
20502
|
let query = { };
|
|
@@ -19724,11 +20537,28 @@ export default class Client extends OpenApi {
|
|
|
19724
20537
|
return $tea.cast<DisableScalingGroupResponse>(await this.callApi(params, req, runtime), new DisableScalingGroupResponse({}));
|
|
19725
20538
|
}
|
|
19726
20539
|
|
|
20540
|
+
/**
|
|
20541
|
+
* @summary Disables a scaling group.
|
|
20542
|
+
*
|
|
20543
|
+
* @description Before you call this operation to disable a scaling group, take note of the following items:
|
|
20544
|
+
* * When you call this operation, ongoing scaling activities will continue until they are complete, but new activities will be rejected.
|
|
20545
|
+
* * You can disable only scaling groups that are in the Active state.
|
|
20546
|
+
*
|
|
20547
|
+
* @param request DisableScalingGroupRequest
|
|
20548
|
+
* @return DisableScalingGroupResponse
|
|
20549
|
+
*/
|
|
19727
20550
|
async disableScalingGroup(request: DisableScalingGroupRequest): Promise<DisableScalingGroupResponse> {
|
|
19728
20551
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19729
20552
|
return await this.disableScalingGroupWithOptions(request, runtime);
|
|
19730
20553
|
}
|
|
19731
20554
|
|
|
20555
|
+
/**
|
|
20556
|
+
* @summary Enables an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you want to reuse an event-triggered task that is in the Disabled state, you can call the EnableAlarm operation to enable it.
|
|
20557
|
+
*
|
|
20558
|
+
* @param request EnableAlarmRequest
|
|
20559
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20560
|
+
* @return EnableAlarmResponse
|
|
20561
|
+
*/
|
|
19732
20562
|
async enableAlarmWithOptions(request: EnableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<EnableAlarmResponse> {
|
|
19733
20563
|
Util.validateModel(request);
|
|
19734
20564
|
let query = { };
|
|
@@ -19765,21 +20595,29 @@ export default class Client extends OpenApi {
|
|
|
19765
20595
|
return $tea.cast<EnableAlarmResponse>(await this.callApi(params, req, runtime), new EnableAlarmResponse({}));
|
|
19766
20596
|
}
|
|
19767
20597
|
|
|
20598
|
+
/**
|
|
20599
|
+
* @summary Enables an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you want to reuse an event-triggered task that is in the Disabled state, you can call the EnableAlarm operation to enable it.
|
|
20600
|
+
*
|
|
20601
|
+
* @param request EnableAlarmRequest
|
|
20602
|
+
* @return EnableAlarmResponse
|
|
20603
|
+
*/
|
|
19768
20604
|
async enableAlarm(request: EnableAlarmRequest): Promise<EnableAlarmResponse> {
|
|
19769
20605
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19770
20606
|
return await this.enableAlarmWithOptions(request, runtime);
|
|
19771
20607
|
}
|
|
19772
20608
|
|
|
19773
20609
|
/**
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
20610
|
+
* @summary Enables a scaling group.
|
|
20611
|
+
*
|
|
20612
|
+
* @description You can call this operation to enable a scaling group that is in the Inactive state and has an instance configuration source. The instance configuration source can be a scaling configuration, a launch template, or an Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If a scaling group is not in the Inactive state or does not have an active instance configuration source, you cannot call this operation to enable the scaling group.
|
|
20613
|
+
* > A scaling group can have only one active instance configuration source. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If an instance configuration source has been configured for the scaling group before you call this operation, the scaling configuration or launch template that you specify in the request overwrites the original scaling configuration or launch template.
|
|
20614
|
+
* If you specify a value for the InstanceId parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
|
|
20615
|
+
* * If the total number of ECS instances is less than the minimum number of instances allowed in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances allowed in your scaling group is five, and you specify the InstanceId parameter to add two created ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
|
|
20616
|
+
* * If the value of the TotalCapactiy parameter is greater than the value of the MaxSize parameter, the call fails.
|
|
20617
|
+
*
|
|
20618
|
+
* @param request EnableScalingGroupRequest
|
|
20619
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20620
|
+
* @return EnableScalingGroupResponse
|
|
19783
20621
|
*/
|
|
19784
20622
|
async enableScalingGroupWithOptions(request: EnableScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<EnableScalingGroupResponse> {
|
|
19785
20623
|
Util.validateModel(request);
|
|
@@ -19850,20 +20688,35 @@ export default class Client extends OpenApi {
|
|
|
19850
20688
|
}
|
|
19851
20689
|
|
|
19852
20690
|
/**
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
|
|
19856
|
-
|
|
19857
|
-
|
|
19858
|
-
|
|
19859
|
-
|
|
19860
|
-
|
|
20691
|
+
* @summary Enables a scaling group.
|
|
20692
|
+
*
|
|
20693
|
+
* @description You can call this operation to enable a scaling group that is in the Inactive state and has an instance configuration source. The instance configuration source can be a scaling configuration, a launch template, or an Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If a scaling group is not in the Inactive state or does not have an active instance configuration source, you cannot call this operation to enable the scaling group.
|
|
20694
|
+
* > A scaling group can have only one active instance configuration source. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If an instance configuration source has been configured for the scaling group before you call this operation, the scaling configuration or launch template that you specify in the request overwrites the original scaling configuration or launch template.
|
|
20695
|
+
* If you specify a value for the InstanceId parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
|
|
20696
|
+
* * If the total number of ECS instances is less than the minimum number of instances allowed in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances allowed in your scaling group is five, and you specify the InstanceId parameter to add two created ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
|
|
20697
|
+
* * If the value of the TotalCapactiy parameter is greater than the value of the MaxSize parameter, the call fails.
|
|
20698
|
+
*
|
|
20699
|
+
* @param request EnableScalingGroupRequest
|
|
20700
|
+
* @return EnableScalingGroupResponse
|
|
19861
20701
|
*/
|
|
19862
20702
|
async enableScalingGroup(request: EnableScalingGroupRequest): Promise<EnableScalingGroupResponse> {
|
|
19863
20703
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19864
20704
|
return await this.enableScalingGroupWithOptions(request, runtime);
|
|
19865
20705
|
}
|
|
19866
20706
|
|
|
20707
|
+
/**
|
|
20708
|
+
* @summary Puts an Elastic Compute Service (ECS) instance into the Standby state.
|
|
20709
|
+
*
|
|
20710
|
+
* @description ## Description
|
|
20711
|
+
* * If you call the operation to put an ECS instance in a scaling group that is associated with a Classic Load Balancer (CLB) instance into the Standby state, the weight of the ECS instance as a backend server of the CLB instance is set to 0.
|
|
20712
|
+
* * You can remove an instance that is in the Standby state from a scaling group, and then release the instance.
|
|
20713
|
+
* * ECS instances that are in the Standby state are not removed from the scaling group during scale-in activities triggered by event-triggered tasks.
|
|
20714
|
+
* * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, for example, the ECS instance is being stopped or being restarted, Auto Scaling does not update the health status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health status of the ECS instance only when the ECS instance is no longer in the Standby state.
|
|
20715
|
+
*
|
|
20716
|
+
* @param request EnterStandbyRequest
|
|
20717
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20718
|
+
* @return EnterStandbyResponse
|
|
20719
|
+
*/
|
|
19867
20720
|
async enterStandbyWithOptions(request: EnterStandbyRequest, runtime: $Util.RuntimeOptions): Promise<EnterStandbyResponse> {
|
|
19868
20721
|
Util.validateModel(request);
|
|
19869
20722
|
let query = { };
|
|
@@ -19908,24 +20761,38 @@ export default class Client extends OpenApi {
|
|
|
19908
20761
|
return $tea.cast<EnterStandbyResponse>(await this.callApi(params, req, runtime), new EnterStandbyResponse({}));
|
|
19909
20762
|
}
|
|
19910
20763
|
|
|
20764
|
+
/**
|
|
20765
|
+
* @summary Puts an Elastic Compute Service (ECS) instance into the Standby state.
|
|
20766
|
+
*
|
|
20767
|
+
* @description ## Description
|
|
20768
|
+
* * If you call the operation to put an ECS instance in a scaling group that is associated with a Classic Load Balancer (CLB) instance into the Standby state, the weight of the ECS instance as a backend server of the CLB instance is set to 0.
|
|
20769
|
+
* * You can remove an instance that is in the Standby state from a scaling group, and then release the instance.
|
|
20770
|
+
* * ECS instances that are in the Standby state are not removed from the scaling group during scale-in activities triggered by event-triggered tasks.
|
|
20771
|
+
* * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, for example, the ECS instance is being stopped or being restarted, Auto Scaling does not update the health status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health status of the ECS instance only when the ECS instance is no longer in the Standby state.
|
|
20772
|
+
*
|
|
20773
|
+
* @param request EnterStandbyRequest
|
|
20774
|
+
* @return EnterStandbyResponse
|
|
20775
|
+
*/
|
|
19911
20776
|
async enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse> {
|
|
19912
20777
|
let runtime = new $Util.RuntimeOptions({ });
|
|
19913
20778
|
return await this.enterStandbyWithOptions(request, runtime);
|
|
19914
20779
|
}
|
|
19915
20780
|
|
|
19916
20781
|
/**
|
|
19917
|
-
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
20782
|
+
* @summary Executes a scaling rule.
|
|
20783
|
+
*
|
|
20784
|
+
* @description Before you call this operation, take note of the following items:
|
|
20785
|
+
* * The scaling group is in the Active state.
|
|
20786
|
+
* * No scaling activities in the scaling group are in progress.
|
|
20787
|
+
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
20788
|
+
* 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.
|
|
20789
|
+
* 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.
|
|
20790
|
+
* 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.
|
|
20791
|
+
* 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.
|
|
20792
|
+
*
|
|
20793
|
+
* @param request ExecuteScalingRuleRequest
|
|
20794
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20795
|
+
* @return ExecuteScalingRuleResponse
|
|
19929
20796
|
*/
|
|
19930
20797
|
async executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse> {
|
|
19931
20798
|
Util.validateModel(request);
|
|
@@ -19984,23 +20851,35 @@ export default class Client extends OpenApi {
|
|
|
19984
20851
|
}
|
|
19985
20852
|
|
|
19986
20853
|
/**
|
|
19987
|
-
|
|
19988
|
-
|
|
19989
|
-
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
|
|
19996
|
-
|
|
19997
|
-
|
|
20854
|
+
* @summary Executes a scaling rule.
|
|
20855
|
+
*
|
|
20856
|
+
* @description Before you call this operation, take note of the following items:
|
|
20857
|
+
* * The scaling group is in the Active state.
|
|
20858
|
+
* * No scaling activities in the scaling group are in progress.
|
|
20859
|
+
* If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
20860
|
+
* 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.
|
|
20861
|
+
* 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.
|
|
20862
|
+
* 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.
|
|
20863
|
+
* 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.
|
|
20864
|
+
*
|
|
20865
|
+
* @param request ExecuteScalingRuleRequest
|
|
20866
|
+
* @return ExecuteScalingRuleResponse
|
|
19998
20867
|
*/
|
|
19999
20868
|
async executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse> {
|
|
20000
20869
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20001
20870
|
return await this.executeScalingRuleWithOptions(request, runtime);
|
|
20002
20871
|
}
|
|
20003
20872
|
|
|
20873
|
+
/**
|
|
20874
|
+
* @summary Moves an Elastic Compute Service (ECS) instance out of the Standby state.
|
|
20875
|
+
*
|
|
20876
|
+
* @description ## Description
|
|
20877
|
+
* If your scaling group is associated with a Classic Load Balancer (CLB) instance and you move an ECS instance in your scaling group out of the Standby state, the weight of the ECS instance is reset to the value that is specified in the scaling configuration of your scaling group.
|
|
20878
|
+
*
|
|
20879
|
+
* @param request ExitStandbyRequest
|
|
20880
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20881
|
+
* @return ExitStandbyResponse
|
|
20882
|
+
*/
|
|
20004
20883
|
async exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse> {
|
|
20005
20884
|
Util.validateModel(request);
|
|
20006
20885
|
let query = { };
|
|
@@ -20049,11 +20928,27 @@ export default class Client extends OpenApi {
|
|
|
20049
20928
|
return $tea.cast<ExitStandbyResponse>(await this.callApi(params, req, runtime), new ExitStandbyResponse({}));
|
|
20050
20929
|
}
|
|
20051
20930
|
|
|
20931
|
+
/**
|
|
20932
|
+
* @summary Moves an Elastic Compute Service (ECS) instance out of the Standby state.
|
|
20933
|
+
*
|
|
20934
|
+
* @description ## Description
|
|
20935
|
+
* If your scaling group is associated with a Classic Load Balancer (CLB) instance and you move an ECS instance in your scaling group out of the Standby state, the weight of the ECS instance is reset to the value that is specified in the scaling configuration of your scaling group.
|
|
20936
|
+
*
|
|
20937
|
+
* @param request ExitStandbyRequest
|
|
20938
|
+
* @return ExitStandbyResponse
|
|
20939
|
+
*/
|
|
20052
20940
|
async exitStandby(request: ExitStandbyRequest): Promise<ExitStandbyResponse> {
|
|
20053
20941
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20054
20942
|
return await this.exitStandbyWithOptions(request, runtime);
|
|
20055
20943
|
}
|
|
20056
20944
|
|
|
20945
|
+
/**
|
|
20946
|
+
* @summary Queries the tag keys added to Auto Scaling resources. Querying tag keys facilitates easier classification, identification, and monitoring of your Auto Scaling resources, thereby enhancing the flexibility and convenience of your resource management processes.
|
|
20947
|
+
*
|
|
20948
|
+
* @param request ListTagKeysRequest
|
|
20949
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20950
|
+
* @return ListTagKeysResponse
|
|
20951
|
+
*/
|
|
20057
20952
|
async listTagKeysWithOptions(request: ListTagKeysRequest, runtime: $Util.RuntimeOptions): Promise<ListTagKeysResponse> {
|
|
20058
20953
|
Util.validateModel(request);
|
|
20059
20954
|
let query = { };
|
|
@@ -20098,11 +20993,24 @@ export default class Client extends OpenApi {
|
|
|
20098
20993
|
return $tea.cast<ListTagKeysResponse>(await this.callApi(params, req, runtime), new ListTagKeysResponse({}));
|
|
20099
20994
|
}
|
|
20100
20995
|
|
|
20996
|
+
/**
|
|
20997
|
+
* @summary Queries the tag keys added to Auto Scaling resources. Querying tag keys facilitates easier classification, identification, and monitoring of your Auto Scaling resources, thereby enhancing the flexibility and convenience of your resource management processes.
|
|
20998
|
+
*
|
|
20999
|
+
* @param request ListTagKeysRequest
|
|
21000
|
+
* @return ListTagKeysResponse
|
|
21001
|
+
*/
|
|
20101
21002
|
async listTagKeys(request: ListTagKeysRequest): Promise<ListTagKeysResponse> {
|
|
20102
21003
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20103
21004
|
return await this.listTagKeysWithOptions(request, runtime);
|
|
20104
21005
|
}
|
|
20105
21006
|
|
|
21007
|
+
/**
|
|
21008
|
+
* @summary Queries tags that are added to one or more Auto Scaling resources.
|
|
21009
|
+
*
|
|
21010
|
+
* @param request ListTagResourcesRequest
|
|
21011
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21012
|
+
* @return ListTagResourcesResponse
|
|
21013
|
+
*/
|
|
20106
21014
|
async listTagResourcesWithOptions(request: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
|
|
20107
21015
|
Util.validateModel(request);
|
|
20108
21016
|
let query = { };
|
|
@@ -20151,11 +21059,24 @@ export default class Client extends OpenApi {
|
|
|
20151
21059
|
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
20152
21060
|
}
|
|
20153
21061
|
|
|
21062
|
+
/**
|
|
21063
|
+
* @summary Queries tags that are added to one or more Auto Scaling resources.
|
|
21064
|
+
*
|
|
21065
|
+
* @param request ListTagResourcesRequest
|
|
21066
|
+
* @return ListTagResourcesResponse
|
|
21067
|
+
*/
|
|
20154
21068
|
async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
|
|
20155
21069
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20156
21070
|
return await this.listTagResourcesWithOptions(request, runtime);
|
|
20157
21071
|
}
|
|
20158
21072
|
|
|
21073
|
+
/**
|
|
21074
|
+
* @summary Queries the tag keys associated with Auto Scaling resources to facilitate a deeper comprehension of those resources. By doing so, you can categorize and manage your Auto Scaling resources more efficiently.
|
|
21075
|
+
*
|
|
21076
|
+
* @param request ListTagValuesRequest
|
|
21077
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21078
|
+
* @return ListTagValuesResponse
|
|
21079
|
+
*/
|
|
20159
21080
|
async listTagValuesWithOptions(request: ListTagValuesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagValuesResponse> {
|
|
20160
21081
|
Util.validateModel(request);
|
|
20161
21082
|
let query = { };
|
|
@@ -20204,21 +21125,29 @@ export default class Client extends OpenApi {
|
|
|
20204
21125
|
return $tea.cast<ListTagValuesResponse>(await this.callApi(params, req, runtime), new ListTagValuesResponse({}));
|
|
20205
21126
|
}
|
|
20206
21127
|
|
|
21128
|
+
/**
|
|
21129
|
+
* @summary Queries the tag keys associated with Auto Scaling resources to facilitate a deeper comprehension of those resources. By doing so, you can categorize and manage your Auto Scaling resources more efficiently.
|
|
21130
|
+
*
|
|
21131
|
+
* @param request ListTagValuesRequest
|
|
21132
|
+
* @return ListTagValuesResponse
|
|
21133
|
+
*/
|
|
20207
21134
|
async listTagValues(request: ListTagValuesRequest): Promise<ListTagValuesResponse> {
|
|
20208
21135
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20209
21136
|
return await this.listTagValuesWithOptions(request, runtime);
|
|
20210
21137
|
}
|
|
20211
21138
|
|
|
20212
21139
|
/**
|
|
20213
|
-
|
|
20214
|
-
|
|
20215
|
-
|
|
20216
|
-
|
|
20217
|
-
|
|
20218
|
-
|
|
20219
|
-
|
|
20220
|
-
|
|
20221
|
-
|
|
21140
|
+
* @summary Modifies an event-triggered task.
|
|
21141
|
+
*
|
|
21142
|
+
* @description * 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](https://help.aliyun.com/document_detail/74861.html).
|
|
21143
|
+
* * 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.
|
|
21144
|
+
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
21145
|
+
* * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](https://help.aliyun.com/document_detail/74854.html).
|
|
21146
|
+
* > 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.
|
|
21147
|
+
*
|
|
21148
|
+
* @param request ModifyAlarmRequest
|
|
21149
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21150
|
+
* @return ModifyAlarmResponse
|
|
20222
21151
|
*/
|
|
20223
21152
|
async modifyAlarmWithOptions(request: ModifyAlarmRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlarmResponse> {
|
|
20224
21153
|
Util.validateModel(request);
|
|
@@ -20317,14 +21246,16 @@ export default class Client extends OpenApi {
|
|
|
20317
21246
|
}
|
|
20318
21247
|
|
|
20319
21248
|
/**
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20325
|
-
|
|
20326
|
-
|
|
20327
|
-
|
|
21249
|
+
* @summary Modifies an event-triggered task.
|
|
21250
|
+
*
|
|
21251
|
+
* @description * 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](https://help.aliyun.com/document_detail/74861.html).
|
|
21252
|
+
* * 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.
|
|
21253
|
+
* * If you set the MetricType parameter to custom, the valid values are your custom metrics.
|
|
21254
|
+
* * For information about the metrics that are supported if you set the MetricType parameter to system, see[ Event-triggered task for system monitoring](https://help.aliyun.com/document_detail/74854.html).
|
|
21255
|
+
* > 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.
|
|
21256
|
+
*
|
|
21257
|
+
* @param request ModifyAlarmRequest
|
|
21258
|
+
* @return ModifyAlarmResponse
|
|
20328
21259
|
*/
|
|
20329
21260
|
async modifyAlarm(request: ModifyAlarmRequest): Promise<ModifyAlarmResponse> {
|
|
20330
21261
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -20332,11 +21263,13 @@ export default class Client extends OpenApi {
|
|
|
20332
21263
|
}
|
|
20333
21264
|
|
|
20334
21265
|
/**
|
|
20335
|
-
|
|
20336
|
-
|
|
20337
|
-
|
|
20338
|
-
|
|
20339
|
-
|
|
21266
|
+
* @summary Modifies a scaling configuration for a scaling group that contains elastic container instances.
|
|
21267
|
+
*
|
|
21268
|
+
* @description If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
|
|
21269
|
+
*
|
|
21270
|
+
* @param request ModifyEciScalingConfigurationRequest
|
|
21271
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21272
|
+
* @return ModifyEciScalingConfigurationResponse
|
|
20340
21273
|
*/
|
|
20341
21274
|
async modifyEciScalingConfigurationWithOptions(request: ModifyEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyEciScalingConfigurationResponse> {
|
|
20342
21275
|
Util.validateModel(request);
|
|
@@ -20559,16 +21492,25 @@ export default class Client extends OpenApi {
|
|
|
20559
21492
|
}
|
|
20560
21493
|
|
|
20561
21494
|
/**
|
|
20562
|
-
|
|
20563
|
-
|
|
20564
|
-
|
|
20565
|
-
|
|
21495
|
+
* @summary Modifies a scaling configuration for a scaling group that contains elastic container instances.
|
|
21496
|
+
*
|
|
21497
|
+
* @description If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
|
|
21498
|
+
*
|
|
21499
|
+
* @param request ModifyEciScalingConfigurationRequest
|
|
21500
|
+
* @return ModifyEciScalingConfigurationResponse
|
|
20566
21501
|
*/
|
|
20567
21502
|
async modifyEciScalingConfiguration(request: ModifyEciScalingConfigurationRequest): Promise<ModifyEciScalingConfigurationResponse> {
|
|
20568
21503
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20569
21504
|
return await this.modifyEciScalingConfigurationWithOptions(request, runtime);
|
|
20570
21505
|
}
|
|
20571
21506
|
|
|
21507
|
+
/**
|
|
21508
|
+
* @summary Modifies the attributes of an Elastic Compute Service (ECS) instance in a scaling group. You can call the ModifyInstanceAttribute operation to modify the lifecycle management attribute of a manually added ECS instance in a scaling group.
|
|
21509
|
+
*
|
|
21510
|
+
* @param request ModifyInstanceAttributeRequest
|
|
21511
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21512
|
+
* @return ModifyInstanceAttributeResponse
|
|
21513
|
+
*/
|
|
20572
21514
|
async modifyInstanceAttributeWithOptions(request: ModifyInstanceAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceAttributeResponse> {
|
|
20573
21515
|
Util.validateModel(request);
|
|
20574
21516
|
let query = { };
|
|
@@ -20613,19 +21555,27 @@ export default class Client extends OpenApi {
|
|
|
20613
21555
|
return $tea.cast<ModifyInstanceAttributeResponse>(await this.callApi(params, req, runtime), new ModifyInstanceAttributeResponse({}));
|
|
20614
21556
|
}
|
|
20615
21557
|
|
|
21558
|
+
/**
|
|
21559
|
+
* @summary Modifies the attributes of an Elastic Compute Service (ECS) instance in a scaling group. You can call the ModifyInstanceAttribute operation to modify the lifecycle management attribute of a manually added ECS instance in a scaling group.
|
|
21560
|
+
*
|
|
21561
|
+
* @param request ModifyInstanceAttributeRequest
|
|
21562
|
+
* @return ModifyInstanceAttributeResponse
|
|
21563
|
+
*/
|
|
20616
21564
|
async modifyInstanceAttribute(request: ModifyInstanceAttributeRequest): Promise<ModifyInstanceAttributeResponse> {
|
|
20617
21565
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20618
21566
|
return await this.modifyInstanceAttributeWithOptions(request, runtime);
|
|
20619
21567
|
}
|
|
20620
21568
|
|
|
20621
21569
|
/**
|
|
20622
|
-
|
|
20623
|
-
|
|
20624
|
-
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
|
|
20628
|
-
|
|
21570
|
+
* @summary Modifies a lifecycle hook.
|
|
21571
|
+
*
|
|
21572
|
+
* @description You can use one of the following methods to specify the lifecycle hook that you want to modify:
|
|
21573
|
+
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. When you use this method, the ScalingGroupId and LifecycleHookName parameters are ignored.
|
|
21574
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
|
|
21575
|
+
*
|
|
21576
|
+
* @param request ModifyLifecycleHookRequest
|
|
21577
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21578
|
+
* @return ModifyLifecycleHookResponse
|
|
20629
21579
|
*/
|
|
20630
21580
|
async modifyLifecycleHookWithOptions(request: ModifyLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<ModifyLifecycleHookResponse> {
|
|
20631
21581
|
Util.validateModel(request);
|
|
@@ -20700,18 +21650,27 @@ export default class Client extends OpenApi {
|
|
|
20700
21650
|
}
|
|
20701
21651
|
|
|
20702
21652
|
/**
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
21653
|
+
* @summary Modifies a lifecycle hook.
|
|
21654
|
+
*
|
|
21655
|
+
* @description You can use one of the following methods to specify the lifecycle hook that you want to modify:
|
|
21656
|
+
* * Specify the lifecycle hook ID by using the LifecycleHookId parameter. When you use this method, the ScalingGroupId and LifecycleHookName parameters are ignored.
|
|
21657
|
+
* * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
|
|
21658
|
+
*
|
|
21659
|
+
* @param request ModifyLifecycleHookRequest
|
|
21660
|
+
* @return ModifyLifecycleHookResponse
|
|
20709
21661
|
*/
|
|
20710
21662
|
async modifyLifecycleHook(request: ModifyLifecycleHookRequest): Promise<ModifyLifecycleHookResponse> {
|
|
20711
21663
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20712
21664
|
return await this.modifyLifecycleHookWithOptions(request, runtime);
|
|
20713
21665
|
}
|
|
20714
21666
|
|
|
21667
|
+
/**
|
|
21668
|
+
* @summary Modifies a notification.
|
|
21669
|
+
*
|
|
21670
|
+
* @param request ModifyNotificationConfigurationRequest
|
|
21671
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21672
|
+
* @return ModifyNotificationConfigurationResponse
|
|
21673
|
+
*/
|
|
20715
21674
|
async modifyNotificationConfigurationWithOptions(request: ModifyNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyNotificationConfigurationResponse> {
|
|
20716
21675
|
Util.validateModel(request);
|
|
20717
21676
|
let query = { };
|
|
@@ -20756,17 +21715,25 @@ export default class Client extends OpenApi {
|
|
|
20756
21715
|
return $tea.cast<ModifyNotificationConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyNotificationConfigurationResponse({}));
|
|
20757
21716
|
}
|
|
20758
21717
|
|
|
21718
|
+
/**
|
|
21719
|
+
* @summary Modifies a notification.
|
|
21720
|
+
*
|
|
21721
|
+
* @param request ModifyNotificationConfigurationRequest
|
|
21722
|
+
* @return ModifyNotificationConfigurationResponse
|
|
21723
|
+
*/
|
|
20759
21724
|
async modifyNotificationConfiguration(request: ModifyNotificationConfigurationRequest): Promise<ModifyNotificationConfigurationResponse> {
|
|
20760
21725
|
let runtime = new $Util.RuntimeOptions({ });
|
|
20761
21726
|
return await this.modifyNotificationConfigurationWithOptions(request, runtime);
|
|
20762
21727
|
}
|
|
20763
21728
|
|
|
20764
21729
|
/**
|
|
20765
|
-
|
|
20766
|
-
|
|
20767
|
-
|
|
20768
|
-
|
|
20769
|
-
|
|
21730
|
+
* @summary Modifies a scaling configuration.
|
|
21731
|
+
*
|
|
21732
|
+
* @description You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
|
|
21733
|
+
*
|
|
21734
|
+
* @param tmpReq ModifyScalingConfigurationRequest
|
|
21735
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
21736
|
+
* @return ModifyScalingConfigurationResponse
|
|
20770
21737
|
*/
|
|
20771
21738
|
async modifyScalingConfigurationWithOptions(tmpReq: ModifyScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingConfigurationResponse> {
|
|
20772
21739
|
Util.validateModel(tmpReq);
|
|
@@ -21007,10 +21974,12 @@ export default class Client extends OpenApi {
|
|
|
21007
21974
|
}
|
|
21008
21975
|
|
|
21009
21976
|
/**
|
|
21010
|
-
|
|
21011
|
-
|
|
21012
|
-
|
|
21013
|
-
|
|
21977
|
+
* @summary Modifies a scaling configuration.
|
|
21978
|
+
*
|
|
21979
|
+
* @description You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
|
|
21980
|
+
*
|
|
21981
|
+
* @param request ModifyScalingConfigurationRequest
|
|
21982
|
+
* @return ModifyScalingConfigurationResponse
|
|
21014
21983
|
*/
|
|
21015
21984
|
async modifyScalingConfiguration(request: ModifyScalingConfigurationRequest): Promise<ModifyScalingConfigurationResponse> {
|
|
21016
21985
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -21018,21 +21987,23 @@ export default class Client extends OpenApi {
|
|
|
21018
21987
|
}
|
|
21019
21988
|
|
|
21020
21989
|
/**
|
|
21021
|
-
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
|
|
21026
|
-
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
|
|
21030
|
-
|
|
21031
|
-
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
|
|
21990
|
+
* @summary Modifies a scaling group.
|
|
21991
|
+
*
|
|
21992
|
+
* @description * You cannot call this operation to modify the settings of the following parameters:
|
|
21993
|
+
* * RegionId
|
|
21994
|
+
* * LoadBalancerId
|
|
21995
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
21996
|
+
* * DBInstanceId
|
|
21997
|
+
* > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
21998
|
+
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
21999
|
+
* * 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.
|
|
22000
|
+
* * 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.
|
|
22001
|
+
* * 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.
|
|
22002
|
+
* * 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.
|
|
22003
|
+
*
|
|
22004
|
+
* @param request ModifyScalingGroupRequest
|
|
22005
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22006
|
+
* @return ModifyScalingGroupResponse
|
|
21036
22007
|
*/
|
|
21037
22008
|
async modifyScalingGroupWithOptions(request: ModifyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingGroupResponse> {
|
|
21038
22009
|
Util.validateModel(request);
|
|
@@ -21183,26 +22154,35 @@ export default class Client extends OpenApi {
|
|
|
21183
22154
|
}
|
|
21184
22155
|
|
|
21185
22156
|
/**
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21197
|
-
|
|
21198
|
-
|
|
21199
|
-
|
|
22157
|
+
* @summary Modifies a scaling group.
|
|
22158
|
+
*
|
|
22159
|
+
* @description * You cannot call this operation to modify the settings of the following parameters:
|
|
22160
|
+
* * RegionId
|
|
22161
|
+
* * LoadBalancerId
|
|
22162
|
+
* > If you want to change the CLB instances that are associated with your scaling group, call the AttachLoadBalancers and DetachLoadBalancers operations.
|
|
22163
|
+
* * DBInstanceId
|
|
22164
|
+
* > If you want to change the ApsaraDB RDS instances that are associated with your scaling group, call the AttachDBInstances and DetachDBInstances operations.
|
|
22165
|
+
* * You can modify only scaling groups that are in the Active or Inactive state.
|
|
22166
|
+
* * 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.
|
|
22167
|
+
* * 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.
|
|
22168
|
+
* * 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.
|
|
22169
|
+
* * 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.
|
|
22170
|
+
*
|
|
22171
|
+
* @param request ModifyScalingGroupRequest
|
|
22172
|
+
* @return ModifyScalingGroupResponse
|
|
21200
22173
|
*/
|
|
21201
22174
|
async modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse> {
|
|
21202
22175
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21203
22176
|
return await this.modifyScalingGroupWithOptions(request, runtime);
|
|
21204
22177
|
}
|
|
21205
22178
|
|
|
22179
|
+
/**
|
|
22180
|
+
* @summary Modifies a scaling rule.
|
|
22181
|
+
*
|
|
22182
|
+
* @param request ModifyScalingRuleRequest
|
|
22183
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22184
|
+
* @return ModifyScalingRuleResponse
|
|
22185
|
+
*/
|
|
21206
22186
|
async modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse> {
|
|
21207
22187
|
Util.validateModel(request);
|
|
21208
22188
|
let query = { };
|
|
@@ -21315,20 +22295,28 @@ export default class Client extends OpenApi {
|
|
|
21315
22295
|
return $tea.cast<ModifyScalingRuleResponse>(await this.callApi(params, req, runtime), new ModifyScalingRuleResponse({}));
|
|
21316
22296
|
}
|
|
21317
22297
|
|
|
22298
|
+
/**
|
|
22299
|
+
* @summary Modifies a scaling rule.
|
|
22300
|
+
*
|
|
22301
|
+
* @param request ModifyScalingRuleRequest
|
|
22302
|
+
* @return ModifyScalingRuleResponse
|
|
22303
|
+
*/
|
|
21318
22304
|
async modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse> {
|
|
21319
22305
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21320
22306
|
return await this.modifyScalingRuleWithOptions(request, runtime);
|
|
21321
22307
|
}
|
|
21322
22308
|
|
|
21323
22309
|
/**
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
22310
|
+
* @summary Modifies a scheduled task.
|
|
22311
|
+
*
|
|
22312
|
+
* @description You can use the following parameters to specify the scaling method of a scheduled task:
|
|
22313
|
+
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
22314
|
+
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
22315
|
+
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
22316
|
+
*
|
|
22317
|
+
* @param request ModifyScheduledTaskRequest
|
|
22318
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22319
|
+
* @return ModifyScheduledTaskResponse
|
|
21332
22320
|
*/
|
|
21333
22321
|
async modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse> {
|
|
21334
22322
|
Util.validateModel(request);
|
|
@@ -21423,19 +22411,36 @@ export default class Client extends OpenApi {
|
|
|
21423
22411
|
}
|
|
21424
22412
|
|
|
21425
22413
|
/**
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
22414
|
+
* @summary Modifies a scheduled task.
|
|
22415
|
+
*
|
|
22416
|
+
* @description You can use the following parameters to specify the scaling method of a scheduled task:
|
|
22417
|
+
* * If you use the `ScheduledAction` parameter, you must select an existing scaling rule for the scheduled task.
|
|
22418
|
+
* * If you use the `ScalingGroupId` parameter, you must specify the minimum number, maximum number, or expected number of instances in the scheduled task.
|
|
22419
|
+
* > You cannot specify the `ScheduledAction` and `ScalingGroupId` parameters at the same time.
|
|
22420
|
+
*
|
|
22421
|
+
* @param request ModifyScheduledTaskRequest
|
|
22422
|
+
* @return ModifyScheduledTaskResponse
|
|
21433
22423
|
*/
|
|
21434
22424
|
async modifyScheduledTask(request: ModifyScheduledTaskRequest): Promise<ModifyScheduledTaskResponse> {
|
|
21435
22425
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21436
22426
|
return await this.modifyScheduledTaskWithOptions(request, runtime);
|
|
21437
22427
|
}
|
|
21438
22428
|
|
|
22429
|
+
/**
|
|
22430
|
+
* @summary Rebalances the distribution of Elastic Compute Service (ECS) instances across zones. If ECS instances are unevenly distributed across multiple zones, you can call the RebalanceInstances operation to rebalance the distribution of the ECS instances across the zones.
|
|
22431
|
+
*
|
|
22432
|
+
* @description ## [](#)Usage notes
|
|
22433
|
+
* Auto Scaling creates new ECS instances to replace the existing ECS instances to fulfill the rebalancing purpose. Auto Scaling starts the new ECS instances before stopping the existing ECS instances. The rebalancing operation does not affect the performance or service availability of your application.
|
|
22434
|
+
* * This operation is supported by only multi-zone scaling groups whose `MultiAZPolicy` is set to `BALANCE`.
|
|
22435
|
+
* * A rebalancing operation is required only when the distribution of the instances of a multi-zone scaling group is significantly unbalanced. In a rebalancing activity, Auto Scaling replaces up to 20 ECS instances to rectify the unbalanced distribution.
|
|
22436
|
+
* * During the execution of a rebalancing operation, if the number of instances in the scaling group approaches or hits the value of MaxSize but the rebalancing operation needs to continue, Auto Scaling allows the total number of ECS instances to momentarily exceed the value of MaxSize by 10%. This temporary surplus condition persists for a duration until equilibrium in the distribution of ECS instances is achieved. Typically, it takes 1 to 6 minutes.
|
|
22437
|
+
* **
|
|
22438
|
+
* **Note** If the 10% increment of the maximum number of instances in a scaling group yield a non-integer value, the decimal portion is always rounded up to ensure an additional instance is accounted for. For example, you have a scaling group that holds a maximum of 15 ECS instances. During a rebalancing operation, Auto Scaling would permit the total number of instances to momentarily surpass this limit by 2, instead of the calculated 10% (which is 1.5).
|
|
22439
|
+
*
|
|
22440
|
+
* @param request RebalanceInstancesRequest
|
|
22441
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22442
|
+
* @return RebalanceInstancesResponse
|
|
22443
|
+
*/
|
|
21439
22444
|
async rebalanceInstancesWithOptions(request: RebalanceInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebalanceInstancesResponse> {
|
|
21440
22445
|
Util.validateModel(request);
|
|
21441
22446
|
let query = { };
|
|
@@ -21480,17 +22485,33 @@ export default class Client extends OpenApi {
|
|
|
21480
22485
|
return $tea.cast<RebalanceInstancesResponse>(await this.callApi(params, req, runtime), new RebalanceInstancesResponse({}));
|
|
21481
22486
|
}
|
|
21482
22487
|
|
|
22488
|
+
/**
|
|
22489
|
+
* @summary Rebalances the distribution of Elastic Compute Service (ECS) instances across zones. If ECS instances are unevenly distributed across multiple zones, you can call the RebalanceInstances operation to rebalance the distribution of the ECS instances across the zones.
|
|
22490
|
+
*
|
|
22491
|
+
* @description ## [](#)Usage notes
|
|
22492
|
+
* Auto Scaling creates new ECS instances to replace the existing ECS instances to fulfill the rebalancing purpose. Auto Scaling starts the new ECS instances before stopping the existing ECS instances. The rebalancing operation does not affect the performance or service availability of your application.
|
|
22493
|
+
* * This operation is supported by only multi-zone scaling groups whose `MultiAZPolicy` is set to `BALANCE`.
|
|
22494
|
+
* * A rebalancing operation is required only when the distribution of the instances of a multi-zone scaling group is significantly unbalanced. In a rebalancing activity, Auto Scaling replaces up to 20 ECS instances to rectify the unbalanced distribution.
|
|
22495
|
+
* * During the execution of a rebalancing operation, if the number of instances in the scaling group approaches or hits the value of MaxSize but the rebalancing operation needs to continue, Auto Scaling allows the total number of ECS instances to momentarily exceed the value of MaxSize by 10%. This temporary surplus condition persists for a duration until equilibrium in the distribution of ECS instances is achieved. Typically, it takes 1 to 6 minutes.
|
|
22496
|
+
* **
|
|
22497
|
+
* **Note** If the 10% increment of the maximum number of instances in a scaling group yield a non-integer value, the decimal portion is always rounded up to ensure an additional instance is accounted for. For example, you have a scaling group that holds a maximum of 15 ECS instances. During a rebalancing operation, Auto Scaling would permit the total number of instances to momentarily surpass this limit by 2, instead of the calculated 10% (which is 1.5).
|
|
22498
|
+
*
|
|
22499
|
+
* @param request RebalanceInstancesRequest
|
|
22500
|
+
* @return RebalanceInstancesResponse
|
|
22501
|
+
*/
|
|
21483
22502
|
async rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse> {
|
|
21484
22503
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21485
22504
|
return await this.rebalanceInstancesWithOptions(request, runtime);
|
|
21486
22505
|
}
|
|
21487
22506
|
|
|
21488
22507
|
/**
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
|
|
22508
|
+
* @summary Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
|
|
22509
|
+
*
|
|
22510
|
+
* @description 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.
|
|
22511
|
+
*
|
|
22512
|
+
* @param request RecordLifecycleActionHeartbeatRequest
|
|
22513
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22514
|
+
* @return RecordLifecycleActionHeartbeatResponse
|
|
21494
22515
|
*/
|
|
21495
22516
|
async recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse> {
|
|
21496
22517
|
Util.validateModel(request);
|
|
@@ -21541,10 +22562,12 @@ export default class Client extends OpenApi {
|
|
|
21541
22562
|
}
|
|
21542
22563
|
|
|
21543
22564
|
/**
|
|
21544
|
-
|
|
21545
|
-
|
|
21546
|
-
|
|
21547
|
-
|
|
22565
|
+
* @summary Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
|
|
22566
|
+
*
|
|
22567
|
+
* @description 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.
|
|
22568
|
+
*
|
|
22569
|
+
* @param request RecordLifecycleActionHeartbeatRequest
|
|
22570
|
+
* @return RecordLifecycleActionHeartbeatResponse
|
|
21548
22571
|
*/
|
|
21549
22572
|
async recordLifecycleActionHeartbeat(request: RecordLifecycleActionHeartbeatRequest): Promise<RecordLifecycleActionHeartbeatResponse> {
|
|
21550
22573
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -21552,18 +22575,20 @@ export default class Client extends OpenApi {
|
|
|
21552
22575
|
}
|
|
21553
22576
|
|
|
21554
22577
|
/**
|
|
21555
|
-
|
|
21556
|
-
|
|
21557
|
-
|
|
21558
|
-
|
|
21559
|
-
|
|
21560
|
-
|
|
21561
|
-
|
|
21562
|
-
|
|
21563
|
-
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
|
-
|
|
22578
|
+
* @summary Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
|
|
22579
|
+
*
|
|
22580
|
+
* @description * Before you call this operation, make sure that the following requirements are met:
|
|
22581
|
+
* * The scaling group is in the Active state.
|
|
22582
|
+
* * No scaling activity is in progress within the scaling group.
|
|
22583
|
+
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
22584
|
+
* * 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.
|
|
22585
|
+
* * 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.
|
|
22586
|
+
* * 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.
|
|
22587
|
+
* 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.
|
|
22588
|
+
*
|
|
22589
|
+
* @param request RemoveInstancesRequest
|
|
22590
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22591
|
+
* @return RemoveInstancesResponse
|
|
21567
22592
|
*/
|
|
21568
22593
|
async removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse> {
|
|
21569
22594
|
Util.validateModel(request);
|
|
@@ -21576,6 +22601,10 @@ export default class Client extends OpenApi {
|
|
|
21576
22601
|
query["DecreaseDesiredCapacity"] = request.decreaseDesiredCapacity;
|
|
21577
22602
|
}
|
|
21578
22603
|
|
|
22604
|
+
if (!Util.isUnset(request.ignoreInvalidInstance)) {
|
|
22605
|
+
query["IgnoreInvalidInstance"] = request.ignoreInvalidInstance;
|
|
22606
|
+
}
|
|
22607
|
+
|
|
21579
22608
|
if (!Util.isUnset(request.instanceIds)) {
|
|
21580
22609
|
query["InstanceIds"] = request.instanceIds;
|
|
21581
22610
|
}
|
|
@@ -21626,23 +22655,32 @@ export default class Client extends OpenApi {
|
|
|
21626
22655
|
}
|
|
21627
22656
|
|
|
21628
22657
|
/**
|
|
21629
|
-
|
|
21630
|
-
|
|
21631
|
-
|
|
21632
|
-
|
|
21633
|
-
|
|
21634
|
-
|
|
21635
|
-
|
|
21636
|
-
|
|
21637
|
-
|
|
21638
|
-
|
|
21639
|
-
|
|
22658
|
+
* @summary Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
|
|
22659
|
+
*
|
|
22660
|
+
* @description * Before you call this operation, make sure that the following requirements are met:
|
|
22661
|
+
* * The scaling group is in the Active state.
|
|
22662
|
+
* * No scaling activity is in progress within the scaling group.
|
|
22663
|
+
* > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
|
|
22664
|
+
* * 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.
|
|
22665
|
+
* * 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.
|
|
22666
|
+
* * 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.
|
|
22667
|
+
* 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.
|
|
22668
|
+
*
|
|
22669
|
+
* @param request RemoveInstancesRequest
|
|
22670
|
+
* @return RemoveInstancesResponse
|
|
21640
22671
|
*/
|
|
21641
22672
|
async removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse> {
|
|
21642
22673
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21643
22674
|
return await this.removeInstancesWithOptions(request, runtime);
|
|
21644
22675
|
}
|
|
21645
22676
|
|
|
22677
|
+
/**
|
|
22678
|
+
* @summary Resumes suspended processes in a scaling group.
|
|
22679
|
+
*
|
|
22680
|
+
* @param request ResumeProcessesRequest
|
|
22681
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22682
|
+
* @return ResumeProcessesResponse
|
|
22683
|
+
*/
|
|
21646
22684
|
async resumeProcessesWithOptions(request: ResumeProcessesRequest, runtime: $Util.RuntimeOptions): Promise<ResumeProcessesResponse> {
|
|
21647
22685
|
Util.validateModel(request);
|
|
21648
22686
|
let query = { };
|
|
@@ -21687,24 +22725,32 @@ export default class Client extends OpenApi {
|
|
|
21687
22725
|
return $tea.cast<ResumeProcessesResponse>(await this.callApi(params, req, runtime), new ResumeProcessesResponse({}));
|
|
21688
22726
|
}
|
|
21689
22727
|
|
|
22728
|
+
/**
|
|
22729
|
+
* @summary Resumes suspended processes in a scaling group.
|
|
22730
|
+
*
|
|
22731
|
+
* @param request ResumeProcessesRequest
|
|
22732
|
+
* @return ResumeProcessesResponse
|
|
22733
|
+
*/
|
|
21690
22734
|
async resumeProcesses(request: ResumeProcessesRequest): Promise<ResumeProcessesResponse> {
|
|
21691
22735
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21692
22736
|
return await this.resumeProcessesWithOptions(request, runtime);
|
|
21693
22737
|
}
|
|
21694
22738
|
|
|
21695
22739
|
/**
|
|
21696
|
-
|
|
21697
|
-
|
|
21698
|
-
|
|
21699
|
-
|
|
21700
|
-
|
|
21701
|
-
|
|
21702
|
-
|
|
21703
|
-
|
|
21704
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
22740
|
+
* @summary Scales instances in a scaling group based on the specified scaling policy.
|
|
22741
|
+
*
|
|
22742
|
+
* @description 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:
|
|
22743
|
+
* * The following conditions must be met:
|
|
22744
|
+
* * The scaling group is in the Active state.
|
|
22745
|
+
* * No scaling activities in the scaling group are in progress.
|
|
22746
|
+
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
22747
|
+
* * 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.
|
|
22748
|
+
* * 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.
|
|
22749
|
+
* 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.
|
|
22750
|
+
*
|
|
22751
|
+
* @param tmpReq ScaleWithAdjustmentRequest
|
|
22752
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22753
|
+
* @return ScaleWithAdjustmentResponse
|
|
21708
22754
|
*/
|
|
21709
22755
|
async scaleWithAdjustmentWithOptions(tmpReq: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse> {
|
|
21710
22756
|
Util.validateModel(tmpReq);
|
|
@@ -21781,23 +22827,32 @@ export default class Client extends OpenApi {
|
|
|
21781
22827
|
}
|
|
21782
22828
|
|
|
21783
22829
|
/**
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
21792
|
-
|
|
21793
|
-
|
|
21794
|
-
|
|
22830
|
+
* @summary Scales instances in a scaling group based on the specified scaling policy.
|
|
22831
|
+
*
|
|
22832
|
+
* @description 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:
|
|
22833
|
+
* * The following conditions must be met:
|
|
22834
|
+
* * The scaling group is in the Active state.
|
|
22835
|
+
* * No scaling activities in the scaling group are in progress.
|
|
22836
|
+
* * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
|
|
22837
|
+
* * 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.
|
|
22838
|
+
* * 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.
|
|
22839
|
+
* 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.
|
|
22840
|
+
*
|
|
22841
|
+
* @param request ScaleWithAdjustmentRequest
|
|
22842
|
+
* @return ScaleWithAdjustmentResponse
|
|
21795
22843
|
*/
|
|
21796
22844
|
async scaleWithAdjustment(request: ScaleWithAdjustmentRequest): Promise<ScaleWithAdjustmentResponse> {
|
|
21797
22845
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21798
22846
|
return await this.scaleWithAdjustmentWithOptions(request, runtime);
|
|
21799
22847
|
}
|
|
21800
22848
|
|
|
22849
|
+
/**
|
|
22850
|
+
* @summary Sets deletion protection for a scaling group. If you enable deletion protection for a scaling group, you cannot delete the scaling group. If you disable deletion protection for a scaling group, you can directly delete the scaling group. You can call the SetGroupDeletionProtection operation to enable or disable deletion protection.
|
|
22851
|
+
*
|
|
22852
|
+
* @param request SetGroupDeletionProtectionRequest
|
|
22853
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22854
|
+
* @return SetGroupDeletionProtectionResponse
|
|
22855
|
+
*/
|
|
21801
22856
|
async setGroupDeletionProtectionWithOptions(request: SetGroupDeletionProtectionRequest, runtime: $Util.RuntimeOptions): Promise<SetGroupDeletionProtectionResponse> {
|
|
21802
22857
|
Util.validateModel(request);
|
|
21803
22858
|
let query = { };
|
|
@@ -21838,17 +22893,25 @@ export default class Client extends OpenApi {
|
|
|
21838
22893
|
return $tea.cast<SetGroupDeletionProtectionResponse>(await this.callApi(params, req, runtime), new SetGroupDeletionProtectionResponse({}));
|
|
21839
22894
|
}
|
|
21840
22895
|
|
|
22896
|
+
/**
|
|
22897
|
+
* @summary Sets deletion protection for a scaling group. If you enable deletion protection for a scaling group, you cannot delete the scaling group. If you disable deletion protection for a scaling group, you can directly delete the scaling group. You can call the SetGroupDeletionProtection operation to enable or disable deletion protection.
|
|
22898
|
+
*
|
|
22899
|
+
* @param request SetGroupDeletionProtectionRequest
|
|
22900
|
+
* @return SetGroupDeletionProtectionResponse
|
|
22901
|
+
*/
|
|
21841
22902
|
async setGroupDeletionProtection(request: SetGroupDeletionProtectionRequest): Promise<SetGroupDeletionProtectionResponse> {
|
|
21842
22903
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21843
22904
|
return await this.setGroupDeletionProtectionWithOptions(request, runtime);
|
|
21844
22905
|
}
|
|
21845
22906
|
|
|
21846
22907
|
/**
|
|
21847
|
-
|
|
21848
|
-
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
22908
|
+
* @summary Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\&M hurdles efficiently.
|
|
22909
|
+
*
|
|
22910
|
+
* @description Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from the corresponding scaling groups. If you want to retain a specific instance in the corresponding scaling group, you can put the instance into the Standby or Protected state. For more information, see [EnterStandby](~~EnterStandby~~) and [SetInstancesProtection](~~SetInstancesProtection~~).
|
|
22911
|
+
*
|
|
22912
|
+
* @param request SetInstanceHealthRequest
|
|
22913
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22914
|
+
* @return SetInstanceHealthResponse
|
|
21852
22915
|
*/
|
|
21853
22916
|
async setInstanceHealthWithOptions(request: SetInstanceHealthRequest, runtime: $Util.RuntimeOptions): Promise<SetInstanceHealthResponse> {
|
|
21854
22917
|
Util.validateModel(request);
|
|
@@ -21887,10 +22950,12 @@ export default class Client extends OpenApi {
|
|
|
21887
22950
|
}
|
|
21888
22951
|
|
|
21889
22952
|
/**
|
|
21890
|
-
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
|
|
22953
|
+
* @summary Sets instance health. At times, the automatic health check system might not sufficiently determine the precise health status of your Elastic Compute Service (ECS) instances or elastic container instances. To overcome this, you can call the SetInstanceHealth operation to swiftly pinpoint problematic instances and resolve issues. This operation is designed to more precisely align with real-world business requirements and tackle O\\&M hurdles efficiently.
|
|
22954
|
+
*
|
|
22955
|
+
* @description Auto Scaling detects and removes unhealthy ECS instances or elastic container instances from the corresponding scaling groups. If you want to retain a specific instance in the corresponding scaling group, you can put the instance into the Standby or Protected state. For more information, see [EnterStandby](~~EnterStandby~~) and [SetInstancesProtection](~~SetInstancesProtection~~).
|
|
22956
|
+
*
|
|
22957
|
+
* @param request SetInstanceHealthRequest
|
|
22958
|
+
* @return SetInstanceHealthResponse
|
|
21894
22959
|
*/
|
|
21895
22960
|
async setInstanceHealth(request: SetInstanceHealthRequest): Promise<SetInstanceHealthResponse> {
|
|
21896
22961
|
let runtime = new $Util.RuntimeOptions({ });
|
|
@@ -21898,11 +22963,16 @@ export default class Client extends OpenApi {
|
|
|
21898
22963
|
}
|
|
21899
22964
|
|
|
21900
22965
|
/**
|
|
21901
|
-
|
|
21902
|
-
|
|
21903
|
-
|
|
21904
|
-
|
|
21905
|
-
|
|
22966
|
+
* @summary Puts Elastic Compute Service (ECS) instances into the Protected state. When ECS instances are put into the Protected state, they become immune to manual deletion attempts by using the Auto Scaling console or API operations. This operation serves as a robust safeguard, efficiently preventing any inadvertent instance release that could lead to irreversible consequences.
|
|
22967
|
+
*
|
|
22968
|
+
* @description Once ECS instances enter the Protected state, they become subject to the following restrictions:
|
|
22969
|
+
* * ECS instances will persist in the Protected state, unless you deliberately remove them from this state.
|
|
22970
|
+
* * Even in scenarios where automatic scale-in actions are initiated due to fluctuations in the number of ECS instances or the execution of event-triggered tasks, Auto Scaling does not remove ECS instances that are in the Protected state from their respective scaling groups. Only after being manually removed from their respective scaling groups can ECS instances that are in the Protected state be released. For more information, see [Remove an ECS instance](https://help.aliyun.com/document_detail/25955.html).
|
|
22971
|
+
* * ECS instances in the Protected state maintain their existing health status even when they undergo stopping or restarting processes.
|
|
22972
|
+
*
|
|
22973
|
+
* @param request SetInstancesProtectionRequest
|
|
22974
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
22975
|
+
* @return SetInstancesProtectionResponse
|
|
21906
22976
|
*/
|
|
21907
22977
|
async setInstancesProtectionWithOptions(request: SetInstancesProtectionRequest, runtime: $Util.RuntimeOptions): Promise<SetInstancesProtectionResponse> {
|
|
21908
22978
|
Util.validateModel(request);
|
|
@@ -21945,16 +23015,28 @@ export default class Client extends OpenApi {
|
|
|
21945
23015
|
}
|
|
21946
23016
|
|
|
21947
23017
|
/**
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
23018
|
+
* @summary Puts Elastic Compute Service (ECS) instances into the Protected state. When ECS instances are put into the Protected state, they become immune to manual deletion attempts by using the Auto Scaling console or API operations. This operation serves as a robust safeguard, efficiently preventing any inadvertent instance release that could lead to irreversible consequences.
|
|
23019
|
+
*
|
|
23020
|
+
* @description Once ECS instances enter the Protected state, they become subject to the following restrictions:
|
|
23021
|
+
* * ECS instances will persist in the Protected state, unless you deliberately remove them from this state.
|
|
23022
|
+
* * Even in scenarios where automatic scale-in actions are initiated due to fluctuations in the number of ECS instances or the execution of event-triggered tasks, Auto Scaling does not remove ECS instances that are in the Protected state from their respective scaling groups. Only after being manually removed from their respective scaling groups can ECS instances that are in the Protected state be released. For more information, see [Remove an ECS instance](https://help.aliyun.com/document_detail/25955.html).
|
|
23023
|
+
* * ECS instances in the Protected state maintain their existing health status even when they undergo stopping or restarting processes.
|
|
23024
|
+
*
|
|
23025
|
+
* @param request SetInstancesProtectionRequest
|
|
23026
|
+
* @return SetInstancesProtectionResponse
|
|
21952
23027
|
*/
|
|
21953
23028
|
async setInstancesProtection(request: SetInstancesProtectionRequest): Promise<SetInstancesProtectionResponse> {
|
|
21954
23029
|
let runtime = new $Util.RuntimeOptions({ });
|
|
21955
23030
|
return await this.setInstancesProtectionWithOptions(request, runtime);
|
|
21956
23031
|
}
|
|
21957
23032
|
|
|
23033
|
+
/**
|
|
23034
|
+
* @summary Suspends scaling processes. This operation empowers you to selectively pause distinct scaling processes within a particular scaling group, enabling you to carry out alternative tasks and achieve more granular management over your scaling operations.
|
|
23035
|
+
*
|
|
23036
|
+
* @param request SuspendProcessesRequest
|
|
23037
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
23038
|
+
* @return SuspendProcessesResponse
|
|
23039
|
+
*/
|
|
21958
23040
|
async suspendProcessesWithOptions(request: SuspendProcessesRequest, runtime: $Util.RuntimeOptions): Promise<SuspendProcessesResponse> {
|
|
21959
23041
|
Util.validateModel(request);
|
|
21960
23042
|
let query = { };
|
|
@@ -21999,11 +23081,24 @@ export default class Client extends OpenApi {
|
|
|
21999
23081
|
return $tea.cast<SuspendProcessesResponse>(await this.callApi(params, req, runtime), new SuspendProcessesResponse({}));
|
|
22000
23082
|
}
|
|
22001
23083
|
|
|
23084
|
+
/**
|
|
23085
|
+
* @summary Suspends scaling processes. This operation empowers you to selectively pause distinct scaling processes within a particular scaling group, enabling you to carry out alternative tasks and achieve more granular management over your scaling operations.
|
|
23086
|
+
*
|
|
23087
|
+
* @param request SuspendProcessesRequest
|
|
23088
|
+
* @return SuspendProcessesResponse
|
|
23089
|
+
*/
|
|
22002
23090
|
async suspendProcesses(request: SuspendProcessesRequest): Promise<SuspendProcessesResponse> {
|
|
22003
23091
|
let runtime = new $Util.RuntimeOptions({ });
|
|
22004
23092
|
return await this.suspendProcessesWithOptions(request, runtime);
|
|
22005
23093
|
}
|
|
22006
23094
|
|
|
23095
|
+
/**
|
|
23096
|
+
* @summary Adds tags to specified Auto Scaling resources.
|
|
23097
|
+
*
|
|
23098
|
+
* @param request TagResourcesRequest
|
|
23099
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
23100
|
+
* @return TagResourcesResponse
|
|
23101
|
+
*/
|
|
22007
23102
|
async tagResourcesWithOptions(request: TagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
|
|
22008
23103
|
Util.validateModel(request);
|
|
22009
23104
|
let query = { };
|
|
@@ -22048,11 +23143,24 @@ export default class Client extends OpenApi {
|
|
|
22048
23143
|
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
22049
23144
|
}
|
|
22050
23145
|
|
|
23146
|
+
/**
|
|
23147
|
+
* @summary Adds tags to specified Auto Scaling resources.
|
|
23148
|
+
*
|
|
23149
|
+
* @param request TagResourcesRequest
|
|
23150
|
+
* @return TagResourcesResponse
|
|
23151
|
+
*/
|
|
22051
23152
|
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
22052
23153
|
let runtime = new $Util.RuntimeOptions({ });
|
|
22053
23154
|
return await this.tagResourcesWithOptions(request, runtime);
|
|
22054
23155
|
}
|
|
22055
23156
|
|
|
23157
|
+
/**
|
|
23158
|
+
* @summary Removes tags from Auto Scaling resources simultaneously. This operation streamlines resource management activities, enhances system efficiency, and mitigates potential security vulnerabilities. Once a tag is removed from a particular resource, and if it is not re-added to any other resource, the system will automatically delete the unused tag.
|
|
23159
|
+
*
|
|
23160
|
+
* @param request UntagResourcesRequest
|
|
23161
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
23162
|
+
* @return UntagResourcesResponse
|
|
23163
|
+
*/
|
|
22056
23164
|
async untagResourcesWithOptions(request: UntagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse> {
|
|
22057
23165
|
Util.validateModel(request);
|
|
22058
23166
|
let query = { };
|
|
@@ -22101,11 +23209,24 @@ export default class Client extends OpenApi {
|
|
|
22101
23209
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
22102
23210
|
}
|
|
22103
23211
|
|
|
23212
|
+
/**
|
|
23213
|
+
* @summary Removes tags from Auto Scaling resources simultaneously. This operation streamlines resource management activities, enhances system efficiency, and mitigates potential security vulnerabilities. Once a tag is removed from a particular resource, and if it is not re-added to any other resource, the system will automatically delete the unused tag.
|
|
23214
|
+
*
|
|
23215
|
+
* @param request UntagResourcesRequest
|
|
23216
|
+
* @return UntagResourcesResponse
|
|
23217
|
+
*/
|
|
22104
23218
|
async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {
|
|
22105
23219
|
let runtime = new $Util.RuntimeOptions({ });
|
|
22106
23220
|
return await this.untagResourcesWithOptions(request, runtime);
|
|
22107
23221
|
}
|
|
22108
23222
|
|
|
23223
|
+
/**
|
|
23224
|
+
* @summary Checks whether Auto Scaling is authorized to access Elastic Compute Service (ECS) and Elastic Container Instance resources.
|
|
23225
|
+
*
|
|
23226
|
+
* @param request VerifyAuthenticationRequest
|
|
23227
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
23228
|
+
* @return VerifyAuthenticationResponse
|
|
23229
|
+
*/
|
|
22109
23230
|
async verifyAuthenticationWithOptions(request: VerifyAuthenticationRequest, runtime: $Util.RuntimeOptions): Promise<VerifyAuthenticationResponse> {
|
|
22110
23231
|
Util.validateModel(request);
|
|
22111
23232
|
let query = { };
|
|
@@ -22146,11 +23267,24 @@ export default class Client extends OpenApi {
|
|
|
22146
23267
|
return $tea.cast<VerifyAuthenticationResponse>(await this.callApi(params, req, runtime), new VerifyAuthenticationResponse({}));
|
|
22147
23268
|
}
|
|
22148
23269
|
|
|
23270
|
+
/**
|
|
23271
|
+
* @summary Checks whether Auto Scaling is authorized to access Elastic Compute Service (ECS) and Elastic Container Instance resources.
|
|
23272
|
+
*
|
|
23273
|
+
* @param request VerifyAuthenticationRequest
|
|
23274
|
+
* @return VerifyAuthenticationResponse
|
|
23275
|
+
*/
|
|
22149
23276
|
async verifyAuthentication(request: VerifyAuthenticationRequest): Promise<VerifyAuthenticationResponse> {
|
|
22150
23277
|
let runtime = new $Util.RuntimeOptions({ });
|
|
22151
23278
|
return await this.verifyAuthenticationWithOptions(request, runtime);
|
|
22152
23279
|
}
|
|
22153
23280
|
|
|
23281
|
+
/**
|
|
23282
|
+
* @summary Verifies whether Auto Scaling is activated. This operation guarantees that in response to shifts in business workloads or variations in incoming traffic, the system will automatically adjust resource provisioning. This auto-scaling capability enhances the overall system performance, ensuring high availability and improved flexibility to accommodate dynamic demands.
|
|
23283
|
+
*
|
|
23284
|
+
* @param request VerifyUserRequest
|
|
23285
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
23286
|
+
* @return VerifyUserResponse
|
|
23287
|
+
*/
|
|
22154
23288
|
async verifyUserWithOptions(request: VerifyUserRequest, runtime: $Util.RuntimeOptions): Promise<VerifyUserResponse> {
|
|
22155
23289
|
Util.validateModel(request);
|
|
22156
23290
|
let query = { };
|
|
@@ -22187,6 +23321,12 @@ export default class Client extends OpenApi {
|
|
|
22187
23321
|
return $tea.cast<VerifyUserResponse>(await this.callApi(params, req, runtime), new VerifyUserResponse({}));
|
|
22188
23322
|
}
|
|
22189
23323
|
|
|
23324
|
+
/**
|
|
23325
|
+
* @summary Verifies whether Auto Scaling is activated. This operation guarantees that in response to shifts in business workloads or variations in incoming traffic, the system will automatically adjust resource provisioning. This auto-scaling capability enhances the overall system performance, ensuring high availability and improved flexibility to accommodate dynamic demands.
|
|
23326
|
+
*
|
|
23327
|
+
* @param request VerifyUserRequest
|
|
23328
|
+
* @return VerifyUserResponse
|
|
23329
|
+
*/
|
|
22190
23330
|
async verifyUser(request: VerifyUserRequest): Promise<VerifyUserResponse> {
|
|
22191
23331
|
let runtime = new $Util.RuntimeOptions({ });
|
|
22192
23332
|
return await this.verifyUserWithOptions(request, runtime);
|