@alicloud/ecs20140526 3.0.4 → 3.0.5

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.js CHANGED
@@ -14483,6 +14483,7 @@ class DescribeResourcesModificationRequest extends $tea.Model {
14483
14483
  }
14484
14484
  static names() {
14485
14485
  return {
14486
+ conditions: 'Conditions',
14486
14487
  cores: 'Cores',
14487
14488
  destinationResource: 'DestinationResource',
14488
14489
  instanceType: 'InstanceType',
@@ -14500,6 +14501,7 @@ class DescribeResourcesModificationRequest extends $tea.Model {
14500
14501
  }
14501
14502
  static types() {
14502
14503
  return {
14504
+ conditions: { 'type': 'array', 'itemType': 'string' },
14503
14505
  cores: 'number',
14504
14506
  destinationResource: 'string',
14505
14507
  instanceType: 'string',
@@ -19635,6 +19637,76 @@ class ModifyDiskChargeTypeResponse extends $tea.Model {
19635
19637
  }
19636
19638
  }
19637
19639
  exports.ModifyDiskChargeTypeResponse = ModifyDiskChargeTypeResponse;
19640
+ class ModifyDiskDeploymentRequest extends $tea.Model {
19641
+ constructor(map) {
19642
+ super(map);
19643
+ }
19644
+ static names() {
19645
+ return {
19646
+ diskCategory: 'DiskCategory',
19647
+ diskId: 'DiskId',
19648
+ dryRun: 'DryRun',
19649
+ ownerAccount: 'OwnerAccount',
19650
+ ownerId: 'OwnerId',
19651
+ performanceLevel: 'PerformanceLevel',
19652
+ resourceOwnerAccount: 'ResourceOwnerAccount',
19653
+ resourceOwnerId: 'ResourceOwnerId',
19654
+ storageClusterId: 'StorageClusterId',
19655
+ };
19656
+ }
19657
+ static types() {
19658
+ return {
19659
+ diskCategory: 'string',
19660
+ diskId: 'string',
19661
+ dryRun: 'boolean',
19662
+ ownerAccount: 'string',
19663
+ ownerId: 'number',
19664
+ performanceLevel: 'string',
19665
+ resourceOwnerAccount: 'string',
19666
+ resourceOwnerId: 'number',
19667
+ storageClusterId: 'string',
19668
+ };
19669
+ }
19670
+ }
19671
+ exports.ModifyDiskDeploymentRequest = ModifyDiskDeploymentRequest;
19672
+ class ModifyDiskDeploymentResponseBody extends $tea.Model {
19673
+ constructor(map) {
19674
+ super(map);
19675
+ }
19676
+ static names() {
19677
+ return {
19678
+ requestId: 'RequestId',
19679
+ taskId: 'TaskId',
19680
+ };
19681
+ }
19682
+ static types() {
19683
+ return {
19684
+ requestId: 'string',
19685
+ taskId: 'string',
19686
+ };
19687
+ }
19688
+ }
19689
+ exports.ModifyDiskDeploymentResponseBody = ModifyDiskDeploymentResponseBody;
19690
+ class ModifyDiskDeploymentResponse extends $tea.Model {
19691
+ constructor(map) {
19692
+ super(map);
19693
+ }
19694
+ static names() {
19695
+ return {
19696
+ headers: 'headers',
19697
+ statusCode: 'statusCode',
19698
+ body: 'body',
19699
+ };
19700
+ }
19701
+ static types() {
19702
+ return {
19703
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
19704
+ statusCode: 'number',
19705
+ body: ModifyDiskDeploymentResponseBody,
19706
+ };
19707
+ }
19708
+ }
19709
+ exports.ModifyDiskDeploymentResponse = ModifyDiskDeploymentResponse;
19638
19710
  class ModifyDiskSpecRequest extends $tea.Model {
19639
19711
  constructor(map) {
19640
19712
  super(map);
@@ -19646,6 +19718,7 @@ class ModifyDiskSpecRequest extends $tea.Model {
19646
19718
  dryRun: 'DryRun',
19647
19719
  ownerAccount: 'OwnerAccount',
19648
19720
  ownerId: 'OwnerId',
19721
+ performanceControlOptions: 'PerformanceControlOptions',
19649
19722
  performanceLevel: 'PerformanceLevel',
19650
19723
  provisionedIops: 'ProvisionedIops',
19651
19724
  resourceOwnerAccount: 'ResourceOwnerAccount',
@@ -19659,6 +19732,7 @@ class ModifyDiskSpecRequest extends $tea.Model {
19659
19732
  dryRun: 'boolean',
19660
19733
  ownerAccount: 'string',
19661
19734
  ownerId: 'number',
19735
+ performanceControlOptions: ModifyDiskSpecRequestPerformanceControlOptions,
19662
19736
  performanceLevel: 'string',
19663
19737
  provisionedIops: 'number',
19664
19738
  resourceOwnerAccount: 'string',
@@ -20928,10 +21002,12 @@ class ModifyInstanceSpecRequest extends $tea.Model {
20928
21002
  allowMigrateAcrossZone: 'AllowMigrateAcrossZone',
20929
21003
  async: 'Async',
20930
21004
  clientToken: 'ClientToken',
21005
+ disk: 'Disk',
20931
21006
  instanceId: 'InstanceId',
20932
21007
  instanceType: 'InstanceType',
20933
21008
  internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
20934
21009
  internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
21010
+ modifyMode: 'ModifyMode',
20935
21011
  ownerAccount: 'OwnerAccount',
20936
21012
  ownerId: 'OwnerId',
20937
21013
  resourceOwnerAccount: 'ResourceOwnerAccount',
@@ -20945,10 +21021,12 @@ class ModifyInstanceSpecRequest extends $tea.Model {
20945
21021
  allowMigrateAcrossZone: 'boolean',
20946
21022
  async: 'boolean',
20947
21023
  clientToken: 'string',
21024
+ disk: { 'type': 'array', 'itemType': ModifyInstanceSpecRequestDisk },
20948
21025
  instanceId: 'string',
20949
21026
  instanceType: 'string',
20950
21027
  internetMaxBandwidthIn: 'number',
20951
21028
  internetMaxBandwidthOut: 'number',
21029
+ modifyMode: 'string',
20952
21030
  ownerAccount: 'string',
20953
21031
  ownerId: 'number',
20954
21032
  resourceOwnerAccount: 'string',
@@ -21490,10 +21568,12 @@ class ModifyPrepayInstanceSpecRequest extends $tea.Model {
21490
21568
  systemDisk: 'SystemDisk',
21491
21569
  autoPay: 'AutoPay',
21492
21570
  clientToken: 'ClientToken',
21571
+ disk: 'Disk',
21493
21572
  endTime: 'EndTime',
21494
21573
  instanceId: 'InstanceId',
21495
21574
  instanceType: 'InstanceType',
21496
21575
  migrateAcrossZone: 'MigrateAcrossZone',
21576
+ modifyMode: 'ModifyMode',
21497
21577
  operatorType: 'OperatorType',
21498
21578
  ownerAccount: 'OwnerAccount',
21499
21579
  ownerId: 'OwnerId',
@@ -21509,10 +21589,12 @@ class ModifyPrepayInstanceSpecRequest extends $tea.Model {
21509
21589
  systemDisk: ModifyPrepayInstanceSpecRequestSystemDisk,
21510
21590
  autoPay: 'boolean',
21511
21591
  clientToken: 'string',
21592
+ disk: { 'type': 'array', 'itemType': ModifyPrepayInstanceSpecRequestDisk },
21512
21593
  endTime: 'string',
21513
21594
  instanceId: 'string',
21514
21595
  instanceType: 'string',
21515
21596
  migrateAcrossZone: 'boolean',
21597
+ modifyMode: 'string',
21516
21598
  operatorType: 'string',
21517
21599
  ownerAccount: 'string',
21518
21600
  ownerId: 'number',
@@ -37409,6 +37491,82 @@ class DescribeResourceByTagsResponseBodyResources extends $tea.Model {
37409
37491
  }
37410
37492
  }
37411
37493
  exports.DescribeResourceByTagsResponseBodyResources = DescribeResourceByTagsResponseBodyResources;
37494
+ class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition extends $tea.Model {
37495
+ constructor(map) {
37496
+ super(map);
37497
+ }
37498
+ static names() {
37499
+ return {
37500
+ key: 'Key',
37501
+ };
37502
+ }
37503
+ static types() {
37504
+ return {
37505
+ key: 'string',
37506
+ };
37507
+ }
37508
+ }
37509
+ exports.DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition = DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition;
37510
+ class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions extends $tea.Model {
37511
+ constructor(map) {
37512
+ super(map);
37513
+ }
37514
+ static names() {
37515
+ return {
37516
+ condition: 'Condition',
37517
+ };
37518
+ }
37519
+ static types() {
37520
+ return {
37521
+ condition: { 'type': 'array', 'itemType': DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition },
37522
+ };
37523
+ }
37524
+ }
37525
+ exports.DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions = DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions;
37526
+ class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource extends $tea.Model {
37527
+ constructor(map) {
37528
+ super(map);
37529
+ }
37530
+ static names() {
37531
+ return {
37532
+ conditions: 'Conditions',
37533
+ max: 'Max',
37534
+ min: 'Min',
37535
+ status: 'Status',
37536
+ statusCategory: 'StatusCategory',
37537
+ unit: 'Unit',
37538
+ value: 'Value',
37539
+ };
37540
+ }
37541
+ static types() {
37542
+ return {
37543
+ conditions: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions,
37544
+ max: 'number',
37545
+ min: 'number',
37546
+ status: 'string',
37547
+ statusCategory: 'string',
37548
+ unit: 'string',
37549
+ value: 'string',
37550
+ };
37551
+ }
37552
+ }
37553
+ exports.DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource = DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource;
37554
+ class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources extends $tea.Model {
37555
+ constructor(map) {
37556
+ super(map);
37557
+ }
37558
+ static names() {
37559
+ return {
37560
+ conditionSupportedResource: 'ConditionSupportedResource',
37561
+ };
37562
+ }
37563
+ static types() {
37564
+ return {
37565
+ conditionSupportedResource: { 'type': 'array', 'itemType': DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource },
37566
+ };
37567
+ }
37568
+ }
37569
+ exports.DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources = DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources;
37412
37570
  class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource extends $tea.Model {
37413
37571
  constructor(map) {
37414
37572
  super(map);
@@ -37457,12 +37615,14 @@ class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvaila
37457
37615
  }
37458
37616
  static names() {
37459
37617
  return {
37618
+ conditionSupportedResources: 'ConditionSupportedResources',
37460
37619
  supportedResources: 'SupportedResources',
37461
37620
  type: 'Type',
37462
37621
  };
37463
37622
  }
37464
37623
  static types() {
37465
37624
  return {
37625
+ conditionSupportedResources: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources,
37466
37626
  supportedResources: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources,
37467
37627
  type: 'string',
37468
37628
  };
@@ -40255,6 +40415,26 @@ class ModifyDedicatedHostsChargeTypeResponseBodyFeeOfInstances extends $tea.Mode
40255
40415
  }
40256
40416
  }
40257
40417
  exports.ModifyDedicatedHostsChargeTypeResponseBodyFeeOfInstances = ModifyDedicatedHostsChargeTypeResponseBodyFeeOfInstances;
40418
+ class ModifyDiskSpecRequestPerformanceControlOptions extends $tea.Model {
40419
+ constructor(map) {
40420
+ super(map);
40421
+ }
40422
+ static names() {
40423
+ return {
40424
+ IOPS: 'IOPS',
40425
+ recover: 'Recover',
40426
+ throughput: 'Throughput',
40427
+ };
40428
+ }
40429
+ static types() {
40430
+ return {
40431
+ IOPS: 'number',
40432
+ recover: 'string',
40433
+ throughput: 'number',
40434
+ };
40435
+ }
40436
+ }
40437
+ exports.ModifyDiskSpecRequestPerformanceControlOptions = ModifyDiskSpecRequestPerformanceControlOptions;
40258
40438
  class ModifyElasticityAssuranceRequestPrivatePoolOptions extends $tea.Model {
40259
40439
  constructor(map) {
40260
40440
  super(map);
@@ -40415,6 +40595,26 @@ class ModifyInstanceSpecRequestTemporary extends $tea.Model {
40415
40595
  }
40416
40596
  }
40417
40597
  exports.ModifyInstanceSpecRequestTemporary = ModifyInstanceSpecRequestTemporary;
40598
+ class ModifyInstanceSpecRequestDisk extends $tea.Model {
40599
+ constructor(map) {
40600
+ super(map);
40601
+ }
40602
+ static names() {
40603
+ return {
40604
+ category: 'Category',
40605
+ diskId: 'DiskId',
40606
+ performanceLevel: 'PerformanceLevel',
40607
+ };
40608
+ }
40609
+ static types() {
40610
+ return {
40611
+ category: 'string',
40612
+ diskId: 'string',
40613
+ performanceLevel: 'string',
40614
+ };
40615
+ }
40616
+ }
40617
+ exports.ModifyInstanceSpecRequestDisk = ModifyInstanceSpecRequestDisk;
40418
40618
  class ModifyManagedInstanceResponseBodyInstance extends $tea.Model {
40419
40619
  constructor(map) {
40420
40620
  super(map);
@@ -40483,6 +40683,26 @@ class ModifyPrepayInstanceSpecRequestSystemDisk extends $tea.Model {
40483
40683
  }
40484
40684
  }
40485
40685
  exports.ModifyPrepayInstanceSpecRequestSystemDisk = ModifyPrepayInstanceSpecRequestSystemDisk;
40686
+ class ModifyPrepayInstanceSpecRequestDisk extends $tea.Model {
40687
+ constructor(map) {
40688
+ super(map);
40689
+ }
40690
+ static names() {
40691
+ return {
40692
+ category: 'Category',
40693
+ diskId: 'DiskId',
40694
+ performanceLevel: 'PerformanceLevel',
40695
+ };
40696
+ }
40697
+ static types() {
40698
+ return {
40699
+ category: 'string',
40700
+ diskId: 'string',
40701
+ performanceLevel: 'string',
40702
+ };
40703
+ }
40704
+ }
40705
+ exports.ModifyPrepayInstanceSpecRequestDisk = ModifyPrepayInstanceSpecRequestDisk;
40486
40706
  class ModifyReservedInstancesRequestConfiguration extends $tea.Model {
40487
40707
  constructor(map) {
40488
40708
  super(map);
@@ -41778,6 +41998,7 @@ class Client extends openapi_client_1.default {
41778
41998
  }
41779
41999
  /**
41780
42000
  * @deprecated
42001
+ * > This operation has been upgraded. We recommend that you do not use it. For information about the new version of this operation, see [AllocateEipAddress](~~120192~~).
41781
42002
  *
41782
42003
  * @param request AllocateEipAddressRequest
41783
42004
  * @param runtime runtime options for this request RuntimeOptions
@@ -41835,6 +42056,7 @@ class Client extends openapi_client_1.default {
41835
42056
  }
41836
42057
  /**
41837
42058
  * @deprecated
42059
+ * > This operation has been upgraded. We recommend that you do not use it. For information about the new version of this operation, see [AllocateEipAddress](~~120192~~).
41838
42060
  *
41839
42061
  * @param request AllocateEipAddressRequest
41840
42062
  * @return AllocateEipAddressResponse
@@ -41915,7 +42137,7 @@ class Client extends openapi_client_1.default {
41915
42137
  }
41916
42138
  /**
41917
42139
  * * Each disk can have only one automatic snapshot policy applied.
41918
- * * A single automatic snapshot policy can be applied to multiple disks.
42140
+ * * Each automatic snapshot policy can be applied to multiple disks.
41919
42141
  *
41920
42142
  * @param request ApplyAutoSnapshotPolicyRequest
41921
42143
  * @param runtime runtime options for this request RuntimeOptions
@@ -41960,7 +42182,7 @@ class Client extends openapi_client_1.default {
41960
42182
  }
41961
42183
  /**
41962
42184
  * * Each disk can have only one automatic snapshot policy applied.
41963
- * * A single automatic snapshot policy can be applied to multiple disks.
42185
+ * * Each automatic snapshot policy can be applied to multiple disks.
41964
42186
  *
41965
42187
  * @param request ApplyAutoSnapshotPolicyRequest
41966
42188
  * @return ApplyAutoSnapshotPolicyResponse
@@ -42606,18 +42828,17 @@ class Client extends openapi_client_1.default {
42606
42828
  return await this.attachNetworkInterfaceWithOptions(request, runtime);
42607
42829
  }
42608
42830
  /**
42609
- * ## Description
42610
42831
  * When you call this operation, take note of the following items:
42611
42832
  * * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
42612
42833
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42613
42834
  * * When multiple security group rules have the same priority, drop rules take precedence.
42614
42835
  * * The source can be a CIDR block specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by SourceGroupId.
42615
- * * For advanced security groups, security groups cannot be used as authorization objects.
42616
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
42836
+ * * Security groups cannot be referenced as authorization objects in rules of advanced security groups.
42837
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
42617
42838
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42618
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
42839
+ * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters andparameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
42619
42840
  * * You can determine a security group rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
42620
- * * Parameters used to specify a security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange, NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
42841
+ * * Parameters used to specify an inbound security group rule that controls access from a specific CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
42621
42842
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42622
42843
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42623
42844
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -42626,7 +42847,7 @@ class Client extends openapi_client_1.default {
42626
42847
  * &Permissions.1.NicType=intranet
42627
42848
  * &Permissions.1.Policy=Accept
42628
42849
  * &<Common request parameters>
42629
- * * Parameters used to specify a security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. To allow mutual access between security groups in the classic network, you can allow or deny another security group within the same region access to your security group. The security group that is allowed access to your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. To allow mutual access between security groups in VPCs, you can allow or deny another security group within the same VPC access to your security group. Sample request:
42850
+ * * Parameters used to specify an inbound security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. For access control between security groups in the classic network, you can allow or deny other security groups within the same region to access your security group. The security groups that are allowed to access your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. For access control between security groups in VPCs, you can allow or deny another security group within the same VPC to access your security group. Sample request:
42630
42851
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42631
42852
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42632
42853
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -42636,7 +42857,7 @@ class Client extends openapi_client_1.default {
42636
42857
  * &Permissions.1.NicType=intranet
42637
42858
  * &Permissions.1.Policy=Drop
42638
42859
  * &<Common request parameters>
42639
- * * Parameters used to specify a security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
42860
+ * * Parameters used to specify an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
42640
42861
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42641
42862
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42642
42863
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -42753,18 +42974,17 @@ class Client extends openapi_client_1.default {
42753
42974
  return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeSecurityGroupResponse({}));
42754
42975
  }
42755
42976
  /**
42756
- * ## Description
42757
42977
  * When you call this operation, take note of the following items:
42758
42978
  * * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
42759
42979
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42760
42980
  * * When multiple security group rules have the same priority, drop rules take precedence.
42761
42981
  * * The source can be a CIDR block specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by SourceGroupId.
42762
- * * For advanced security groups, security groups cannot be used as authorization objects.
42763
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
42982
+ * * Security groups cannot be referenced as authorization objects in rules of advanced security groups.
42983
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
42764
42984
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42765
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
42985
+ * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters andparameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
42766
42986
  * * You can determine a security group rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
42767
- * * Parameters used to specify a security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange, NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
42987
+ * * Parameters used to specify an inbound security group rule that controls access from a specific CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourceCidrIp. For a security group of the Virtual Private Cloud (VPC) type, you must set the NicType parameter to intranet. For a security group of the classic network type, you can set the NicType parameter to either internet or intranet. Sample request:
42768
42988
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42769
42989
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42770
42990
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -42773,7 +42993,7 @@ class Client extends openapi_client_1.default {
42773
42993
  * &Permissions.1.NicType=intranet
42774
42994
  * &Permissions.1.Policy=Accept
42775
42995
  * &<Common request parameters>
42776
- * * Parameters used to specify a security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. To allow mutual access between security groups in the classic network, you can allow or deny another security group within the same region access to your security group. The security group that is allowed access to your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. To allow mutual access between security groups in VPCs, you can allow or deny another security group within the same VPC access to your security group. Sample request:
42996
+ * * Parameters used to specify an inbound security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceGroupOwnerAccount, and SourceGroupId. In this case, you must set the NicType parameter to intranet. For access control between security groups in the classic network, you can allow or deny other security groups within the same region to access your security group. The security groups that are allowed to access your security group can belong to your own Alibaba Cloud account or another Alibaba Cloud account specified by the SourceGroupOwnerAccount parameter. For access control between security groups in VPCs, you can allow or deny another security group within the same VPC to access your security group. Sample request:
42777
42997
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42778
42998
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42779
42999
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -42783,7 +43003,7 @@ class Client extends openapi_client_1.default {
42783
43003
  * &Permissions.1.NicType=intranet
42784
43004
  * &Permissions.1.Policy=Drop
42785
43005
  * &<Common request parameters>
42786
- * * Parameters used to specify a security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
43006
+ * * Parameters used to specify an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestPrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
42787
43007
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42788
43008
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42789
43009
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -42803,17 +43023,16 @@ class Client extends openapi_client_1.default {
42803
43023
  return await this.authorizeSecurityGroupWithOptions(request, runtime);
42804
43024
  }
42805
43025
  /**
42806
- * ## Description
42807
43026
  * When you call this operation, take note of the following items:
42808
43027
  * * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [](~~25412#SecurityGroupQuota1~~).
42809
43028
  * * You can set Policy to accept or drop for each security group rule to allow or deny access.
42810
43029
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42811
43030
  * * When several security group rules have the same priority, drop rules take precedence.
42812
43031
  * * The destination can be a CIDR block specified by DestCidrIp, Ipv6DestCidrIp, or DestPrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by DestGroupId.
42813
- * * For advanced security groups, security groups cannot be used as authorization objects.
42814
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
43032
+ * * Security groups cannot be referenced as authorization objects in the rules of advanced security groups.
43033
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
42815
43034
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42816
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
43035
+ * * The `Permissions.N` prefix is added to certain parameters to generate new parameters. Original parameters and parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
42817
43036
  * * You can determine a security group rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
42818
43037
  * * Parameters used to specify a security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestCidrIp. Sample request:
42819
43038
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
@@ -42950,17 +43169,16 @@ class Client extends openapi_client_1.default {
42950
43169
  return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeSecurityGroupEgressResponse({}));
42951
43170
  }
42952
43171
  /**
42953
- * ## Description
42954
43172
  * When you call this operation, take note of the following items:
42955
43173
  * * The total number of inbound and outbound security group rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [](~~25412#SecurityGroupQuota1~~).
42956
43174
  * * You can set Policy to accept or drop for each security group rule to allow or deny access.
42957
43175
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42958
43176
  * * When several security group rules have the same priority, drop rules take precedence.
42959
43177
  * * The destination can be a CIDR block specified by DestCidrIp, Ipv6DestCidrIp, or DestPrefixListId or can be Elastic Compute Service (ECS) instances in a security group specified by DestGroupId.
42960
- * * For advanced security groups, security groups cannot be used as authorization objects.
42961
- * * For each basic security group, a maximum of 20 security groups can be used as authorization objects.
43178
+ * * Security groups cannot be referenced as authorization objects in the rules of advanced security groups.
43179
+ * * Up to 20 security groups can be referenced as authorization objects in the rules of each basic security group.
42962
43180
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42963
- * * The `Permissions.N` prefix is added to some parameters to generate new parameters. Original parameters and corresponding parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
43181
+ * * The `Permissions.N` prefix is added to certain parameters to generate new parameters. Original parameters and parameters prefixed with Permissions.N cannot be specified together. We recommend that you use parameters prefixed with `Permissions.N`.
42964
43182
  * * You can determine a security group rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
42965
43183
  * * Parameters used to specify a security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and DestCidrIp. Sample request:
42966
43184
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
@@ -43353,9 +43571,9 @@ class Client extends openapi_client_1.default {
43353
43571
  return await this.connectRouterInterfaceWithOptions(request, runtime);
43354
43572
  }
43355
43573
  /**
43356
- * After a public IP address is converted into an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
43574
+ * After a public IP address is converted to an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
43357
43575
  * Before you call this operation, make sure that the following requirements are met:
43358
- * * The instance is in the `Stopped` or `Running` state.
43576
+ * * The instance is in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
43359
43577
  * * No EIPs are associated with the instance.
43360
43578
  * * The instance has no configuration change tasks that have not taken effect.
43361
43579
  * * The public bandwidth of the instance is not 0 Mbit/s.
@@ -43401,9 +43619,9 @@ class Client extends openapi_client_1.default {
43401
43619
  return $tea.cast(await this.callApi(params, req, runtime), new ConvertNatPublicIpToEipResponse({}));
43402
43620
  }
43403
43621
  /**
43404
- * After a public IP address is converted into an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
43622
+ * After a public IP address is converted to an EIP, the EIP is billed separately. Make sure that you understand the billing methods of EIPs. For more information, see [Billing overview](~~122035~~).
43405
43623
  * Before you call this operation, make sure that the following requirements are met:
43406
- * * The instance is in the `Stopped` or `Running` state.
43624
+ * * The instance is in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
43407
43625
  * * No EIPs are associated with the instance.
43408
43626
  * * The instance has no configuration change tasks that have not taken effect.
43409
43627
  * * The public bandwidth of the instance is not 0 Mbit/s.
@@ -46731,16 +46949,16 @@ class Client extends openapi_client_1.default {
46731
46949
  return await this.createSnapshotWithOptions(request, runtime);
46732
46950
  }
46733
46951
  /**
46734
- * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks of the instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
46735
- * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is specified, `DiskId.N` is only used to specify the disks that are attached to the instance specified by InstanceId.
46952
+ * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks in an instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
46953
+ * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is set, you can use `DiskId.N` to specify only disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify disks attached to multiple instances.
46736
46954
  * When you call this operation, take note of the following items:
46737
46955
  * * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
46738
- * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
46956
+ * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** or **Stopped** state.````
46739
46957
  * * If the disk is in the **Unattached** (`Available`) state, make sure that the disk has been attached to an ECS instance. Snapshots cannot be created for disks that have never been attached to ECS instances.
46740
46958
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
46741
- * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks and cannot exceed 32 TiB in size.
46959
+ * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks. A single snapshot-consistent group cannot exceed 32 TiB in size.
46742
46960
  * * Snapshots that you created by using the snapshot-consistent group feature are retained until they are deleted. We recommend that you delete unnecessary snapshots on a regular basis to prevent them from incurring excessive fees.
46743
- * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to the instance for which you want to create a snapshot-consistent group, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
46961
+ * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to an instance, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
46744
46962
  * For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
46745
46963
  *
46746
46964
  * @param request CreateSnapshotGroupRequest
@@ -46812,16 +47030,16 @@ class Client extends openapi_client_1.default {
46812
47030
  return $tea.cast(await this.callApi(params, req, runtime), new CreateSnapshotGroupResponse({}));
46813
47031
  }
46814
47032
  /**
46815
- * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks of the instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
46816
- * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is specified, `DiskId.N` is only used to specify the disks that are attached to the instance specified by InstanceId.
47033
+ * You can specify `InstanceId` to create a snapshot-consistent group for the specified disks in an instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple disks that are attached to multiple instances within the same zone.
47034
+ * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N`. If `InstanceId` is set, you can use `DiskId.N` to specify only disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify disks attached to multiple instances.
46817
47035
  * When you call this operation, take note of the following items:
46818
47036
  * * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
46819
- * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
47037
+ * * If the disk is in the **In Use** (`In_use`) state, the instance to which the disk is attached must be in the **Running** or **Stopped** state.````
46820
47038
  * * If the disk is in the **Unattached** (`Available`) state, make sure that the disk has been attached to an ECS instance. Snapshots cannot be created for disks that have never been attached to ECS instances.
46821
47039
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
46822
- * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks and cannot exceed 32 TiB in size.
47040
+ * * A single snapshot-consistent group can contain snapshots of up to 16 disks including the system disk and data disks. A single snapshot-consistent group cannot exceed 32 TiB in size.
46823
47041
  * * Snapshots that you created by using the snapshot-consistent group feature are retained until they are deleted. We recommend that you delete unnecessary snapshots on a regular basis to prevent them from incurring excessive fees.
46824
- * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to the instance for which you want to create a snapshot-consistent group, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
47042
+ * * Snapshot-consistent groups cannot be created for disks that have the multi-attach feature enabled. If disks that have the multi-attach feature enabled are attached to an instance, you must set the `ExcludeDiskId.N` parameter to exclude these disks.
46825
47043
  * For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
46826
47044
  *
46827
47045
  * @param request CreateSnapshotGroupRequest
@@ -48824,7 +49042,7 @@ class Client extends openapi_client_1.default {
48824
49042
  /**
48825
49043
  * When you call this operation, take note of the following items:
48826
49044
  * * If the specified snapshot does not exist, the request is ignored.
48827
- * * If the specified snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
49045
+ * * If a snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
48828
49046
  * * If the specified snapshot has been used to create disks and the `Force` parameter is not specified or is set to `false`, the snapshot cannot be deleted directly. If you want to delete the snapshot, set the `Force` parameter to true to forcefully delete the snapshot. The disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
48829
49047
  *
48830
49048
  * @param request DeleteSnapshotRequest
@@ -48871,7 +49089,7 @@ class Client extends openapi_client_1.default {
48871
49089
  /**
48872
49090
  * When you call this operation, take note of the following items:
48873
49091
  * * If the specified snapshot does not exist, the request is ignored.
48874
- * * If the specified snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
49092
+ * * If a snapshot has been used to create custom images, the snapshot cannot be deleted. You must call the [DeleteImage](~~25537~~) operation to delete the custom images before you can delete the snapshot.
48875
49093
  * * If the specified snapshot has been used to create disks and the `Force` parameter is not specified or is set to `false`, the snapshot cannot be deleted directly. If you want to delete the snapshot, set the `Force` parameter to true to forcefully delete the snapshot. The disks created from the snapshot cannot be re-initialized after the snapshot is forcefully deleted.
48876
49094
  *
48877
49095
  * @param request DeleteSnapshotRequest
@@ -49263,7 +49481,7 @@ class Client extends openapi_client_1.default {
49263
49481
  }
49264
49482
  /**
49265
49483
  * After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](~~25412~~).
49266
- * You can also [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex) to request a quota increase.
49484
+ * You can apply for a quota increase in the [Quota Center console](https://ecs.console.aliyun.com/?#/privilegeQuotaV2/region/cn-hangzhou?subTab=userQuota).
49267
49485
  *
49268
49486
  * @param request DescribeAccountAttributesRequest
49269
49487
  * @param runtime runtime options for this request RuntimeOptions
@@ -49308,7 +49526,7 @@ class Client extends openapi_client_1.default {
49308
49526
  }
49309
49527
  /**
49310
49528
  * After you [create](https://account.alibabacloud.com/register/intl_register.htm) an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see [Limits](~~25412~~).
49311
- * You can also [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex) to request a quota increase.
49529
+ * You can apply for a quota increase in the [Quota Center console](https://ecs.console.aliyun.com/?#/privilegeQuotaV2/region/cn-hangzhou?subTab=userQuota).
49312
49530
  *
49313
49531
  * @param request DescribeAccountAttributesRequest
49314
49532
  * @return DescribeAccountAttributesResponse
@@ -51015,6 +51233,14 @@ class Client extends openapi_client_1.default {
51015
51233
  let runtime = new $Util.RuntimeOptions({});
51016
51234
  return await this.describeDisksWithOptions(request, runtime);
51017
51235
  }
51236
+ /**
51237
+ * * The full status information of an EBS device includes the lifecycle status provided by the `Status` parameter, health status provided by the `HealthStatus` parameter, and event type provided by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
51238
+ * * The release time, scheduled execution time, and actual execution time of each EBS device event are identical. If you specify a period of time by using the `EventTime.Start` and `EventTime.End` parameters, all events that occurred within this period are queried. You can query events that occurred within the last seven days.
51239
+ *
51240
+ * @param request DescribeDisksFullStatusRequest
51241
+ * @param runtime runtime options for this request RuntimeOptions
51242
+ * @return DescribeDisksFullStatusResponse
51243
+ */
51018
51244
  async describeDisksFullStatusWithOptions(request, runtime) {
51019
51245
  tea_util_1.default.validateModel(request);
51020
51246
  let query = {};
@@ -51082,6 +51308,13 @@ class Client extends openapi_client_1.default {
51082
51308
  });
51083
51309
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeDisksFullStatusResponse({}));
51084
51310
  }
51311
+ /**
51312
+ * * The full status information of an EBS device includes the lifecycle status provided by the `Status` parameter, health status provided by the `HealthStatus` parameter, and event type provided by the `EventType` parameter of the EBS device. You can filter the results based on these parameters.
51313
+ * * The release time, scheduled execution time, and actual execution time of each EBS device event are identical. If you specify a period of time by using the `EventTime.Start` and `EventTime.End` parameters, all events that occurred within this period are queried. You can query events that occurred within the last seven days.
51314
+ *
51315
+ * @param request DescribeDisksFullStatusRequest
51316
+ * @return DescribeDisksFullStatusResponse
51317
+ */
51085
51318
  async describeDisksFullStatus(request) {
51086
51319
  let runtime = new $Util.RuntimeOptions({});
51087
51320
  return await this.describeDisksFullStatusWithOptions(request, runtime);
@@ -51238,7 +51471,7 @@ class Client extends openapi_client_1.default {
51238
51471
  return await this.describeEipMonitorDataWithOptions(request, runtime);
51239
51472
  }
51240
51473
  /**
51241
- * When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
51474
+ * When an elasticity assurance expires, data about the association between the instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
51242
51475
  *
51243
51476
  * @param request DescribeElasticityAssuranceInstancesRequest
51244
51477
  * @param runtime runtime options for this request RuntimeOptions
@@ -51288,7 +51521,7 @@ class Client extends openapi_client_1.default {
51288
51521
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeElasticityAssuranceInstancesResponse({}));
51289
51522
  }
51290
51523
  /**
51291
- * When an elasticity assurance expires, data about the association between instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
51524
+ * When an elasticity assurance expires, data about the association between the instances and the private pool generated by the elasticity assurance becomes invalid. When you call this operation to query the expired elasticity assurance, no value is returned.
51292
51525
  *
51293
51526
  * @param request DescribeElasticityAssuranceInstancesRequest
51294
51527
  * @return DescribeElasticityAssuranceInstancesResponse
@@ -51829,6 +52062,13 @@ class Client extends openapi_client_1.default {
51829
52062
  let runtime = new $Util.RuntimeOptions({});
51830
52063
  return await this.describeImagePipelineExecutionsWithOptions(request, runtime);
51831
52064
  }
52065
+ /**
52066
+ * You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the last call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
52067
+ *
52068
+ * @param request DescribeImagePipelinesRequest
52069
+ * @param runtime runtime options for this request RuntimeOptions
52070
+ * @return DescribeImagePipelinesResponse
52071
+ */
51832
52072
  async describeImagePipelinesWithOptions(request, runtime) {
51833
52073
  tea_util_1.default.validateModel(request);
51834
52074
  let query = {};
@@ -51887,6 +52127,12 @@ class Client extends openapi_client_1.default {
51887
52127
  });
51888
52128
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeImagePipelinesResponse({}));
51889
52129
  }
52130
+ /**
52131
+ * You can use `NextToken` to configure the query token. Set the value to the `NextToken` value that is returned in the last call to the `DescribeImagePipelines` operation. Then, use `MaxResults` to specify the maximum number of entries to return on each page.
52132
+ *
52133
+ * @param request DescribeImagePipelinesRequest
52134
+ * @return DescribeImagePipelinesResponse
52135
+ */
51890
52136
  async describeImagePipelines(request) {
51891
52137
  let runtime = new $Util.RuntimeOptions({});
51892
52138
  return await this.describeImagePipelinesWithOptions(request, runtime);
@@ -52632,6 +52878,14 @@ class Client extends openapi_client_1.default {
52632
52878
  let runtime = new $Util.RuntimeOptions({});
52633
52879
  return await this.describeInstanceRamRoleWithOptions(request, runtime);
52634
52880
  }
52881
+ /**
52882
+ * * For information about the lifecycle states of an ECS instance, see [Instance states](~~25687~~).
52883
+ * * You can also call this operation to query the list of ECS instances.
52884
+ *
52885
+ * @param request DescribeInstanceStatusRequest
52886
+ * @param runtime runtime options for this request RuntimeOptions
52887
+ * @return DescribeInstanceStatusResponse
52888
+ */
52635
52889
  async describeInstanceStatusWithOptions(request, runtime) {
52636
52890
  tea_util_1.default.validateModel(request);
52637
52891
  let query = {};
@@ -52681,12 +52935,19 @@ class Client extends openapi_client_1.default {
52681
52935
  });
52682
52936
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceStatusResponse({}));
52683
52937
  }
52938
+ /**
52939
+ * * For information about the lifecycle states of an ECS instance, see [Instance states](~~25687~~).
52940
+ * * You can also call this operation to query the list of ECS instances.
52941
+ *
52942
+ * @param request DescribeInstanceStatusRequest
52943
+ * @return DescribeInstanceStatusResponse
52944
+ */
52684
52945
  async describeInstanceStatus(request) {
52685
52946
  let runtime = new $Util.RuntimeOptions({});
52686
52947
  return await this.describeInstanceStatusWithOptions(request, runtime);
52687
52948
  }
52688
52949
  /**
52689
- * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
52950
+ * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
52690
52951
  *
52691
52952
  * @param request DescribeInstanceTopologyRequest
52692
52953
  * @param runtime runtime options for this request RuntimeOptions
@@ -52727,7 +52988,7 @@ class Client extends openapi_client_1.default {
52727
52988
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceTopologyResponse({}));
52728
52989
  }
52729
52990
  /**
52730
- * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
52991
+ * > The DescribeInstanceTopology operation is in invitational preview and is not commercially available.
52731
52992
  *
52732
52993
  * @param request DescribeInstanceTopologyRequest
52733
52994
  * @return DescribeInstanceTopologyResponse
@@ -52777,6 +53038,18 @@ class Client extends openapi_client_1.default {
52777
53038
  let runtime = new $Util.RuntimeOptions({});
52778
53039
  return await this.describeInstanceTypeFamiliesWithOptions(request, runtime);
52779
53040
  }
53041
+ /**
53042
+ * ## Description
53043
+ * Before you call this operation, take note of the following items:
53044
+ * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
53045
+ * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
53046
+ * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
53047
+ * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
53048
+ *
53049
+ * @param request DescribeInstanceTypesRequest
53050
+ * @param runtime runtime options for this request RuntimeOptions
53051
+ * @return DescribeInstanceTypesResponse
53052
+ */
52780
53053
  async describeInstanceTypesWithOptions(request, runtime) {
52781
53054
  tea_util_1.default.validateModel(request);
52782
53055
  let query = {};
@@ -52919,6 +53192,17 @@ class Client extends openapi_client_1.default {
52919
53192
  });
52920
53193
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceTypesResponse({}));
52921
53194
  }
53195
+ /**
53196
+ * ## Description
53197
+ * Before you call this operation, take note of the following items:
53198
+ * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
53199
+ * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
53200
+ * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
53201
+ * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
53202
+ *
53203
+ * @param request DescribeInstanceTypesRequest
53204
+ * @return DescribeInstanceTypesResponse
53205
+ */
52922
53206
  async describeInstanceTypes(request) {
52923
53207
  let runtime = new $Util.RuntimeOptions({});
52924
53208
  return await this.describeInstanceTypesWithOptions(request, runtime);
@@ -52983,13 +53267,13 @@ class Client extends openapi_client_1.default {
52983
53267
  * When you call this operation, take note of the following items:
52984
53268
  * * The URL returned is valid only for 15 seconds. If a connection is not established within 15 seconds after a successful query, the URL expires and you must query it again.
52985
53269
  * * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal within 60 seconds, the VNC management terminal is automatically disconnected.
52986
- * * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
52987
- * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).`` Where,
52988
- * * `vncUrl:` the `VncUrl` value returned after a successful query.
53270
+ * * After the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal a maximum of 30 times a minute.
53271
+ * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).``
53272
+ * * `vncUrl:` the value of the `VncUrl` parameter that is returned after a successful query.
52989
53273
  * * `instanceId:` the ID of your instance.
52990
53274
  * * `isWindows:` specifies whether the operating system of the instance is Windows. Set the parameter to `true` if the operating system is Windows. Set the parameter to `false` if the operating system is not Windows.
52991
- * * `password:` Optional. A six-character password used to connect to the VNC management terminal. It can contain digits and letters. You do not need to enter your password again when the connection is being established if you set this parameter.
52992
- * Example:
53275
+ * * `password:` Optional. A six-character password that is used to connect to the VNC management terminal. It can contain digits and letters. If you specify this parameter, you do not need to enter your password again when the connection is being established.
53276
+ * Examples:
52993
53277
  * ```
52994
53278
  * ```
52995
53279
  * <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
@@ -53042,13 +53326,13 @@ class Client extends openapi_client_1.default {
53042
53326
  * When you call this operation, take note of the following items:
53043
53327
  * * The URL returned is valid only for 15 seconds. If a connection is not established within 15 seconds after a successful query, the URL expires and you must query it again.
53044
53328
  * * The **KeepAlive** time of a connection to a VNC management terminal is 60 seconds. If you do not interact with the VNC management terminal within 60 seconds, the VNC management terminal is automatically disconnected.
53045
- * * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
53046
- * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).`` Where,
53047
- * * `vncUrl:` the `VncUrl` value returned after a successful query.
53329
+ * * After the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal a maximum of 30 times a minute.
53330
+ * * You need to add `vncUrl`, `instanceId`, `isWindows`, and `password` parameters at the end of the URL `https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?`. Separate each parameter with an ampersand (`&`).``
53331
+ * * `vncUrl:` the value of the `VncUrl` parameter that is returned after a successful query.
53048
53332
  * * `instanceId:` the ID of your instance.
53049
53333
  * * `isWindows:` specifies whether the operating system of the instance is Windows. Set the parameter to `true` if the operating system is Windows. Set the parameter to `false` if the operating system is not Windows.
53050
- * * `password:` Optional. A six-character password used to connect to the VNC management terminal. It can contain digits and letters. You do not need to enter your password again when the connection is being established if you set this parameter.
53051
- * Example:
53334
+ * * `password:` Optional. A six-character password that is used to connect to the VNC management terminal. It can contain digits and letters. If you specify this parameter, you do not need to enter your password again when the connection is being established.
53335
+ * Examples:
53052
53336
  * ```
53053
53337
  * ```
53054
53338
  * <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
@@ -53238,7 +53522,7 @@ class Client extends openapi_client_1.default {
53238
53522
  return await this.describeInstancesWithOptions(request, runtime);
53239
53523
  }
53240
53524
  /**
53241
- * The response includes instance states and instance system events in the Scheduled state.
53525
+ * The response includes instance states and instance system events that are in the Scheduled state.
53242
53526
  * If a period is specified, events are queried based on the specified period.
53243
53527
  *
53244
53528
  * @param request DescribeInstancesFullStatusRequest
@@ -53313,7 +53597,7 @@ class Client extends openapi_client_1.default {
53313
53597
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstancesFullStatusResponse({}));
53314
53598
  }
53315
53599
  /**
53316
- * The response includes instance states and instance system events in the Scheduled state.
53600
+ * The response includes instance states and instance system events that are in the Scheduled state.
53317
53601
  * If a period is specified, events are queried based on the specified period.
53318
53602
  *
53319
53603
  * @param request DescribeInstancesFullStatusRequest
@@ -53323,6 +53607,14 @@ class Client extends openapi_client_1.default {
53323
53607
  let runtime = new $Util.RuntimeOptions({});
53324
53608
  return await this.describeInstancesFullStatusWithOptions(request, runtime);
53325
53609
  }
53610
+ /**
53611
+ * * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
53612
+ * * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
53613
+ *
53614
+ * @param request DescribeInvocationResultsRequest
53615
+ * @param runtime runtime options for this request RuntimeOptions
53616
+ * @return DescribeInvocationResultsResponse
53617
+ */
53326
53618
  async describeInvocationResultsWithOptions(request, runtime) {
53327
53619
  tea_util_1.default.validateModel(request);
53328
53620
  let query = {};
@@ -53390,6 +53682,13 @@ class Client extends openapi_client_1.default {
53390
53682
  });
53391
53683
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInvocationResultsResponse({}));
53392
53684
  }
53685
+ /**
53686
+ * * After you run a command, the command may not succeed or return the expected results. You can call this operation to query the actual execution results.
53687
+ * * You can query information about command executions within the last four weeks. A maximum of 100,000 pieces of execution information can be retained.
53688
+ *
53689
+ * @param request DescribeInvocationResultsRequest
53690
+ * @return DescribeInvocationResultsResponse
53691
+ */
53393
53692
  async describeInvocationResults(request) {
53394
53693
  let runtime = new $Util.RuntimeOptions({});
53395
53694
  return await this.describeInvocationResultsWithOptions(request, runtime);
@@ -53952,6 +54251,14 @@ class Client extends openapi_client_1.default {
53952
54251
  let runtime = new $Util.RuntimeOptions({});
53953
54252
  return await this.describeNetworkInterfacePermissionsWithOptions(request, runtime);
53954
54253
  }
54254
+ /**
54255
+ * The `DescribeNetworkInterfaces` operation supports multiple pagination mechanisms. We recommend that you set `MaxResults` to specify the maximum number of entries to return in each request. The returned value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
54256
+ * > If you specify `MaxResults` or `NextToken`, the system returns results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
54257
+ *
54258
+ * @param request DescribeNetworkInterfacesRequest
54259
+ * @param runtime runtime options for this request RuntimeOptions
54260
+ * @return DescribeNetworkInterfacesResponse
54261
+ */
53955
54262
  async describeNetworkInterfacesWithOptions(request, runtime) {
53956
54263
  tea_util_1.default.validateModel(request);
53957
54264
  let query = {};
@@ -54046,6 +54353,13 @@ class Client extends openapi_client_1.default {
54046
54353
  });
54047
54354
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeNetworkInterfacesResponse({}));
54048
54355
  }
54356
+ /**
54357
+ * The `DescribeNetworkInterfaces` operation supports multiple pagination mechanisms. We recommend that you set `MaxResults` to specify the maximum number of entries to return in each request. The returned value of `NextToken` is a pagination token, which can be used in the next request to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
54358
+ * > If you specify `MaxResults` or `NextToken`, the system returns results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
54359
+ *
54360
+ * @param request DescribeNetworkInterfacesRequest
54361
+ * @return DescribeNetworkInterfacesResponse
54362
+ */
54049
54363
  async describeNetworkInterfaces(request) {
54050
54364
  let runtime = new $Util.RuntimeOptions({});
54051
54365
  return await this.describeNetworkInterfacesWithOptions(request, runtime);
@@ -54277,6 +54591,14 @@ class Client extends openapi_client_1.default {
54277
54591
  let runtime = new $Util.RuntimeOptions({});
54278
54592
  return await this.describePrefixListAttributesWithOptions(request, runtime);
54279
54593
  }
54594
+ /**
54595
+ * ## Description
54596
+ * You can specify the `AddressFamily`, `PrefixListId.N`, and `PrefixListName` request parameters to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
54597
+ *
54598
+ * @param request DescribePrefixListsRequest
54599
+ * @param runtime runtime options for this request RuntimeOptions
54600
+ * @return DescribePrefixListsResponse
54601
+ */
54280
54602
  async describePrefixListsWithOptions(request, runtime) {
54281
54603
  tea_util_1.default.validateModel(request);
54282
54604
  let query = {};
@@ -54329,10 +54651,33 @@ class Client extends openapi_client_1.default {
54329
54651
  });
54330
54652
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePrefixListsResponse({}));
54331
54653
  }
54654
+ /**
54655
+ * ## Description
54656
+ * You can specify the `AddressFamily`, `PrefixListId.N`, and `PrefixListName` request parameters to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
54657
+ *
54658
+ * @param request DescribePrefixListsRequest
54659
+ * @return DescribePrefixListsResponse
54660
+ */
54332
54661
  async describePrefixLists(request) {
54333
54662
  let runtime = new $Util.RuntimeOptions({});
54334
54663
  return await this.describePrefixListsWithOptions(request, runtime);
54335
54664
  }
54665
+ /**
54666
+ * ## Description
54667
+ * * The required parameters vary based on the types of resources whose prices you want to query.
54668
+ * * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
54669
+ * * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
54670
+ * * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
54671
+ * * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
54672
+ * * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
54673
+ * * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
54674
+ * * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
54675
+ * * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
54676
+ *
54677
+ * @param request DescribePriceRequest
54678
+ * @param runtime runtime options for this request RuntimeOptions
54679
+ * @return DescribePriceResponse
54680
+ */
54336
54681
  async describePriceWithOptions(request, runtime) {
54337
54682
  tea_util_1.default.validateModel(request);
54338
54683
  let query = {};
@@ -54445,6 +54790,21 @@ class Client extends openapi_client_1.default {
54445
54790
  });
54446
54791
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePriceResponse({}));
54447
54792
  }
54793
+ /**
54794
+ * ## Description
54795
+ * * The required parameters vary based on the types of resources whose prices you want to query.
54796
+ * * When the `ResourceType` parameter is set to instance, you must specify the `InstanceType` parameter.
54797
+ * * When the `ResourceType` parameter is set to disk, you must specify both the `DataDisk.1.Category` and `DataDisk.1.Size` parameters. When the `ResourceType` parameter is set to disk, only pay-as-you-go prices of cloud disks are returned. In this scenario, the `PriceUnit` parameter must be set to `Hour`.
54798
+ * * When the `ResourceType` parameter is set to ddh, you must specify the `DedicatedHostType` parameter.
54799
+ * * When the `ResourceType` parameter is set to ElasticityAssurance, you must specify the `InstanceType` parameter.
54800
+ * * When the `ResourceType` parameter is set to CapacityReservation, you must specify the `InstanceType` parameter.
54801
+ * * When the `ResourceType` parameter is set to bandwidth, only the pay-by-traffic (`PayByTraffic`) price for network usage is returned.
54802
+ * * When the `ResourceType` parameter is set to instance, the prices of up to four data disks can be queried.
54803
+ * * By default, the `ChargeType` parameter is set to `PostPaid`. You can specify the `PriceUnit` parameter to query the prices of ECS resources that have different billing cycles.
54804
+ *
54805
+ * @param request DescribePriceRequest
54806
+ * @return DescribePriceResponse
54807
+ */
54448
54808
  async describePrice(request) {
54449
54809
  let runtime = new $Util.RuntimeOptions({});
54450
54810
  return await this.describePriceWithOptions(request, runtime);
@@ -54589,6 +54949,17 @@ class Client extends openapi_client_1.default {
54589
54949
  let runtime = new $Util.RuntimeOptions({});
54590
54950
  return await this.describeRegionsWithOptions(request, runtime);
54591
54951
  }
54952
+ /**
54953
+ * ## Description
54954
+ * * You can call this operation to query the price for renewing a subscription instance for a specific period of time or to a synchronized expiration date.
54955
+ * * Take note of the following items:
54956
+ * * If you set only the required parameters, the price for renewing a specified instance for one month is queried by default.
54957
+ * * The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the synchronized expiration date-related parameter (`ExpectedRenewDay`) are mutually exclusive. You cannot set these parameters together to query the prices for renewing a specified instance for a period of time and to a synchronized expiration date at the same time.
54958
+ *
54959
+ * @param request DescribeRenewalPriceRequest
54960
+ * @param runtime runtime options for this request RuntimeOptions
54961
+ * @return DescribeRenewalPriceResponse
54962
+ */
54592
54963
  async describeRenewalPriceWithOptions(request, runtime) {
54593
54964
  tea_util_1.default.validateModel(request);
54594
54965
  let query = {};
@@ -54638,6 +55009,16 @@ class Client extends openapi_client_1.default {
54638
55009
  });
54639
55010
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeRenewalPriceResponse({}));
54640
55011
  }
55012
+ /**
55013
+ * ## Description
55014
+ * * You can call this operation to query the price for renewing a subscription instance for a specific period of time or to a synchronized expiration date.
55015
+ * * Take note of the following items:
55016
+ * * If you set only the required parameters, the price for renewing a specified instance for one month is queried by default.
55017
+ * * The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the synchronized expiration date-related parameter (`ExpectedRenewDay`) are mutually exclusive. You cannot set these parameters together to query the prices for renewing a specified instance for a period of time and to a synchronized expiration date at the same time.
55018
+ *
55019
+ * @param request DescribeRenewalPriceRequest
55020
+ * @return DescribeRenewalPriceResponse
55021
+ */
54641
55022
  async describeRenewalPrice(request) {
54642
55023
  let runtime = new $Util.RuntimeOptions({});
54643
55024
  return await this.describeRenewalPriceWithOptions(request, runtime);
@@ -54813,6 +55194,9 @@ class Client extends openapi_client_1.default {
54813
55194
  async describeResourcesModificationWithOptions(request, runtime) {
54814
55195
  tea_util_1.default.validateModel(request);
54815
55196
  let query = {};
55197
+ if (!tea_util_1.default.isUnset(request.conditions)) {
55198
+ query["Conditions"] = request.conditions;
55199
+ }
54816
55200
  if (!tea_util_1.default.isUnset(request.cores)) {
54817
55201
  query["Cores"] = request.cores;
54818
55202
  }
@@ -55371,6 +55755,15 @@ class Client extends openapi_client_1.default {
55371
55755
  let runtime = new $Util.RuntimeOptions({});
55372
55756
  return await this.describeSnapshotGroupsWithOptions(request, runtime);
55373
55757
  }
55758
+ /**
55759
+ * When you call this operation, take note of the following items:
55760
+ * * You can specify multiple request parameters such as `RegionId`, `DiskIds`, and `InstanceId` to be queried. Specified parameters have logical AND relations.
55761
+ * * Only the specified parameters are used as filter conditions. If the `DiskIds` and `SnapshotLinkIds` parameters are set to empty JSON arrays, they are regarded as valid filter conditions and an empty result is returned.
55762
+ *
55763
+ * @param request DescribeSnapshotLinksRequest
55764
+ * @param runtime runtime options for this request RuntimeOptions
55765
+ * @return DescribeSnapshotLinksResponse
55766
+ */
55374
55767
  async describeSnapshotLinksWithOptions(request, runtime) {
55375
55768
  tea_util_1.default.validateModel(request);
55376
55769
  let query = {};
@@ -55420,6 +55813,14 @@ class Client extends openapi_client_1.default {
55420
55813
  });
55421
55814
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeSnapshotLinksResponse({}));
55422
55815
  }
55816
+ /**
55817
+ * When you call this operation, take note of the following items:
55818
+ * * You can specify multiple request parameters such as `RegionId`, `DiskIds`, and `InstanceId` to be queried. Specified parameters have logical AND relations.
55819
+ * * Only the specified parameters are used as filter conditions. If the `DiskIds` and `SnapshotLinkIds` parameters are set to empty JSON arrays, they are regarded as valid filter conditions and an empty result is returned.
55820
+ *
55821
+ * @param request DescribeSnapshotLinksRequest
55822
+ * @return DescribeSnapshotLinksResponse
55823
+ */
55423
55824
  async describeSnapshotLinks(request) {
55424
55825
  let runtime = new $Util.RuntimeOptions({});
55425
55826
  return await this.describeSnapshotLinksWithOptions(request, runtime);
@@ -56043,6 +56444,13 @@ class Client extends openapi_client_1.default {
56043
56444
  let runtime = new $Util.RuntimeOptions({});
56044
56445
  return await this.describeStorageSetsWithOptions(request, runtime);
56045
56446
  }
56447
+ /**
56448
+ * If a tag key is specified and no tag values are specified, all tags that contain the tag key are returned. If a tag key-value pair is specified, only tags that exactly match the key-value pair are returned.
56449
+ *
56450
+ * @param request DescribeTagsRequest
56451
+ * @param runtime runtime options for this request RuntimeOptions
56452
+ * @return DescribeTagsResponse
56453
+ */
56046
56454
  async describeTagsWithOptions(request, runtime) {
56047
56455
  tea_util_1.default.validateModel(request);
56048
56456
  let query = {};
@@ -56092,6 +56500,12 @@ class Client extends openapi_client_1.default {
56092
56500
  });
56093
56501
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTagsResponse({}));
56094
56502
  }
56503
+ /**
56504
+ * If a tag key is specified and no tag values are specified, all tags that contain the tag key are returned. If a tag key-value pair is specified, only tags that exactly match the key-value pair are returned.
56505
+ *
56506
+ * @param request DescribeTagsRequest
56507
+ * @return DescribeTagsResponse
56508
+ */
56095
56509
  async describeTags(request) {
56096
56510
  let runtime = new $Util.RuntimeOptions({});
56097
56511
  return await this.describeTagsWithOptions(request, runtime);
@@ -56732,11 +57146,11 @@ class Client extends openapi_client_1.default {
56732
57146
  }
56733
57147
  /**
56734
57148
  * When you call this operation, take note of the following items:
56735
- * * The disk you want to detach must be in the `In_Use` state.
56736
- * * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
56737
- * * The instance from which you want to detach the system disk must be in the `Stopped` state.****
56738
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
56739
- * * DetachDisk is an asynchronous operation. It takes about one minute for a disk to be detached from an instance after the operation is called.
57149
+ * * The disk that you want to detach must be in the In Use (`In_Use`) state.
57150
+ * * The instance from which you want to detach a data disk must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
57151
+ * * The instance from which you want to detach the system disk must be in the **Stopped** (`Stopped`) state.
57152
+ * * If the `OperationLocks` parameter in the response contains `"LockReason" : "security"` when you query the instance information, the instance is locked for security reasons and all operations do not take effect on the instance.
57153
+ * * DetachDisk is an asynchronous operation. It takes about 1 minute for a disk to be detached from an instance after the operation is called.
56740
57154
  *
56741
57155
  * @param request DetachDiskRequest
56742
57156
  * @param runtime runtime options for this request RuntimeOptions
@@ -56784,11 +57198,11 @@ class Client extends openapi_client_1.default {
56784
57198
  }
56785
57199
  /**
56786
57200
  * When you call this operation, take note of the following items:
56787
- * * The disk you want to detach must be in the `In_Use` state.
56788
- * * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
56789
- * * The instance from which you want to detach the system disk must be in the `Stopped` state.****
56790
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
56791
- * * DetachDisk is an asynchronous operation. It takes about one minute for a disk to be detached from an instance after the operation is called.
57201
+ * * The disk that you want to detach must be in the In Use (`In_Use`) state.
57202
+ * * The instance from which you want to detach a data disk must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
57203
+ * * The instance from which you want to detach the system disk must be in the **Stopped** (`Stopped`) state.
57204
+ * * If the `OperationLocks` parameter in the response contains `"LockReason" : "security"` when you query the instance information, the instance is locked for security reasons and all operations do not take effect on the instance.
57205
+ * * DetachDisk is an asynchronous operation. It takes about 1 minute for a disk to be detached from an instance after the operation is called.
56792
57206
  *
56793
57207
  * @param request DetachDiskRequest
56794
57208
  * @return DetachDiskResponse
@@ -56838,6 +57252,15 @@ class Client extends openapi_client_1.default {
56838
57252
  let runtime = new $Util.RuntimeOptions({});
56839
57253
  return await this.detachInstanceRamRoleWithOptions(request, runtime);
56840
57254
  }
57255
+ /**
57256
+ * When you call this operation, take note of the following items:
57257
+ * * After you detach an SSH key pair from an instance, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the detach operation to take effect.
57258
+ * * The username and password authentication method is automatically selected for an instance after you unbind an SSH key pair from the instance.
57259
+ *
57260
+ * @param request DetachKeyPairRequest
57261
+ * @param runtime runtime options for this request RuntimeOptions
57262
+ * @return DetachKeyPairResponse
57263
+ */
56841
57264
  async detachKeyPairWithOptions(request, runtime) {
56842
57265
  tea_util_1.default.validateModel(request);
56843
57266
  let query = {};
@@ -56875,10 +57298,35 @@ class Client extends openapi_client_1.default {
56875
57298
  });
56876
57299
  return $tea.cast(await this.callApi(params, req, runtime), new DetachKeyPairResponse({}));
56877
57300
  }
57301
+ /**
57302
+ * When you call this operation, take note of the following items:
57303
+ * * After you detach an SSH key pair from an instance, you must call the [RebootInstance](~~25502~~) operation to restart the instance for the detach operation to take effect.
57304
+ * * The username and password authentication method is automatically selected for an instance after you unbind an SSH key pair from the instance.
57305
+ *
57306
+ * @param request DetachKeyPairRequest
57307
+ * @return DetachKeyPairResponse
57308
+ */
56878
57309
  async detachKeyPair(request) {
56879
57310
  let runtime = new $Util.RuntimeOptions({});
56880
57311
  return await this.detachKeyPairWithOptions(request, runtime);
56881
57312
  }
57313
+ /**
57314
+ * ## Description
57315
+ * When you call this operation, take note of the following items:
57316
+ * * Primary ENIs cannot be detached from ECS instances.
57317
+ * * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
57318
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state.
57319
+ * * This operation is an asynchronous operation. After this operation is called to detach an ENI, you can check the state or events of the ENI to determine whether the ENI is detached. The following figure shows the transitions between the states of the ENI.
57320
+ * ![](https://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/file-manage-files/en-US/20230223/uemr/DetachNetworkInterface.png)
57321
+ * * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
57322
+ * * If the ENI is in the Available state, the ENI is detached from its associated instance.
57323
+ * * If the ENI is stuck in the Detaching state, the ENI may fail to be detached from the associated instance due to specific reasons. For example, the ENI may fail to be detached because the operating system did not respond to the ENI detachment request. If this occurs, you can re-initiate the request to detach the ENI. If the problem persists, restart the instance.
57324
+ * **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
57325
+ *
57326
+ * @param request DetachNetworkInterfaceRequest
57327
+ * @param runtime runtime options for this request RuntimeOptions
57328
+ * @return DetachNetworkInterfaceResponse
57329
+ */
56882
57330
  async detachNetworkInterfaceWithOptions(request, runtime) {
56883
57331
  tea_util_1.default.validateModel(request);
56884
57332
  let query = {};
@@ -56925,10 +57373,34 @@ class Client extends openapi_client_1.default {
56925
57373
  });
56926
57374
  return $tea.cast(await this.callApi(params, req, runtime), new DetachNetworkInterfaceResponse({}));
56927
57375
  }
57376
+ /**
57377
+ * ## Description
57378
+ * When you call this operation, take note of the following items:
57379
+ * * Primary ENIs cannot be detached from ECS instances.
57380
+ * * The ENI must be in the Detaching (Detaching) or InUse (InUse) state.
57381
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state.
57382
+ * * This operation is an asynchronous operation. After this operation is called to detach an ENI, you can check the state or events of the ENI to determine whether the ENI is detached. The following figure shows the transitions between the states of the ENI.
57383
+ * ![](https://static-aliyun-doc.oss-cn-hangzhou.aliyuncs.com/file-manage-files/en-US/20230223/uemr/DetachNetworkInterface.png)
57384
+ * * If the ENI is in the Detaching state, the ENI detachment request is sent and the ENI is being detached from its associated instance.
57385
+ * * If the ENI is in the Available state, the ENI is detached from its associated instance.
57386
+ * * If the ENI is stuck in the Detaching state, the ENI may fail to be detached from the associated instance due to specific reasons. For example, the ENI may fail to be detached because the operating system did not respond to the ENI detachment request. If this occurs, you can re-initiate the request to detach the ENI. If the problem persists, restart the instance.
57387
+ * **For information about examples on how to call this operation, see **[Detach an ENI](~~471551~~).
57388
+ *
57389
+ * @param request DetachNetworkInterfaceRequest
57390
+ * @return DetachNetworkInterfaceResponse
57391
+ */
56928
57392
  async detachNetworkInterface(request) {
56929
57393
  let runtime = new $Util.RuntimeOptions({});
56930
57394
  return await this.detachNetworkInterfaceWithOptions(request, runtime);
56931
57395
  }
57396
+ /**
57397
+ * ## Description
57398
+ * To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
57399
+ *
57400
+ * @param request DisableActivationRequest
57401
+ * @param runtime runtime options for this request RuntimeOptions
57402
+ * @return DisableActivationResponse
57403
+ */
56932
57404
  async disableActivationWithOptions(request, runtime) {
56933
57405
  tea_util_1.default.validateModel(request);
56934
57406
  let query = {};
@@ -56969,6 +57441,13 @@ class Client extends openapi_client_1.default {
56969
57441
  });
56970
57442
  return $tea.cast(await this.callApi(params, req, runtime), new DisableActivationResponse({}));
56971
57443
  }
57444
+ /**
57445
+ * ## Description
57446
+ * To prevent an activation code from being leaked, you can call the DisableActivation operation to disable the activation code. Disabled activation codes cannot be used to register new managed instances. However, managed instances that are already registered are not affected.
57447
+ *
57448
+ * @param request DisableActivationRequest
57449
+ * @return DisableActivationResponse
57450
+ */
56972
57451
  async disableActivation(request) {
56973
57452
  let runtime = new $Util.RuntimeOptions({});
56974
57453
  return await this.disableActivationWithOptions(request, runtime);
@@ -57412,6 +57891,15 @@ class Client extends openapi_client_1.default {
57412
57891
  let runtime = new $Util.RuntimeOptions({});
57413
57892
  return await this.exportSnapshotWithOptions(request, runtime);
57414
57893
  }
57894
+ /**
57895
+ * * ECS is a virtualized cloud-based service and cannot be connected to display devices. However, Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to obtain the command outputs.
57896
+ * * The command outputs of instances that use the retired instance types cannot be obtained. For more information, see [Retired instance types](~~55263~~).
57897
+ * * The command outputs of Windows instances cannot be obtained.
57898
+ *
57899
+ * @param request GetInstanceConsoleOutputRequest
57900
+ * @param runtime runtime options for this request RuntimeOptions
57901
+ * @return GetInstanceConsoleOutputResponse
57902
+ */
57415
57903
  async getInstanceConsoleOutputWithOptions(request, runtime) {
57416
57904
  tea_util_1.default.validateModel(request);
57417
57905
  let query = {};
@@ -57455,10 +57943,28 @@ class Client extends openapi_client_1.default {
57455
57943
  });
57456
57944
  return $tea.cast(await this.callApi(params, req, runtime), new GetInstanceConsoleOutputResponse({}));
57457
57945
  }
57946
+ /**
57947
+ * * ECS is a virtualized cloud-based service and cannot be connected to display devices. However, Alibaba Cloud caches system command outputs for the last start, restart, or shutdown of ECS instances. You can call the GetInstanceConsoleOutput operation to obtain the command outputs.
57948
+ * * The command outputs of instances that use the retired instance types cannot be obtained. For more information, see [Retired instance types](~~55263~~).
57949
+ * * The command outputs of Windows instances cannot be obtained.
57950
+ *
57951
+ * @param request GetInstanceConsoleOutputRequest
57952
+ * @return GetInstanceConsoleOutputResponse
57953
+ */
57458
57954
  async getInstanceConsoleOutput(request) {
57459
57955
  let runtime = new $Util.RuntimeOptions({});
57460
57956
  return await this.getInstanceConsoleOutputWithOptions(request, runtime);
57461
57957
  }
57958
+ /**
57959
+ * ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
57960
+ * * The instance must be in the Running state.
57961
+ * * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
57962
+ * * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
57963
+ *
57964
+ * @param request GetInstanceScreenshotRequest
57965
+ * @param runtime runtime options for this request RuntimeOptions
57966
+ * @return GetInstanceScreenshotResponse
57967
+ */
57462
57968
  async getInstanceScreenshotWithOptions(request, runtime) {
57463
57969
  tea_util_1.default.validateModel(request);
57464
57970
  let query = {};
@@ -57502,6 +58008,15 @@ class Client extends openapi_client_1.default {
57502
58008
  });
57503
58009
  return $tea.cast(await this.callApi(params, req, runtime), new GetInstanceScreenshotResponse({}));
57504
58010
  }
58011
+ /**
58012
+ * ECS returns an instance screenshot that is in the JPG format and encoded in Base64. You must manually decode the screenshot. We recommend that you call this operation for troubleshooting and diagnosis. When you call this operation, take note of the following items:
58013
+ * * The instance must be in the Running state.
58014
+ * * You cannot obtain screenshots of instances whose instance types have been retired. For more information, see [Retired instance types](~~55263~~).
58015
+ * * If you want to call this operation on the same instance multiple times, you must wait at least 10 seconds between each call. Otherwise, the `Throttling` error code is returned.
58016
+ *
58017
+ * @param request GetInstanceScreenshotRequest
58018
+ * @return GetInstanceScreenshotResponse
58019
+ */
57505
58020
  async getInstanceScreenshot(request) {
57506
58021
  let runtime = new $Util.RuntimeOptions({});
57507
58022
  return await this.getInstanceScreenshotWithOptions(request, runtime);
@@ -57688,6 +58203,27 @@ class Client extends openapi_client_1.default {
57688
58203
  let runtime = new $Util.RuntimeOptions({});
57689
58204
  return await this.importImageWithOptions(request, runtime);
57690
58205
  }
58206
+ /**
58207
+ * When you call this operation, take note of the following items:
58208
+ * * A maximum of 500 key pairs can be created in each region.
58209
+ * * The key pair that you wan to import must support one of the following encryption methods:
58210
+ * * rsa
58211
+ * * dsa
58212
+ * * ssh-rsa
58213
+ * * ssh-dss
58214
+ * * ecdsa
58215
+ * * ssh-rsa-cert-v00@openssh.com
58216
+ * * ssh-dss-cert-v00@openssh.com
58217
+ * * ssh-rsa-cert-v01@openssh.com
58218
+ * * ssh-dss-cert-v01@openssh.com
58219
+ * * ecdsa-sha2-nistp256-cert-v01@openssh.com
58220
+ * * ecdsa-sha2-nistp384-cert-v01@openssh.com
58221
+ * * ecdsa-sha2-nistp521-cert-v01@openssh.com
58222
+ *
58223
+ * @param request ImportKeyPairRequest
58224
+ * @param runtime runtime options for this request RuntimeOptions
58225
+ * @return ImportKeyPairResponse
58226
+ */
57691
58227
  async importKeyPairWithOptions(request, runtime) {
57692
58228
  tea_util_1.default.validateModel(request);
57693
58229
  let query = {};
@@ -57731,6 +58267,26 @@ class Client extends openapi_client_1.default {
57731
58267
  });
57732
58268
  return $tea.cast(await this.callApi(params, req, runtime), new ImportKeyPairResponse({}));
57733
58269
  }
58270
+ /**
58271
+ * When you call this operation, take note of the following items:
58272
+ * * A maximum of 500 key pairs can be created in each region.
58273
+ * * The key pair that you wan to import must support one of the following encryption methods:
58274
+ * * rsa
58275
+ * * dsa
58276
+ * * ssh-rsa
58277
+ * * ssh-dss
58278
+ * * ecdsa
58279
+ * * ssh-rsa-cert-v00@openssh.com
58280
+ * * ssh-dss-cert-v00@openssh.com
58281
+ * * ssh-rsa-cert-v01@openssh.com
58282
+ * * ssh-dss-cert-v01@openssh.com
58283
+ * * ecdsa-sha2-nistp256-cert-v01@openssh.com
58284
+ * * ecdsa-sha2-nistp384-cert-v01@openssh.com
58285
+ * * ecdsa-sha2-nistp521-cert-v01@openssh.com
58286
+ *
58287
+ * @param request ImportKeyPairRequest
58288
+ * @return ImportKeyPairResponse
58289
+ */
57734
58290
  async importKeyPair(request) {
57735
58291
  let runtime = new $Util.RuntimeOptions({});
57736
58292
  return await this.importKeyPairWithOptions(request, runtime);
@@ -57854,6 +58410,26 @@ class Client extends openapi_client_1.default {
57854
58410
  let runtime = new $Util.RuntimeOptions({});
57855
58411
  return await this.installCloudAssistantWithOptions(request, runtime);
57856
58412
  }
58413
+ /**
58414
+ * * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
58415
+ * * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
58416
+ * * The instances are in the Running (`Running`) state.
58417
+ * * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
58418
+ * * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
58419
+ * * If you set the `Timed` parameter to false, the command is run only once.
58420
+ * * If you set the `Timed` parameter to true, the command is run on a schedule.
58421
+ * * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
58422
+ * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
58423
+ * To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
58424
+ * - Linux: 2.2.3.282
58425
+ * - Windows: 2.1.3.282
58426
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
58427
+ * * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
58428
+ *
58429
+ * @param tmpReq InvokeCommandRequest
58430
+ * @param runtime runtime options for this request RuntimeOptions
58431
+ * @return InvokeCommandResponse
58432
+ */
57857
58433
  async invokeCommandWithOptions(tmpReq, runtime) {
57858
58434
  tea_util_1.default.validateModel(tmpReq);
57859
58435
  let request = new InvokeCommandShrinkRequest({});
@@ -57935,10 +58511,36 @@ class Client extends openapi_client_1.default {
57935
58511
  });
57936
58512
  return $tea.cast(await this.callApi(params, req, runtime), new InvokeCommandResponse({}));
57937
58513
  }
58514
+ /**
58515
+ * * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements to run the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
58516
+ * * The network type is virtual private cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
58517
+ * * The instances are in the Running (`Running`) state.
58518
+ * * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
58519
+ * * Before you run PowerShell commands, make sure that the PowerShell module is configured for the instances.
58520
+ * * If you set the `Timed` parameter to false, the command is run only once.
58521
+ * * If you set the `Timed` parameter to true, the command is run on a schedule.
58522
+ * * The schedule is specified by the `Frequency` parameter. The execution results of a command do not affect the next command execution.
58523
+ * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
58524
+ * To ensure that scheduled tasks can run as expected, make sure that the version of the Cloud Assistant client is not earlier than the following versions. A scheduled task can run a command at a specified interval, only once at a specified time, or at specific times based on a cron expression that includes a specific year or time zone. If the `ClientNeedUpgrade` error code is returned, you must update the Cloud Assistant client to the latest version. For more information, see [Upgrade or disable upgrades for the Cloud Assistant client](~~134383~~).
58525
+ * - Linux: 2.2.3.282
58526
+ * - Windows: 2.1.3.282
58527
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on the Cloud Assistant client. If an execution fails, no execution information is generated.
58528
+ * * If you enable the custom parameter feature by setting the EnableParameter parameter to true when you create a command, you must specify custom parameters (`Parameters`) when you run the command.
58529
+ *
58530
+ * @param request InvokeCommandRequest
58531
+ * @return InvokeCommandResponse
58532
+ */
57938
58533
  async invokeCommand(request) {
57939
58534
  let runtime = new $Util.RuntimeOptions({});
57940
58535
  return await this.invokeCommandWithOptions(request, runtime);
57941
58536
  }
58537
+ /**
58538
+ * A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
58539
+ *
58540
+ * @param request JoinResourceGroupRequest
58541
+ * @param runtime runtime options for this request RuntimeOptions
58542
+ * @return JoinResourceGroupResponse
58543
+ */
57942
58544
  async joinResourceGroupWithOptions(request, runtime) {
57943
58545
  tea_util_1.default.validateModel(request);
57944
58546
  let query = {};
@@ -57982,10 +58584,32 @@ class Client extends openapi_client_1.default {
57982
58584
  });
57983
58585
  return $tea.cast(await this.callApi(params, req, runtime), new JoinResourceGroupResponse({}));
57984
58586
  }
58587
+ /**
58588
+ * A resource is a cloud service entity that you create in Alibaba Cloud, such as an ECS instance, elastic network interface (ENI), or image. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources and monitor and run tasks in a centralized manner without switching between Alibaba Cloud services.
58589
+ *
58590
+ * @param request JoinResourceGroupRequest
58591
+ * @return JoinResourceGroupResponse
58592
+ */
57985
58593
  async joinResourceGroup(request) {
57986
58594
  let runtime = new $Util.RuntimeOptions({});
57987
58595
  return await this.joinResourceGroupWithOptions(request, runtime);
57988
58596
  }
58597
+ /**
58598
+ * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
58599
+ * When you call this operation, take note of the following items:
58600
+ * * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
58601
+ * * An instance can be added to up to five security groups.
58602
+ * * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
58603
+ * *
58604
+ * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
58605
+ * * The security group and the instance must belong to the same region.
58606
+ * * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must be in the same VPC.
58607
+ * * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
58608
+ *
58609
+ * @param request JoinSecurityGroupRequest
58610
+ * @param runtime runtime options for this request RuntimeOptions
58611
+ * @return JoinSecurityGroupResponse
58612
+ */
57989
58613
  async joinSecurityGroupWithOptions(request, runtime) {
57990
58614
  tea_util_1.default.validateModel(request);
57991
58615
  let query = {};
@@ -58029,6 +58653,21 @@ class Client extends openapi_client_1.default {
58029
58653
  });
58030
58654
  return $tea.cast(await this.callApi(params, req, runtime), new JoinSecurityGroupResponse({}));
58031
58655
  }
58656
+ /**
58657
+ * > This operation is not recommended. We recommend that you call the [ModifyInstanceAttribute](~~25503~~) operation to add instances to or remove instances from a security group, and call the [ModifyNetworkInterfaceAttribute](~~58513~~) operation to add ENIs to or remove ENIs from a security group.
58658
+ * When you call this operation, take note of the following items:
58659
+ * * Before you add an instance to a security group, the instance must be in the **Stopped** (Stopped) or **Running** (Running) state.
58660
+ * * An instance can be added to up to five security groups.
58661
+ * * To add an instance to more security groups, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm). An instance can be added to up to 16 security groups.
58662
+ * *
58663
+ * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
58664
+ * * The security group and the instance must belong to the same region.
58665
+ * * The security group and the instance must be of the same network type. If the network type is Virtual Private Cloud (VPC), the security group and the instance must be in the same VPC.
58666
+ * * An instance and an ENI cannot be added to a security group at the same time. You cannot specify the `InstanceId` and `NetworkInterfaceId` parameters at the same time.
58667
+ *
58668
+ * @param request JoinSecurityGroupRequest
58669
+ * @return JoinSecurityGroupResponse
58670
+ */
58032
58671
  async joinSecurityGroup(request) {
58033
58672
  let runtime = new $Util.RuntimeOptions({});
58034
58673
  return await this.joinSecurityGroupWithOptions(request, runtime);
@@ -58101,6 +58740,15 @@ class Client extends openapi_client_1.default {
58101
58740
  let runtime = new $Util.RuntimeOptions({});
58102
58741
  return await this.leaveSecurityGroupWithOptions(request, runtime);
58103
58742
  }
58743
+ /**
58744
+ * Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
58745
+ * - 2.2.3.344 for Linux instances
58746
+ * - 2.1.3.344 for Windows instances
58747
+ *
58748
+ * @param request ListPluginStatusRequest
58749
+ * @param runtime runtime options for this request RuntimeOptions
58750
+ * @return ListPluginStatusResponse
58751
+ */
58104
58752
  async listPluginStatusWithOptions(request, runtime) {
58105
58753
  tea_util_1.default.validateModel(request);
58106
58754
  let query = {};
@@ -58150,10 +58798,31 @@ class Client extends openapi_client_1.default {
58150
58798
  });
58151
58799
  return $tea.cast(await this.callApi(params, req, runtime), new ListPluginStatusResponse({}));
58152
58800
  }
58801
+ /**
58802
+ * Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
58803
+ * - 2.2.3.344 for Linux instances
58804
+ * - 2.1.3.344 for Windows instances
58805
+ *
58806
+ * @param request ListPluginStatusRequest
58807
+ * @return ListPluginStatusResponse
58808
+ */
58153
58809
  async listPluginStatus(request) {
58154
58810
  let runtime = new $Util.RuntimeOptions({});
58155
58811
  return await this.listPluginStatusWithOptions(request, runtime);
58156
58812
  }
58813
+ /**
58814
+ * Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
58815
+ * * `ResourceId.N`
58816
+ * * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
58817
+ * * `TagFilter.N`
58818
+ * If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
58819
+ * * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
58820
+ * * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
58821
+ *
58822
+ * @param request ListTagResourcesRequest
58823
+ * @param runtime runtime options for this request RuntimeOptions
58824
+ * @return ListTagResourcesResponse
58825
+ */
58157
58826
  async listTagResourcesWithOptions(request, runtime) {
58158
58827
  tea_util_1.default.validateModel(request);
58159
58828
  let query = {};
@@ -58206,10 +58875,31 @@ class Client extends openapi_client_1.default {
58206
58875
  });
58207
58876
  return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
58208
58877
  }
58878
+ /**
58879
+ * Specify at least one of the following parameters or parameter pairs in a request to determine a query object:
58880
+ * * `ResourceId.N`
58881
+ * * `Tag.N` parameter pair (`Tag.N.Key` and `Tag.N.Value`)
58882
+ * * `TagFilter.N`
58883
+ * If one of the following sets of request parameters is specified as filter conditions, only ECS resources that meet all of the specified filter conditions are returned:
58884
+ * * Set 1: `Tag.N.Key, Tag.N.Value`, and `ResourceId.N`
58885
+ * * Set 2: `TagFilter.N.TagKey, TagFilter.N.TagValues.N`, and `ResourceId.N`
58886
+ *
58887
+ * @param request ListTagResourcesRequest
58888
+ * @return ListTagResourcesResponse
58889
+ */
58209
58890
  async listTagResources(request) {
58210
58891
  let runtime = new $Util.RuntimeOptions({});
58211
58892
  return await this.listTagResourcesWithOptions(request, runtime);
58212
58893
  }
58894
+ /**
58895
+ * Before you call this operation, take note of the following items:
58896
+ * * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes a scheduling task once after the group is modified.
58897
+ * * You cannot modify an auto provisioning group when the group is being deleted.
58898
+ *
58899
+ * @param request ModifyAutoProvisioningGroupRequest
58900
+ * @param runtime runtime options for this request RuntimeOptions
58901
+ * @return ModifyAutoProvisioningGroupResponse
58902
+ */
58213
58903
  async modifyAutoProvisioningGroupWithOptions(request, runtime) {
58214
58904
  tea_util_1.default.validateModel(request);
58215
58905
  let query = {};
@@ -58274,6 +58964,14 @@ class Client extends openapi_client_1.default {
58274
58964
  });
58275
58965
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyAutoProvisioningGroupResponse({}));
58276
58966
  }
58967
+ /**
58968
+ * Before you call this operation, take note of the following items:
58969
+ * * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes a scheduling task once after the group is modified.
58970
+ * * You cannot modify an auto provisioning group when the group is being deleted.
58971
+ *
58972
+ * @param request ModifyAutoProvisioningGroupRequest
58973
+ * @return ModifyAutoProvisioningGroupResponse
58974
+ */
58277
58975
  async modifyAutoProvisioningGroup(request) {
58278
58976
  let runtime = new $Util.RuntimeOptions({});
58279
58977
  return await this.modifyAutoProvisioningGroupWithOptions(request, runtime);
@@ -58529,6 +59227,14 @@ class Client extends openapi_client_1.default {
58529
59227
  let runtime = new $Util.RuntimeOptions({});
58530
59228
  return await this.modifyCapacityReservationWithOptions(request, runtime);
58531
59229
  }
59230
+ /**
59231
+ * You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
59232
+ * You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
59233
+ *
59234
+ * @param request ModifyCommandRequest
59235
+ * @param runtime runtime options for this request RuntimeOptions
59236
+ * @return ModifyCommandResponse
59237
+ */
58532
59238
  async modifyCommandWithOptions(request, runtime) {
58533
59239
  tea_util_1.default.validateModel(request);
58534
59240
  let query = {};
@@ -58584,10 +59290,26 @@ class Client extends openapi_client_1.default {
58584
59290
  });
58585
59291
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyCommandResponse({}));
58586
59292
  }
59293
+ /**
59294
+ * You can modify a command when it is being executed. After the command is modified, the new command content applies to subsequent executions.
59295
+ * You cannot modify the command type. For example, you cannot change a shell command (RunShellScript) to a batch command (RunBatScript).
59296
+ *
59297
+ * @param request ModifyCommandRequest
59298
+ * @return ModifyCommandResponse
59299
+ */
58587
59300
  async modifyCommand(request) {
58588
59301
  let runtime = new $Util.RuntimeOptions({});
58589
59302
  return await this.modifyCommandWithOptions(request, runtime);
58590
59303
  }
59304
+ /**
59305
+ * ## Description
59306
+ * * All the Elastic Compute Service (ECS) instances that are hosted on a dedicated host must be in the Stopped (`Stopped`) state before you can modify the CPU overcommit ratio of the dedicated host.
59307
+ * * Modifications to the CPU overcommit ratio of a dedicated host do not affect the operation of the dedicated host. After the CPU overcommit ratio is modified, the number of allocated vCPUs on the dedicated host cannot exceed the new total number of vCPUs. Otherwise, ECS instances that use the excess vCPUs cannot start.
59308
+ *
59309
+ * @param request ModifyDedicatedHostAttributeRequest
59310
+ * @param runtime runtime options for this request RuntimeOptions
59311
+ * @return ModifyDedicatedHostAttributeResponse
59312
+ */
58591
59313
  async modifyDedicatedHostAttributeWithOptions(request, runtime) {
58592
59314
  tea_util_1.default.validateModel(request);
58593
59315
  let query = {};
@@ -58646,10 +59368,25 @@ class Client extends openapi_client_1.default {
58646
59368
  });
58647
59369
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDedicatedHostAttributeResponse({}));
58648
59370
  }
59371
+ /**
59372
+ * ## Description
59373
+ * * All the Elastic Compute Service (ECS) instances that are hosted on a dedicated host must be in the Stopped (`Stopped`) state before you can modify the CPU overcommit ratio of the dedicated host.
59374
+ * * Modifications to the CPU overcommit ratio of a dedicated host do not affect the operation of the dedicated host. After the CPU overcommit ratio is modified, the number of allocated vCPUs on the dedicated host cannot exceed the new total number of vCPUs. Otherwise, ECS instances that use the excess vCPUs cannot start.
59375
+ *
59376
+ * @param request ModifyDedicatedHostAttributeRequest
59377
+ * @return ModifyDedicatedHostAttributeResponse
59378
+ */
58649
59379
  async modifyDedicatedHostAttribute(request) {
58650
59380
  let runtime = new $Util.RuntimeOptions({});
58651
59381
  return await this.modifyDedicatedHostAttributeWithOptions(request, runtime);
58652
59382
  }
59383
+ /**
59384
+ * The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
59385
+ *
59386
+ * @param request ModifyDedicatedHostAutoReleaseTimeRequest
59387
+ * @param runtime runtime options for this request RuntimeOptions
59388
+ * @return ModifyDedicatedHostAutoReleaseTimeResponse
59389
+ */
58653
59390
  async modifyDedicatedHostAutoReleaseTimeWithOptions(request, runtime) {
58654
59391
  tea_util_1.default.validateModel(request);
58655
59392
  let query = {};
@@ -58690,10 +59427,25 @@ class Client extends openapi_client_1.default {
58690
59427
  });
58691
59428
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDedicatedHostAutoReleaseTimeResponse({}));
58692
59429
  }
59430
+ /**
59431
+ * The pay-as-you-go dedicated host is automatically released at the specified time. Make sure that the dedicated host is no longer needed and that its data is backed up.
59432
+ *
59433
+ * @param request ModifyDedicatedHostAutoReleaseTimeRequest
59434
+ * @return ModifyDedicatedHostAutoReleaseTimeResponse
59435
+ */
58693
59436
  async modifyDedicatedHostAutoReleaseTime(request) {
58694
59437
  let runtime = new $Util.RuntimeOptions({});
58695
59438
  return await this.modifyDedicatedHostAutoReleaseTimeWithOptions(request, runtime);
58696
59439
  }
59440
+ /**
59441
+ * ## Description
59442
+ * * If you enable auto-renewal for your subscription dedicated host, the dedicated host is automatically renewed nine days before expiration. The renewal fees are automatically paid at 08:00:00 (UTC+8). If the fees are not paid, they are paid at the same point in time the next day. Automatic payment stops after the fees are paid or after the dedicated host expires and is locked. Make sure that you have sufficient balance within your account.
59443
+ * * Subscription dedicated hosts can be automatically renewed along with the subscription Elastic Compute Service (ECS) instances hosted on the dedicated hosts. For more information, see the description of the AutoRenewWithEcs parameter.
59444
+ *
59445
+ * @param request ModifyDedicatedHostAutoRenewAttributeRequest
59446
+ * @param runtime runtime options for this request RuntimeOptions
59447
+ * @return ModifyDedicatedHostAutoRenewAttributeResponse
59448
+ */
58697
59449
  async modifyDedicatedHostAutoRenewAttributeWithOptions(request, runtime) {
58698
59450
  tea_util_1.default.validateModel(request);
58699
59451
  let query = {};
@@ -58746,6 +59498,14 @@ class Client extends openapi_client_1.default {
58746
59498
  });
58747
59499
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDedicatedHostAutoRenewAttributeResponse({}));
58748
59500
  }
59501
+ /**
59502
+ * ## Description
59503
+ * * If you enable auto-renewal for your subscription dedicated host, the dedicated host is automatically renewed nine days before expiration. The renewal fees are automatically paid at 08:00:00 (UTC+8). If the fees are not paid, they are paid at the same point in time the next day. Automatic payment stops after the fees are paid or after the dedicated host expires and is locked. Make sure that you have sufficient balance within your account.
59504
+ * * Subscription dedicated hosts can be automatically renewed along with the subscription Elastic Compute Service (ECS) instances hosted on the dedicated hosts. For more information, see the description of the AutoRenewWithEcs parameter.
59505
+ *
59506
+ * @param request ModifyDedicatedHostAutoRenewAttributeRequest
59507
+ * @return ModifyDedicatedHostAutoRenewAttributeResponse
59508
+ */
58749
59509
  async modifyDedicatedHostAutoRenewAttribute(request) {
58750
59510
  let runtime = new $Util.RuntimeOptions({});
58751
59511
  return await this.modifyDedicatedHostAutoRenewAttributeWithOptions(request, runtime);
@@ -59113,6 +59873,21 @@ class Client extends openapi_client_1.default {
59113
59873
  let runtime = new $Util.RuntimeOptions({});
59114
59874
  return await this.modifyDiskAttributeWithOptions(request, runtime);
59115
59875
  }
59876
+ /**
59877
+ * After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
59878
+ * When you call this operation, take note of the following items:
59879
+ * * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
59880
+ * * You can change the billing method from pay-as-you-go to subscription for data disks that are attached to a subscription or pay-as-you-go instance.
59881
+ * * The instance cannot be in the Stopped state due to overdue payments.
59882
+ * * You can change the billing method of each disk up to three times. Up to three refunds can be made for the price differences for each disk.
59883
+ * * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
59884
+ * * You cannot change the billing method again within 5 minutes of a successful change.
59885
+ * * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
59886
+ *
59887
+ * @param request ModifyDiskChargeTypeRequest
59888
+ * @param runtime runtime options for this request RuntimeOptions
59889
+ * @return ModifyDiskChargeTypeResponse
59890
+ */
59116
59891
  async modifyDiskChargeTypeWithOptions(request, runtime) {
59117
59892
  tea_util_1.default.validateModel(request);
59118
59893
  let query = {};
@@ -59162,10 +59937,74 @@ class Client extends openapi_client_1.default {
59162
59937
  });
59163
59938
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDiskChargeTypeResponse({}));
59164
59939
  }
59940
+ /**
59941
+ * After you change the billing method, the payment (if any) is automatically completed. Maintain a sufficient account balance. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the AutoPay parameter to false to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
59942
+ * When you call this operation, take note of the following items:
59943
+ * * You can change the billing method from subscription to pay-as-you-go for disks that are attached to a subscription instance.
59944
+ * * You can change the billing method from pay-as-you-go to subscription for data disks that are attached to a subscription or pay-as-you-go instance.
59945
+ * * The instance cannot be in the Stopped state due to overdue payments.
59946
+ * * You can change the billing method of each disk up to three times. Up to three refunds can be made for the price differences for each disk.
59947
+ * * The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
59948
+ * * You cannot change the billing method again within 5 minutes of a successful change.
59949
+ * * The billing method of disks with the multi-attach feature enabled must be pay-as-you-go and cannot be changed to subscription.
59950
+ *
59951
+ * @param request ModifyDiskChargeTypeRequest
59952
+ * @return ModifyDiskChargeTypeResponse
59953
+ */
59165
59954
  async modifyDiskChargeType(request) {
59166
59955
  let runtime = new $Util.RuntimeOptions({});
59167
59956
  return await this.modifyDiskChargeTypeWithOptions(request, runtime);
59168
59957
  }
59958
+ async modifyDiskDeploymentWithOptions(request, runtime) {
59959
+ tea_util_1.default.validateModel(request);
59960
+ let query = {};
59961
+ if (!tea_util_1.default.isUnset(request.diskCategory)) {
59962
+ query["DiskCategory"] = request.diskCategory;
59963
+ }
59964
+ if (!tea_util_1.default.isUnset(request.diskId)) {
59965
+ query["DiskId"] = request.diskId;
59966
+ }
59967
+ if (!tea_util_1.default.isUnset(request.dryRun)) {
59968
+ query["DryRun"] = request.dryRun;
59969
+ }
59970
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
59971
+ query["OwnerAccount"] = request.ownerAccount;
59972
+ }
59973
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
59974
+ query["OwnerId"] = request.ownerId;
59975
+ }
59976
+ if (!tea_util_1.default.isUnset(request.performanceLevel)) {
59977
+ query["PerformanceLevel"] = request.performanceLevel;
59978
+ }
59979
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
59980
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
59981
+ }
59982
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
59983
+ query["ResourceOwnerId"] = request.resourceOwnerId;
59984
+ }
59985
+ if (!tea_util_1.default.isUnset(request.storageClusterId)) {
59986
+ query["StorageClusterId"] = request.storageClusterId;
59987
+ }
59988
+ let req = new $OpenApi.OpenApiRequest({
59989
+ query: openapi_util_1.default.query(query),
59990
+ });
59991
+ let params = new $OpenApi.Params({
59992
+ action: "ModifyDiskDeployment",
59993
+ version: "2014-05-26",
59994
+ protocol: "HTTPS",
59995
+ pathname: "/",
59996
+ method: "POST",
59997
+ authType: "AK",
59998
+ style: "RPC",
59999
+ reqBodyType: "formData",
60000
+ bodyType: "json",
60001
+ });
60002
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyDiskDeploymentResponse({}));
60003
+ }
60004
+ async modifyDiskDeployment(request) {
60005
+ let runtime = new $Util.RuntimeOptions({});
60006
+ return await this.modifyDiskDeploymentWithOptions(request, runtime);
60007
+ }
59169
60008
  /**
59170
60009
  * ## Description
59171
60010
  * When you call this operation, take note of the following items:
@@ -59200,6 +60039,9 @@ class Client extends openapi_client_1.default {
59200
60039
  if (!tea_util_1.default.isUnset(request.ownerId)) {
59201
60040
  query["OwnerId"] = request.ownerId;
59202
60041
  }
60042
+ if (!tea_util_1.default.isUnset(request.performanceControlOptions)) {
60043
+ query["PerformanceControlOptions"] = request.performanceControlOptions;
60044
+ }
59203
60045
  if (!tea_util_1.default.isUnset(request.performanceLevel)) {
59204
60046
  query["PerformanceLevel"] = request.performanceLevel;
59205
60047
  }
@@ -59749,6 +60591,20 @@ class Client extends openapi_client_1.default {
59749
60591
  let runtime = new $Util.RuntimeOptions({});
59750
60592
  return await this.modifyImageSharePermissionWithOptions(request, runtime);
59751
60593
  }
60594
+ /**
60595
+ * A private pool is generated after an elasticity assurance or a capacity reservation is created. The private pool is associated with information about instances that are created by using the private pool. You can also use a private pool when you create an ECS instance, so that the instance can be matched to the elasticity assurance or capacity reservation associated with the private pool.
60596
+ * * After you call this operation to modify the attributes of the private pool for an instance, you do not need to restart the instance.
60597
+ * * When you call the following operations, the system rematches the instance with private pools. If the instance already matches a specified private pool, the call to an operation may fail when the private pool capacity is used up or because the private pool expires. If the call fails, call the ModifyInstanceAttachmentAttributes operation to change the match mode of the private pool to `Open`.
60598
+ * * StartInstance
60599
+ * * ReActivateInstances
60600
+ * * ModifyInstanceChargeType
60601
+ * * ModifyPrepayInstanceSpec
60602
+ * * ReplaceSystemDisk
60603
+ *
60604
+ * @param request ModifyInstanceAttachmentAttributesRequest
60605
+ * @param runtime runtime options for this request RuntimeOptions
60606
+ * @return ModifyInstanceAttachmentAttributesResponse
60607
+ */
59752
60608
  async modifyInstanceAttachmentAttributesWithOptions(request, runtime) {
59753
60609
  tea_util_1.default.validateModel(request);
59754
60610
  let query = {};
@@ -59789,10 +60645,46 @@ class Client extends openapi_client_1.default {
59789
60645
  });
59790
60646
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAttachmentAttributesResponse({}));
59791
60647
  }
60648
+ /**
60649
+ * A private pool is generated after an elasticity assurance or a capacity reservation is created. The private pool is associated with information about instances that are created by using the private pool. You can also use a private pool when you create an ECS instance, so that the instance can be matched to the elasticity assurance or capacity reservation associated with the private pool.
60650
+ * * After you call this operation to modify the attributes of the private pool for an instance, you do not need to restart the instance.
60651
+ * * When you call the following operations, the system rematches the instance with private pools. If the instance already matches a specified private pool, the call to an operation may fail when the private pool capacity is used up or because the private pool expires. If the call fails, call the ModifyInstanceAttachmentAttributes operation to change the match mode of the private pool to `Open`.
60652
+ * * StartInstance
60653
+ * * ReActivateInstances
60654
+ * * ModifyInstanceChargeType
60655
+ * * ModifyPrepayInstanceSpec
60656
+ * * ReplaceSystemDisk
60657
+ *
60658
+ * @param request ModifyInstanceAttachmentAttributesRequest
60659
+ * @return ModifyInstanceAttachmentAttributesResponse
60660
+ */
59792
60661
  async modifyInstanceAttachmentAttributes(request) {
59793
60662
  let runtime = new $Util.RuntimeOptions({});
59794
60663
  return await this.modifyInstanceAttachmentAttributesWithOptions(request, runtime);
59795
60664
  }
60665
+ /**
60666
+ * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
60667
+ * When you call this operation, take note of the following items:
60668
+ * * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
60669
+ * * Reset the password (`Password`):
60670
+ * * The instance must not be in the **Starting** (`Starting`) state.
60671
+ * * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
60672
+ * * Modify user data (`UserData`):
60673
+ * * The instance must be in the **Stopped** (`Stopped`) state.
60674
+ * * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
60675
+ * * Change the security group (`SecurityGroupIds.N`):
60676
+ * * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
60677
+ * * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
60678
+ * * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
60679
+ * * The instance must be in the Stopped (`Stopped`) state.
60680
+ * * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
60681
+ * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
60682
+ * * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
60683
+ *
60684
+ * @param request ModifyInstanceAttributeRequest
60685
+ * @param runtime runtime options for this request RuntimeOptions
60686
+ * @return ModifyInstanceAttributeResponse
60687
+ */
59796
60688
  async modifyInstanceAttributeWithOptions(request, runtime) {
59797
60689
  tea_util_1.default.validateModel(request);
59798
60690
  let query = {};
@@ -59863,6 +60755,28 @@ class Client extends openapi_client_1.default {
59863
60755
  });
59864
60756
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAttributeResponse({}));
59865
60757
  }
60758
+ /**
60759
+ * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons and all operations are prohibited on it.
60760
+ * When you call this operation, take note of the following items:
60761
+ * * Modify the hostname (`HostName`): After the hostname is modified, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. The new hostname does not take effect if you restart the instance from within the operating system.
60762
+ * * Reset the password (`Password`):
60763
+ * * The instance must not be in the **Starting** (`Starting`) state.
60764
+ * * After the password is reset, you must restart the instance by performing the operations described in [Restart an instance](~~25440~~) in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. The new password does not take effect if you restart the instance from within the operating system.
60765
+ * * Modify user data (`UserData`):
60766
+ * * The instance must be in the **Stopped** (`Stopped`) state.
60767
+ * * The instance must meet the conditions on user data. For more information, see [Overview of ECS instance user data](~~49121~~).
60768
+ * * Change the security group (`SecurityGroupIds.N`):
60769
+ * * You can move an instance to a security group of a different type. Before you move an instance to a security group of a different type, we recommend that you evaluate the differences in rule configurations of the two security group types. This helps prevent business continuity issues when you switch security groups.
60770
+ * * Security groups of instances in the classic network cannot be changed. For more information, see the description of the `SecurityGroupIds.N` parameter.
60771
+ * * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
60772
+ * * The instance must be in the Stopped (`Stopped`) state.
60773
+ * * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type.
60774
+ * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
60775
+ * * If you set the NetworkInterfaceQueueNumber parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
60776
+ *
60777
+ * @param request ModifyInstanceAttributeRequest
60778
+ * @return ModifyInstanceAttributeResponse
60779
+ */
59866
60780
  async modifyInstanceAttribute(request) {
59867
60781
  let runtime = new $Util.RuntimeOptions({});
59868
60782
  return await this.modifyInstanceAttributeWithOptions(request, runtime);
@@ -59912,9 +60826,8 @@ class Client extends openapi_client_1.default {
59912
60826
  return await this.modifyInstanceAutoReleaseTimeWithOptions(request, runtime);
59913
60827
  }
59914
60828
  /**
59915
- * Before you call this operation, make sure that you understand the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
59916
- * * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
59917
- * * If the subscription period of a new instance is one week, the renewal payment is automatically deducted on the day the instance is created.
60829
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
60830
+ * * The payment for auto-renewal is deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
59918
60831
  * * If the first deduction attempt fails, Alibaba Cloud attempts to deduct the payment each day until the payment is deducted or until the instance is locked after the nine-day period ends. Make sure that your account balance or credit balance is sufficient.
59919
60832
  *
59920
60833
  * @param request ModifyInstanceAutoRenewAttributeRequest
@@ -59971,9 +60884,8 @@ class Client extends openapi_client_1.default {
59971
60884
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAutoRenewAttributeResponse({}));
59972
60885
  }
59973
60886
  /**
59974
- * Before you call this operation, make sure that you understand the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
59975
- * * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
59976
- * * If the subscription period of a new instance is one week, the renewal payment is automatically deducted on the day the instance is created.
60887
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
60888
+ * * The payment for auto-renewal is deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
59977
60889
  * * If the first deduction attempt fails, Alibaba Cloud attempts to deduct the payment each day until the payment is deducted or until the instance is locked after the nine-day period ends. Make sure that your account balance or credit balance is sufficient.
59978
60890
  *
59979
60891
  * @param request ModifyInstanceAutoRenewAttributeRequest
@@ -59983,6 +60895,23 @@ class Client extends openapi_client_1.default {
59983
60895
  let runtime = new $Util.RuntimeOptions({});
59984
60896
  return await this.modifyInstanceAutoRenewAttributeWithOptions(request, runtime);
59985
60897
  }
60898
+ /**
60899
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
60900
+ * When you call this operation, take note of the following items:
60901
+ * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you cannot have overdue payments associated with them.
60902
+ * * After you change the billing method, the payment (if any) is automatically completed. Make sure that the balance in your account is sufficient. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the `AutoPay` parameter to `false` to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
60903
+ * * **Change the billing method from subscription to pay-as-you-go**:
60904
+ * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
60905
+ * * After you change the billing method of an instance from subscription to pay-as-you-go, the new billing method remains in effect for the remaining lifecycle of the instance. The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
60906
+ * * **Refund rule**: You have a quota for the total refund amount each month, and the unused balance of this quota is not carried over to the next month. If you use up the refund quota of the current month, you can change the billing method only in the next month. The refund amount incurred after you change the billing method is calculated based on the following formula: **Number of vCPUs × (Number of remaining days × 24 ± Number of remaining or elapsed hours)**.
60907
+ * * **Change the billing method from pay-as-you-go to subscription**:
60908
+ * * You can change the billing method of all data disks that are attached to an instance from pay-as-you-go to subscription.
60909
+ * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
60910
+ *
60911
+ * @param request ModifyInstanceChargeTypeRequest
60912
+ * @param runtime runtime options for this request RuntimeOptions
60913
+ * @return ModifyInstanceChargeTypeResponse
60914
+ */
59986
60915
  async modifyInstanceChargeTypeWithOptions(request, runtime) {
59987
60916
  tea_util_1.default.validateModel(request);
59988
60917
  let query = {};
@@ -60044,6 +60973,22 @@ class Client extends openapi_client_1.default {
60044
60973
  });
60045
60974
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceChargeTypeResponse({}));
60046
60975
  }
60976
+ /**
60977
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
60978
+ * When you call this operation, take note of the following items:
60979
+ * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you cannot have overdue payments associated with them.
60980
+ * * After you change the billing method, the payment (if any) is automatically completed. Make sure that the balance in your account is sufficient. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set the `AutoPay` parameter to `false` to generate an unpaid order. Then, you can log on to the [ECS console](https://ecs.console.aliyun.com/) to pay for the order.
60981
+ * * **Change the billing method from subscription to pay-as-you-go**:
60982
+ * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
60983
+ * * After you change the billing method of an instance from subscription to pay-as-you-go, the new billing method remains in effect for the remaining lifecycle of the instance. The price difference is refunded to the payment account that you used. Vouchers that have been redeemed are not refundable.
60984
+ * * **Refund rule**: You have a quota for the total refund amount each month, and the unused balance of this quota is not carried over to the next month. If you use up the refund quota of the current month, you can change the billing method only in the next month. The refund amount incurred after you change the billing method is calculated based on the following formula: **Number of vCPUs × (Number of remaining days × 24 ± Number of remaining or elapsed hours)**.
60985
+ * * **Change the billing method from pay-as-you-go to subscription**:
60986
+ * * You can change the billing method of all data disks that are attached to an instance from pay-as-you-go to subscription.
60987
+ * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
60988
+ *
60989
+ * @param request ModifyInstanceChargeTypeRequest
60990
+ * @return ModifyInstanceChargeTypeResponse
60991
+ */
60047
60992
  async modifyInstanceChargeType(request) {
60048
60993
  let runtime = new $Util.RuntimeOptions({});
60049
60994
  return await this.modifyInstanceChargeTypeWithOptions(request, runtime);
@@ -60144,6 +61089,15 @@ class Client extends openapi_client_1.default {
60144
61089
  let runtime = new $Util.RuntimeOptions({});
60145
61090
  return await this.modifyInstanceDeploymentWithOptions(request, runtime);
60146
61091
  }
61092
+ /**
61093
+ * This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
61094
+ * * Maintenance window: the time period that you specify for maintenance.
61095
+ * * Maintenance action: the action that you specify in response to instance shutdown.
61096
+ *
61097
+ * @param request ModifyInstanceMaintenanceAttributesRequest
61098
+ * @param runtime runtime options for this request RuntimeOptions
61099
+ * @return ModifyInstanceMaintenanceAttributesResponse
61100
+ */
60147
61101
  async modifyInstanceMaintenanceAttributesWithOptions(request, runtime) {
60148
61102
  tea_util_1.default.validateModel(request);
60149
61103
  let query = {};
@@ -60190,6 +61144,14 @@ class Client extends openapi_client_1.default {
60190
61144
  });
60191
61145
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceMaintenanceAttributesResponse({}));
60192
61146
  }
61147
+ /**
61148
+ * This operation is used to modify the maintenance policy of an instance. The maintenance policy consists of the following maintenance attributes:
61149
+ * * Maintenance window: the time period that you specify for maintenance.
61150
+ * * Maintenance action: the action that you specify in response to instance shutdown.
61151
+ *
61152
+ * @param request ModifyInstanceMaintenanceAttributesRequest
61153
+ * @return ModifyInstanceMaintenanceAttributesResponse
61154
+ */
60193
61155
  async modifyInstanceMaintenanceAttributes(request) {
60194
61156
  let runtime = new $Util.RuntimeOptions({});
60195
61157
  return await this.modifyInstanceMaintenanceAttributesWithOptions(request, runtime);
@@ -60338,6 +61300,24 @@ class Client extends openapi_client_1.default {
60338
61300
  let runtime = new $Util.RuntimeOptions({});
60339
61301
  return await this.modifyInstanceNetworkSpecWithOptions(request, runtime);
60340
61302
  }
61303
+ /**
61304
+ * ## Description
61305
+ * Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
61306
+ * For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
61307
+ * When you call this operation, take note of the following items:
61308
+ * * You must have no overdue payments in your account.
61309
+ * * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
61310
+ * * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
61311
+ * * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
61312
+ * * The instance type and the public bandwidth of an instance cannot be changed together.
61313
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
61314
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
61315
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
61316
+ *
61317
+ * @param request ModifyInstanceSpecRequest
61318
+ * @param runtime runtime options for this request RuntimeOptions
61319
+ * @return ModifyInstanceSpecResponse
61320
+ */
60341
61321
  async modifyInstanceSpecWithOptions(request, runtime) {
60342
61322
  tea_util_1.default.validateModel(request);
60343
61323
  let query = {};
@@ -60350,6 +61330,9 @@ class Client extends openapi_client_1.default {
60350
61330
  if (!tea_util_1.default.isUnset(request.clientToken)) {
60351
61331
  query["ClientToken"] = request.clientToken;
60352
61332
  }
61333
+ if (!tea_util_1.default.isUnset(request.disk)) {
61334
+ query["Disk"] = request.disk;
61335
+ }
60353
61336
  if (!tea_util_1.default.isUnset(request.instanceId)) {
60354
61337
  query["InstanceId"] = request.instanceId;
60355
61338
  }
@@ -60362,6 +61345,9 @@ class Client extends openapi_client_1.default {
60362
61345
  if (!tea_util_1.default.isUnset(request.internetMaxBandwidthOut)) {
60363
61346
  query["InternetMaxBandwidthOut"] = request.internetMaxBandwidthOut;
60364
61347
  }
61348
+ if (!tea_util_1.default.isUnset(request.modifyMode)) {
61349
+ query["ModifyMode"] = request.modifyMode;
61350
+ }
60365
61351
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
60366
61352
  query["OwnerAccount"] = request.ownerAccount;
60367
61353
  }
@@ -60396,6 +61382,23 @@ class Client extends openapi_client_1.default {
60396
61382
  });
60397
61383
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceSpecResponse({}));
60398
61384
  }
61385
+ /**
61386
+ * ## Description
61387
+ * Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, visit the [Elastic Compute Service](https://www.aliyun.com/price/product#/ecs/detail) product page.
61388
+ * For information about ECS SDK for Python used to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
61389
+ * When you call this operation, take note of the following items:
61390
+ * * You must have no overdue payments in your account.
61391
+ * * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
61392
+ * * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
61393
+ * * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
61394
+ * * The instance type and the public bandwidth of an instance cannot be changed together.
61395
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to throttling policies for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
61396
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
61397
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
61398
+ *
61399
+ * @param request ModifyInstanceSpecRequest
61400
+ * @return ModifyInstanceSpecResponse
61401
+ */
60399
61402
  async modifyInstanceSpec(request) {
60400
61403
  let runtime = new $Util.RuntimeOptions({});
60401
61404
  return await this.modifyInstanceSpecWithOptions(request, runtime);
@@ -60625,6 +61628,14 @@ class Client extends openapi_client_1.default {
60625
61628
  let runtime = new $Util.RuntimeOptions({});
60626
61629
  return await this.modifyLaunchTemplateDefaultVersionWithOptions(request, runtime);
60627
61630
  }
61631
+ /**
61632
+ * ## Description
61633
+ * The ModifyManagedInstance operation can be called to modify only the name of a single managed instance.
61634
+ *
61635
+ * @param request ModifyManagedInstanceRequest
61636
+ * @param runtime runtime options for this request RuntimeOptions
61637
+ * @return ModifyManagedInstanceResponse
61638
+ */
60628
61639
  async modifyManagedInstanceWithOptions(request, runtime) {
60629
61640
  tea_util_1.default.validateModel(request);
60630
61641
  let query = {};
@@ -60668,6 +61679,13 @@ class Client extends openapi_client_1.default {
60668
61679
  });
60669
61680
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyManagedInstanceResponse({}));
60670
61681
  }
61682
+ /**
61683
+ * ## Description
61684
+ * The ModifyManagedInstance operation can be called to modify only the name of a single managed instance.
61685
+ *
61686
+ * @param request ModifyManagedInstanceRequest
61687
+ * @return ModifyManagedInstanceResponse
61688
+ */
60671
61689
  async modifyManagedInstance(request) {
60672
61690
  let runtime = new $Util.RuntimeOptions({});
60673
61691
  return await this.modifyManagedInstanceWithOptions(request, runtime);
@@ -60817,6 +61835,19 @@ class Client extends openapi_client_1.default {
60817
61835
  let runtime = new $Util.RuntimeOptions({});
60818
61836
  return await this.modifyPhysicalConnectionAttributeWithOptions(request, runtime);
60819
61837
  }
61838
+ /**
61839
+ * ## Description
61840
+ * * The specified CIDR block must be valid. For example, 10.0.0.0/8 is a valid CIDR block while 10.0.0.1/8 is not. For more information, see the [What is CIDR?](https://www.alibabacloud.com/help/doc-detail/40637.htm#section-jua-0tj-q5m) section in Network FAQ.
61841
+ * * When you add or delete an entry, you cannot specify duplicate CIDR blocks. Examples:
61842
+ * * For IPv4 CIDR blocks, you cannot specify the 10.0.0.0/8 CIDR block in two entries. You cannot specify the 10.0.0.1/32 CIDR block in one entry and the 10.0.0.1 CIDR block in another entry. These two CIDR blocks are the same.
61843
+ * * For IPv6 CIDR blocks, you cannot specify the 2001:fd01:0:0:0:0:0:0/32 CIDR block in one entry and the 2001:fd01::/32 CIDR block in another entry. These two CIDR blocks are the same.
61844
+ * * The CIDR block in an entry to be added cannot the same as that in an entry to be deleted. For example, when you add an entry in which the 10.0.0.0/8 CIDR block is specified, the entry to be deleted cannot have the 10.0.0.0/8 CIDR block specified.
61845
+ * * If you want to modify the description of an entry, you must specify the CIDR block (`AddEntry.N.Cidr`) and new description (`AddEntry.N.Description`) in the entry.
61846
+ *
61847
+ * @param request ModifyPrefixListRequest
61848
+ * @param runtime runtime options for this request RuntimeOptions
61849
+ * @return ModifyPrefixListResponse
61850
+ */
60820
61851
  async modifyPrefixListWithOptions(request, runtime) {
60821
61852
  tea_util_1.default.validateModel(request);
60822
61853
  let query = {};
@@ -60869,10 +61900,40 @@ class Client extends openapi_client_1.default {
60869
61900
  });
60870
61901
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyPrefixListResponse({}));
60871
61902
  }
61903
+ /**
61904
+ * ## Description
61905
+ * * The specified CIDR block must be valid. For example, 10.0.0.0/8 is a valid CIDR block while 10.0.0.1/8 is not. For more information, see the [What is CIDR?](https://www.alibabacloud.com/help/doc-detail/40637.htm#section-jua-0tj-q5m) section in Network FAQ.
61906
+ * * When you add or delete an entry, you cannot specify duplicate CIDR blocks. Examples:
61907
+ * * For IPv4 CIDR blocks, you cannot specify the 10.0.0.0/8 CIDR block in two entries. You cannot specify the 10.0.0.1/32 CIDR block in one entry and the 10.0.0.1 CIDR block in another entry. These two CIDR blocks are the same.
61908
+ * * For IPv6 CIDR blocks, you cannot specify the 2001:fd01:0:0:0:0:0:0/32 CIDR block in one entry and the 2001:fd01::/32 CIDR block in another entry. These two CIDR blocks are the same.
61909
+ * * The CIDR block in an entry to be added cannot the same as that in an entry to be deleted. For example, when you add an entry in which the 10.0.0.0/8 CIDR block is specified, the entry to be deleted cannot have the 10.0.0.0/8 CIDR block specified.
61910
+ * * If you want to modify the description of an entry, you must specify the CIDR block (`AddEntry.N.Cidr`) and new description (`AddEntry.N.Description`) in the entry.
61911
+ *
61912
+ * @param request ModifyPrefixListRequest
61913
+ * @return ModifyPrefixListResponse
61914
+ */
60872
61915
  async modifyPrefixList(request) {
60873
61916
  let runtime = new $Util.RuntimeOptions({});
60874
61917
  return await this.modifyPrefixListWithOptions(request, runtime);
60875
61918
  }
61919
+ /**
61920
+ * Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
61921
+ * Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
61922
+ * When you call this operation, take note of the following items:
61923
+ * * The instance type of an expired instance cannot be changed. You can renew the instance and try again.
61924
+ * * When you downgrade the instance type of an instance, take note of the following items:
61925
+ * * The instance must be in the **Stopped** state.``
61926
+ * * You must specify the operation type by setting `OperatorType` to downgrade.
61927
+ * * You can downgrade the configurations of an instance up to three times. Therefore, a maximum of three refunds for price difference can be made for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
61928
+ * * The price difference is refunded to the payment account you used. Vouchers that have been redeemed are not refundable.
61929
+ * * This operation is asynchronous. It takes 5 to 10 seconds for the instance type to change. You must restart the instance by calling the RebootInstance operation or by using the ECS console for the instance type change to take effect. If you restart only the operating system of the instance, the instance type change does not take effect.
61930
+ * * If the instance is in the **Stopped** state, you only need to start the instance. You do not need to restart the instance after it enters the Running state.
61931
+ * * If `RebootWhenFinished` is set to true for the instance, you do not need to manually restart the instance.
61932
+ *
61933
+ * @param request ModifyPrepayInstanceSpecRequest
61934
+ * @param runtime runtime options for this request RuntimeOptions
61935
+ * @return ModifyPrepayInstanceSpecResponse
61936
+ */
60876
61937
  async modifyPrepayInstanceSpecWithOptions(request, runtime) {
60877
61938
  tea_util_1.default.validateModel(request);
60878
61939
  let query = {};
@@ -60882,6 +61943,9 @@ class Client extends openapi_client_1.default {
60882
61943
  if (!tea_util_1.default.isUnset(request.clientToken)) {
60883
61944
  query["ClientToken"] = request.clientToken;
60884
61945
  }
61946
+ if (!tea_util_1.default.isUnset(request.disk)) {
61947
+ query["Disk"] = request.disk;
61948
+ }
60885
61949
  if (!tea_util_1.default.isUnset(request.endTime)) {
60886
61950
  query["EndTime"] = request.endTime;
60887
61951
  }
@@ -60894,6 +61958,9 @@ class Client extends openapi_client_1.default {
60894
61958
  if (!tea_util_1.default.isUnset(request.migrateAcrossZone)) {
60895
61959
  query["MigrateAcrossZone"] = request.migrateAcrossZone;
60896
61960
  }
61961
+ if (!tea_util_1.default.isUnset(request.modifyMode)) {
61962
+ query["ModifyMode"] = request.modifyMode;
61963
+ }
60897
61964
  if (!tea_util_1.default.isUnset(request.operatorType)) {
60898
61965
  query["OperatorType"] = request.operatorType;
60899
61966
  }
@@ -60937,6 +62004,23 @@ class Client extends openapi_client_1.default {
60937
62004
  });
60938
62005
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyPrepayInstanceSpecResponse({}));
60939
62006
  }
62007
+ /**
62008
+ * Before you call this operation, make sure that you understand the billing methods, pricing schedule, and refund policies of [ECS](https://www.alibabacloud.com/product/ecs#pricing). For more information, see [Request a refund for the downgrade of resource specifications](~~201955~~).
62009
+ * Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change. You can use ECS SDK for Python to query the instance types to which you can change. For more information, see [Query available resources for configuration changes](~~109517~~).
62010
+ * When you call this operation, take note of the following items:
62011
+ * * The instance type of an expired instance cannot be changed. You can renew the instance and try again.
62012
+ * * When you downgrade the instance type of an instance, take note of the following items:
62013
+ * * The instance must be in the **Stopped** state.``
62014
+ * * You must specify the operation type by setting `OperatorType` to downgrade.
62015
+ * * You can downgrade the configurations of an instance up to three times. Therefore, a maximum of three refunds for price difference can be made for an instance. Downgrade operations include instance type downgrades, bandwidth configuration downgrades, and the change of the disk billing method from subscription to pay-as-you-go.
62016
+ * * The price difference is refunded to the payment account you used. Vouchers that have been redeemed are not refundable.
62017
+ * * This operation is asynchronous. It takes 5 to 10 seconds for the instance type to change. You must restart the instance by calling the RebootInstance operation or by using the ECS console for the instance type change to take effect. If you restart only the operating system of the instance, the instance type change does not take effect.
62018
+ * * If the instance is in the **Stopped** state, you only need to start the instance. You do not need to restart the instance after it enters the Running state.
62019
+ * * If `RebootWhenFinished` is set to true for the instance, you do not need to manually restart the instance.
62020
+ *
62021
+ * @param request ModifyPrepayInstanceSpecRequest
62022
+ * @return ModifyPrepayInstanceSpecResponse
62023
+ */
60940
62024
  async modifyPrepayInstanceSpec(request) {
60941
62025
  let runtime = new $Util.RuntimeOptions({});
60942
62026
  return await this.modifyPrepayInstanceSpecWithOptions(request, runtime);
@@ -61038,6 +62122,18 @@ class Client extends openapi_client_1.default {
61038
62122
  let runtime = new $Util.RuntimeOptions({});
61039
62123
  return await this.modifyReservedInstanceAutoRenewAttributeWithOptions(request, runtime);
61040
62124
  }
62125
+ /**
62126
+ * ## Description
62127
+ * When you call this operation, take note of the following items:
62128
+ * * For information about limits on reserved instances, see the "Limits" section in [Reserved instance overview](~~100370~~).
62129
+ * * Before you call this operation to split a reserved instance, make sure that you fully understand the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
62130
+ * * Before you call this operation to merge reserved instances, make sure that you fully understand the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
62131
+ * * Before you call this operation to modify a reserved instance, make sure that you fully understand the limits and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
62132
+ *
62133
+ * @param request ModifyReservedInstancesRequest
62134
+ * @param runtime runtime options for this request RuntimeOptions
62135
+ * @return ModifyReservedInstancesResponse
62136
+ */
61041
62137
  async modifyReservedInstancesWithOptions(request, runtime) {
61042
62138
  tea_util_1.default.validateModel(request);
61043
62139
  let query = {};
@@ -61078,6 +62174,17 @@ class Client extends openapi_client_1.default {
61078
62174
  });
61079
62175
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyReservedInstancesResponse({}));
61080
62176
  }
62177
+ /**
62178
+ * ## Description
62179
+ * When you call this operation, take note of the following items:
62180
+ * * For information about limits on reserved instances, see the "Limits" section in [Reserved instance overview](~~100370~~).
62181
+ * * Before you call this operation to split a reserved instance, make sure that you fully understand the limits on splitting a reserved instance. For more information, see [Split a reserved instance](~~100375~~).
62182
+ * * Before you call this operation to merge reserved instances, make sure that you fully understand the limits on merging reserved instances. For more information, see [Merge reserved instances](~~132229~~).
62183
+ * * Before you call this operation to modify a reserved instance, make sure that you fully understand the limits and methods of modifying a reserved instance. For more information, see [Modify a reserved instance](~~132230~~).
62184
+ *
62185
+ * @param request ModifyReservedInstancesRequest
62186
+ * @return ModifyReservedInstancesResponse
62187
+ */
61081
62188
  async modifyReservedInstances(request) {
61082
62189
  let runtime = new $Util.RuntimeOptions({});
61083
62190
  return await this.modifyReservedInstancesWithOptions(request, runtime);
@@ -61271,6 +62378,18 @@ class Client extends openapi_client_1.default {
61271
62378
  let runtime = new $Util.RuntimeOptions({});
61272
62379
  return await this.modifySecurityGroupAttributeWithOptions(request, runtime);
61273
62380
  }
62381
+ /**
62382
+ * ## Description
62383
+ * When you modify the rules of a security group by specifying the rule IDs, take note of the following limits:
62384
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the type cannot be changed. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
62385
+ * * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
62386
+ * * The modified security group rule cannot be the same as other existing rules.
62387
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
62388
+ *
62389
+ * @param request ModifySecurityGroupEgressRuleRequest
62390
+ * @param runtime runtime options for this request RuntimeOptions
62391
+ * @return ModifySecurityGroupEgressRuleResponse
62392
+ */
61274
62393
  async modifySecurityGroupEgressRuleWithOptions(request, runtime) {
61275
62394
  tea_util_1.default.validateModel(request);
61276
62395
  let query = {};
@@ -61362,10 +62481,31 @@ class Client extends openapi_client_1.default {
61362
62481
  });
61363
62482
  return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupEgressRuleResponse({}));
61364
62483
  }
62484
+ /**
62485
+ * ## Description
62486
+ * When you modify the rules of a security group by specifying the rule IDs, take note of the following limits:
62487
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the type cannot be changed. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
62488
+ * * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
62489
+ * * The modified security group rule cannot be the same as other existing rules.
62490
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
62491
+ *
62492
+ * @param request ModifySecurityGroupEgressRuleRequest
62493
+ * @return ModifySecurityGroupEgressRuleResponse
62494
+ */
61365
62495
  async modifySecurityGroupEgressRule(request) {
61366
62496
  let runtime = new $Util.RuntimeOptions({});
61367
62497
  return await this.modifySecurityGroupEgressRuleWithOptions(request, runtime);
61368
62498
  }
62499
+ /**
62500
+ * When you call this operation, take note of the following items:
62501
+ * * When InnerAccessPolicy is set to Accept for a security group, the instances in the security group can communicate with each other. In this case, the Accept internal access control policy takes precedence over user-created security group rules to keep instances in the security group accessible to each other.
62502
+ * * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
62503
+ * * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
62504
+ *
62505
+ * @param request ModifySecurityGroupPolicyRequest
62506
+ * @param runtime runtime options for this request RuntimeOptions
62507
+ * @return ModifySecurityGroupPolicyResponse
62508
+ */
61369
62509
  async modifySecurityGroupPolicyWithOptions(request, runtime) {
61370
62510
  tea_util_1.default.validateModel(request);
61371
62511
  let query = {};
@@ -61409,10 +62549,30 @@ class Client extends openapi_client_1.default {
61409
62549
  });
61410
62550
  return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupPolicyResponse({}));
61411
62551
  }
62552
+ /**
62553
+ * When you call this operation, take note of the following items:
62554
+ * * When InnerAccessPolicy is set to Accept for a security group, the instances in the security group can communicate with each other. In this case, the Accept internal access control policy takes precedence over user-created security group rules to keep instances in the security group accessible to each other.
62555
+ * * When InnerAccessPolicy is set to Drop for a security group, the instances in the security group are isolated from each other. In this case, user-created security group rules take precedence over the Drop internal access control policy and can be used to allow access between the instances. For example, you can call the [AuthorizeSecurityGroup](~~25554~~) operation to create an inbound security group rule that allows the instances in the security group to communicate with each other.
62556
+ * * You can call the [DescribeSecurityGroupAttribute](~~25555~~) operation to query the internal access policy of a security group.
62557
+ *
62558
+ * @param request ModifySecurityGroupPolicyRequest
62559
+ * @return ModifySecurityGroupPolicyResponse
62560
+ */
61412
62561
  async modifySecurityGroupPolicy(request) {
61413
62562
  let runtime = new $Util.RuntimeOptions({});
61414
62563
  return await this.modifySecurityGroupPolicyWithOptions(request, runtime);
61415
62564
  }
62565
+ /**
62566
+ * When you modify a security group rule by specifying its ID, take note of the following items:
62567
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the authorization object type cannot be changed. The type of an existing security group authorization object cannot be modified. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
62568
+ * * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
62569
+ * * The modified security group rule cannot be the same as other existing rules.
62570
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
62571
+ *
62572
+ * @param request ModifySecurityGroupRuleRequest
62573
+ * @param runtime runtime options for this request RuntimeOptions
62574
+ * @return ModifySecurityGroupRuleResponse
62575
+ */
61416
62576
  async modifySecurityGroupRuleWithOptions(request, runtime) {
61417
62577
  tea_util_1.default.validateModel(request);
61418
62578
  let query = {};
@@ -61504,6 +62664,16 @@ class Client extends openapi_client_1.default {
61504
62664
  });
61505
62665
  return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupRuleResponse({}));
61506
62666
  }
62667
+ /**
62668
+ * When you modify a security group rule by specifying its ID, take note of the following items:
62669
+ * * If the type of the authorization object (source or destination) is IP address or CIDR block, security group, or prefix list, the authorization object type cannot be changed. The type of an existing security group authorization object cannot be modified. If the original authorization object is an IP address, you can change it to another IP address or a CIDR block, but not to a security group or prefix list.
62670
+ * * The IP address family of the authorization object cannot be changed. For example, if the original authorization object is an IPv4 CIDR block, you cannot change it to an IPv6 CIDR block. If the original authorization object is an IPv4 prefix list, you cannot change it to an IPv6 prefix list.
62671
+ * * The modified security group rule cannot be the same as other existing rules.
62672
+ * * If you want to delete the values of non-empty parameters for the rule, we recommend that you create a new rule and delete the original rule.
62673
+ *
62674
+ * @param request ModifySecurityGroupRuleRequest
62675
+ * @return ModifySecurityGroupRuleResponse
62676
+ */
61507
62677
  async modifySecurityGroupRule(request) {
61508
62678
  let runtime = new $Util.RuntimeOptions({});
61509
62679
  return await this.modifySecurityGroupRuleWithOptions(request, runtime);
@@ -62033,6 +63203,14 @@ class Client extends openapi_client_1.default {
62033
63203
  let runtime = new $Util.RuntimeOptions({});
62034
63204
  return await this.modifyVpcAttributeWithOptions(request, runtime);
62035
63205
  }
63206
+ /**
63207
+ * * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
63208
+ * * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
63209
+ *
63210
+ * @param request PurchaseReservedInstancesOfferingRequest
63211
+ * @param runtime runtime options for this request RuntimeOptions
63212
+ * @return PurchaseReservedInstancesOfferingResponse
63213
+ */
62036
63214
  async purchaseReservedInstancesOfferingWithOptions(request, runtime) {
62037
63215
  tea_util_1.default.validateModel(request);
62038
63216
  let query = {};
@@ -62112,10 +63290,24 @@ class Client extends openapi_client_1.default {
62112
63290
  });
62113
63291
  return $tea.cast(await this.callApi(params, req, runtime), new PurchaseReservedInstancesOfferingResponse({}));
62114
63292
  }
63293
+ /**
63294
+ * * Before you call this operation, make sure that you are familiar with the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
63295
+ * * Before you purchase a reserved instance, you can call the [DescribeAvailableResource](~~66186~~) operation to query available instance resources.
63296
+ *
63297
+ * @param request PurchaseReservedInstancesOfferingRequest
63298
+ * @return PurchaseReservedInstancesOfferingResponse
63299
+ */
62115
63300
  async purchaseReservedInstancesOffering(request) {
62116
63301
  let runtime = new $Util.RuntimeOptions({});
62117
63302
  return await this.purchaseReservedInstancesOfferingWithOptions(request, runtime);
62118
63303
  }
63304
+ /**
63305
+ * Before you call this operation, make sure that you understand the billing methods and pricing of SCUs. For more information, see [Storage capacity units](~~137897~~).
63306
+ *
63307
+ * @param request PurchaseStorageCapacityUnitRequest
63308
+ * @param runtime runtime options for this request RuntimeOptions
63309
+ * @return PurchaseStorageCapacityUnitResponse
63310
+ */
62119
63311
  async purchaseStorageCapacityUnitWithOptions(request, runtime) {
62120
63312
  tea_util_1.default.validateModel(request);
62121
63313
  let query = {};
@@ -62180,6 +63372,12 @@ class Client extends openapi_client_1.default {
62180
63372
  });
62181
63373
  return $tea.cast(await this.callApi(params, req, runtime), new PurchaseStorageCapacityUnitResponse({}));
62182
63374
  }
63375
+ /**
63376
+ * Before you call this operation, make sure that you understand the billing methods and pricing of SCUs. For more information, see [Storage capacity units](~~137897~~).
63377
+ *
63378
+ * @param request PurchaseStorageCapacityUnitRequest
63379
+ * @return PurchaseStorageCapacityUnitResponse
63380
+ */
62183
63381
  async purchaseStorageCapacityUnit(request) {
62184
63382
  let runtime = new $Util.RuntimeOptions({});
62185
63383
  return await this.purchaseStorageCapacityUnitWithOptions(request, runtime);
@@ -62248,6 +63446,21 @@ class Client extends openapi_client_1.default {
62248
63446
  let runtime = new $Util.RuntimeOptions({});
62249
63447
  return await this.reActivateInstancesWithOptions(request, runtime);
62250
63448
  }
63449
+ /**
63450
+ * When you call this operation, take note of the following items:
63451
+ * * The disk that you want to re-initialize must be in the **In Use** (In_use) state and the instance to which the disk is attached must be in the **Stopped** (Stopped) state.
63452
+ * * If the instance has never been started since it was created, the disks attached to it cannot be re-initialized.
63453
+ * * If a local snapshot has been created for a disk, the disk cannot be re-initialized.
63454
+ * * Disks that have the multi-attach feature enabled cannot be re-initialized.
63455
+ * * When a system disk is re-initialized, it is restored to the state of the image from which it was created. If the source image is deleted, the system disk cannot be re-initialized.
63456
+ * * When a separately created data disk is re-initialized, it is restored to an empty data disk.
63457
+ * * When a data disk that was created from a snapshot is re-initialized, the disk is restored to the state of the snapshot.
63458
+ * > If the source snapshot is deleted, the disk cannot be re-initialized and an error is returned.
63459
+ *
63460
+ * @param request ReInitDiskRequest
63461
+ * @param runtime runtime options for this request RuntimeOptions
63462
+ * @return ReInitDiskResponse
63463
+ */
62251
63464
  async reInitDiskWithOptions(request, runtime) {
62252
63465
  tea_util_1.default.validateModel(request);
62253
63466
  let query = {};
@@ -62294,15 +63507,29 @@ class Client extends openapi_client_1.default {
62294
63507
  });
62295
63508
  return $tea.cast(await this.callApi(params, req, runtime), new ReInitDiskResponse({}));
62296
63509
  }
63510
+ /**
63511
+ * When you call this operation, take note of the following items:
63512
+ * * The disk that you want to re-initialize must be in the **In Use** (In_use) state and the instance to which the disk is attached must be in the **Stopped** (Stopped) state.
63513
+ * * If the instance has never been started since it was created, the disks attached to it cannot be re-initialized.
63514
+ * * If a local snapshot has been created for a disk, the disk cannot be re-initialized.
63515
+ * * Disks that have the multi-attach feature enabled cannot be re-initialized.
63516
+ * * When a system disk is re-initialized, it is restored to the state of the image from which it was created. If the source image is deleted, the system disk cannot be re-initialized.
63517
+ * * When a separately created data disk is re-initialized, it is restored to an empty data disk.
63518
+ * * When a data disk that was created from a snapshot is re-initialized, the disk is restored to the state of the snapshot.
63519
+ * > If the source snapshot is deleted, the disk cannot be re-initialized and an error is returned.
63520
+ *
63521
+ * @param request ReInitDiskRequest
63522
+ * @return ReInitDiskResponse
63523
+ */
62297
63524
  async reInitDisk(request) {
62298
63525
  let runtime = new $Util.RuntimeOptions({});
62299
63526
  return await this.reInitDiskWithOptions(request, runtime);
62300
63527
  }
62301
63528
  /**
62302
- * * Only instances that are in the `Running` state can be restarted.****
62303
- * * After the ECS instance is restarted, the status of the instance changes to `Starting`.****
62304
- * * An instance can be forcibly restarted. A forced restart (`ForceStop`) is equivalent to performing a hard restart. This operation can cause data loss if data in the instance is not written to the disk.
62305
- * * If you call the DescribeInstances operation to query the details of an instance and `OperationLocks` in the response contains "LockReason": "security", the instance is locked for security reasons and cannot be restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
63529
+ * * The ECS instance to which you want to restart must be in the **Running** (`Running`) state.
63530
+ * * After this operation is called, the status of the instance changes to `Starting`.****
63531
+ * * An instance can be forcefully restarted. A forced restart (`ForceReboot`) is equivalent to powering off a traditional server and then starting the server. If data in the instance operating system is not written to block storage devices when the operation is called, the data is lost.
63532
+ * * If `OperationLocks` in the DescribeInstances response contains "LockReason" : "security" for an instance, the instance is locked for security reasons and cannot be restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
62306
63533
  *
62307
63534
  * @param request RebootInstanceRequest
62308
63535
  * @param runtime runtime options for this request RuntimeOptions
@@ -62349,10 +63576,10 @@ class Client extends openapi_client_1.default {
62349
63576
  return $tea.cast(await this.callApi(params, req, runtime), new RebootInstanceResponse({}));
62350
63577
  }
62351
63578
  /**
62352
- * * Only instances that are in the `Running` state can be restarted.****
62353
- * * After the ECS instance is restarted, the status of the instance changes to `Starting`.****
62354
- * * An instance can be forcibly restarted. A forced restart (`ForceStop`) is equivalent to performing a hard restart. This operation can cause data loss if data in the instance is not written to the disk.
62355
- * * If you call the DescribeInstances operation to query the details of an instance and `OperationLocks` in the response contains "LockReason": "security", the instance is locked for security reasons and cannot be restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
63579
+ * * The ECS instance to which you want to restart must be in the **Running** (`Running`) state.
63580
+ * * After this operation is called, the status of the instance changes to `Starting`.****
63581
+ * * An instance can be forcefully restarted. A forced restart (`ForceReboot`) is equivalent to powering off a traditional server and then starting the server. If data in the instance operating system is not written to block storage devices when the operation is called, the data is lost.
63582
+ * * If `OperationLocks` in the DescribeInstances response contains "LockReason" : "security" for an instance, the instance is locked for security reasons and cannot be restarted. For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
62356
63583
  *
62357
63584
  * @param request RebootInstanceRequest
62358
63585
  * @return RebootInstanceResponse
@@ -62361,16 +63588,6 @@ class Client extends openapi_client_1.default {
62361
63588
  let runtime = new $Util.RuntimeOptions({});
62362
63589
  return await this.rebootInstanceWithOptions(request, runtime);
62363
63590
  }
62364
- /**
62365
- * * The ECS instances to which you want to restart are in the **Running** (`Running`) state.
62366
- * * You can restart multiple instances at a time and use the `BatchOptimization` parameter to specify the batch operation mode.
62367
- * * Instances can be forcefully restarted. A force restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation may lead to data loss if data in the instance operating system is not written to block storage devices.
62368
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on it.
62369
- *
62370
- * @param request RebootInstancesRequest
62371
- * @param runtime runtime options for this request RuntimeOptions
62372
- * @return RebootInstancesResponse
62373
- */
62374
63591
  async rebootInstancesWithOptions(request, runtime) {
62375
63592
  tea_util_1.default.validateModel(request);
62376
63593
  let query = {};
@@ -62417,15 +63634,6 @@ class Client extends openapi_client_1.default {
62417
63634
  });
62418
63635
  return $tea.cast(await this.callApi(params, req, runtime), new RebootInstancesResponse({}));
62419
63636
  }
62420
- /**
62421
- * * The ECS instances to which you want to restart are in the **Running** (`Running`) state.
62422
- * * You can restart multiple instances at a time and use the `BatchOptimization` parameter to specify the batch operation mode.
62423
- * * Instances can be forcefully restarted. A force restart (`ForceStop`) is equivalent to powering off traditional servers to restart them. This operation may lead to data loss if data in the instance operating system is not written to block storage devices.
62424
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of the instance, the instance is locked for security reasons and all operations are prohibited on it.
62425
- *
62426
- * @param request RebootInstancesRequest
62427
- * @return RebootInstancesResponse
62428
- */
62429
63637
  async rebootInstances(request) {
62430
63638
  let runtime = new $Util.RuntimeOptions({});
62431
63639
  return await this.rebootInstancesWithOptions(request, runtime);
@@ -62492,6 +63700,13 @@ class Client extends openapi_client_1.default {
62492
63700
  let runtime = new $Util.RuntimeOptions({});
62493
63701
  return await this.recoverVirtualBorderRouterWithOptions(request, runtime);
62494
63702
  }
63703
+ /**
63704
+ * If a dedicated host is in the UnderAssessment state, we recommend that you call this operation to migrate ECS instances away from the dedicated host to prevent permanent failures. You can call the [DescribeDedicatedHosts](~~134242~~) operation to query the status of a dedicated host.
63705
+ *
63706
+ * @param request RedeployDedicatedHostRequest
63707
+ * @param runtime runtime options for this request RuntimeOptions
63708
+ * @return RedeployDedicatedHostResponse
63709
+ */
62495
63710
  async redeployDedicatedHostWithOptions(request, runtime) {
62496
63711
  tea_util_1.default.validateModel(request);
62497
63712
  let query = {};
@@ -62529,10 +63744,43 @@ class Client extends openapi_client_1.default {
62529
63744
  });
62530
63745
  return $tea.cast(await this.callApi(params, req, runtime), new RedeployDedicatedHostResponse({}));
62531
63746
  }
63747
+ /**
63748
+ * If a dedicated host is in the UnderAssessment state, we recommend that you call this operation to migrate ECS instances away from the dedicated host to prevent permanent failures. You can call the [DescribeDedicatedHosts](~~134242~~) operation to query the status of a dedicated host.
63749
+ *
63750
+ * @param request RedeployDedicatedHostRequest
63751
+ * @return RedeployDedicatedHostResponse
63752
+ */
62532
63753
  async redeployDedicatedHost(request) {
62533
63754
  let runtime = new $Util.RuntimeOptions({});
62534
63755
  return await this.redeployDedicatedHostWithOptions(request, runtime);
62535
63756
  }
63757
+ /**
63758
+ * RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before redeployment.
63759
+ * When you call this operation, take note of the following items:
63760
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state. After the instance is redeployed, the following changes occur to the status of the instance:
63761
+ * * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
63762
+ * * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
63763
+ * * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
63764
+ * * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
63765
+ * * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
63766
+ * * If the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent when you handle a local disk-related system event for an instance, you can still call the RedeployInstance operation to redeploy the instance. The SystemMaintenance.RebootAndReInitErrorDisk event indicates that the instance is restarted and the damaged disks are reinitialized due to system maintenance. For more information, see [System events for ECS instances equipped with local disks](~~107693~~).
63767
+ * The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides possible event status.
63768
+ * |System event|Event status|
63769
+ * |---|---|
63770
+ * |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
63771
+ * |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
63772
+ * |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
63773
+ * |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
63774
+ * |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
63775
+ * |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
63776
+ * |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
63777
+ * |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
63778
+ * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data on the local disks is cleared.
63779
+ *
63780
+ * @param request RedeployInstanceRequest
63781
+ * @param runtime runtime options for this request RuntimeOptions
63782
+ * @return RedeployInstanceResponse
63783
+ */
62536
63784
  async redeployInstanceWithOptions(request, runtime) {
62537
63785
  tea_util_1.default.validateModel(request);
62538
63786
  let query = {};
@@ -62570,10 +63818,43 @@ class Client extends openapi_client_1.default {
62570
63818
  });
62571
63819
  return $tea.cast(await this.callApi(params, req, runtime), new RedeployInstanceResponse({}));
62572
63820
  }
63821
+ /**
63822
+ * RedeployInstance is an asynchronous operation. This operation migrates data before it restarts the instance. After the instance is redeployed, the instance enters the Running (`Running`) state. If the instance fails to be redeployed, the instance returns to the original physical server and the state before redeployment.
63823
+ * When you call this operation, take note of the following items:
63824
+ * * The instance must be in the Running (Running) or Stopped (Stopped) state. After the instance is redeployed, the following changes occur to the status of the instance:
63825
+ * * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
63826
+ * * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
63827
+ * * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
63828
+ * * If the `OperationLocks` parameter in the DescribeInstances response contains `"LockReason" : "security"` for an instance, the instance is locked for security reasons and cannot be redeployed.
63829
+ * * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
63830
+ * * If the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent when you handle a local disk-related system event for an instance, you can still call the RedeployInstance operation to redeploy the instance. The SystemMaintenance.RebootAndReInitErrorDisk event indicates that the instance is restarted and the damaged disks are reinitialized due to system maintenance. For more information, see [System events for ECS instances equipped with local disks](~~107693~~).
63831
+ * The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides possible event status.
63832
+ * |System event|Event status|
63833
+ * |---|---|
63834
+ * |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
63835
+ * |Instance redeployment due to system maintenance (SystemMaintenance.Redeploy)|Inquiring and Scheduled|
63836
+ * |Instance restart and replacement of damaged disks due to system maintenance (SystemMaintenance.RebootAndIsolateErrorDisk)|Inquiring|
63837
+ * |Instance restart and re-initialization of damaged disks due to system maintenance (SystemMaintenance.RebootAndReInitErrorDisk)|Inquiring|
63838
+ * |Instance redeployment due to system errors (SystemFailure.Redeploy)|Inquiring and Scheduled|
63839
+ * |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
63840
+ * |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
63841
+ * |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
63842
+ * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data on the local disks is cleared.
63843
+ *
63844
+ * @param request RedeployInstanceRequest
63845
+ * @return RedeployInstanceResponse
63846
+ */
62573
63847
  async redeployInstance(request) {
62574
63848
  let runtime = new $Util.RuntimeOptions({});
62575
63849
  return await this.redeployInstanceWithOptions(request, runtime);
62576
63850
  }
63851
+ /**
63852
+ * If the release mode of a capacity reservation that takes effect immediately is set to manual release, you can call this operation to release the capacity reservation.
63853
+ *
63854
+ * @param request ReleaseCapacityReservationRequest
63855
+ * @param runtime runtime options for this request RuntimeOptions
63856
+ * @return ReleaseCapacityReservationResponse
63857
+ */
62577
63858
  async releaseCapacityReservationWithOptions(request, runtime) {
62578
63859
  tea_util_1.default.validateModel(request);
62579
63860
  let query = {};
@@ -62614,10 +63895,23 @@ class Client extends openapi_client_1.default {
62614
63895
  });
62615
63896
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseCapacityReservationResponse({}));
62616
63897
  }
63898
+ /**
63899
+ * If the release mode of a capacity reservation that takes effect immediately is set to manual release, you can call this operation to release the capacity reservation.
63900
+ *
63901
+ * @param request ReleaseCapacityReservationRequest
63902
+ * @return ReleaseCapacityReservationResponse
63903
+ */
62617
63904
  async releaseCapacityReservation(request) {
62618
63905
  let runtime = new $Util.RuntimeOptions({});
62619
63906
  return await this.releaseCapacityReservationWithOptions(request, runtime);
62620
63907
  }
63908
+ /**
63909
+ * Before you release a pay-as-you-go dedicated host, make sure that no Elastic Compute Service (ECS) instances are deployed on the dedicated host.
63910
+ *
63911
+ * @param request ReleaseDedicatedHostRequest
63912
+ * @param runtime runtime options for this request RuntimeOptions
63913
+ * @return ReleaseDedicatedHostResponse
63914
+ */
62621
63915
  async releaseDedicatedHostWithOptions(request, runtime) {
62622
63916
  tea_util_1.default.validateModel(request);
62623
63917
  let query = {};
@@ -62655,6 +63949,12 @@ class Client extends openapi_client_1.default {
62655
63949
  });
62656
63950
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseDedicatedHostResponse({}));
62657
63951
  }
63952
+ /**
63953
+ * Before you release a pay-as-you-go dedicated host, make sure that no Elastic Compute Service (ECS) instances are deployed on the dedicated host.
63954
+ *
63955
+ * @param request ReleaseDedicatedHostRequest
63956
+ * @return ReleaseDedicatedHostResponse
63957
+ */
62658
63958
  async releaseDedicatedHost(request) {
62659
63959
  let runtime = new $Util.RuntimeOptions({});
62660
63960
  return await this.releaseDedicatedHostWithOptions(request, runtime);
@@ -62856,6 +64156,14 @@ class Client extends openapi_client_1.default {
62856
64156
  let runtime = new $Util.RuntimeOptions({});
62857
64157
  return await this.removeTagsWithOptions(request, runtime);
62858
64158
  }
64159
+ /**
64160
+ * ## Description
64161
+ * When you renew the subscription dedicated hosts, deductible vouchers are used first by default. Make sure that your account supports credit card payments or balance payments.
64162
+ *
64163
+ * @param request RenewDedicatedHostsRequest
64164
+ * @param runtime runtime options for this request RuntimeOptions
64165
+ * @return RenewDedicatedHostsResponse
64166
+ */
62859
64167
  async renewDedicatedHostsWithOptions(request, runtime) {
62860
64168
  tea_util_1.default.validateModel(request);
62861
64169
  let query = {};
@@ -62902,6 +64210,13 @@ class Client extends openapi_client_1.default {
62902
64210
  });
62903
64211
  return $tea.cast(await this.callApi(params, req, runtime), new RenewDedicatedHostsResponse({}));
62904
64212
  }
64213
+ /**
64214
+ * ## Description
64215
+ * When you renew the subscription dedicated hosts, deductible vouchers are used first by default. Make sure that your account supports credit card payments or balance payments.
64216
+ *
64217
+ * @param request RenewDedicatedHostsRequest
64218
+ * @return RenewDedicatedHostsResponse
64219
+ */
62905
64220
  async renewDedicatedHosts(request) {
62906
64221
  let runtime = new $Util.RuntimeOptions({});
62907
64222
  return await this.renewDedicatedHostsWithOptions(request, runtime);
@@ -62975,6 +64290,14 @@ class Client extends openapi_client_1.default {
62975
64290
  let runtime = new $Util.RuntimeOptions({});
62976
64291
  return await this.renewInstanceWithOptions(request, runtime);
62977
64292
  }
64293
+ /**
64294
+ * * Before you call this operation, make sure that you fully understand the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
64295
+ * * You can call the [DescribeReservedInstances](~~100065~~) operation to query the reserved instances that you purchased.
64296
+ *
64297
+ * @param request RenewReservedInstancesRequest
64298
+ * @param runtime runtime options for this request RuntimeOptions
64299
+ * @return RenewReservedInstancesResponse
64300
+ */
62978
64301
  async renewReservedInstancesWithOptions(request, runtime) {
62979
64302
  tea_util_1.default.validateModel(request);
62980
64303
  let query = {};
@@ -63027,10 +64350,37 @@ class Client extends openapi_client_1.default {
63027
64350
  });
63028
64351
  return $tea.cast(await this.callApi(params, req, runtime), new RenewReservedInstancesResponse({}));
63029
64352
  }
64353
+ /**
64354
+ * * Before you call this operation, make sure that you fully understand the billing method of reserved instances. For more information, see [Reserved instances](~~100371~~).
64355
+ * * You can call the [DescribeReservedInstances](~~100065~~) operation to query the reserved instances that you purchased.
64356
+ *
64357
+ * @param request RenewReservedInstancesRequest
64358
+ * @return RenewReservedInstancesResponse
64359
+ */
63030
64360
  async renewReservedInstances(request) {
63031
64361
  let runtime = new $Util.RuntimeOptions({});
63032
64362
  return await this.renewReservedInstancesWithOptions(request, runtime);
63033
64363
  }
64364
+ /**
64365
+ * When you call this operation, take note of the following items:
64366
+ * * You must specify the `ImageId` parameter or the `DiskId` parameter. You cannot specify both parameters in the same request. Otherwise, the request fails and an error message is returned.````
64367
+ * > You can use the `DiskId` parameter to replace the operating system of an instance. This feature is in invitational preview. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm).
64368
+ * * The category of the system disk cannot be changed.
64369
+ * * The billing method of the system disk cannot be changed.
64370
+ * * The instance must be in the `Stopped` state.
64371
+ * **
64372
+ * **Note**This item is applicable only to instances in virtual private clouds (VPCs). If the instance is a pay-as-you-go instance and the economical mode is enabled by default for the instance, you must set the stop mode to the standard mode when you stop the instance. This prevents instance restart failures caused by insufficient resources after the system disk is replaced. For more information, see [StopInstance](~~25501~~).
64373
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.`` For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
64374
+ * * You cannot have unpaid orders that are associated with the instance.
64375
+ * * You can configure the `SystemDisk.Size` parameter to specify the capacity of the new system disk.
64376
+ * After you call this operation, you can use one of the following methods to check whether the system disk is replaced:
64377
+ * * Call the [DescribeDisks](~~25514~~) operation to query the state of the new system disk. If the new system disk is in the In_use state, the system disk is replaced.
64378
+ * * Call the [DescribeInstances](~~25506~~) operation to query the state of the instance whose system disk is replaced. If `OperationLocks` in the response is empty, the system disk is replaced.
64379
+ *
64380
+ * @param request ReplaceSystemDiskRequest
64381
+ * @param runtime runtime options for this request RuntimeOptions
64382
+ * @return ReplaceSystemDiskResponse
64383
+ */
63034
64384
  async replaceSystemDiskWithOptions(request, runtime) {
63035
64385
  tea_util_1.default.validateModel(request);
63036
64386
  let query = {};
@@ -63110,6 +64460,25 @@ class Client extends openapi_client_1.default {
63110
64460
  });
63111
64461
  return $tea.cast(await this.callApi(params, req, runtime), new ReplaceSystemDiskResponse({}));
63112
64462
  }
64463
+ /**
64464
+ * When you call this operation, take note of the following items:
64465
+ * * You must specify the `ImageId` parameter or the `DiskId` parameter. You cannot specify both parameters in the same request. Otherwise, the request fails and an error message is returned.````
64466
+ * > You can use the `DiskId` parameter to replace the operating system of an instance. This feature is in invitational preview. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm).
64467
+ * * The category of the system disk cannot be changed.
64468
+ * * The billing method of the system disk cannot be changed.
64469
+ * * The instance must be in the `Stopped` state.
64470
+ * **
64471
+ * **Note**This item is applicable only to instances in virtual private clouds (VPCs). If the instance is a pay-as-you-go instance and the economical mode is enabled by default for the instance, you must set the stop mode to the standard mode when you stop the instance. This prevents instance restart failures caused by insufficient resources after the system disk is replaced. For more information, see [StopInstance](~~25501~~).
64472
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.`` For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
64473
+ * * You cannot have unpaid orders that are associated with the instance.
64474
+ * * You can configure the `SystemDisk.Size` parameter to specify the capacity of the new system disk.
64475
+ * After you call this operation, you can use one of the following methods to check whether the system disk is replaced:
64476
+ * * Call the [DescribeDisks](~~25514~~) operation to query the state of the new system disk. If the new system disk is in the In_use state, the system disk is replaced.
64477
+ * * Call the [DescribeInstances](~~25506~~) operation to query the state of the instance whose system disk is replaced. If `OperationLocks` in the response is empty, the system disk is replaced.
64478
+ *
64479
+ * @param request ReplaceSystemDiskRequest
64480
+ * @return ReplaceSystemDiskResponse
64481
+ */
63113
64482
  async replaceSystemDisk(request) {
63114
64483
  let runtime = new $Util.RuntimeOptions({});
63115
64484
  return await this.replaceSystemDiskWithOptions(request, runtime);
@@ -63179,6 +64548,17 @@ class Client extends openapi_client_1.default {
63179
64548
  let runtime = new $Util.RuntimeOptions({});
63180
64549
  return await this.reportInstancesStatusWithOptions(request, runtime);
63181
64550
  }
64551
+ /**
64552
+ * When you call this operation, take note of the following items:
64553
+ * * The disk must be in the In Use (In_Use) or Unattached (Available) state.
64554
+ * * The Elastic Compute Service (ECS) instance to which the disk is attached must be in the Stopped (Stopped) state. You can call the [StopInstances](~~155372~~) operation to stop an instance.
64555
+ * * The snapshot specified by the SnapshotId parameter must be created from the disk specified by the DiskId parameter.
64556
+ * * When you call the [DescribeInstances](~~25506~~) operation to query instance information, if the response contains `{"OperationLocks": {"LockReason" : "security"}}` for an instance, the instance is locked for security reasons and no operations can be performed on the instance.
64557
+ *
64558
+ * @param request ResetDiskRequest
64559
+ * @param runtime runtime options for this request RuntimeOptions
64560
+ * @return ResetDiskResponse
64561
+ */
63182
64562
  async resetDiskWithOptions(request, runtime) {
63183
64563
  tea_util_1.default.validateModel(request);
63184
64564
  let query = {};
@@ -63219,10 +64599,27 @@ class Client extends openapi_client_1.default {
63219
64599
  });
63220
64600
  return $tea.cast(await this.callApi(params, req, runtime), new ResetDiskResponse({}));
63221
64601
  }
64602
+ /**
64603
+ * When you call this operation, take note of the following items:
64604
+ * * The disk must be in the In Use (In_Use) or Unattached (Available) state.
64605
+ * * The Elastic Compute Service (ECS) instance to which the disk is attached must be in the Stopped (Stopped) state. You can call the [StopInstances](~~155372~~) operation to stop an instance.
64606
+ * * The snapshot specified by the SnapshotId parameter must be created from the disk specified by the DiskId parameter.
64607
+ * * When you call the [DescribeInstances](~~25506~~) operation to query instance information, if the response contains `{"OperationLocks": {"LockReason" : "security"}}` for an instance, the instance is locked for security reasons and no operations can be performed on the instance.
64608
+ *
64609
+ * @param request ResetDiskRequest
64610
+ * @return ResetDiskResponse
64611
+ */
63222
64612
  async resetDisk(request) {
63223
64613
  let runtime = new $Util.RuntimeOptions({});
63224
64614
  return await this.resetDiskWithOptions(request, runtime);
63225
64615
  }
64616
+ /**
64617
+ * This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
64618
+ *
64619
+ * @param request ResetDisksRequest
64620
+ * @param runtime runtime options for this request RuntimeOptions
64621
+ * @return ResetDisksResponse
64622
+ */
63226
64623
  async resetDisksWithOptions(request, runtime) {
63227
64624
  tea_util_1.default.validateModel(request);
63228
64625
  let query = {};
@@ -63263,10 +64660,29 @@ class Client extends openapi_client_1.default {
63263
64660
  });
63264
64661
  return $tea.cast(await this.callApi(params, req, runtime), new ResetDisksResponse({}));
63265
64662
  }
64663
+ /**
64664
+ * This operation will be removed in the future. We recommend that you call the [ResetDisk](~~25520~~) operation to roll back a disk.
64665
+ *
64666
+ * @param request ResetDisksRequest
64667
+ * @return ResetDisksResponse
64668
+ */
63266
64669
  async resetDisks(request) {
63267
64670
  let runtime = new $Util.RuntimeOptions({});
63268
64671
  return await this.resetDisksWithOptions(request, runtime);
63269
64672
  }
64673
+ /**
64674
+ * ## Description
64675
+ * > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to greater than or equal to 2 TiB without data loss. To resize an MBR disk to greater than or equal to 2 TiB in size, we recommend that you create and attach a new data disk with the desired size. Then, you can partition and format the new data disk to GUID partition table (GPT) and copy data from the MBR disk to the new GPT data disk. For more information, see [Resize disks offline](~~44986~~).
64676
+ * * You can resize the following categories of disks: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), and enhanced SSDs (ESSDs) (`cloud_essd`).
64677
+ * * You cannot resize a disk when a snapshot is being created for the disk.
64678
+ * * The instance to which the disk to be resized is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
64679
+ * * After you resize a disk, its partitions and file systems are not changed. You must manually allocate the storage space on the disk after it is resized.
64680
+ * * Disks for which the multi-attach feature is enabled can only be resized offline. Before you resize the disks, make sure that instances to which the disks are attached are in the **Stopped** (`Stopped`) state.
64681
+ *
64682
+ * @param request ResizeDiskRequest
64683
+ * @param runtime runtime options for this request RuntimeOptions
64684
+ * @return ResizeDiskResponse
64685
+ */
63270
64686
  async resizeDiskWithOptions(request, runtime) {
63271
64687
  tea_util_1.default.validateModel(request);
63272
64688
  let query = {};
@@ -63310,10 +64726,51 @@ class Client extends openapi_client_1.default {
63310
64726
  });
63311
64727
  return $tea.cast(await this.callApi(params, req, runtime), new ResizeDiskResponse({}));
63312
64728
  }
64729
+ /**
64730
+ * ## Description
64731
+ * > Before you call this operation to resize a disk, you must check the partition format of the disk. You cannot resize a master boot record (MBR) disk to greater than or equal to 2 TiB without data loss. To resize an MBR disk to greater than or equal to 2 TiB in size, we recommend that you create and attach a new data disk with the desired size. Then, you can partition and format the new data disk to GUID partition table (GPT) and copy data from the MBR disk to the new GPT data disk. For more information, see [Resize disks offline](~~44986~~).
64732
+ * * You can resize the following categories of disks: basic disks (`cloud`), ultra disks (`cloud_efficiency`), standard SSDs (`cloud_ssd`), and enhanced SSDs (ESSDs) (`cloud_essd`).
64733
+ * * You cannot resize a disk when a snapshot is being created for the disk.
64734
+ * * The instance to which the disk to be resized is attached must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
64735
+ * * After you resize a disk, its partitions and file systems are not changed. You must manually allocate the storage space on the disk after it is resized.
64736
+ * * Disks for which the multi-attach feature is enabled can only be resized offline. Before you resize the disks, make sure that instances to which the disks are attached are in the **Stopped** (`Stopped`) state.
64737
+ *
64738
+ * @param request ResizeDiskRequest
64739
+ * @return ResizeDiskResponse
64740
+ */
63313
64741
  async resizeDisk(request) {
63314
64742
  let runtime = new $Util.RuntimeOptions({});
63315
64743
  return await this.resizeDiskWithOptions(request, runtime);
63316
64744
  }
64745
+ /**
64746
+ * When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
64747
+ * * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the specified security group rule ID does not exist, an error is reported. - Parameters that are no longer used and their Permissions.N-prefixed counterparts cannot be specified at the same time. - Sample request:
64748
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
64749
+ * &SecurityGroupId=sg-bp67acfmxazb4p****
64750
+ * &SecurityGroupRuleId.1=sgr-bpdfmk****
64751
+ * &SecurityGroupRuleId.2=sgr-bpdfmg****
64752
+ * &<Common request parameters>
64753
+ * * Parameters prefixed with Permissions.N.
64754
+ * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group rule is deleted.
64755
+ * * Security group rule IDs and parameters without the Permissions.N prefix cannot be specified.
64756
+ * * You can determine an inbound rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
64757
+ * * Parameters used to determine an inbound security group rule that controls access from a specified CIDR block: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceCidrIp. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
64758
+ * ```
64759
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceCidrIp=10.0.0.0/8&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
64760
+ * ```
64761
+ * * Parameters used to determine an inbound security group rule that controls access from a security group: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceGroupId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
64762
+ * ```
64763
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup \\&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceGroupId=sg-bp67acfmxa123b****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
64764
+ * ```
64765
+ * * Parameters used to delete an inbound security group rule that controls access from a prefix list. SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourcePrefixListId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
64766
+ * ```
64767
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
64768
+ * ```
64769
+ *
64770
+ * @param request RevokeSecurityGroupRequest
64771
+ * @param runtime runtime options for this request RuntimeOptions
64772
+ * @return RevokeSecurityGroupResponse
64773
+ */
63317
64774
  async revokeSecurityGroupWithOptions(request, runtime) {
63318
64775
  tea_util_1.default.validateModel(request);
63319
64776
  let query = {};
@@ -63414,6 +64871,34 @@ class Client extends openapi_client_1.default {
63414
64871
  });
63415
64872
  return $tea.cast(await this.callApi(params, req, runtime), new RevokeSecurityGroupResponse({}));
63416
64873
  }
64874
+ /**
64875
+ * When you call this operation, you can use one of the following groups of parameters to specify the security group rules that you want to delete:
64876
+ * * Parameters used to specify the IDs of security group rules. We recommend that you specify the IDs of security group rules to delete the rules. - If the specified security group rule ID does not exist, an error is reported. - Parameters that are no longer used and their Permissions.N-prefixed counterparts cannot be specified at the same time. - Sample request:
64877
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup
64878
+ * &SecurityGroupId=sg-bp67acfmxazb4p****
64879
+ * &SecurityGroupRuleId.1=sgr-bpdfmk****
64880
+ * &SecurityGroupRuleId.2=sgr-bpdfmg****
64881
+ * &<Common request parameters>
64882
+ * * Parameters prefixed with Permissions.N.
64883
+ * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroup is successful but no security group rule is deleted.
64884
+ * * Security group rule IDs and parameters without the Permissions.N prefix cannot be specified.
64885
+ * * You can determine an inbound rule by specifying one of the following groups of parameters. You cannot determine a security group rule by specifying only one parameter.
64886
+ * * Parameters used to determine an inbound security group rule that controls access from a specified CIDR block: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceCidrIp. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
64887
+ * ```
64888
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceCidrIp=10.0.0.0/8&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
64889
+ * ```
64890
+ * * Parameters used to determine an inbound security group rule that controls access from a security group: SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourceGroupId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
64891
+ * ```
64892
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup \\&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourceGroupId=sg-bp67acfmxa123b****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
64893
+ * ```
64894
+ * * Parameters used to delete an inbound security group rule that controls access from a prefix list. SecurityGroupId, Permissions.N.IpProtocol, Permissions.N.PortRange, Permissions.N.SourcePortRange, Permissions.N.NicType, Permissions.N.Policy, Permissions.N.DestCidrIp, and Permissions.N.SourcePrefixListId. The Permissions.N.SourcePortRange and Permissions.N.DestCidrIp parameters are optional. Sample request:
64895
+ * ```
64896
+ * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroup&SecurityGroupId=sg-bp67acfmxazb4p****&Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****&Permissions.1.IpProtocol=TCP&Permissions.1.PortRange=80/80&Permissions.1.NicType=intranet&Permissions.1.Policy=accept&<Common request parameters>
64897
+ * ```
64898
+ *
64899
+ * @param request RevokeSecurityGroupRequest
64900
+ * @return RevokeSecurityGroupResponse
64901
+ */
63417
64902
  async revokeSecurityGroup(request) {
63418
64903
  let runtime = new $Util.RuntimeOptions({});
63419
64904
  return await this.revokeSecurityGroupWithOptions(request, runtime);
@@ -63769,6 +65254,33 @@ class Client extends openapi_client_1.default {
63769
65254
  let runtime = new $Util.RuntimeOptions({});
63770
65255
  return await this.runCommandWithOptions(request, runtime);
63771
65256
  }
65257
+ /**
65258
+ * * **Preparations**:
65259
+ * * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
65260
+ * * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
65261
+ * * Instance type selection: Call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of instance types, or see [Best practices for instance type selection](~~58291~~) to learn about how to select instance types.
65262
+ * * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
65263
+ * * Network planning: Make sure that you have security groups available for use. For more information, see [CreateSecurityGroup](~~25553~~). Before you create an instance of the Virtual Private Cloud (VPC) type, create a VPC in the region where you want to create the instance. For more information, see [Create a VPC](~~65430~~).
65264
+ * * **Precautions**:
65265
+ * * You can create a maximum of 100 instances at a time.
65266
+ * * You can use the `AutoReleaseTime` parameter to set the time when you want the instances to be automatically released.
65267
+ * * After instances are created, you can call the [DescribeInstances](~~25506~~) operation to check their states.
65268
+ * * By default, instances automatically start after they are created. Instances are ready for use when they are in the Running (`Running`) state.
65269
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to the throttling policy for your account. To increase the maximum bandwidth value, submit a ticket. The throttling policy imposes the following constraints: Within a single region, the total maximum bandwidth value of all instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s and that of all instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
65270
+ * * Different from the [CreateInstance](~~25499~~) operation, the `RunInstances` operation allows the system to assign public IP addresses to the new instances if you set the `InternetMaxBandwidthOut` parameter to a value greater than 0.
65271
+ * * When you call the RunInstances operation to create an instance, you can use one of the following methods to bind a primary elastic network interface (ENI) to the instance. Note that you can use only one of the methods to configure the primary ENI in each call. Otherwise, the call fails and an error message is returned. Specify parameters such as `SecurityGroupId`, `VSwitchId`, `PrivateIpAddress`, `NetworkInterfaceQueueNumber`, and `Ipv6AddressCount` to configure the primary ENI. Specify parameters that start with `NetworkInterface.N.` to configure the primary and secondary ENIs. If `NetworkInterface.N.InstanceType` is set to `Primary`, the primary ENI is bound to the instance. If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, a secondary ENI is bound to the instance.
65272
+ * * After you call this operation, an error is returned if a parameter is invalid or if available resources are insufficient. For more information, see the "Error codes" section of this topic.
65273
+ * > If the `QuotaExceed.ElasticQuota` error is returned when you call this operation, you have reached the maximum number of instances of the specified instance type that can be created within the specified region or the maximum number of vCPUs for all instance types in a zone. You can go to the [ECS console](https://ecs.console.aliyun.com/?spm=a2c8b.12215451.favorites.decs.5e3a336aMGTtzy#/privileges/quota) or [Quota Center](https://quotas.console.aliyun.com/products/ecs/quotas) to request a quota increase.
65274
+ * * **Best practices**:
65275
+ * * We recommend that you use auto provisioning groups in the following scenarios: Resources are insufficient to create more than 100 instances at a time, you want to quickly create instances regardless of resource configurations such as instance types or zones, or you want to create instances to consume a specific total number of vCPUs regardless of the number of the instances. You can call the [CreateAutoProvisioningGroup](~~122738~~) operation to create an auto provisioning group to deploy an instance cluster across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](~~200772~~).
65276
+ * * You can call the `RunInstances` operation to batch create instances. To better manage and search for these instances, we recommend that you specify tags for the instances by using the `Tag.N.Key` and `Tag.N.Value` parameters. You can also append incremental suffixes (`UniqueSuffix`) to the hostname (`HostName`) and to the instance name (`InstanceName`).
65277
+ * * A launch template contains parameters required to create an instance so that you do not have to specify these parameters every time you create instances. You can call the [CreateLaunchTemplate](~~74686~~) operation to create a launch template. Then, in your request to call the `RunInstances` operation, you can specify the `LaunchTemplateId` and `LaunchTemplateVersion` parameters to use the launch template.
65278
+ * * When you create an instance in the [ECS console](https://ecs.console.aliyun.com/), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View Open API in the Configurations Selected section. In the dialog box that appears, the left-side **API Workflow** section shows the operations and request parameters that are related to the `RunInstances` operation. The right-side section shows SDK examples for the **Java** and **Python** programming languages.
65279
+ *
65280
+ * @param request RunInstancesRequest
65281
+ * @param runtime runtime options for this request RuntimeOptions
65282
+ * @return RunInstancesResponse
65283
+ */
63772
65284
  async runInstancesWithOptions(request, runtime) {
63773
65285
  tea_util_1.default.validateModel(request);
63774
65286
  let query = {};
@@ -64016,10 +65528,49 @@ class Client extends openapi_client_1.default {
64016
65528
  });
64017
65529
  return $tea.cast(await this.callApi(params, req, runtime), new RunInstancesResponse({}));
64018
65530
  }
65531
+ /**
65532
+ * * **Preparations**:
65533
+ * * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
65534
+ * * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
65535
+ * * Instance type selection: Call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of instance types, or see [Best practices for instance type selection](~~58291~~) to learn about how to select instance types.
65536
+ * * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
65537
+ * * Network planning: Make sure that you have security groups available for use. For more information, see [CreateSecurityGroup](~~25553~~). Before you create an instance of the Virtual Private Cloud (VPC) type, create a VPC in the region where you want to create the instance. For more information, see [Create a VPC](~~65430~~).
65538
+ * * **Precautions**:
65539
+ * * You can create a maximum of 100 instances at a time.
65540
+ * * You can use the `AutoReleaseTime` parameter to set the time when you want the instances to be automatically released.
65541
+ * * After instances are created, you can call the [DescribeInstances](~~25506~~) operation to check their states.
65542
+ * * By default, instances automatically start after they are created. Instances are ready for use when they are in the Running (`Running`) state.
65543
+ * * As of November 27, 2020, the maximum bandwidth value available for you to create ECS instances or to change ECS instance configurations is subject to the throttling policy for your account. To increase the maximum bandwidth value, submit a ticket. The throttling policy imposes the following constraints: Within a single region, the total maximum bandwidth value of all instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s and that of all instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
65544
+ * * Different from the [CreateInstance](~~25499~~) operation, the `RunInstances` operation allows the system to assign public IP addresses to the new instances if you set the `InternetMaxBandwidthOut` parameter to a value greater than 0.
65545
+ * * When you call the RunInstances operation to create an instance, you can use one of the following methods to bind a primary elastic network interface (ENI) to the instance. Note that you can use only one of the methods to configure the primary ENI in each call. Otherwise, the call fails and an error message is returned. Specify parameters such as `SecurityGroupId`, `VSwitchId`, `PrivateIpAddress`, `NetworkInterfaceQueueNumber`, and `Ipv6AddressCount` to configure the primary ENI. Specify parameters that start with `NetworkInterface.N.` to configure the primary and secondary ENIs. If `NetworkInterface.N.InstanceType` is set to `Primary`, the primary ENI is bound to the instance. If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, a secondary ENI is bound to the instance.
65546
+ * * After you call this operation, an error is returned if a parameter is invalid or if available resources are insufficient. For more information, see the "Error codes" section of this topic.
65547
+ * > If the `QuotaExceed.ElasticQuota` error is returned when you call this operation, you have reached the maximum number of instances of the specified instance type that can be created within the specified region or the maximum number of vCPUs for all instance types in a zone. You can go to the [ECS console](https://ecs.console.aliyun.com/?spm=a2c8b.12215451.favorites.decs.5e3a336aMGTtzy#/privileges/quota) or [Quota Center](https://quotas.console.aliyun.com/products/ecs/quotas) to request a quota increase.
65548
+ * * **Best practices**:
65549
+ * * We recommend that you use auto provisioning groups in the following scenarios: Resources are insufficient to create more than 100 instances at a time, you want to quickly create instances regardless of resource configurations such as instance types or zones, or you want to create instances to consume a specific total number of vCPUs regardless of the number of the instances. You can call the [CreateAutoProvisioningGroup](~~122738~~) operation to create an auto provisioning group to deploy an instance cluster across different billing methods, instance families, and zones. For more information, see [Use auto provisioning group-related API operations to create multiple ECS instances at the same time](~~200772~~).
65550
+ * * You can call the `RunInstances` operation to batch create instances. To better manage and search for these instances, we recommend that you specify tags for the instances by using the `Tag.N.Key` and `Tag.N.Value` parameters. You can also append incremental suffixes (`UniqueSuffix`) to the hostname (`HostName`) and to the instance name (`InstanceName`).
65551
+ * * A launch template contains parameters required to create an instance so that you do not have to specify these parameters every time you create instances. You can call the [CreateLaunchTemplate](~~74686~~) operation to create a launch template. Then, in your request to call the `RunInstances` operation, you can specify the `LaunchTemplateId` and `LaunchTemplateVersion` parameters to use the launch template.
65552
+ * * When you create an instance in the [ECS console](https://ecs.console.aliyun.com/), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View Open API in the Configurations Selected section. In the dialog box that appears, the left-side **API Workflow** section shows the operations and request parameters that are related to the `RunInstances` operation. The right-side section shows SDK examples for the **Java** and **Python** programming languages.
65553
+ *
65554
+ * @param request RunInstancesRequest
65555
+ * @return RunInstancesResponse
65556
+ */
64019
65557
  async runInstances(request) {
64020
65558
  let runtime = new $Util.RuntimeOptions({});
64021
65559
  return await this.runInstancesWithOptions(request, runtime);
64022
65560
  }
65561
+ /**
65562
+ * * The instances to which to send a file must be in the Running (`Running`) state.
65563
+ * * The Cloud Assistant client must be installed on the instances. For information about how to install the Cloud Assistant client, see [InstallCloudAssistant](~~85916~~).
65564
+ * * Only the Cloud Assistant client versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, you must upgrade the Cloud Assistant client to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
65565
+ * * For Linux instances, the version of the Cloud Assistant client must be later than 1.0.2.569.
65566
+ * * For Windows instances, the version of the Cloud Assistant client must be later than 1.0.0.149.
65567
+ * * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
65568
+ * * The file may fail to be sent due to exceptions on the instances, network, or the Cloud Assistance client. Call the [DescribeSendFileResults](~~~~) operation to troubleshoot the issues.
65569
+ *
65570
+ * @param request SendFileRequest
65571
+ * @param runtime runtime options for this request RuntimeOptions
65572
+ * @return SendFileResponse
65573
+ */
64023
65574
  async sendFileWithOptions(request, runtime) {
64024
65575
  tea_util_1.default.validateModel(request);
64025
65576
  let query = {};
@@ -64096,6 +65647,18 @@ class Client extends openapi_client_1.default {
64096
65647
  });
64097
65648
  return $tea.cast(await this.callApi(params, req, runtime), new SendFileResponse({}));
64098
65649
  }
65650
+ /**
65651
+ * * The instances to which to send a file must be in the Running (`Running`) state.
65652
+ * * The Cloud Assistant client must be installed on the instances. For information about how to install the Cloud Assistant client, see [InstallCloudAssistant](~~85916~~).
65653
+ * * Only the Cloud Assistant client versions that are later than the following ones support file sending. If the `ClientNeedUpgrade` error code is returned, you must upgrade the Cloud Assistant client to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
65654
+ * * For Linux instances, the version of the Cloud Assistant client must be later than 1.0.2.569.
65655
+ * * For Windows instances, the version of the Cloud Assistant client must be later than 1.0.0.149.
65656
+ * * The file to be sent must not exceed 32 KB in size after it is encoded in Base64.
65657
+ * * The file may fail to be sent due to exceptions on the instances, network, or the Cloud Assistance client. Call the [DescribeSendFileResults](~~~~) operation to troubleshoot the issues.
65658
+ *
65659
+ * @param request SendFileRequest
65660
+ * @return SendFileResponse
65661
+ */
64099
65662
  async sendFile(request) {
64100
65663
  let runtime = new $Util.RuntimeOptions({});
64101
65664
  return await this.sendFileWithOptions(request, runtime);
@@ -64156,6 +65719,14 @@ class Client extends openapi_client_1.default {
64156
65719
  let runtime = new $Util.RuntimeOptions({});
64157
65720
  return await this.startElasticityAssuranceWithOptions(request, runtime);
64158
65721
  }
65722
+ /**
65723
+ * * After an image template is created, you must call the StartImagePipelineExecution operation to execute an image creation task. The system creates, distributes, and shares an image based on the parameters configured in the image template.
65724
+ * * Only one image creation task can be executed at a time based on a single image template. You can call the CancelImagePipelineExecution operation multiple times to cancel multiple image creation tasks at a time. If you cancel some image creation tasks, the other tasks are not affected.
65725
+ *
65726
+ * @param request StartImagePipelineExecutionRequest
65727
+ * @param runtime runtime options for this request RuntimeOptions
65728
+ * @return StartImagePipelineExecutionResponse
65729
+ */
64159
65730
  async startImagePipelineExecutionWithOptions(request, runtime) {
64160
65731
  tea_util_1.default.validateModel(request);
64161
65732
  let query = {};
@@ -64202,10 +65773,27 @@ class Client extends openapi_client_1.default {
64202
65773
  });
64203
65774
  return $tea.cast(await this.callApi(params, req, runtime), new StartImagePipelineExecutionResponse({}));
64204
65775
  }
65776
+ /**
65777
+ * * After an image template is created, you must call the StartImagePipelineExecution operation to execute an image creation task. The system creates, distributes, and shares an image based on the parameters configured in the image template.
65778
+ * * Only one image creation task can be executed at a time based on a single image template. You can call the CancelImagePipelineExecution operation multiple times to cancel multiple image creation tasks at a time. If you cancel some image creation tasks, the other tasks are not affected.
65779
+ *
65780
+ * @param request StartImagePipelineExecutionRequest
65781
+ * @return StartImagePipelineExecutionResponse
65782
+ */
64205
65783
  async startImagePipelineExecution(request) {
64206
65784
  let runtime = new $Util.RuntimeOptions({});
64207
65785
  return await this.startImagePipelineExecutionWithOptions(request, runtime);
64208
65786
  }
65787
+ /**
65788
+ * ## Usage notes
65789
+ * When you call this operation, take note of the following items:
65790
+ * * The instances that you want to start must be in the **Stopped** (`Stopped`) state.
65791
+ * * If the response contains `{"OperationLocks"`: `{"LockReason" : "security"}}` for an instance when you query the information of the instance, the instance is locked for [security reasons](~~25695~~) and cannot be started.
65792
+ *
65793
+ * @param request StartInstanceRequest
65794
+ * @param runtime runtime options for this request RuntimeOptions
65795
+ * @return StartInstanceResponse
65796
+ */
64209
65797
  async startInstanceWithOptions(request, runtime) {
64210
65798
  tea_util_1.default.validateModel(request);
64211
65799
  let query = {};
@@ -64246,10 +65834,29 @@ class Client extends openapi_client_1.default {
64246
65834
  });
64247
65835
  return $tea.cast(await this.callApi(params, req, runtime), new StartInstanceResponse({}));
64248
65836
  }
65837
+ /**
65838
+ * ## Usage notes
65839
+ * When you call this operation, take note of the following items:
65840
+ * * The instances that you want to start must be in the **Stopped** (`Stopped`) state.
65841
+ * * If the response contains `{"OperationLocks"`: `{"LockReason" : "security"}}` for an instance when you query the information of the instance, the instance is locked for [security reasons](~~25695~~) and cannot be started.
65842
+ *
65843
+ * @param request StartInstanceRequest
65844
+ * @return StartInstanceResponse
65845
+ */
64249
65846
  async startInstance(request) {
64250
65847
  let runtime = new $Util.RuntimeOptions({});
64251
65848
  return await this.startInstanceWithOptions(request, runtime);
64252
65849
  }
65850
+ /**
65851
+ * When you call this operation, take note of the following items:
65852
+ * * The ECS instances that you want to start must be in the **Stopped** (`Stopped`) state.
65853
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the ECS instance is locked to ensure security. No operations are allowed on the ECS instance.
65854
+ * * You can start multiple ECS instances at the same time and use the `BatchOptimization` parameter to specify the batch operation mode.
65855
+ *
65856
+ * @param request StartInstancesRequest
65857
+ * @param runtime runtime options for this request RuntimeOptions
65858
+ * @return StartInstancesResponse
65859
+ */
64253
65860
  async startInstancesWithOptions(request, runtime) {
64254
65861
  tea_util_1.default.validateModel(request);
64255
65862
  let query = {};
@@ -64293,10 +65900,34 @@ class Client extends openapi_client_1.default {
64293
65900
  });
64294
65901
  return $tea.cast(await this.callApi(params, req, runtime), new StartInstancesResponse({}));
64295
65902
  }
65903
+ /**
65904
+ * When you call this operation, take note of the following items:
65905
+ * * The ECS instances that you want to start must be in the **Stopped** (`Stopped`) state.
65906
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the ECS instance is locked to ensure security. No operations are allowed on the ECS instance.
65907
+ * * You can start multiple ECS instances at the same time and use the `BatchOptimization` parameter to specify the batch operation mode.
65908
+ *
65909
+ * @param request StartInstancesRequest
65910
+ * @return StartInstancesResponse
65911
+ */
64296
65912
  async startInstances(request) {
64297
65913
  let runtime = new $Util.RuntimeOptions({});
64298
65914
  return await this.startInstancesWithOptions(request, runtime);
64299
65915
  }
65916
+ /**
65917
+ * ## Description
65918
+ * The session management feature is in public preview. To use this feature, log on with your Alibaba Cloud account and activate this feature.
65919
+ * When you use custom code to connect to an ECS instance that serves as a client, you can call this operation to obtain the WebSocket URL that is used to connect to the instance. Before you call this operation to create a session to an ECS instance, take note of the following items:
65920
+ * - The ECS instance must be in the Running (Running) state.
65921
+ * - The Cloud Assistant client must be installed on the ECS instance. You can call the [DescribeCloudAssistantStatus](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/describecloudassistantstatus) operation to check whether the Cloud Assistant client is installed on the ECS instance and query the version number of the installed Cloud Assistant client. - If the Cloud Assistant client is not installed on the ECS instance, call the [InstallCloudAssistant](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/installcloudassistant) operation to install the client.
65922
+ * - Only the Cloud Assistant client versions that are later than the following ones support the session management feature. You can upgrade your Cloud Assistant client. For information about how to upgrade the Cloud Assistant client, see [Update or disable updates for the Cloud Assistant client](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/update-or-disable-updates-for-the-cloud-assistant-client). - For Linux operating systems: V2.2.3.256
65923
+ * - For Windows operating systems: V2.1.3.256
65924
+ * - Each WebSocket URL returned by the StartTerminalSession operation remains valid for 10 minutes.
65925
+ * - Up to 1,000 sessions can be created and available per region. Each ECS instance can have up to 10 sessions in the connected state.
65926
+ *
65927
+ * @param request StartTerminalSessionRequest
65928
+ * @param runtime runtime options for this request RuntimeOptions
65929
+ * @return StartTerminalSessionResponse
65930
+ */
64300
65931
  async startTerminalSessionWithOptions(request, runtime) {
64301
65932
  tea_util_1.default.validateModel(request);
64302
65933
  let query = {};
@@ -64340,10 +65971,32 @@ class Client extends openapi_client_1.default {
64340
65971
  });
64341
65972
  return $tea.cast(await this.callApi(params, req, runtime), new StartTerminalSessionResponse({}));
64342
65973
  }
65974
+ /**
65975
+ * ## Description
65976
+ * The session management feature is in public preview. To use this feature, log on with your Alibaba Cloud account and activate this feature.
65977
+ * When you use custom code to connect to an ECS instance that serves as a client, you can call this operation to obtain the WebSocket URL that is used to connect to the instance. Before you call this operation to create a session to an ECS instance, take note of the following items:
65978
+ * - The ECS instance must be in the Running (Running) state.
65979
+ * - The Cloud Assistant client must be installed on the ECS instance. You can call the [DescribeCloudAssistantStatus](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/describecloudassistantstatus) operation to check whether the Cloud Assistant client is installed on the ECS instance and query the version number of the installed Cloud Assistant client. - If the Cloud Assistant client is not installed on the ECS instance, call the [InstallCloudAssistant](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/installcloudassistant) operation to install the client.
65980
+ * - Only the Cloud Assistant client versions that are later than the following ones support the session management feature. You can upgrade your Cloud Assistant client. For information about how to upgrade the Cloud Assistant client, see [Update or disable updates for the Cloud Assistant client](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/update-or-disable-updates-for-the-cloud-assistant-client). - For Linux operating systems: V2.2.3.256
65981
+ * - For Windows operating systems: V2.1.3.256
65982
+ * - Each WebSocket URL returned by the StartTerminalSession operation remains valid for 10 minutes.
65983
+ * - Up to 1,000 sessions can be created and available per region. Each ECS instance can have up to 10 sessions in the connected state.
65984
+ *
65985
+ * @param request StartTerminalSessionRequest
65986
+ * @return StartTerminalSessionResponse
65987
+ */
64343
65988
  async startTerminalSession(request) {
64344
65989
  let runtime = new $Util.RuntimeOptions({});
64345
65990
  return await this.startTerminalSessionWithOptions(request, runtime);
64346
65991
  }
65992
+ /**
65993
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance. ``For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
65994
+ * * If economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
65995
+ *
65996
+ * @param request StopInstanceRequest
65997
+ * @param runtime runtime options for this request RuntimeOptions
65998
+ * @return StopInstanceResponse
65999
+ */
64347
66000
  async stopInstanceWithOptions(request, runtime) {
64348
66001
  tea_util_1.default.validateModel(request);
64349
66002
  let query = {};
@@ -64393,10 +66046,26 @@ class Client extends openapi_client_1.default {
64393
66046
  });
64394
66047
  return $tea.cast(await this.callApi(params, req, runtime), new StopInstanceResponse({}));
64395
66048
  }
66049
+ /**
66050
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance. ``For more information, see [API behavior when an instance is locked for security reasons](~~25695~~).
66051
+ * * If economical mode is enabled, you can set `StoppedMode` to KeepCharging to switch to standard mode. This allows an instance that is stopped in standard mode to retain its instance type resources and public IP address. However, you continue to be charged for the instance.
66052
+ *
66053
+ * @param request StopInstanceRequest
66054
+ * @return StopInstanceResponse
66055
+ */
64396
66056
  async stopInstance(request) {
64397
66057
  let runtime = new $Util.RuntimeOptions({});
64398
66058
  return await this.stopInstanceWithOptions(request, runtime);
64399
66059
  }
66060
+ /**
66061
+ * * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
66062
+ * * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
66063
+ * * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
66064
+ *
66065
+ * @param request StopInstancesRequest
66066
+ * @param runtime runtime options for this request RuntimeOptions
66067
+ * @return StopInstancesResponse
66068
+ */
64400
66069
  async stopInstancesWithOptions(request, runtime) {
64401
66070
  tea_util_1.default.validateModel(request);
64402
66071
  let query = {};
@@ -64446,10 +66115,26 @@ class Client extends openapi_client_1.default {
64446
66115
  });
64447
66116
  return $tea.cast(await this.callApi(params, req, runtime), new StopInstancesResponse({}));
64448
66117
  }
66118
+ /**
66119
+ * * If you call the DescribeInstances operation and the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instances are locked for security reasons and cannot be stopped.
66120
+ * * If the economical mode is enabled for pay-as-you-go instances, you can set `StoppedMode` to KeepCharging to enable the standard mode for the instances. Then, after the instances are stopped in standard mode, you continue to be charged for them, and their instance type resources and public IP addresses are retained.
66121
+ * * Batch operations are supported. You can use the `BatchOptimization` parameter to specify the batch operation mode.
66122
+ *
66123
+ * @param request StopInstancesRequest
66124
+ * @return StopInstancesResponse
66125
+ */
64449
66126
  async stopInstances(request) {
64450
66127
  let runtime = new $Util.RuntimeOptions({});
64451
66128
  return await this.stopInstancesWithOptions(request, runtime);
64452
66129
  }
66130
+ /**
66131
+ * * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
66132
+ * * If you stop the process of a scheduled invocation command, the executions that have started are not interrupted. However, the execution does not start in the next period.
66133
+ *
66134
+ * @param request StopInvocationRequest
66135
+ * @param runtime runtime options for this request RuntimeOptions
66136
+ * @return StopInvocationResponse
66137
+ */
64453
66138
  async stopInvocationWithOptions(request, runtime) {
64454
66139
  tea_util_1.default.validateModel(request);
64455
66140
  let query = {};
@@ -64493,10 +66178,24 @@ class Client extends openapi_client_1.default {
64493
66178
  });
64494
66179
  return $tea.cast(await this.callApi(params, req, runtime), new StopInvocationResponse({}));
64495
66180
  }
66181
+ /**
66182
+ * * If you stop the process of a command that runs only once, the executions that have started are not interrupted. The executions that have not started are canceled.
66183
+ * * If you stop the process of a scheduled invocation command, the executions that have started are not interrupted. However, the execution does not start in the next period.
66184
+ *
66185
+ * @param request StopInvocationRequest
66186
+ * @return StopInvocationResponse
66187
+ */
64496
66188
  async stopInvocation(request) {
64497
66189
  let runtime = new $Util.RuntimeOptions({});
64498
66190
  return await this.stopInvocationWithOptions(request, runtime);
64499
66191
  }
66192
+ /**
66193
+ * Before you add tags to a resource, Alibaba Cloud checks the number of existing tags of the resource. If the maximum number of tags is reached, an error message is returned. For more information, see the "Tag limits" section in [Limits](~~25412~~).
66194
+ *
66195
+ * @param request TagResourcesRequest
66196
+ * @param runtime runtime options for this request RuntimeOptions
66197
+ * @return TagResourcesResponse
66198
+ */
64500
66199
  async tagResourcesWithOptions(request, runtime) {
64501
66200
  tea_util_1.default.validateModel(request);
64502
66201
  let query = {};
@@ -64540,6 +66239,12 @@ class Client extends openapi_client_1.default {
64540
66239
  });
64541
66240
  return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
64542
66241
  }
66242
+ /**
66243
+ * Before you add tags to a resource, Alibaba Cloud checks the number of existing tags of the resource. If the maximum number of tags is reached, an error message is returned. For more information, see the "Tag limits" section in [Limits](~~25412~~).
66244
+ *
66245
+ * @param request TagResourcesRequest
66246
+ * @return TagResourcesResponse
66247
+ */
64543
66248
  async tagResources(request) {
64544
66249
  let runtime = new $Util.RuntimeOptions({});
64545
66250
  return await this.tagResourcesWithOptions(request, runtime);