@alicloud/ecs20140526 3.0.3 → 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
@@ -11047,6 +11047,7 @@ class DescribeImageSupportInstanceTypesRequest extends $tea.Model {
11047
11047
  }
11048
11048
  static names() {
11049
11049
  return {
11050
+ actionType: 'ActionType',
11050
11051
  filter: 'Filter',
11051
11052
  imageId: 'ImageId',
11052
11053
  ownerId: 'OwnerId',
@@ -11057,6 +11058,7 @@ class DescribeImageSupportInstanceTypesRequest extends $tea.Model {
11057
11058
  }
11058
11059
  static types() {
11059
11060
  return {
11061
+ actionType: 'string',
11060
11062
  filter: { 'type': 'array', 'itemType': DescribeImageSupportInstanceTypesRequestFilter },
11061
11063
  imageId: 'string',
11062
11064
  ownerId: 'number',
@@ -14481,6 +14483,7 @@ class DescribeResourcesModificationRequest extends $tea.Model {
14481
14483
  }
14482
14484
  static names() {
14483
14485
  return {
14486
+ conditions: 'Conditions',
14484
14487
  cores: 'Cores',
14485
14488
  destinationResource: 'DestinationResource',
14486
14489
  instanceType: 'InstanceType',
@@ -14498,6 +14501,7 @@ class DescribeResourcesModificationRequest extends $tea.Model {
14498
14501
  }
14499
14502
  static types() {
14500
14503
  return {
14504
+ conditions: { 'type': 'array', 'itemType': 'string' },
14501
14505
  cores: 'number',
14502
14506
  destinationResource: 'string',
14503
14507
  instanceType: 'string',
@@ -19633,6 +19637,76 @@ class ModifyDiskChargeTypeResponse extends $tea.Model {
19633
19637
  }
19634
19638
  }
19635
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;
19636
19710
  class ModifyDiskSpecRequest extends $tea.Model {
19637
19711
  constructor(map) {
19638
19712
  super(map);
@@ -19644,6 +19718,7 @@ class ModifyDiskSpecRequest extends $tea.Model {
19644
19718
  dryRun: 'DryRun',
19645
19719
  ownerAccount: 'OwnerAccount',
19646
19720
  ownerId: 'OwnerId',
19721
+ performanceControlOptions: 'PerformanceControlOptions',
19647
19722
  performanceLevel: 'PerformanceLevel',
19648
19723
  provisionedIops: 'ProvisionedIops',
19649
19724
  resourceOwnerAccount: 'ResourceOwnerAccount',
@@ -19657,6 +19732,7 @@ class ModifyDiskSpecRequest extends $tea.Model {
19657
19732
  dryRun: 'boolean',
19658
19733
  ownerAccount: 'string',
19659
19734
  ownerId: 'number',
19735
+ performanceControlOptions: ModifyDiskSpecRequestPerformanceControlOptions,
19660
19736
  performanceLevel: 'string',
19661
19737
  provisionedIops: 'number',
19662
19738
  resourceOwnerAccount: 'string',
@@ -20926,10 +21002,12 @@ class ModifyInstanceSpecRequest extends $tea.Model {
20926
21002
  allowMigrateAcrossZone: 'AllowMigrateAcrossZone',
20927
21003
  async: 'Async',
20928
21004
  clientToken: 'ClientToken',
21005
+ disk: 'Disk',
20929
21006
  instanceId: 'InstanceId',
20930
21007
  instanceType: 'InstanceType',
20931
21008
  internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
20932
21009
  internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
21010
+ modifyMode: 'ModifyMode',
20933
21011
  ownerAccount: 'OwnerAccount',
20934
21012
  ownerId: 'OwnerId',
20935
21013
  resourceOwnerAccount: 'ResourceOwnerAccount',
@@ -20943,10 +21021,12 @@ class ModifyInstanceSpecRequest extends $tea.Model {
20943
21021
  allowMigrateAcrossZone: 'boolean',
20944
21022
  async: 'boolean',
20945
21023
  clientToken: 'string',
21024
+ disk: { 'type': 'array', 'itemType': ModifyInstanceSpecRequestDisk },
20946
21025
  instanceId: 'string',
20947
21026
  instanceType: 'string',
20948
21027
  internetMaxBandwidthIn: 'number',
20949
21028
  internetMaxBandwidthOut: 'number',
21029
+ modifyMode: 'string',
20950
21030
  ownerAccount: 'string',
20951
21031
  ownerId: 'number',
20952
21032
  resourceOwnerAccount: 'string',
@@ -21488,10 +21568,12 @@ class ModifyPrepayInstanceSpecRequest extends $tea.Model {
21488
21568
  systemDisk: 'SystemDisk',
21489
21569
  autoPay: 'AutoPay',
21490
21570
  clientToken: 'ClientToken',
21571
+ disk: 'Disk',
21491
21572
  endTime: 'EndTime',
21492
21573
  instanceId: 'InstanceId',
21493
21574
  instanceType: 'InstanceType',
21494
21575
  migrateAcrossZone: 'MigrateAcrossZone',
21576
+ modifyMode: 'ModifyMode',
21495
21577
  operatorType: 'OperatorType',
21496
21578
  ownerAccount: 'OwnerAccount',
21497
21579
  ownerId: 'OwnerId',
@@ -21507,10 +21589,12 @@ class ModifyPrepayInstanceSpecRequest extends $tea.Model {
21507
21589
  systemDisk: ModifyPrepayInstanceSpecRequestSystemDisk,
21508
21590
  autoPay: 'boolean',
21509
21591
  clientToken: 'string',
21592
+ disk: { 'type': 'array', 'itemType': ModifyPrepayInstanceSpecRequestDisk },
21510
21593
  endTime: 'string',
21511
21594
  instanceId: 'string',
21512
21595
  instanceType: 'string',
21513
21596
  migrateAcrossZone: 'boolean',
21597
+ modifyMode: 'string',
21514
21598
  operatorType: 'string',
21515
21599
  ownerAccount: 'string',
21516
21600
  ownerId: 'number',
@@ -24838,6 +24922,7 @@ class RunInstancesRequest extends $tea.Model {
24838
24922
  httpTokens: 'HttpTokens',
24839
24923
  imageFamily: 'ImageFamily',
24840
24924
  imageId: 'ImageId',
24925
+ imageOptions: 'ImageOptions',
24841
24926
  instanceChargeType: 'InstanceChargeType',
24842
24927
  instanceName: 'InstanceName',
24843
24928
  instanceType: 'InstanceType',
@@ -24916,6 +25001,7 @@ class RunInstancesRequest extends $tea.Model {
24916
25001
  httpTokens: 'string',
24917
25002
  imageFamily: 'string',
24918
25003
  imageId: 'string',
25004
+ imageOptions: RunInstancesRequestImageOptions,
24919
25005
  instanceChargeType: 'string',
24920
25006
  instanceName: 'string',
24921
25007
  instanceType: 'string',
@@ -37405,6 +37491,82 @@ class DescribeResourceByTagsResponseBodyResources extends $tea.Model {
37405
37491
  }
37406
37492
  }
37407
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;
37408
37570
  class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource extends $tea.Model {
37409
37571
  constructor(map) {
37410
37572
  super(map);
@@ -37453,12 +37615,14 @@ class DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvaila
37453
37615
  }
37454
37616
  static names() {
37455
37617
  return {
37618
+ conditionSupportedResources: 'ConditionSupportedResources',
37456
37619
  supportedResources: 'SupportedResources',
37457
37620
  type: 'Type',
37458
37621
  };
37459
37622
  }
37460
37623
  static types() {
37461
37624
  return {
37625
+ conditionSupportedResources: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources,
37462
37626
  supportedResources: DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources,
37463
37627
  type: 'string',
37464
37628
  };
@@ -40251,6 +40415,26 @@ class ModifyDedicatedHostsChargeTypeResponseBodyFeeOfInstances extends $tea.Mode
40251
40415
  }
40252
40416
  }
40253
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;
40254
40438
  class ModifyElasticityAssuranceRequestPrivatePoolOptions extends $tea.Model {
40255
40439
  constructor(map) {
40256
40440
  super(map);
@@ -40411,6 +40595,26 @@ class ModifyInstanceSpecRequestTemporary extends $tea.Model {
40411
40595
  }
40412
40596
  }
40413
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;
40414
40618
  class ModifyManagedInstanceResponseBodyInstance extends $tea.Model {
40415
40619
  constructor(map) {
40416
40620
  super(map);
@@ -40479,6 +40683,26 @@ class ModifyPrepayInstanceSpecRequestSystemDisk extends $tea.Model {
40479
40683
  }
40480
40684
  }
40481
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;
40482
40706
  class ModifyReservedInstancesRequestConfiguration extends $tea.Model {
40483
40707
  constructor(map) {
40484
40708
  super(map);
@@ -41117,6 +41341,22 @@ class RunInstancesRequestDataDisk extends $tea.Model {
41117
41341
  }
41118
41342
  }
41119
41343
  exports.RunInstancesRequestDataDisk = RunInstancesRequestDataDisk;
41344
+ class RunInstancesRequestImageOptions extends $tea.Model {
41345
+ constructor(map) {
41346
+ super(map);
41347
+ }
41348
+ static names() {
41349
+ return {
41350
+ loginAsNonRoot: 'LoginAsNonRoot',
41351
+ };
41352
+ }
41353
+ static types() {
41354
+ return {
41355
+ loginAsNonRoot: 'boolean',
41356
+ };
41357
+ }
41358
+ }
41359
+ exports.RunInstancesRequestImageOptions = RunInstancesRequestImageOptions;
41120
41360
  class RunInstancesRequestNetworkInterface extends $tea.Model {
41121
41361
  constructor(map) {
41122
41362
  super(map);
@@ -41758,6 +41998,7 @@ class Client extends openapi_client_1.default {
41758
41998
  }
41759
41999
  /**
41760
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~~).
41761
42002
  *
41762
42003
  * @param request AllocateEipAddressRequest
41763
42004
  * @param runtime runtime options for this request RuntimeOptions
@@ -41815,6 +42056,7 @@ class Client extends openapi_client_1.default {
41815
42056
  }
41816
42057
  /**
41817
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~~).
41818
42060
  *
41819
42061
  * @param request AllocateEipAddressRequest
41820
42062
  * @return AllocateEipAddressResponse
@@ -41895,7 +42137,7 @@ class Client extends openapi_client_1.default {
41895
42137
  }
41896
42138
  /**
41897
42139
  * * Each disk can have only one automatic snapshot policy applied.
41898
- * * A single automatic snapshot policy can be applied to multiple disks.
42140
+ * * Each automatic snapshot policy can be applied to multiple disks.
41899
42141
  *
41900
42142
  * @param request ApplyAutoSnapshotPolicyRequest
41901
42143
  * @param runtime runtime options for this request RuntimeOptions
@@ -41940,7 +42182,7 @@ class Client extends openapi_client_1.default {
41940
42182
  }
41941
42183
  /**
41942
42184
  * * Each disk can have only one automatic snapshot policy applied.
41943
- * * A single automatic snapshot policy can be applied to multiple disks.
42185
+ * * Each automatic snapshot policy can be applied to multiple disks.
41944
42186
  *
41945
42187
  * @param request ApplyAutoSnapshotPolicyRequest
41946
42188
  * @return ApplyAutoSnapshotPolicyResponse
@@ -42586,18 +42828,17 @@ class Client extends openapi_client_1.default {
42586
42828
  return await this.attachNetworkInterfaceWithOptions(request, runtime);
42587
42829
  }
42588
42830
  /**
42589
- * ## Description
42590
42831
  * When you call this operation, take note of the following items:
42591
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~~).
42592
42833
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42593
42834
  * * When multiple security group rules have the same priority, drop rules take precedence.
42594
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.
42595
- * * For advanced security groups, security groups cannot be used as authorization objects.
42596
- * * 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.
42597
42838
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42598
- * * 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`.
42599
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.
42600
- * * 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:
42601
42842
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42602
42843
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42603
42844
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -42606,7 +42847,7 @@ class Client extends openapi_client_1.default {
42606
42847
  * &Permissions.1.NicType=intranet
42607
42848
  * &Permissions.1.Policy=Accept
42608
42849
  * &<Common request parameters>
42609
- * * 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:
42610
42851
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42611
42852
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42612
42853
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -42616,7 +42857,7 @@ class Client extends openapi_client_1.default {
42616
42857
  * &Permissions.1.NicType=intranet
42617
42858
  * &Permissions.1.Policy=Drop
42618
42859
  * &<Common request parameters>
42619
- * * 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:
42620
42861
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42621
42862
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42622
42863
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -42733,18 +42974,17 @@ class Client extends openapi_client_1.default {
42733
42974
  return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeSecurityGroupResponse({}));
42734
42975
  }
42735
42976
  /**
42736
- * ## Description
42737
42977
  * When you call this operation, take note of the following items:
42738
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~~).
42739
42979
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42740
42980
  * * When multiple security group rules have the same priority, drop rules take precedence.
42741
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.
42742
- * * For advanced security groups, security groups cannot be used as authorization objects.
42743
- * * 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.
42744
42984
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42745
- * * 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`.
42746
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.
42747
- * * 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:
42748
42988
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42749
42989
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42750
42990
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -42753,7 +42993,7 @@ class Client extends openapi_client_1.default {
42753
42993
  * &Permissions.1.NicType=intranet
42754
42994
  * &Permissions.1.Policy=Accept
42755
42995
  * &<Common request parameters>
42756
- * * 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:
42757
42997
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42758
42998
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42759
42999
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -42763,7 +43003,7 @@ class Client extends openapi_client_1.default {
42763
43003
  * &Permissions.1.NicType=intranet
42764
43004
  * &Permissions.1.Policy=Drop
42765
43005
  * &<Common request parameters>
42766
- * * 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:
42767
43007
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42768
43008
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42769
43009
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -42783,17 +43023,16 @@ class Client extends openapi_client_1.default {
42783
43023
  return await this.authorizeSecurityGroupWithOptions(request, runtime);
42784
43024
  }
42785
43025
  /**
42786
- * ## Description
42787
43026
  * When you call this operation, take note of the following items:
42788
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~~).
42789
43028
  * * You can set Policy to accept or drop for each security group rule to allow or deny access.
42790
43029
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42791
43030
  * * When several security group rules have the same priority, drop rules take precedence.
42792
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.
42793
- * * For advanced security groups, security groups cannot be used as authorization objects.
42794
- * * 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.
42795
43034
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42796
- * * 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`.
42797
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.
42798
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:
42799
43038
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
@@ -42930,17 +43169,16 @@ class Client extends openapi_client_1.default {
42930
43169
  return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeSecurityGroupEgressResponse({}));
42931
43170
  }
42932
43171
  /**
42933
- * ## Description
42934
43172
  * When you call this operation, take note of the following items:
42935
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~~).
42936
43174
  * * You can set Policy to accept or drop for each security group rule to allow or deny access.
42937
43175
  * * The valid value of Priority ranges from 1 to 100. A smaller value indicates a higher priority.
42938
43176
  * * When several security group rules have the same priority, drop rules take precedence.
42939
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.
42940
- * * For advanced security groups, security groups cannot be used as authorization objects.
42941
- * * 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.
42942
43180
  * * If the specified security group rule exists in the security group, the call is successful but no security group rule is created.
42943
- * * 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`.
42944
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.
42945
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:
42946
43184
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroupEgress
@@ -43333,9 +43571,9 @@ class Client extends openapi_client_1.default {
43333
43571
  return await this.connectRouterInterfaceWithOptions(request, runtime);
43334
43572
  }
43335
43573
  /**
43336
- * 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~~).
43337
43575
  * Before you call this operation, make sure that the following requirements are met:
43338
- * * The instance is in the `Stopped` or `Running` state.
43576
+ * * The instance is in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
43339
43577
  * * No EIPs are associated with the instance.
43340
43578
  * * The instance has no configuration change tasks that have not taken effect.
43341
43579
  * * The public bandwidth of the instance is not 0 Mbit/s.
@@ -43381,9 +43619,9 @@ class Client extends openapi_client_1.default {
43381
43619
  return $tea.cast(await this.callApi(params, req, runtime), new ConvertNatPublicIpToEipResponse({}));
43382
43620
  }
43383
43621
  /**
43384
- * 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~~).
43385
43623
  * Before you call this operation, make sure that the following requirements are met:
43386
- * * The instance is in the `Stopped` or `Running` state.
43624
+ * * The instance is in the **Stopped** (`Stopped`) or **Running** (`Running`) state.
43387
43625
  * * No EIPs are associated with the instance.
43388
43626
  * * The instance has no configuration change tasks that have not taken effect.
43389
43627
  * * The public bandwidth of the instance is not 0 Mbit/s.
@@ -46711,16 +46949,16 @@ class Client extends openapi_client_1.default {
46711
46949
  return await this.createSnapshotWithOptions(request, runtime);
46712
46950
  }
46713
46951
  /**
46714
- * 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.
46715
- * > 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.
46716
46954
  * When you call this operation, take note of the following items:
46717
46955
  * * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
46718
- * * 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.````
46719
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.
46720
46958
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
46721
- * * 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.
46722
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.
46723
- * * 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.
46724
46962
  * For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
46725
46963
  *
46726
46964
  * @param request CreateSnapshotGroupRequest
@@ -46792,16 +47030,16 @@ class Client extends openapi_client_1.default {
46792
47030
  return $tea.cast(await this.callApi(params, req, runtime), new CreateSnapshotGroupResponse({}));
46793
47031
  }
46794
47032
  /**
46795
- * 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.
46796
- * > 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.
46797
47035
  * When you call this operation, take note of the following items:
46798
47036
  * * The disk for which you want to create a snapshot must be in the **In Use** (`In_use`) or **Unattached** (`Available`) state.
46799
- * * 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.````
46800
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.
46801
47039
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
46802
- * * 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.
46803
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.
46804
- * * 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.
46805
47043
  * For information about the snapshot-consistent group feature and its billing, see [Create a snapshot-consistent group](~~199625~~).
46806
47044
  *
46807
47045
  * @param request CreateSnapshotGroupRequest
@@ -48804,7 +49042,7 @@ class Client extends openapi_client_1.default {
48804
49042
  /**
48805
49043
  * When you call this operation, take note of the following items:
48806
49044
  * * If the specified snapshot does not exist, the request is ignored.
48807
- * * 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.
48808
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.
48809
49047
  *
48810
49048
  * @param request DeleteSnapshotRequest
@@ -48851,7 +49089,7 @@ class Client extends openapi_client_1.default {
48851
49089
  /**
48852
49090
  * When you call this operation, take note of the following items:
48853
49091
  * * If the specified snapshot does not exist, the request is ignored.
48854
- * * 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.
48855
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.
48856
49094
  *
48857
49095
  * @param request DeleteSnapshotRequest
@@ -49243,7 +49481,7 @@ class Client extends openapi_client_1.default {
49243
49481
  }
49244
49482
  /**
49245
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~~).
49246
- * 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).
49247
49485
  *
49248
49486
  * @param request DescribeAccountAttributesRequest
49249
49487
  * @param runtime runtime options for this request RuntimeOptions
@@ -49288,7 +49526,7 @@ class Client extends openapi_client_1.default {
49288
49526
  }
49289
49527
  /**
49290
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~~).
49291
- * 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).
49292
49530
  *
49293
49531
  * @param request DescribeAccountAttributesRequest
49294
49532
  * @return DescribeAccountAttributesResponse
@@ -51233,7 +51471,7 @@ class Client extends openapi_client_1.default {
51233
51471
  return await this.describeEipMonitorDataWithOptions(request, runtime);
51234
51472
  }
51235
51473
  /**
51236
- * 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.
51237
51475
  *
51238
51476
  * @param request DescribeElasticityAssuranceInstancesRequest
51239
51477
  * @param runtime runtime options for this request RuntimeOptions
@@ -51283,7 +51521,7 @@ class Client extends openapi_client_1.default {
51283
51521
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeElasticityAssuranceInstancesResponse({}));
51284
51522
  }
51285
51523
  /**
51286
- * 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.
51287
51525
  *
51288
51526
  * @param request DescribeElasticityAssuranceInstancesRequest
51289
51527
  * @return DescribeElasticityAssuranceInstancesResponse
@@ -51949,6 +52187,9 @@ class Client extends openapi_client_1.default {
51949
52187
  async describeImageSupportInstanceTypesWithOptions(request, runtime) {
51950
52188
  tea_util_1.default.validateModel(request);
51951
52189
  let query = {};
52190
+ if (!tea_util_1.default.isUnset(request.actionType)) {
52191
+ query["ActionType"] = request.actionType;
52192
+ }
51952
52193
  if (!tea_util_1.default.isUnset(request.filter)) {
51953
52194
  query["Filter"] = request.filter;
51954
52195
  }
@@ -52706,7 +52947,7 @@ class Client extends openapi_client_1.default {
52706
52947
  return await this.describeInstanceStatusWithOptions(request, runtime);
52707
52948
  }
52708
52949
  /**
52709
- * > 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.
52710
52951
  *
52711
52952
  * @param request DescribeInstanceTopologyRequest
52712
52953
  * @param runtime runtime options for this request RuntimeOptions
@@ -52747,7 +52988,7 @@ class Client extends openapi_client_1.default {
52747
52988
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceTopologyResponse({}));
52748
52989
  }
52749
52990
  /**
52750
- * > 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.
52751
52992
  *
52752
52993
  * @param request DescribeInstanceTopologyRequest
52753
52994
  * @return DescribeInstanceTopologyResponse
@@ -53026,13 +53267,13 @@ class Client extends openapi_client_1.default {
53026
53267
  * When you call this operation, take note of the following items:
53027
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.
53028
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.
53029
- * * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
53030
- * * 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,
53031
- * * `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.
53032
53273
  * * `instanceId:` the ID of your instance.
53033
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.
53034
- * * `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.
53035
- * 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:
53036
53277
  * ```
53037
53278
  * ```
53038
53279
  * <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
@@ -53085,13 +53326,13 @@ class Client extends openapi_client_1.default {
53085
53326
  * When you call this operation, take note of the following items:
53086
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.
53087
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.
53088
- * * When the VNC management terminal is disconnected, you can only reconnect to the VNC management terminal up to 30 times a minute.
53089
- * * 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,
53090
- * * `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.
53091
53332
  * * `instanceId:` the ID of your instance.
53092
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.
53093
- * * `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.
53094
- * 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:
53095
53336
  * ```
53096
53337
  * ```
53097
53338
  * <https://g.alicdn.com/aliyun/ecs-console-vnc2/0.0.8/index.html?vncUrl=ws%3A%2F%\\\\*\\\\*\\\\*\\\\*&instanceId=i-wz9hhwq5a6tm\\\\*\\\\*\\\\*\\\\*&isWindows=true> \\`\\`\\`
@@ -53281,7 +53522,7 @@ class Client extends openapi_client_1.default {
53281
53522
  return await this.describeInstancesWithOptions(request, runtime);
53282
53523
  }
53283
53524
  /**
53284
- * 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.
53285
53526
  * If a period is specified, events are queried based on the specified period.
53286
53527
  *
53287
53528
  * @param request DescribeInstancesFullStatusRequest
@@ -53356,7 +53597,7 @@ class Client extends openapi_client_1.default {
53356
53597
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstancesFullStatusResponse({}));
53357
53598
  }
53358
53599
  /**
53359
- * 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.
53360
53601
  * If a period is specified, events are queried based on the specified period.
53361
53602
  *
53362
53603
  * @param request DescribeInstancesFullStatusRequest
@@ -54953,6 +55194,9 @@ class Client extends openapi_client_1.default {
54953
55194
  async describeResourcesModificationWithOptions(request, runtime) {
54954
55195
  tea_util_1.default.validateModel(request);
54955
55196
  let query = {};
55197
+ if (!tea_util_1.default.isUnset(request.conditions)) {
55198
+ query["Conditions"] = request.conditions;
55199
+ }
54956
55200
  if (!tea_util_1.default.isUnset(request.cores)) {
54957
55201
  query["Cores"] = request.cores;
54958
55202
  }
@@ -56902,11 +57146,11 @@ class Client extends openapi_client_1.default {
56902
57146
  }
56903
57147
  /**
56904
57148
  * When you call this operation, take note of the following items:
56905
- * * The disk you want to detach must be in the `In_Use` state.
56906
- * * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
56907
- * * The instance from which you want to detach the system disk must be in the `Stopped` state.****
56908
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
56909
- * * 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.
56910
57154
  *
56911
57155
  * @param request DetachDiskRequest
56912
57156
  * @param runtime runtime options for this request RuntimeOptions
@@ -56954,11 +57198,11 @@ class Client extends openapi_client_1.default {
56954
57198
  }
56955
57199
  /**
56956
57200
  * When you call this operation, take note of the following items:
56957
- * * The disk you want to detach must be in the `In_Use` state.
56958
- * * The instance from which you want to detach a data disk must be in the `Running` or `Stopped`state.********
56959
- * * The instance from which you want to detach the system disk must be in the `Stopped` state.****
56960
- * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.``
56961
- * * 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.
56962
57206
  *
56963
57207
  * @param request DetachDiskRequest
56964
57208
  * @return DetachDiskResponse
@@ -58109,6 +58353,13 @@ class Client extends openapi_client_1.default {
58109
58353
  let runtime = new $Util.RuntimeOptions({});
58110
58354
  return await this.importSnapshotWithOptions(request, runtime);
58111
58355
  }
58356
+ /**
58357
+ * After you call the InstallCloudAssistant operation and then the [RebootInstance](~~25502~~) operation, the Cloud Assistant client is installed and takes effect.
58358
+ *
58359
+ * @param request InstallCloudAssistantRequest
58360
+ * @param runtime runtime options for this request RuntimeOptions
58361
+ * @return InstallCloudAssistantResponse
58362
+ */
58112
58363
  async installCloudAssistantWithOptions(request, runtime) {
58113
58364
  tea_util_1.default.validateModel(request);
58114
58365
  let query = {};
@@ -58149,6 +58400,12 @@ class Client extends openapi_client_1.default {
58149
58400
  });
58150
58401
  return $tea.cast(await this.callApi(params, req, runtime), new InstallCloudAssistantResponse({}));
58151
58402
  }
58403
+ /**
58404
+ * After you call the InstallCloudAssistant operation and then the [RebootInstance](~~25502~~) operation, the Cloud Assistant client is installed and takes effect.
58405
+ *
58406
+ * @param request InstallCloudAssistantRequest
58407
+ * @return InstallCloudAssistantResponse
58408
+ */
58152
58409
  async installCloudAssistant(request) {
58153
58410
  let runtime = new $Util.RuntimeOptions({});
58154
58411
  return await this.installCloudAssistantWithOptions(request, runtime);
@@ -58636,7 +58893,7 @@ class Client extends openapi_client_1.default {
58636
58893
  }
58637
58894
  /**
58638
58895
  * Before you call this operation, take note of the following items:
58639
- * * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes the scheduling task once after the modification.
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.
58640
58897
  * * You cannot modify an auto provisioning group when the group is being deleted.
58641
58898
  *
58642
58899
  * @param request ModifyAutoProvisioningGroupRequest
@@ -58709,7 +58966,7 @@ class Client extends openapi_client_1.default {
58709
58966
  }
58710
58967
  /**
58711
58968
  * Before you call this operation, take note of the following items:
58712
- * * If you modify the capacity or capacity-related settings of an auto provisioning group, the group executes the scheduling task once after the modification.
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.
58713
58970
  * * You cannot modify an auto provisioning group when the group is being deleted.
58714
58971
  *
58715
58972
  * @param request ModifyAutoProvisioningGroupRequest
@@ -59362,6 +59619,14 @@ class Client extends openapi_client_1.default {
59362
59619
  let runtime = new $Util.RuntimeOptions({});
59363
59620
  return await this.modifyDedicatedHostsChargeTypeWithOptions(request, runtime);
59364
59621
  }
59622
+ /**
59623
+ * You can call this operation to modify the demand information about instance types. Alibaba Cloud provides the requested resources based on your demand. You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type. Parameters except `DemandName` and `DemandDescription` can be modified only for demands that are in the Rejected state.
59624
+ * > This operation is in internal preview and has not been officially released. We recommend that you do not use this operation.
59625
+ *
59626
+ * @param request ModifyDemandRequest
59627
+ * @param runtime runtime options for this request RuntimeOptions
59628
+ * @return ModifyDemandResponse
59629
+ */
59365
59630
  async modifyDemandWithOptions(request, runtime) {
59366
59631
  tea_util_1.default.validateModel(request);
59367
59632
  let query = {};
@@ -59432,6 +59697,13 @@ class Client extends openapi_client_1.default {
59432
59697
  });
59433
59698
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDemandResponse({}));
59434
59699
  }
59700
+ /**
59701
+ * You can call this operation to modify the demand information about instance types. Alibaba Cloud provides the requested resources based on your demand. You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type. Parameters except `DemandName` and `DemandDescription` can be modified only for demands that are in the Rejected state.
59702
+ * > This operation is in internal preview and has not been officially released. We recommend that you do not use this operation.
59703
+ *
59704
+ * @param request ModifyDemandRequest
59705
+ * @return ModifyDemandResponse
59706
+ */
59435
59707
  async modifyDemand(request) {
59436
59708
  let runtime = new $Util.RuntimeOptions({});
59437
59709
  return await this.modifyDemandWithOptions(request, runtime);
@@ -59683,6 +59955,72 @@ class Client extends openapi_client_1.default {
59683
59955
  let runtime = new $Util.RuntimeOptions({});
59684
59956
  return await this.modifyDiskChargeTypeWithOptions(request, runtime);
59685
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
+ }
60008
+ /**
60009
+ * ## Description
60010
+ * When you call this operation, take note of the following items:
60011
+ * * To modify the performance level of an ESSD, take note of the following items:
60012
+ * * For a subscription ESSD, you can only upgrade its performance level.
60013
+ * * For a pay-as-you-go ESSD, You can upgrade or downgrade its performance level. However, you cannot downgrade the performance level to PL0.
60014
+ * * The ESSD must be in the **In Use** (In_Use) or **Unattached** (Available) state.
60015
+ * * If the ESSD is attached to an ECS instance, the instance must be in the **Running** (Running) or **Stopped** (Stopped) state. The instance cannot be in the Expired state or stopped due to an overdue payment.
60016
+ * * If you cannot upgrade the performance level of the ESSD due to its capacity, resize the ESSD by calling the [ResizeDisk](~~25522~~) operation and then try again. For more information, see [Enhanced SSDs](~~122389~~).
60017
+ * * For more information about the limits on changing the category of a disk, see the "Limits" section of the [Change the category of a disk](~~161980~~) topic.
60018
+ * The new disk category or performance level takes effect immediately after this operation is executed. Alibaba Cloud calculates the bill based on the new disk category and performance level.
60019
+ *
60020
+ * @param request ModifyDiskSpecRequest
60021
+ * @param runtime runtime options for this request RuntimeOptions
60022
+ * @return ModifyDiskSpecResponse
60023
+ */
59686
60024
  async modifyDiskSpecWithOptions(request, runtime) {
59687
60025
  tea_util_1.default.validateModel(request);
59688
60026
  let query = {};
@@ -59701,6 +60039,9 @@ class Client extends openapi_client_1.default {
59701
60039
  if (!tea_util_1.default.isUnset(request.ownerId)) {
59702
60040
  query["OwnerId"] = request.ownerId;
59703
60041
  }
60042
+ if (!tea_util_1.default.isUnset(request.performanceControlOptions)) {
60043
+ query["PerformanceControlOptions"] = request.performanceControlOptions;
60044
+ }
59704
60045
  if (!tea_util_1.default.isUnset(request.performanceLevel)) {
59705
60046
  query["PerformanceLevel"] = request.performanceLevel;
59706
60047
  }
@@ -59729,6 +60070,21 @@ class Client extends openapi_client_1.default {
59729
60070
  });
59730
60071
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDiskSpecResponse({}));
59731
60072
  }
60073
+ /**
60074
+ * ## Description
60075
+ * When you call this operation, take note of the following items:
60076
+ * * To modify the performance level of an ESSD, take note of the following items:
60077
+ * * For a subscription ESSD, you can only upgrade its performance level.
60078
+ * * For a pay-as-you-go ESSD, You can upgrade or downgrade its performance level. However, you cannot downgrade the performance level to PL0.
60079
+ * * The ESSD must be in the **In Use** (In_Use) or **Unattached** (Available) state.
60080
+ * * If the ESSD is attached to an ECS instance, the instance must be in the **Running** (Running) or **Stopped** (Stopped) state. The instance cannot be in the Expired state or stopped due to an overdue payment.
60081
+ * * If you cannot upgrade the performance level of the ESSD due to its capacity, resize the ESSD by calling the [ResizeDisk](~~25522~~) operation and then try again. For more information, see [Enhanced SSDs](~~122389~~).
60082
+ * * For more information about the limits on changing the category of a disk, see the "Limits" section of the [Change the category of a disk](~~161980~~) topic.
60083
+ * The new disk category or performance level takes effect immediately after this operation is executed. Alibaba Cloud calculates the bill based on the new disk category and performance level.
60084
+ *
60085
+ * @param request ModifyDiskSpecRequest
60086
+ * @return ModifyDiskSpecResponse
60087
+ */
59732
60088
  async modifyDiskSpec(request) {
59733
60089
  let runtime = new $Util.RuntimeOptions({});
59734
60090
  return await this.modifyDiskSpecWithOptions(request, runtime);
@@ -60235,6 +60591,20 @@ class Client extends openapi_client_1.default {
60235
60591
  let runtime = new $Util.RuntimeOptions({});
60236
60592
  return await this.modifyImageSharePermissionWithOptions(request, runtime);
60237
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
+ */
60238
60608
  async modifyInstanceAttachmentAttributesWithOptions(request, runtime) {
60239
60609
  tea_util_1.default.validateModel(request);
60240
60610
  let query = {};
@@ -60275,6 +60645,19 @@ class Client extends openapi_client_1.default {
60275
60645
  });
60276
60646
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAttachmentAttributesResponse({}));
60277
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
+ */
60278
60661
  async modifyInstanceAttachmentAttributes(request) {
60279
60662
  let runtime = new $Util.RuntimeOptions({});
60280
60663
  return await this.modifyInstanceAttachmentAttributesWithOptions(request, runtime);
@@ -60443,9 +60826,8 @@ class Client extends openapi_client_1.default {
60443
60826
  return await this.modifyInstanceAutoReleaseTimeWithOptions(request, runtime);
60444
60827
  }
60445
60828
  /**
60446
- * 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.
60447
- * * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
60448
- * * 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.
60449
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.
60450
60832
  *
60451
60833
  * @param request ModifyInstanceAutoRenewAttributeRequest
@@ -60502,9 +60884,8 @@ class Client extends openapi_client_1.default {
60502
60884
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAutoRenewAttributeResponse({}));
60503
60885
  }
60504
60886
  /**
60505
- * 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.
60506
- * * The payment for auto-renewal is first deducted automatically at 08:00:00 (UTC+8) nine days before the instance expires.
60507
- * * 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.
60508
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.
60509
60890
  *
60510
60891
  * @param request ModifyInstanceAutoRenewAttributeRequest
@@ -60515,17 +60896,17 @@ class Client extends openapi_client_1.default {
60515
60896
  return await this.modifyInstanceAutoRenewAttributeWithOptions(request, runtime);
60516
60897
  }
60517
60898
  /**
60518
- * Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
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.
60519
60900
  * When you call this operation, take note of the following items:
60520
- * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you have no overdue payments for them.
60521
- * * After you change the billing method, automatic payment is enabled by default. Make sure that you have sufficient balance in your account. 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.
60522
- * * **Change the billing method from subscription to pay-as-you-go**:
60523
- * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
60524
- * * 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.
60525
- * * **Refund rule**: You have a quota for the total refund amount each month, and unused balance of this quota is not carried forward into the next month. After you use up the refund quota of the current month, you can change the billing method only when the next month arrives. The refund amount incurred when 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)**.
60526
- * * **Change the billing method from pay-as-you-go to subscription**:
60527
- * * You can change the billing method of all data disks attached to an instance from pay-as-you-go to subscription.
60528
- * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
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.
60529
60910
  *
60530
60911
  * @param request ModifyInstanceChargeTypeRequest
60531
60912
  * @param runtime runtime options for this request RuntimeOptions
@@ -60593,17 +60974,17 @@ class Client extends openapi_client_1.default {
60593
60974
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceChargeTypeResponse({}));
60594
60975
  }
60595
60976
  /**
60596
- * Before you call this operation, make sure that you understand the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
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.
60597
60978
  * When you call this operation, take note of the following items:
60598
- * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you have no overdue payments for them.
60599
- * * After you change the billing method, automatic payment is enabled by default. Make sure that you have sufficient balance in your account. 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.
60600
- * * **Change the billing method from subscription to pay-as-you-go**:
60601
- * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
60602
- * * 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.
60603
- * * **Refund rule**: You have a quota for the total refund amount each month, and unused balance of this quota is not carried forward into the next month. After you use up the refund quota of the current month, you can change the billing method only when the next month arrives. The refund amount incurred when 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)**.
60604
- * * **Change the billing method from pay-as-you-go to subscription**:
60605
- * * You can change the billing method of all data disks attached to an instance from pay-as-you-go to subscription.
60606
- * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
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.
60607
60988
  *
60608
60989
  * @param request ModifyInstanceChargeTypeRequest
60609
60990
  * @return ModifyInstanceChargeTypeResponse
@@ -60949,6 +61330,9 @@ class Client extends openapi_client_1.default {
60949
61330
  if (!tea_util_1.default.isUnset(request.clientToken)) {
60950
61331
  query["ClientToken"] = request.clientToken;
60951
61332
  }
61333
+ if (!tea_util_1.default.isUnset(request.disk)) {
61334
+ query["Disk"] = request.disk;
61335
+ }
60952
61336
  if (!tea_util_1.default.isUnset(request.instanceId)) {
60953
61337
  query["InstanceId"] = request.instanceId;
60954
61338
  }
@@ -60961,6 +61345,9 @@ class Client extends openapi_client_1.default {
60961
61345
  if (!tea_util_1.default.isUnset(request.internetMaxBandwidthOut)) {
60962
61346
  query["InternetMaxBandwidthOut"] = request.internetMaxBandwidthOut;
60963
61347
  }
61348
+ if (!tea_util_1.default.isUnset(request.modifyMode)) {
61349
+ query["ModifyMode"] = request.modifyMode;
61350
+ }
60964
61351
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
60965
61352
  query["OwnerAccount"] = request.ownerAccount;
60966
61353
  }
@@ -61241,6 +61628,14 @@ class Client extends openapi_client_1.default {
61241
61628
  let runtime = new $Util.RuntimeOptions({});
61242
61629
  return await this.modifyLaunchTemplateDefaultVersionWithOptions(request, runtime);
61243
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
+ */
61244
61639
  async modifyManagedInstanceWithOptions(request, runtime) {
61245
61640
  tea_util_1.default.validateModel(request);
61246
61641
  let query = {};
@@ -61284,6 +61679,13 @@ class Client extends openapi_client_1.default {
61284
61679
  });
61285
61680
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyManagedInstanceResponse({}));
61286
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
+ */
61287
61689
  async modifyManagedInstance(request) {
61288
61690
  let runtime = new $Util.RuntimeOptions({});
61289
61691
  return await this.modifyManagedInstanceWithOptions(request, runtime);
@@ -61516,17 +61918,17 @@ class Client extends openapi_client_1.default {
61516
61918
  }
61517
61919
  /**
61518
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~~).
61519
- * Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the supported instance types. 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~~).
61520
- * When you call this operation, take note of the following item:
61521
- * * You cannot change the instance type of an expired instance. Renew the instance and try again.
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.
61522
61924
  * * When you downgrade the instance type of an instance, take note of the following items:
61523
- * * The instance must be in the **Stopped** (`Stopped`) state.
61524
- * * You must specify the operation type by setting the `OperatorType` parameter to downgrade.
61525
- * * You can downgrade the configurations of an instance for up to three times. In this case, you can apply for up to three refunds for price differences 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.
61526
- * * The price difference is refunded to the payment account that you used to purchase the instance. You cannot apply for a refund for vouchers that you already redeemed.
61527
- * * This operation is asynchronous. The system requires 5 to 10 seconds to change the instance type of an instance. For the instance type change to take effect, you must restart the instance in the ECS console or by calling the RebootInstance operation. If you restart only the operating system of the instance, the instance type change does not take effect.
61528
- * * If the instance is in the **Stopped** state, you need to only start the instance. You do not need to restart the instance after it enters the Running state.
61529
- * * If you set the `RebootWhenFinished` parameter to true for the instance, you do not need to restart the instance.
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.
61530
61932
  *
61531
61933
  * @param request ModifyPrepayInstanceSpecRequest
61532
61934
  * @param runtime runtime options for this request RuntimeOptions
@@ -61541,6 +61943,9 @@ class Client extends openapi_client_1.default {
61541
61943
  if (!tea_util_1.default.isUnset(request.clientToken)) {
61542
61944
  query["ClientToken"] = request.clientToken;
61543
61945
  }
61946
+ if (!tea_util_1.default.isUnset(request.disk)) {
61947
+ query["Disk"] = request.disk;
61948
+ }
61544
61949
  if (!tea_util_1.default.isUnset(request.endTime)) {
61545
61950
  query["EndTime"] = request.endTime;
61546
61951
  }
@@ -61553,6 +61958,9 @@ class Client extends openapi_client_1.default {
61553
61958
  if (!tea_util_1.default.isUnset(request.migrateAcrossZone)) {
61554
61959
  query["MigrateAcrossZone"] = request.migrateAcrossZone;
61555
61960
  }
61961
+ if (!tea_util_1.default.isUnset(request.modifyMode)) {
61962
+ query["ModifyMode"] = request.modifyMode;
61963
+ }
61556
61964
  if (!tea_util_1.default.isUnset(request.operatorType)) {
61557
61965
  query["OperatorType"] = request.operatorType;
61558
61966
  }
@@ -61598,17 +62006,17 @@ class Client extends openapi_client_1.default {
61598
62006
  }
61599
62007
  /**
61600
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~~).
61601
- * Before you change the instance type of a subscription instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the supported instance types. 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~~).
61602
- * When you call this operation, take note of the following item:
61603
- * * You cannot change the instance type of an expired instance. Renew the instance and try again.
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.
61604
62012
  * * When you downgrade the instance type of an instance, take note of the following items:
61605
- * * The instance must be in the **Stopped** (`Stopped`) state.
61606
- * * You must specify the operation type by setting the `OperatorType` parameter to downgrade.
61607
- * * You can downgrade the configurations of an instance for up to three times. In this case, you can apply for up to three refunds for price differences 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.
61608
- * * The price difference is refunded to the payment account that you used to purchase the instance. You cannot apply for a refund for vouchers that you already redeemed.
61609
- * * This operation is asynchronous. The system requires 5 to 10 seconds to change the instance type of an instance. For the instance type change to take effect, you must restart the instance in the ECS console or by calling the RebootInstance operation. If you restart only the operating system of the instance, the instance type change does not take effect.
61610
- * * If the instance is in the **Stopped** state, you need to only start the instance. You do not need to restart the instance after it enters the Running state.
61611
- * * If you set the `RebootWhenFinished` parameter to true for the instance, you do not need to restart the instance.
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.
61612
62020
  *
61613
62021
  * @param request ModifyPrepayInstanceSpecRequest
61614
62022
  * @return ModifyPrepayInstanceSpecResponse
@@ -61714,6 +62122,18 @@ class Client extends openapi_client_1.default {
61714
62122
  let runtime = new $Util.RuntimeOptions({});
61715
62123
  return await this.modifyReservedInstanceAutoRenewAttributeWithOptions(request, runtime);
61716
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
+ */
61717
62137
  async modifyReservedInstancesWithOptions(request, runtime) {
61718
62138
  tea_util_1.default.validateModel(request);
61719
62139
  let query = {};
@@ -61754,6 +62174,17 @@ class Client extends openapi_client_1.default {
61754
62174
  });
61755
62175
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyReservedInstancesResponse({}));
61756
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
+ */
61757
62188
  async modifyReservedInstances(request) {
61758
62189
  let runtime = new $Util.RuntimeOptions({});
61759
62190
  return await this.modifyReservedInstancesWithOptions(request, runtime);
@@ -61947,6 +62378,18 @@ class Client extends openapi_client_1.default {
61947
62378
  let runtime = new $Util.RuntimeOptions({});
61948
62379
  return await this.modifySecurityGroupAttributeWithOptions(request, runtime);
61949
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
+ */
61950
62393
  async modifySecurityGroupEgressRuleWithOptions(request, runtime) {
61951
62394
  tea_util_1.default.validateModel(request);
61952
62395
  let query = {};
@@ -62038,6 +62481,17 @@ class Client extends openapi_client_1.default {
62038
62481
  });
62039
62482
  return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupEgressRuleResponse({}));
62040
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
+ */
62041
62495
  async modifySecurityGroupEgressRule(request) {
62042
62496
  let runtime = new $Util.RuntimeOptions({});
62043
62497
  return await this.modifySecurityGroupEgressRuleWithOptions(request, runtime);
@@ -62108,6 +62562,17 @@ class Client extends openapi_client_1.default {
62108
62562
  let runtime = new $Util.RuntimeOptions({});
62109
62563
  return await this.modifySecurityGroupPolicyWithOptions(request, runtime);
62110
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
+ */
62111
62576
  async modifySecurityGroupRuleWithOptions(request, runtime) {
62112
62577
  tea_util_1.default.validateModel(request);
62113
62578
  let query = {};
@@ -62199,6 +62664,16 @@ class Client extends openapi_client_1.default {
62199
62664
  });
62200
62665
  return $tea.cast(await this.callApi(params, req, runtime), new ModifySecurityGroupRuleResponse({}));
62201
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
+ */
62202
62677
  async modifySecurityGroupRule(request) {
62203
62678
  let runtime = new $Util.RuntimeOptions({});
62204
62679
  return await this.modifySecurityGroupRuleWithOptions(request, runtime);
@@ -62826,6 +63301,13 @@ class Client extends openapi_client_1.default {
62826
63301
  let runtime = new $Util.RuntimeOptions({});
62827
63302
  return await this.purchaseReservedInstancesOfferingWithOptions(request, runtime);
62828
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
+ */
62829
63311
  async purchaseStorageCapacityUnitWithOptions(request, runtime) {
62830
63312
  tea_util_1.default.validateModel(request);
62831
63313
  let query = {};
@@ -62890,6 +63372,12 @@ class Client extends openapi_client_1.default {
62890
63372
  });
62891
63373
  return $tea.cast(await this.callApi(params, req, runtime), new PurchaseStorageCapacityUnitResponse({}));
62892
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
+ */
62893
63381
  async purchaseStorageCapacityUnit(request) {
62894
63382
  let runtime = new $Util.RuntimeOptions({});
62895
63383
  return await this.purchaseStorageCapacityUnitWithOptions(request, runtime);
@@ -62958,6 +63446,21 @@ class Client extends openapi_client_1.default {
62958
63446
  let runtime = new $Util.RuntimeOptions({});
62959
63447
  return await this.reActivateInstancesWithOptions(request, runtime);
62960
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
+ */
62961
63464
  async reInitDiskWithOptions(request, runtime) {
62962
63465
  tea_util_1.default.validateModel(request);
62963
63466
  let query = {};
@@ -63004,15 +63507,29 @@ class Client extends openapi_client_1.default {
63004
63507
  });
63005
63508
  return $tea.cast(await this.callApi(params, req, runtime), new ReInitDiskResponse({}));
63006
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
+ */
63007
63524
  async reInitDisk(request) {
63008
63525
  let runtime = new $Util.RuntimeOptions({});
63009
63526
  return await this.reInitDiskWithOptions(request, runtime);
63010
63527
  }
63011
63528
  /**
63012
- * * Only instances that are in the `Running` state can be restarted.****
63013
- * * After the ECS instance is restarted, the status of the instance changes to `Starting`.****
63014
- * * 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.
63015
- * * 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~~).
63016
63533
  *
63017
63534
  * @param request RebootInstanceRequest
63018
63535
  * @param runtime runtime options for this request RuntimeOptions
@@ -63059,10 +63576,10 @@ class Client extends openapi_client_1.default {
63059
63576
  return $tea.cast(await this.callApi(params, req, runtime), new RebootInstanceResponse({}));
63060
63577
  }
63061
63578
  /**
63062
- * * Only instances that are in the `Running` state can be restarted.****
63063
- * * After the ECS instance is restarted, the status of the instance changes to `Starting`.****
63064
- * * 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.
63065
- * * 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~~).
63066
63583
  *
63067
63584
  * @param request RebootInstanceRequest
63068
63585
  * @return RebootInstanceResponse
@@ -63183,6 +63700,13 @@ class Client extends openapi_client_1.default {
63183
63700
  let runtime = new $Util.RuntimeOptions({});
63184
63701
  return await this.recoverVirtualBorderRouterWithOptions(request, runtime);
63185
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
+ */
63186
63710
  async redeployDedicatedHostWithOptions(request, runtime) {
63187
63711
  tea_util_1.default.validateModel(request);
63188
63712
  let query = {};
@@ -63220,21 +63744,27 @@ class Client extends openapi_client_1.default {
63220
63744
  });
63221
63745
  return $tea.cast(await this.callApi(params, req, runtime), new RedeployDedicatedHostResponse({}));
63222
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
+ */
63223
63753
  async redeployDedicatedHost(request) {
63224
63754
  let runtime = new $Util.RuntimeOptions({});
63225
63755
  return await this.redeployDedicatedHostWithOptions(request, runtime);
63226
63756
  }
63227
63757
  /**
63228
- * 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 the redeployment.
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.
63229
63759
  * When you call this operation, take note of the following items:
63230
- * * The instance must be in the Running or Stopped state. After the instance is redeployed, the following changes occur to the status of the instance:
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:
63231
63761
  * * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
63232
63762
  * * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
63233
63763
  * * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
63234
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.
63235
63765
  * * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
63236
- * * When you handle a local disk-related system event for an instance, if the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent, 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~~).
63237
- * The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides the possible event status.
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.
63238
63768
  * |System event|Event status|
63239
63769
  * |---|---|
63240
63770
  * |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
@@ -63245,7 +63775,7 @@ class Client extends openapi_client_1.default {
63245
63775
  * |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
63246
63776
  * |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
63247
63777
  * |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
63248
- * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data in the local disks is cleared.
63778
+ * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data on the local disks is cleared.
63249
63779
  *
63250
63780
  * @param request RedeployInstanceRequest
63251
63781
  * @param runtime runtime options for this request RuntimeOptions
@@ -63289,16 +63819,16 @@ class Client extends openapi_client_1.default {
63289
63819
  return $tea.cast(await this.callApi(params, req, runtime), new RedeployInstanceResponse({}));
63290
63820
  }
63291
63821
  /**
63292
- * 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 the redeployment.
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.
63293
63823
  * When you call this operation, take note of the following items:
63294
- * * The instance must be in the Running or Stopped state. After the instance is redeployed, the following changes occur to the status of the instance:
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:
63295
63825
  * * If the instance is in the Running (`Running`) state, the instance enters the Stopping (`Stopping`) state.
63296
63826
  * * If the instance is in the Stopped (`Stopped`) state, the instance enters the Starting (`Starting`) state.
63297
63827
  * * If an instance is deployed on a dedicated host, you cannot redeploy the instance.
63298
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.
63299
63829
  * * If you receive notifications about simulated events that are created by calling the CreateSimulatedSystemEvent operation for an instance, you cannot redeploy the instance.
63300
- * * When you handle a local disk-related system event for an instance, if the damaged local disk is isolated but the **SystemMaintenance.RebootAndReInitErrorDisk** event is not sent, 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~~).
63301
- * The following table describes the system events that you can handle by calling the RedeployInstance operation. The table also provides the possible event status.
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.
63302
63832
  * |System event|Event status|
63303
63833
  * |---|---|
63304
63834
  * |Instance restart due to system maintenance (SystemMaintenance.Reboot)|Inquiring and Scheduled|
@@ -63309,7 +63839,7 @@ class Client extends openapi_client_1.default {
63309
63839
  * |For ECS instances that use only local disks: instance restart due to a system error (SystemFailure.Reboot)|Executing|
63310
63840
  * |Isolation of damaged disks due to system maintenance (SystemMaintenance.IsolateErrorDisk)|Inquiring|
63311
63841
  * |Re-initialization of damaged disks due to system maintenance (SystemMaintenance.ReInitErrorDisk)|Inquiring|
63312
- * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data in the local disks is cleared.
63842
+ * **Note**When instances that use local disks are redeployed, the local disks are re-initialized and data on the local disks is cleared.
63313
63843
  *
63314
63844
  * @param request RedeployInstanceRequest
63315
63845
  * @return RedeployInstanceResponse
@@ -63319,7 +63849,7 @@ class Client extends openapi_client_1.default {
63319
63849
  return await this.redeployInstanceWithOptions(request, runtime);
63320
63850
  }
63321
63851
  /**
63322
- * When the release mode of an immediate capacity reservation is set to manual release, you can call this operation to release the capacity reservation.
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.
63323
63853
  *
63324
63854
  * @param request ReleaseCapacityReservationRequest
63325
63855
  * @param runtime runtime options for this request RuntimeOptions
@@ -63366,7 +63896,7 @@ class Client extends openapi_client_1.default {
63366
63896
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseCapacityReservationResponse({}));
63367
63897
  }
63368
63898
  /**
63369
- * When the release mode of an immediate capacity reservation is set to manual release, you can call this operation to release the capacity reservation.
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.
63370
63900
  *
63371
63901
  * @param request ReleaseCapacityReservationRequest
63372
63902
  * @return ReleaseCapacityReservationResponse
@@ -63375,6 +63905,13 @@ class Client extends openapi_client_1.default {
63375
63905
  let runtime = new $Util.RuntimeOptions({});
63376
63906
  return await this.releaseCapacityReservationWithOptions(request, runtime);
63377
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
+ */
63378
63915
  async releaseDedicatedHostWithOptions(request, runtime) {
63379
63916
  tea_util_1.default.validateModel(request);
63380
63917
  let query = {};
@@ -63412,6 +63949,12 @@ class Client extends openapi_client_1.default {
63412
63949
  });
63413
63950
  return $tea.cast(await this.callApi(params, req, runtime), new ReleaseDedicatedHostResponse({}));
63414
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
+ */
63415
63958
  async releaseDedicatedHost(request) {
63416
63959
  let runtime = new $Util.RuntimeOptions({});
63417
63960
  return await this.releaseDedicatedHostWithOptions(request, runtime);
@@ -63613,6 +64156,14 @@ class Client extends openapi_client_1.default {
63613
64156
  let runtime = new $Util.RuntimeOptions({});
63614
64157
  return await this.removeTagsWithOptions(request, runtime);
63615
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
+ */
63616
64167
  async renewDedicatedHostsWithOptions(request, runtime) {
63617
64168
  tea_util_1.default.validateModel(request);
63618
64169
  let query = {};
@@ -63659,10 +64210,27 @@ class Client extends openapi_client_1.default {
63659
64210
  });
63660
64211
  return $tea.cast(await this.callApi(params, req, runtime), new RenewDedicatedHostsResponse({}));
63661
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
+ */
63662
64220
  async renewDedicatedHosts(request) {
63663
64221
  let runtime = new $Util.RuntimeOptions({});
63664
64222
  return await this.renewDedicatedHostsWithOptions(request, runtime);
63665
64223
  }
64224
+ /**
64225
+ * * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
64226
+ * * You can call this operation to renew a subscription ECS instance for a period of time or to a synchronized expiration date.
64227
+ * * You cannot renew a subscription instance for a specific period of time and to a synchronized expiration date at the same time by calling this operation. The parameter pair (`Period` and `PeriodUnit`) that is related to the renewal period and the `ExpectedRenewDay` parameter are mutually exclusive.
64228
+ * * Your account must have sufficient credits.
64229
+ *
64230
+ * @param request RenewInstanceRequest
64231
+ * @param runtime runtime options for this request RuntimeOptions
64232
+ * @return RenewInstanceResponse
64233
+ */
63666
64234
  async renewInstanceWithOptions(request, runtime) {
63667
64235
  tea_util_1.default.validateModel(request);
63668
64236
  let query = {};
@@ -63709,10 +64277,27 @@ class Client extends openapi_client_1.default {
63709
64277
  });
63710
64278
  return $tea.cast(await this.callApi(params, req, runtime), new RenewInstanceResponse({}));
63711
64279
  }
64280
+ /**
64281
+ * * Before you call this operation, make sure that you are familiar with the billing methods and pricing schedule of ECS. For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
64282
+ * * You can call this operation to renew a subscription ECS instance for a period of time or to a synchronized expiration date.
64283
+ * * You cannot renew a subscription instance for a specific period of time and to a synchronized expiration date at the same time by calling this operation. The parameter pair (`Period` and `PeriodUnit`) that is related to the renewal period and the `ExpectedRenewDay` parameter are mutually exclusive.
64284
+ * * Your account must have sufficient credits.
64285
+ *
64286
+ * @param request RenewInstanceRequest
64287
+ * @return RenewInstanceResponse
64288
+ */
63712
64289
  async renewInstance(request) {
63713
64290
  let runtime = new $Util.RuntimeOptions({});
63714
64291
  return await this.renewInstanceWithOptions(request, runtime);
63715
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
+ */
63716
64301
  async renewReservedInstancesWithOptions(request, runtime) {
63717
64302
  tea_util_1.default.validateModel(request);
63718
64303
  let query = {};
@@ -63765,10 +64350,37 @@ class Client extends openapi_client_1.default {
63765
64350
  });
63766
64351
  return $tea.cast(await this.callApi(params, req, runtime), new RenewReservedInstancesResponse({}));
63767
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
+ */
63768
64360
  async renewReservedInstances(request) {
63769
64361
  let runtime = new $Util.RuntimeOptions({});
63770
64362
  return await this.renewReservedInstancesWithOptions(request, runtime);
63771
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
+ */
63772
64384
  async replaceSystemDiskWithOptions(request, runtime) {
63773
64385
  tea_util_1.default.validateModel(request);
63774
64386
  let query = {};
@@ -63848,6 +64460,25 @@ class Client extends openapi_client_1.default {
63848
64460
  });
63849
64461
  return $tea.cast(await this.callApi(params, req, runtime), new ReplaceSystemDiskResponse({}));
63850
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
+ */
63851
64482
  async replaceSystemDisk(request) {
63852
64483
  let runtime = new $Util.RuntimeOptions({});
63853
64484
  return await this.replaceSystemDiskWithOptions(request, runtime);
@@ -63917,6 +64548,17 @@ class Client extends openapi_client_1.default {
63917
64548
  let runtime = new $Util.RuntimeOptions({});
63918
64549
  return await this.reportInstancesStatusWithOptions(request, runtime);
63919
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
+ */
63920
64562
  async resetDiskWithOptions(request, runtime) {
63921
64563
  tea_util_1.default.validateModel(request);
63922
64564
  let query = {};
@@ -63957,6 +64599,16 @@ class Client extends openapi_client_1.default {
63957
64599
  });
63958
64600
  return $tea.cast(await this.callApi(params, req, runtime), new ResetDiskResponse({}));
63959
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
+ */
63960
64612
  async resetDisk(request) {
63961
64613
  let runtime = new $Util.RuntimeOptions({});
63962
64614
  return await this.resetDiskWithOptions(request, runtime);
@@ -64018,6 +64670,19 @@ class Client extends openapi_client_1.default {
64018
64670
  let runtime = new $Util.RuntimeOptions({});
64019
64671
  return await this.resetDisksWithOptions(request, runtime);
64020
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
+ */
64021
64686
  async resizeDiskWithOptions(request, runtime) {
64022
64687
  tea_util_1.default.validateModel(request);
64023
64688
  let query = {};
@@ -64061,10 +64726,51 @@ class Client extends openapi_client_1.default {
64061
64726
  });
64062
64727
  return $tea.cast(await this.callApi(params, req, runtime), new ResizeDiskResponse({}));
64063
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
+ */
64064
64741
  async resizeDisk(request) {
64065
64742
  let runtime = new $Util.RuntimeOptions({});
64066
64743
  return await this.resizeDiskWithOptions(request, runtime);
64067
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
+ */
64068
64774
  async revokeSecurityGroupWithOptions(request, runtime) {
64069
64775
  tea_util_1.default.validateModel(request);
64070
64776
  let query = {};
@@ -64165,6 +64871,34 @@ class Client extends openapi_client_1.default {
64165
64871
  });
64166
64872
  return $tea.cast(await this.callApi(params, req, runtime), new RevokeSecurityGroupResponse({}));
64167
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
+ */
64168
64902
  async revokeSecurityGroup(request) {
64169
64903
  let runtime = new $Util.RuntimeOptions({});
64170
64904
  return await this.revokeSecurityGroupWithOptions(request, runtime);
@@ -64371,6 +65105,28 @@ class Client extends openapi_client_1.default {
64371
65105
  let runtime = new $Util.RuntimeOptions({});
64372
65106
  return await this.revokeSecurityGroupEgressWithOptions(request, runtime);
64373
65107
  }
65108
+ /**
65109
+ * Compared with the [CreateCommand](~~64844~~) and [InvokeCommand](~~64841~~) operations, you can call the RunCommand operation once to create and run a command.
65110
+ * When you call this operation, take note of the following items:
65111
+ * * The instances on which you want to run a command must reside in a virtual private cloud (VPC).
65112
+ * * The instances must be in the `Running` state.
65113
+ * * The Cloud Assistant client must be installed on the instances. For more information, see [InstallCloudAssistant](~~85916~~).
65114
+ * * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
65115
+ * * 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 information about time zones, see [Configure the NTP service for ECS instances that run CentOS 6](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
65116
+ * * You can specify the `TimeOut` parameter to specify a timeout period for executions of the command on instances. If an execution times out, the Cloud Assistant client forcibly terminates the command process.
65117
+ * * If the one-time execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
65118
+ * * For a scheduled task, the timeout period takes effect on each execution of the command. When a command execution times out, the subsequent executions of the command are not affected. If a scheduled execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
65119
+ * 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 specific interval, only once at a specific 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~~).
65120
+ * - Linux: 2.2.3.282
65121
+ * - Windows: 2.1.3.282
65122
+ * * 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.
65123
+ * * If you set the `EnableParameter` parameter to true, the custom parameter feature is enabled. If you specify the `CommandContent` parameter, you can specify custom parameters in the `{{parameter}}` format. After the command is run, the key-value pairs of the custom parameters are passed in.
65124
+ * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region based on your ECS usage. You can call the [DescribeAccountAttribute](~~73772~~) operation to query quotas.
65125
+ *
65126
+ * @param tmpReq RunCommandRequest
65127
+ * @param runtime runtime options for this request RuntimeOptions
65128
+ * @return RunCommandResponse
65129
+ */
64374
65130
  async runCommandWithOptions(tmpReq, runtime) {
64375
65131
  tea_util_1.default.validateModel(tmpReq);
64376
65132
  let request = new RunCommandShrinkRequest({});
@@ -64473,10 +65229,58 @@ class Client extends openapi_client_1.default {
64473
65229
  });
64474
65230
  return $tea.cast(await this.callApi(params, req, runtime), new RunCommandResponse({}));
64475
65231
  }
65232
+ /**
65233
+ * Compared with the [CreateCommand](~~64844~~) and [InvokeCommand](~~64841~~) operations, you can call the RunCommand operation once to create and run a command.
65234
+ * When you call this operation, take note of the following items:
65235
+ * * The instances on which you want to run a command must reside in a virtual private cloud (VPC).
65236
+ * * The instances must be in the `Running` state.
65237
+ * * The Cloud Assistant client must be installed on the instances. For more information, see [InstallCloudAssistant](~~85916~~).
65238
+ * * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
65239
+ * * 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 information about time zones, see [Configure the NTP service for ECS instances that run CentOS 6](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
65240
+ * * You can specify the `TimeOut` parameter to specify a timeout period for executions of the command on instances. If an execution times out, the Cloud Assistant client forcibly terminates the command process.
65241
+ * * If the one-time execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
65242
+ * * For a scheduled task, the timeout period takes effect on each execution of the command. When a command execution times out, the subsequent executions of the command are not affected. If a scheduled execution of a command times out, the execution state of the command changes to Failed. You can call the [InvokeRecordStatus](~~64845~~) operation to query the command execution state.
65243
+ * 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 specific interval, only once at a specific 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~~).
65244
+ * - Linux: 2.2.3.282
65245
+ * - Windows: 2.1.3.282
65246
+ * * 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.
65247
+ * * If you set the `EnableParameter` parameter to true, the custom parameter feature is enabled. If you specify the `CommandContent` parameter, you can specify custom parameters in the `{{parameter}}` format. After the command is run, the key-value pairs of the custom parameters are passed in.
65248
+ * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region based on your ECS usage. You can call the [DescribeAccountAttribute](~~73772~~) operation to query quotas.
65249
+ *
65250
+ * @param request RunCommandRequest
65251
+ * @return RunCommandResponse
65252
+ */
64476
65253
  async runCommand(request) {
64477
65254
  let runtime = new $Util.RuntimeOptions({});
64478
65255
  return await this.runCommandWithOptions(request, runtime);
64479
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
+ */
64480
65284
  async runInstancesWithOptions(request, runtime) {
64481
65285
  tea_util_1.default.validateModel(request);
64482
65286
  let query = {};
@@ -64549,6 +65353,9 @@ class Client extends openapi_client_1.default {
64549
65353
  if (!tea_util_1.default.isUnset(request.imageId)) {
64550
65354
  query["ImageId"] = request.imageId;
64551
65355
  }
65356
+ if (!tea_util_1.default.isUnset(request.imageOptions)) {
65357
+ query["ImageOptions"] = request.imageOptions;
65358
+ }
64552
65359
  if (!tea_util_1.default.isUnset(request.instanceChargeType)) {
64553
65360
  query["InstanceChargeType"] = request.instanceChargeType;
64554
65361
  }
@@ -64721,10 +65528,49 @@ class Client extends openapi_client_1.default {
64721
65528
  });
64722
65529
  return $tea.cast(await this.callApi(params, req, runtime), new RunInstancesResponse({}));
64723
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
+ */
64724
65557
  async runInstances(request) {
64725
65558
  let runtime = new $Util.RuntimeOptions({});
64726
65559
  return await this.runInstancesWithOptions(request, runtime);
64727
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
+ */
64728
65574
  async sendFileWithOptions(request, runtime) {
64729
65575
  tea_util_1.default.validateModel(request);
64730
65576
  let query = {};
@@ -64801,6 +65647,18 @@ class Client extends openapi_client_1.default {
64801
65647
  });
64802
65648
  return $tea.cast(await this.callApi(params, req, runtime), new SendFileResponse({}));
64803
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
+ */
64804
65662
  async sendFile(request) {
64805
65663
  let runtime = new $Util.RuntimeOptions({});
64806
65664
  return await this.sendFileWithOptions(request, runtime);
@@ -64861,6 +65719,14 @@ class Client extends openapi_client_1.default {
64861
65719
  let runtime = new $Util.RuntimeOptions({});
64862
65720
  return await this.startElasticityAssuranceWithOptions(request, runtime);
64863
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
+ */
64864
65730
  async startImagePipelineExecutionWithOptions(request, runtime) {
64865
65731
  tea_util_1.default.validateModel(request);
64866
65732
  let query = {};
@@ -64907,10 +65773,27 @@ class Client extends openapi_client_1.default {
64907
65773
  });
64908
65774
  return $tea.cast(await this.callApi(params, req, runtime), new StartImagePipelineExecutionResponse({}));
64909
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
+ */
64910
65783
  async startImagePipelineExecution(request) {
64911
65784
  let runtime = new $Util.RuntimeOptions({});
64912
65785
  return await this.startImagePipelineExecutionWithOptions(request, runtime);
64913
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
+ */
64914
65797
  async startInstanceWithOptions(request, runtime) {
64915
65798
  tea_util_1.default.validateModel(request);
64916
65799
  let query = {};
@@ -64951,10 +65834,29 @@ class Client extends openapi_client_1.default {
64951
65834
  });
64952
65835
  return $tea.cast(await this.callApi(params, req, runtime), new StartInstanceResponse({}));
64953
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
+ */
64954
65846
  async startInstance(request) {
64955
65847
  let runtime = new $Util.RuntimeOptions({});
64956
65848
  return await this.startInstanceWithOptions(request, runtime);
64957
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
+ */
64958
65860
  async startInstancesWithOptions(request, runtime) {
64959
65861
  tea_util_1.default.validateModel(request);
64960
65862
  let query = {};
@@ -64998,10 +65900,34 @@ class Client extends openapi_client_1.default {
64998
65900
  });
64999
65901
  return $tea.cast(await this.callApi(params, req, runtime), new StartInstancesResponse({}));
65000
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
+ */
65001
65912
  async startInstances(request) {
65002
65913
  let runtime = new $Util.RuntimeOptions({});
65003
65914
  return await this.startInstancesWithOptions(request, runtime);
65004
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
+ */
65005
65931
  async startTerminalSessionWithOptions(request, runtime) {
65006
65932
  tea_util_1.default.validateModel(request);
65007
65933
  let query = {};
@@ -65045,10 +65971,32 @@ class Client extends openapi_client_1.default {
65045
65971
  });
65046
65972
  return $tea.cast(await this.callApi(params, req, runtime), new StartTerminalSessionResponse({}));
65047
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
+ */
65048
65988
  async startTerminalSession(request) {
65049
65989
  let runtime = new $Util.RuntimeOptions({});
65050
65990
  return await this.startTerminalSessionWithOptions(request, runtime);
65051
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
+ */
65052
66000
  async stopInstanceWithOptions(request, runtime) {
65053
66001
  tea_util_1.default.validateModel(request);
65054
66002
  let query = {};
@@ -65098,6 +66046,13 @@ class Client extends openapi_client_1.default {
65098
66046
  });
65099
66047
  return $tea.cast(await this.callApi(params, req, runtime), new StopInstanceResponse({}));
65100
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
+ */
65101
66056
  async stopInstance(request) {
65102
66057
  let runtime = new $Util.RuntimeOptions({});
65103
66058
  return await this.stopInstanceWithOptions(request, runtime);
@@ -65172,6 +66127,14 @@ class Client extends openapi_client_1.default {
65172
66127
  let runtime = new $Util.RuntimeOptions({});
65173
66128
  return await this.stopInstancesWithOptions(request, runtime);
65174
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
+ */
65175
66138
  async stopInvocationWithOptions(request, runtime) {
65176
66139
  tea_util_1.default.validateModel(request);
65177
66140
  let query = {};
@@ -65215,10 +66178,24 @@ class Client extends openapi_client_1.default {
65215
66178
  });
65216
66179
  return $tea.cast(await this.callApi(params, req, runtime), new StopInvocationResponse({}));
65217
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
+ */
65218
66188
  async stopInvocation(request) {
65219
66189
  let runtime = new $Util.RuntimeOptions({});
65220
66190
  return await this.stopInvocationWithOptions(request, runtime);
65221
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
+ */
65222
66199
  async tagResourcesWithOptions(request, runtime) {
65223
66200
  tea_util_1.default.validateModel(request);
65224
66201
  let query = {};
@@ -65262,6 +66239,12 @@ class Client extends openapi_client_1.default {
65262
66239
  });
65263
66240
  return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
65264
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
+ */
65265
66248
  async tagResources(request) {
65266
66249
  let runtime = new $Util.RuntimeOptions({});
65267
66250
  return await this.tagResourcesWithOptions(request, runtime);
@@ -65390,6 +66373,15 @@ class Client extends openapi_client_1.default {
65390
66373
  let runtime = new $Util.RuntimeOptions({});
65391
66374
  return await this.terminateVirtualBorderRouterWithOptions(request, runtime);
65392
66375
  }
66376
+ /**
66377
+ * When you call this operation, take note of the following items:
66378
+ * * The ENI must be in the **Available** (Available) or **InUse** (InUse) state.
66379
+ * * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
66380
+ *
66381
+ * @param request UnassignIpv6AddressesRequest
66382
+ * @param runtime runtime options for this request RuntimeOptions
66383
+ * @return UnassignIpv6AddressesResponse
66384
+ */
65393
66385
  async unassignIpv6AddressesWithOptions(request, runtime) {
65394
66386
  tea_util_1.default.validateModel(request);
65395
66387
  let query = {};
@@ -65436,10 +66428,26 @@ class Client extends openapi_client_1.default {
65436
66428
  });
65437
66429
  return $tea.cast(await this.callApi(params, req, runtime), new UnassignIpv6AddressesResponse({}));
65438
66430
  }
66431
+ /**
66432
+ * When you call this operation, take note of the following items:
66433
+ * * The ENI must be in the **Available** (Available) or **InUse** (InUse) state.
66434
+ * * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
66435
+ *
66436
+ * @param request UnassignIpv6AddressesRequest
66437
+ * @return UnassignIpv6AddressesResponse
66438
+ */
65439
66439
  async unassignIpv6Addresses(request) {
65440
66440
  let runtime = new $Util.RuntimeOptions({});
65441
66441
  return await this.unassignIpv6AddressesWithOptions(request, runtime);
65442
66442
  }
66443
+ /**
66444
+ * * The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **InUse** (InUse) state.
66445
+ * * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
66446
+ *
66447
+ * @param request UnassignPrivateIpAddressesRequest
66448
+ * @param runtime runtime options for this request RuntimeOptions
66449
+ * @return UnassignPrivateIpAddressesResponse
66450
+ */
65443
66451
  async unassignPrivateIpAddressesWithOptions(request, runtime) {
65444
66452
  tea_util_1.default.validateModel(request);
65445
66453
  let query = {};
@@ -65486,6 +66494,13 @@ class Client extends openapi_client_1.default {
65486
66494
  });
65487
66495
  return $tea.cast(await this.callApi(params, req, runtime), new UnassignPrivateIpAddressesResponse({}));
65488
66496
  }
66497
+ /**
66498
+ * * The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **InUse** (InUse) state.
66499
+ * * If the ENI is a primary ENI, the Elastic Compute Service (ECS) instance to which the ENI is attached must be in the **Running** (Running) or **Stopped** (Stopped) state.
66500
+ *
66501
+ * @param request UnassignPrivateIpAddressesRequest
66502
+ * @return UnassignPrivateIpAddressesResponse
66503
+ */
65489
66504
  async unassignPrivateIpAddresses(request) {
65490
66505
  let runtime = new $Util.RuntimeOptions({});
65491
66506
  return await this.unassignPrivateIpAddressesWithOptions(request, runtime);