@alicloud/ecs20140526 3.0.12 → 4.0.0

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
@@ -2068,6 +2068,7 @@ class CreateActivationRequest extends $tea.Model {
2068
2068
  ownerAccount: 'OwnerAccount',
2069
2069
  ownerId: 'OwnerId',
2070
2070
  regionId: 'RegionId',
2071
+ resourceGroupId: 'ResourceGroupId',
2071
2072
  resourceOwnerAccount: 'ResourceOwnerAccount',
2072
2073
  resourceOwnerId: 'ResourceOwnerId',
2073
2074
  tag: 'Tag',
@@ -2083,6 +2084,7 @@ class CreateActivationRequest extends $tea.Model {
2083
2084
  ownerAccount: 'string',
2084
2085
  ownerId: 'number',
2085
2086
  regionId: 'string',
2087
+ resourceGroupId: 'string',
2086
2088
  resourceOwnerAccount: 'string',
2087
2089
  resourceOwnerId: 'number',
2088
2090
  tag: { 'type': 'array', 'itemType': CreateActivationRequestTag },
@@ -2429,6 +2431,7 @@ class CreateCommandRequest extends $tea.Model {
2429
2431
  ownerAccount: 'OwnerAccount',
2430
2432
  ownerId: 'OwnerId',
2431
2433
  regionId: 'RegionId',
2434
+ resourceGroupId: 'ResourceGroupId',
2432
2435
  resourceOwnerAccount: 'ResourceOwnerAccount',
2433
2436
  resourceOwnerId: 'ResourceOwnerId',
2434
2437
  tag: 'Tag',
@@ -2447,6 +2450,7 @@ class CreateCommandRequest extends $tea.Model {
2447
2450
  ownerAccount: 'string',
2448
2451
  ownerId: 'number',
2449
2452
  regionId: 'string',
2453
+ resourceGroupId: 'string',
2450
2454
  resourceOwnerAccount: 'string',
2451
2455
  resourceOwnerId: 'number',
2452
2456
  tag: { 'type': 'array', 'itemType': CreateCommandRequestTag },
@@ -4176,10 +4180,12 @@ class CreateNetworkInterfaceRequest extends $tea.Model {
4176
4180
  resourceGroupId: 'ResourceGroupId',
4177
4181
  resourceOwnerAccount: 'ResourceOwnerAccount',
4178
4182
  resourceOwnerId: 'ResourceOwnerId',
4183
+ rxQueueSize: 'RxQueueSize',
4179
4184
  secondaryPrivateIpAddressCount: 'SecondaryPrivateIpAddressCount',
4180
4185
  securityGroupId: 'SecurityGroupId',
4181
4186
  securityGroupIds: 'SecurityGroupIds',
4182
4187
  tag: 'Tag',
4188
+ txQueueSize: 'TxQueueSize',
4183
4189
  vSwitchId: 'VSwitchId',
4184
4190
  visible: 'Visible',
4185
4191
  };
@@ -4209,10 +4215,12 @@ class CreateNetworkInterfaceRequest extends $tea.Model {
4209
4215
  resourceGroupId: 'string',
4210
4216
  resourceOwnerAccount: 'string',
4211
4217
  resourceOwnerId: 'number',
4218
+ rxQueueSize: 'number',
4212
4219
  secondaryPrivateIpAddressCount: 'number',
4213
4220
  securityGroupId: 'string',
4214
4221
  securityGroupIds: { 'type': 'array', 'itemType': 'string' },
4215
4222
  tag: { 'type': 'array', 'itemType': CreateNetworkInterfaceRequestTag },
4223
+ txQueueSize: 'number',
4216
4224
  vSwitchId: 'string',
4217
4225
  visible: 'boolean',
4218
4226
  };
@@ -4701,6 +4709,78 @@ class CreateRouterInterfaceResponse extends $tea.Model {
4701
4709
  }
4702
4710
  }
4703
4711
  exports.CreateRouterInterfaceResponse = CreateRouterInterfaceResponse;
4712
+ class CreateSavingsPlanRequest extends $tea.Model {
4713
+ constructor(map) {
4714
+ super(map);
4715
+ }
4716
+ static names() {
4717
+ return {
4718
+ chargeType: 'ChargeType',
4719
+ committedAmount: 'CommittedAmount',
4720
+ instanceTypeFamily: 'InstanceTypeFamily',
4721
+ offeringType: 'OfferingType',
4722
+ period: 'Period',
4723
+ periodUnit: 'PeriodUnit',
4724
+ planType: 'PlanType',
4725
+ regionId: 'RegionId',
4726
+ resourceId: 'ResourceId',
4727
+ };
4728
+ }
4729
+ static types() {
4730
+ return {
4731
+ chargeType: 'string',
4732
+ committedAmount: 'string',
4733
+ instanceTypeFamily: 'string',
4734
+ offeringType: 'string',
4735
+ period: 'string',
4736
+ periodUnit: 'string',
4737
+ planType: 'string',
4738
+ regionId: 'string',
4739
+ resourceId: { 'type': 'array', 'itemType': 'string' },
4740
+ };
4741
+ }
4742
+ }
4743
+ exports.CreateSavingsPlanRequest = CreateSavingsPlanRequest;
4744
+ class CreateSavingsPlanResponseBody extends $tea.Model {
4745
+ constructor(map) {
4746
+ super(map);
4747
+ }
4748
+ static names() {
4749
+ return {
4750
+ orderId: 'OrderId',
4751
+ requestId: 'RequestId',
4752
+ savingsPlanId: 'SavingsPlanId',
4753
+ };
4754
+ }
4755
+ static types() {
4756
+ return {
4757
+ orderId: 'string',
4758
+ requestId: 'string',
4759
+ savingsPlanId: 'string',
4760
+ };
4761
+ }
4762
+ }
4763
+ exports.CreateSavingsPlanResponseBody = CreateSavingsPlanResponseBody;
4764
+ class CreateSavingsPlanResponse extends $tea.Model {
4765
+ constructor(map) {
4766
+ super(map);
4767
+ }
4768
+ static names() {
4769
+ return {
4770
+ headers: 'headers',
4771
+ statusCode: 'statusCode',
4772
+ body: 'body',
4773
+ };
4774
+ }
4775
+ static types() {
4776
+ return {
4777
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4778
+ statusCode: 'number',
4779
+ body: CreateSavingsPlanResponseBody,
4780
+ };
4781
+ }
4782
+ }
4783
+ exports.CreateSavingsPlanResponse = CreateSavingsPlanResponse;
4704
4784
  class CreateSecurityGroupRequest extends $tea.Model {
4705
4785
  constructor(map) {
4706
4786
  super(map);
@@ -6433,6 +6513,7 @@ class DeleteInstanceRequest extends $tea.Model {
6433
6513
  }
6434
6514
  static names() {
6435
6515
  return {
6516
+ dryRun: 'DryRun',
6436
6517
  force: 'Force',
6437
6518
  instanceId: 'InstanceId',
6438
6519
  ownerAccount: 'OwnerAccount',
@@ -6444,6 +6525,7 @@ class DeleteInstanceRequest extends $tea.Model {
6444
6525
  }
6445
6526
  static types() {
6446
6527
  return {
6528
+ dryRun: 'boolean',
6447
6529
  force: 'boolean',
6448
6530
  instanceId: 'string',
6449
6531
  ownerAccount: 'string',
@@ -6656,12 +6738,14 @@ class DeleteLaunchTemplateResponseBody extends $tea.Model {
6656
6738
  static names() {
6657
6739
  return {
6658
6740
  launchTemplateId: 'LaunchTemplateId',
6741
+ launchTemplateVersionNumbers: 'LaunchTemplateVersionNumbers',
6659
6742
  requestId: 'RequestId',
6660
6743
  };
6661
6744
  }
6662
6745
  static types() {
6663
6746
  return {
6664
6747
  launchTemplateId: 'string',
6748
+ launchTemplateVersionNumbers: DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers,
6665
6749
  requestId: 'string',
6666
6750
  };
6667
6751
  }
@@ -7855,11 +7939,14 @@ class DescribeActivationsRequest extends $tea.Model {
7855
7939
  return {
7856
7940
  activationId: 'ActivationId',
7857
7941
  instanceName: 'InstanceName',
7942
+ maxResults: 'MaxResults',
7943
+ nextToken: 'NextToken',
7858
7944
  ownerAccount: 'OwnerAccount',
7859
7945
  ownerId: 'OwnerId',
7860
7946
  pageNumber: 'PageNumber',
7861
7947
  pageSize: 'PageSize',
7862
7948
  regionId: 'RegionId',
7949
+ resourceGroupId: 'ResourceGroupId',
7863
7950
  resourceOwnerAccount: 'ResourceOwnerAccount',
7864
7951
  resourceOwnerId: 'ResourceOwnerId',
7865
7952
  tag: 'Tag',
@@ -7869,11 +7956,14 @@ class DescribeActivationsRequest extends $tea.Model {
7869
7956
  return {
7870
7957
  activationId: 'string',
7871
7958
  instanceName: 'string',
7959
+ maxResults: 'number',
7960
+ nextToken: 'string',
7872
7961
  ownerAccount: 'string',
7873
7962
  ownerId: 'number',
7874
7963
  pageNumber: 'number',
7875
7964
  pageSize: 'number',
7876
7965
  regionId: 'string',
7966
+ resourceGroupId: 'string',
7877
7967
  resourceOwnerAccount: 'string',
7878
7968
  resourceOwnerId: 'number',
7879
7969
  tag: { 'type': 'array', 'itemType': DescribeActivationsRequestTag },
@@ -7888,6 +7978,7 @@ class DescribeActivationsResponseBody extends $tea.Model {
7888
7978
  static names() {
7889
7979
  return {
7890
7980
  activationList: 'ActivationList',
7981
+ nextToken: 'NextToken',
7891
7982
  pageNumber: 'PageNumber',
7892
7983
  pageSize: 'PageSize',
7893
7984
  requestId: 'RequestId',
@@ -7897,6 +7988,7 @@ class DescribeActivationsResponseBody extends $tea.Model {
7897
7988
  static types() {
7898
7989
  return {
7899
7990
  activationList: { 'type': 'array', 'itemType': DescribeActivationsResponseBodyActivationList },
7991
+ nextToken: 'string',
7900
7992
  pageNumber: 'number',
7901
7993
  pageSize: 'number',
7902
7994
  requestId: 'string',
@@ -8091,6 +8183,7 @@ class DescribeAutoProvisioningGroupsRequest extends $tea.Model {
8091
8183
  pageNumber: 'PageNumber',
8092
8184
  pageSize: 'PageSize',
8093
8185
  regionId: 'RegionId',
8186
+ resourceGroupId: 'ResourceGroupId',
8094
8187
  resourceOwnerAccount: 'ResourceOwnerAccount',
8095
8188
  resourceOwnerId: 'ResourceOwnerId',
8096
8189
  };
@@ -8105,6 +8198,7 @@ class DescribeAutoProvisioningGroupsRequest extends $tea.Model {
8105
8198
  pageNumber: 'number',
8106
8199
  pageSize: 'number',
8107
8200
  regionId: 'string',
8201
+ resourceGroupId: 'string',
8108
8202
  resourceOwnerAccount: 'string',
8109
8203
  resourceOwnerId: 'number',
8110
8204
  };
@@ -8718,6 +8812,8 @@ class DescribeCloudAssistantStatusRequest extends $tea.Model {
8718
8812
  static names() {
8719
8813
  return {
8720
8814
  instanceId: 'InstanceId',
8815
+ maxResults: 'MaxResults',
8816
+ nextToken: 'NextToken',
8721
8817
  OSType: 'OSType',
8722
8818
  ownerAccount: 'OwnerAccount',
8723
8819
  ownerId: 'OwnerId',
@@ -8731,6 +8827,8 @@ class DescribeCloudAssistantStatusRequest extends $tea.Model {
8731
8827
  static types() {
8732
8828
  return {
8733
8829
  instanceId: { 'type': 'array', 'itemType': 'string' },
8830
+ maxResults: 'number',
8831
+ nextToken: 'string',
8734
8832
  OSType: 'string',
8735
8833
  ownerAccount: 'string',
8736
8834
  ownerId: 'number',
@@ -8750,6 +8848,7 @@ class DescribeCloudAssistantStatusResponseBody extends $tea.Model {
8750
8848
  static names() {
8751
8849
  return {
8752
8850
  instanceCloudAssistantStatusSet: 'InstanceCloudAssistantStatusSet',
8851
+ nextToken: 'NextToken',
8753
8852
  pageNumber: 'PageNumber',
8754
8853
  pageSize: 'PageSize',
8755
8854
  requestId: 'RequestId',
@@ -8759,6 +8858,7 @@ class DescribeCloudAssistantStatusResponseBody extends $tea.Model {
8759
8858
  static types() {
8760
8859
  return {
8761
8860
  instanceCloudAssistantStatusSet: DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet,
8861
+ nextToken: 'string',
8762
8862
  pageNumber: 'number',
8763
8863
  pageSize: 'number',
8764
8864
  requestId: 'string',
@@ -8859,13 +8959,16 @@ class DescribeCommandsRequest extends $tea.Model {
8859
8959
  contentEncoding: 'ContentEncoding',
8860
8960
  description: 'Description',
8861
8961
  latest: 'Latest',
8962
+ maxResults: 'MaxResults',
8862
8963
  name: 'Name',
8964
+ nextToken: 'NextToken',
8863
8965
  ownerAccount: 'OwnerAccount',
8864
8966
  ownerId: 'OwnerId',
8865
8967
  pageNumber: 'PageNumber',
8866
8968
  pageSize: 'PageSize',
8867
8969
  provider: 'Provider',
8868
8970
  regionId: 'RegionId',
8971
+ resourceGroupId: 'ResourceGroupId',
8869
8972
  resourceOwnerAccount: 'ResourceOwnerAccount',
8870
8973
  resourceOwnerId: 'ResourceOwnerId',
8871
8974
  tag: 'Tag',
@@ -8878,13 +8981,16 @@ class DescribeCommandsRequest extends $tea.Model {
8878
8981
  contentEncoding: 'string',
8879
8982
  description: 'string',
8880
8983
  latest: 'boolean',
8984
+ maxResults: 'number',
8881
8985
  name: 'string',
8986
+ nextToken: 'string',
8882
8987
  ownerAccount: 'string',
8883
8988
  ownerId: 'number',
8884
8989
  pageNumber: 'number',
8885
8990
  pageSize: 'number',
8886
8991
  provider: 'string',
8887
8992
  regionId: 'string',
8993
+ resourceGroupId: 'string',
8888
8994
  resourceOwnerAccount: 'string',
8889
8995
  resourceOwnerId: 'number',
8890
8996
  tag: { 'type': 'array', 'itemType': DescribeCommandsRequestTag },
@@ -8900,6 +9006,7 @@ class DescribeCommandsResponseBody extends $tea.Model {
8900
9006
  static names() {
8901
9007
  return {
8902
9008
  commands: 'Commands',
9009
+ nextToken: 'NextToken',
8903
9010
  pageNumber: 'PageNumber',
8904
9011
  pageSize: 'PageSize',
8905
9012
  requestId: 'RequestId',
@@ -8909,6 +9016,7 @@ class DescribeCommandsResponseBody extends $tea.Model {
8909
9016
  static types() {
8910
9017
  return {
8911
9018
  commands: DescribeCommandsResponseBodyCommands,
9019
+ nextToken: 'string',
8912
9020
  pageNumber: 'number',
8913
9021
  pageSize: 'number',
8914
9022
  requestId: 'string',
@@ -12237,70 +12345,6 @@ class DescribeInstanceTypesResponse extends $tea.Model {
12237
12345
  }
12238
12346
  }
12239
12347
  exports.DescribeInstanceTypesResponse = DescribeInstanceTypesResponse;
12240
- class DescribeInstanceVncPasswdRequest extends $tea.Model {
12241
- constructor(map) {
12242
- super(map);
12243
- }
12244
- static names() {
12245
- return {
12246
- instanceId: 'InstanceId',
12247
- ownerAccount: 'OwnerAccount',
12248
- ownerId: 'OwnerId',
12249
- regionId: 'RegionId',
12250
- resourceOwnerAccount: 'ResourceOwnerAccount',
12251
- resourceOwnerId: 'ResourceOwnerId',
12252
- };
12253
- }
12254
- static types() {
12255
- return {
12256
- instanceId: 'string',
12257
- ownerAccount: 'string',
12258
- ownerId: 'number',
12259
- regionId: 'string',
12260
- resourceOwnerAccount: 'string',
12261
- resourceOwnerId: 'number',
12262
- };
12263
- }
12264
- }
12265
- exports.DescribeInstanceVncPasswdRequest = DescribeInstanceVncPasswdRequest;
12266
- class DescribeInstanceVncPasswdResponseBody extends $tea.Model {
12267
- constructor(map) {
12268
- super(map);
12269
- }
12270
- static names() {
12271
- return {
12272
- requestId: 'RequestId',
12273
- vncPasswd: 'VncPasswd',
12274
- };
12275
- }
12276
- static types() {
12277
- return {
12278
- requestId: 'string',
12279
- vncPasswd: 'string',
12280
- };
12281
- }
12282
- }
12283
- exports.DescribeInstanceVncPasswdResponseBody = DescribeInstanceVncPasswdResponseBody;
12284
- class DescribeInstanceVncPasswdResponse extends $tea.Model {
12285
- constructor(map) {
12286
- super(map);
12287
- }
12288
- static names() {
12289
- return {
12290
- headers: 'headers',
12291
- statusCode: 'statusCode',
12292
- body: 'body',
12293
- };
12294
- }
12295
- static types() {
12296
- return {
12297
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
12298
- statusCode: 'number',
12299
- body: DescribeInstanceVncPasswdResponseBody,
12300
- };
12301
- }
12302
- }
12303
- exports.DescribeInstanceVncPasswdResponse = DescribeInstanceVncPasswdResponse;
12304
12348
  class DescribeInstanceVncUrlRequest extends $tea.Model {
12305
12349
  constructor(map) {
12306
12350
  super(map);
@@ -12609,6 +12653,8 @@ class DescribeInvocationResultsRequest extends $tea.Model {
12609
12653
  instanceId: 'InstanceId',
12610
12654
  invokeId: 'InvokeId',
12611
12655
  invokeRecordStatus: 'InvokeRecordStatus',
12656
+ maxResults: 'MaxResults',
12657
+ nextToken: 'NextToken',
12612
12658
  ownerAccount: 'OwnerAccount',
12613
12659
  ownerId: 'OwnerId',
12614
12660
  pageNumber: 'PageNumber',
@@ -12628,6 +12674,8 @@ class DescribeInvocationResultsRequest extends $tea.Model {
12628
12674
  instanceId: 'string',
12629
12675
  invokeId: 'string',
12630
12676
  invokeRecordStatus: 'string',
12677
+ maxResults: 'number',
12678
+ nextToken: 'string',
12631
12679
  ownerAccount: 'string',
12632
12680
  ownerId: 'number',
12633
12681
  pageNumber: 'number',
@@ -12693,6 +12741,8 @@ class DescribeInvocationsRequest extends $tea.Model {
12693
12741
  instanceId: 'InstanceId',
12694
12742
  invokeId: 'InvokeId',
12695
12743
  invokeStatus: 'InvokeStatus',
12744
+ maxResults: 'MaxResults',
12745
+ nextToken: 'NextToken',
12696
12746
  ownerAccount: 'OwnerAccount',
12697
12747
  ownerId: 'OwnerId',
12698
12748
  pageNumber: 'PageNumber',
@@ -12716,6 +12766,8 @@ class DescribeInvocationsRequest extends $tea.Model {
12716
12766
  instanceId: 'string',
12717
12767
  invokeId: 'string',
12718
12768
  invokeStatus: 'string',
12769
+ maxResults: 'number',
12770
+ nextToken: 'string',
12719
12771
  ownerAccount: 'string',
12720
12772
  ownerId: 'number',
12721
12773
  pageNumber: 'number',
@@ -12738,6 +12790,7 @@ class DescribeInvocationsResponseBody extends $tea.Model {
12738
12790
  static names() {
12739
12791
  return {
12740
12792
  invocations: 'Invocations',
12793
+ nextToken: 'NextToken',
12741
12794
  pageNumber: 'PageNumber',
12742
12795
  pageSize: 'PageSize',
12743
12796
  requestId: 'RequestId',
@@ -12747,6 +12800,7 @@ class DescribeInvocationsResponseBody extends $tea.Model {
12747
12800
  static types() {
12748
12801
  return {
12749
12802
  invocations: DescribeInvocationsResponseBodyInvocations,
12803
+ nextToken: 'string',
12750
12804
  pageNumber: 'number',
12751
12805
  pageSize: 'number',
12752
12806
  requestId: 'string',
@@ -12781,6 +12835,7 @@ class DescribeKeyPairsRequest extends $tea.Model {
12781
12835
  }
12782
12836
  static names() {
12783
12837
  return {
12838
+ includePublicKey: 'IncludePublicKey',
12784
12839
  keyPairFingerPrint: 'KeyPairFingerPrint',
12785
12840
  keyPairName: 'KeyPairName',
12786
12841
  ownerId: 'OwnerId',
@@ -12795,6 +12850,7 @@ class DescribeKeyPairsRequest extends $tea.Model {
12795
12850
  }
12796
12851
  static types() {
12797
12852
  return {
12853
+ includePublicKey: 'boolean',
12798
12854
  keyPairFingerPrint: 'string',
12799
12855
  keyPairName: 'string',
12800
12856
  ownerId: 'number',
@@ -13093,12 +13149,15 @@ class DescribeManagedInstancesRequest extends $tea.Model {
13093
13149
  instanceId: 'InstanceId',
13094
13150
  instanceIp: 'InstanceIp',
13095
13151
  instanceName: 'InstanceName',
13152
+ maxResults: 'MaxResults',
13153
+ nextToken: 'NextToken',
13096
13154
  osType: 'OsType',
13097
13155
  ownerAccount: 'OwnerAccount',
13098
13156
  ownerId: 'OwnerId',
13099
13157
  pageNumber: 'PageNumber',
13100
13158
  pageSize: 'PageSize',
13101
13159
  regionId: 'RegionId',
13160
+ resourceGroupId: 'ResourceGroupId',
13102
13161
  resourceOwnerAccount: 'ResourceOwnerAccount',
13103
13162
  resourceOwnerId: 'ResourceOwnerId',
13104
13163
  tag: 'Tag',
@@ -13110,12 +13169,15 @@ class DescribeManagedInstancesRequest extends $tea.Model {
13110
13169
  instanceId: { 'type': 'array', 'itemType': 'string' },
13111
13170
  instanceIp: 'string',
13112
13171
  instanceName: 'string',
13172
+ maxResults: 'number',
13173
+ nextToken: 'string',
13113
13174
  osType: 'string',
13114
13175
  ownerAccount: 'string',
13115
13176
  ownerId: 'number',
13116
13177
  pageNumber: 'number',
13117
13178
  pageSize: 'number',
13118
13179
  regionId: 'string',
13180
+ resourceGroupId: 'string',
13119
13181
  resourceOwnerAccount: 'string',
13120
13182
  resourceOwnerId: 'number',
13121
13183
  tag: { 'type': 'array', 'itemType': DescribeManagedInstancesRequestTag },
@@ -13130,6 +13192,7 @@ class DescribeManagedInstancesResponseBody extends $tea.Model {
13130
13192
  static names() {
13131
13193
  return {
13132
13194
  instances: 'Instances',
13195
+ nextToken: 'NextToken',
13133
13196
  pageNumber: 'PageNumber',
13134
13197
  pageSize: 'PageSize',
13135
13198
  requestId: 'RequestId',
@@ -13139,6 +13202,7 @@ class DescribeManagedInstancesResponseBody extends $tea.Model {
13139
13202
  static types() {
13140
13203
  return {
13141
13204
  instances: { 'type': 'array', 'itemType': DescribeManagedInstancesResponseBodyInstances },
13205
+ nextToken: 'string',
13142
13206
  pageNumber: 'number',
13143
13207
  pageSize: 'number',
13144
13208
  requestId: 'string',
@@ -13306,6 +13370,7 @@ class DescribeNetworkInterfaceAttributeResponseBody extends $tea.Model {
13306
13370
  slaveInterfaceSpecification: 'SlaveInterfaceSpecification',
13307
13371
  status: 'Status',
13308
13372
  tags: 'Tags',
13373
+ tcpOptionAddressEnabled: 'TcpOptionAddressEnabled',
13309
13374
  type: 'Type',
13310
13375
  vSwitchId: 'VSwitchId',
13311
13376
  vpcId: 'VpcId',
@@ -13341,6 +13406,7 @@ class DescribeNetworkInterfaceAttributeResponseBody extends $tea.Model {
13341
13406
  slaveInterfaceSpecification: DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification,
13342
13407
  status: 'string',
13343
13408
  tags: DescribeNetworkInterfaceAttributeResponseBodyTags,
13409
+ tcpOptionAddressEnabled: 'string',
13344
13410
  type: 'string',
13345
13411
  vSwitchId: 'string',
13346
13412
  vpcId: 'string',
@@ -14729,6 +14795,152 @@ class DescribeRouterInterfacesResponse extends $tea.Model {
14729
14795
  }
14730
14796
  }
14731
14797
  exports.DescribeRouterInterfacesResponse = DescribeRouterInterfacesResponse;
14798
+ class DescribeSavingsPlanEstimationRequest extends $tea.Model {
14799
+ constructor(map) {
14800
+ super(map);
14801
+ }
14802
+ static names() {
14803
+ return {
14804
+ offeringType: 'OfferingType',
14805
+ period: 'Period',
14806
+ periodUnit: 'PeriodUnit',
14807
+ planType: 'PlanType',
14808
+ regionId: 'RegionId',
14809
+ resourceId: 'ResourceId',
14810
+ };
14811
+ }
14812
+ static types() {
14813
+ return {
14814
+ offeringType: 'string',
14815
+ period: 'string',
14816
+ periodUnit: 'string',
14817
+ planType: 'string',
14818
+ regionId: 'string',
14819
+ resourceId: 'string',
14820
+ };
14821
+ }
14822
+ }
14823
+ exports.DescribeSavingsPlanEstimationRequest = DescribeSavingsPlanEstimationRequest;
14824
+ class DescribeSavingsPlanEstimationResponseBody extends $tea.Model {
14825
+ constructor(map) {
14826
+ super(map);
14827
+ }
14828
+ static names() {
14829
+ return {
14830
+ committedAmount: 'CommittedAmount',
14831
+ currency: 'Currency',
14832
+ instanceTypeFamily: 'InstanceTypeFamily',
14833
+ offeringType: 'OfferingType',
14834
+ period: 'Period',
14835
+ periodUnit: 'PeriodUnit',
14836
+ planType: 'PlanType',
14837
+ requestId: 'RequestId',
14838
+ resourceId: 'ResourceId',
14839
+ };
14840
+ }
14841
+ static types() {
14842
+ return {
14843
+ committedAmount: 'string',
14844
+ currency: 'string',
14845
+ instanceTypeFamily: 'string',
14846
+ offeringType: 'string',
14847
+ period: 'number',
14848
+ periodUnit: 'string',
14849
+ planType: 'string',
14850
+ requestId: 'string',
14851
+ resourceId: 'string',
14852
+ };
14853
+ }
14854
+ }
14855
+ exports.DescribeSavingsPlanEstimationResponseBody = DescribeSavingsPlanEstimationResponseBody;
14856
+ class DescribeSavingsPlanEstimationResponse extends $tea.Model {
14857
+ constructor(map) {
14858
+ super(map);
14859
+ }
14860
+ static names() {
14861
+ return {
14862
+ headers: 'headers',
14863
+ statusCode: 'statusCode',
14864
+ body: 'body',
14865
+ };
14866
+ }
14867
+ static types() {
14868
+ return {
14869
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
14870
+ statusCode: 'number',
14871
+ body: DescribeSavingsPlanEstimationResponseBody,
14872
+ };
14873
+ }
14874
+ }
14875
+ exports.DescribeSavingsPlanEstimationResponse = DescribeSavingsPlanEstimationResponse;
14876
+ class DescribeSavingsPlanPriceRequest extends $tea.Model {
14877
+ constructor(map) {
14878
+ super(map);
14879
+ }
14880
+ static names() {
14881
+ return {
14882
+ committedAmount: 'CommittedAmount',
14883
+ instanceTypeFamily: 'InstanceTypeFamily',
14884
+ offeringType: 'OfferingType',
14885
+ period: 'Period',
14886
+ periodUnit: 'PeriodUnit',
14887
+ planType: 'PlanType',
14888
+ regionId: 'RegionId',
14889
+ resourceId: 'ResourceId',
14890
+ };
14891
+ }
14892
+ static types() {
14893
+ return {
14894
+ committedAmount: 'string',
14895
+ instanceTypeFamily: 'string',
14896
+ offeringType: 'string',
14897
+ period: 'number',
14898
+ periodUnit: 'string',
14899
+ planType: 'string',
14900
+ regionId: 'string',
14901
+ resourceId: { 'type': 'array', 'itemType': 'string' },
14902
+ };
14903
+ }
14904
+ }
14905
+ exports.DescribeSavingsPlanPriceRequest = DescribeSavingsPlanPriceRequest;
14906
+ class DescribeSavingsPlanPriceResponseBody extends $tea.Model {
14907
+ constructor(map) {
14908
+ super(map);
14909
+ }
14910
+ static names() {
14911
+ return {
14912
+ priceInfo: 'PriceInfo',
14913
+ requestId: 'RequestId',
14914
+ };
14915
+ }
14916
+ static types() {
14917
+ return {
14918
+ priceInfo: DescribeSavingsPlanPriceResponseBodyPriceInfo,
14919
+ requestId: 'string',
14920
+ };
14921
+ }
14922
+ }
14923
+ exports.DescribeSavingsPlanPriceResponseBody = DescribeSavingsPlanPriceResponseBody;
14924
+ class DescribeSavingsPlanPriceResponse extends $tea.Model {
14925
+ constructor(map) {
14926
+ super(map);
14927
+ }
14928
+ static names() {
14929
+ return {
14930
+ headers: 'headers',
14931
+ statusCode: 'statusCode',
14932
+ body: 'body',
14933
+ };
14934
+ }
14935
+ static types() {
14936
+ return {
14937
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
14938
+ statusCode: 'number',
14939
+ body: DescribeSavingsPlanPriceResponseBody,
14940
+ };
14941
+ }
14942
+ }
14943
+ exports.DescribeSavingsPlanPriceResponse = DescribeSavingsPlanPriceResponse;
14732
14944
  class DescribeSecurityGroupAttributeRequest extends $tea.Model {
14733
14945
  constructor(map) {
14734
14946
  super(map);
@@ -14897,6 +15109,7 @@ class DescribeSecurityGroupsRequest extends $tea.Model {
14897
15109
  securityGroupIds: 'SecurityGroupIds',
14898
15110
  securityGroupName: 'SecurityGroupName',
14899
15111
  securityGroupType: 'SecurityGroupType',
15112
+ serviceManaged: 'ServiceManaged',
14900
15113
  tag: 'Tag',
14901
15114
  vpcId: 'VpcId',
14902
15115
  };
@@ -14921,6 +15134,7 @@ class DescribeSecurityGroupsRequest extends $tea.Model {
14921
15134
  securityGroupIds: 'string',
14922
15135
  securityGroupName: 'string',
14923
15136
  securityGroupType: 'string',
15137
+ serviceManaged: 'boolean',
14924
15138
  tag: { 'type': 'array', 'itemType': DescribeSecurityGroupsRequestTag },
14925
15139
  vpcId: 'string',
14926
15140
  };
@@ -14984,7 +15198,9 @@ class DescribeSendFileResultsRequest extends $tea.Model {
14984
15198
  instanceId: 'InstanceId',
14985
15199
  invocationStatus: 'InvocationStatus',
14986
15200
  invokeId: 'InvokeId',
15201
+ maxResults: 'MaxResults',
14987
15202
  name: 'Name',
15203
+ nextToken: 'NextToken',
14988
15204
  ownerAccount: 'OwnerAccount',
14989
15205
  ownerId: 'OwnerId',
14990
15206
  pageNumber: 'PageNumber',
@@ -15001,7 +15217,9 @@ class DescribeSendFileResultsRequest extends $tea.Model {
15001
15217
  instanceId: 'string',
15002
15218
  invocationStatus: 'string',
15003
15219
  invokeId: 'string',
15220
+ maxResults: 'number',
15004
15221
  name: 'string',
15222
+ nextToken: 'string',
15005
15223
  ownerAccount: 'string',
15006
15224
  ownerId: 'number',
15007
15225
  pageNumber: 'number',
@@ -15022,6 +15240,7 @@ class DescribeSendFileResultsResponseBody extends $tea.Model {
15022
15240
  static names() {
15023
15241
  return {
15024
15242
  invocations: 'Invocations',
15243
+ nextToken: 'NextToken',
15025
15244
  pageNumber: 'PageNumber',
15026
15245
  pageSize: 'PageSize',
15027
15246
  requestId: 'RequestId',
@@ -15031,6 +15250,7 @@ class DescribeSendFileResultsResponseBody extends $tea.Model {
15031
15250
  static types() {
15032
15251
  return {
15033
15252
  invocations: DescribeSendFileResultsResponseBodyInvocations,
15253
+ nextToken: 'string',
15034
15254
  pageNumber: 'number',
15035
15255
  pageSize: 'number',
15036
15256
  requestId: 'string',
@@ -17883,76 +18103,6 @@ class ImportKeyPairResponse extends $tea.Model {
17883
18103
  }
17884
18104
  }
17885
18105
  exports.ImportKeyPairResponse = ImportKeyPairResponse;
17886
- class ImportSnapshotRequest extends $tea.Model {
17887
- constructor(map) {
17888
- super(map);
17889
- }
17890
- static names() {
17891
- return {
17892
- ossBucket: 'OssBucket',
17893
- ossObject: 'OssObject',
17894
- ownerId: 'OwnerId',
17895
- regionId: 'RegionId',
17896
- resourceOwnerAccount: 'ResourceOwnerAccount',
17897
- resourceOwnerId: 'ResourceOwnerId',
17898
- roleName: 'RoleName',
17899
- snapshotName: 'SnapshotName',
17900
- };
17901
- }
17902
- static types() {
17903
- return {
17904
- ossBucket: 'string',
17905
- ossObject: 'string',
17906
- ownerId: 'number',
17907
- regionId: 'string',
17908
- resourceOwnerAccount: 'string',
17909
- resourceOwnerId: 'number',
17910
- roleName: 'string',
17911
- snapshotName: 'string',
17912
- };
17913
- }
17914
- }
17915
- exports.ImportSnapshotRequest = ImportSnapshotRequest;
17916
- class ImportSnapshotResponseBody extends $tea.Model {
17917
- constructor(map) {
17918
- super(map);
17919
- }
17920
- static names() {
17921
- return {
17922
- requestId: 'RequestId',
17923
- snapshotId: 'SnapshotId',
17924
- taskId: 'TaskId',
17925
- };
17926
- }
17927
- static types() {
17928
- return {
17929
- requestId: 'string',
17930
- snapshotId: 'string',
17931
- taskId: 'string',
17932
- };
17933
- }
17934
- }
17935
- exports.ImportSnapshotResponseBody = ImportSnapshotResponseBody;
17936
- class ImportSnapshotResponse extends $tea.Model {
17937
- constructor(map) {
17938
- super(map);
17939
- }
17940
- static names() {
17941
- return {
17942
- headers: 'headers',
17943
- statusCode: 'statusCode',
17944
- body: 'body',
17945
- };
17946
- }
17947
- static types() {
17948
- return {
17949
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
17950
- statusCode: 'number',
17951
- body: ImportSnapshotResponseBody,
17952
- };
17953
- }
17954
- }
17955
- exports.ImportSnapshotResponse = ImportSnapshotResponse;
17956
18106
  class InstallCloudAssistantRequest extends $tea.Model {
17957
18107
  constructor(map) {
17958
18108
  super(map);
@@ -18035,6 +18185,7 @@ class InvokeCommandRequest extends $tea.Model {
18035
18185
  resourceGroupId: 'ResourceGroupId',
18036
18186
  resourceOwnerAccount: 'ResourceOwnerAccount',
18037
18187
  resourceOwnerId: 'ResourceOwnerId',
18188
+ resourceTag: 'ResourceTag',
18038
18189
  tag: 'Tag',
18039
18190
  timed: 'Timed',
18040
18191
  timeout: 'Timeout',
@@ -18058,6 +18209,7 @@ class InvokeCommandRequest extends $tea.Model {
18058
18209
  resourceGroupId: 'string',
18059
18210
  resourceOwnerAccount: 'string',
18060
18211
  resourceOwnerId: 'number',
18212
+ resourceTag: { 'type': 'array', 'itemType': InvokeCommandRequestResourceTag },
18061
18213
  tag: { 'type': 'array', 'itemType': InvokeCommandRequestTag },
18062
18214
  timed: 'boolean',
18063
18215
  timeout: 'number',
@@ -18087,6 +18239,7 @@ class InvokeCommandShrinkRequest extends $tea.Model {
18087
18239
  resourceGroupId: 'ResourceGroupId',
18088
18240
  resourceOwnerAccount: 'ResourceOwnerAccount',
18089
18241
  resourceOwnerId: 'ResourceOwnerId',
18242
+ resourceTag: 'ResourceTag',
18090
18243
  tag: 'Tag',
18091
18244
  timed: 'Timed',
18092
18245
  timeout: 'Timeout',
@@ -18110,6 +18263,7 @@ class InvokeCommandShrinkRequest extends $tea.Model {
18110
18263
  resourceGroupId: 'string',
18111
18264
  resourceOwnerAccount: 'string',
18112
18265
  resourceOwnerId: 'number',
18266
+ resourceTag: { 'type': 'array', 'itemType': InvokeCommandShrinkRequestResourceTag },
18113
18267
  tag: { 'type': 'array', 'itemType': InvokeCommandShrinkRequestTag },
18114
18268
  timed: 'boolean',
18115
18269
  timeout: 'number',
@@ -18362,7 +18516,9 @@ class ListPluginStatusRequest extends $tea.Model {
18362
18516
  static names() {
18363
18517
  return {
18364
18518
  instanceId: 'InstanceId',
18519
+ maxResults: 'MaxResults',
18365
18520
  name: 'Name',
18521
+ nextToken: 'NextToken',
18366
18522
  ownerAccount: 'OwnerAccount',
18367
18523
  ownerId: 'OwnerId',
18368
18524
  pageNumber: 'PageNumber',
@@ -18375,7 +18531,9 @@ class ListPluginStatusRequest extends $tea.Model {
18375
18531
  static types() {
18376
18532
  return {
18377
18533
  instanceId: { 'type': 'array', 'itemType': 'string' },
18534
+ maxResults: 'number',
18378
18535
  name: 'string',
18536
+ nextToken: 'string',
18379
18537
  ownerAccount: 'string',
18380
18538
  ownerId: 'number',
18381
18539
  pageNumber: 'number',
@@ -18394,6 +18552,7 @@ class ListPluginStatusResponseBody extends $tea.Model {
18394
18552
  static names() {
18395
18553
  return {
18396
18554
  instancePluginStatusSet: 'InstancePluginStatusSet',
18555
+ nextToken: 'NextToken',
18397
18556
  pageNumber: 'PageNumber',
18398
18557
  pageSize: 'PageSize',
18399
18558
  requestId: 'RequestId',
@@ -18403,6 +18562,7 @@ class ListPluginStatusResponseBody extends $tea.Model {
18403
18562
  static types() {
18404
18563
  return {
18405
18564
  instancePluginStatusSet: ListPluginStatusResponseBodyInstancePluginStatusSet,
18565
+ nextToken: 'string',
18406
18566
  pageNumber: 'number',
18407
18567
  pageSize: 'number',
18408
18568
  requestId: 'string',
@@ -20423,6 +20583,7 @@ class ModifyInstanceAttributeRequest extends $tea.Model {
20423
20583
  }
20424
20584
  static names() {
20425
20585
  return {
20586
+ cpuOptions: 'CpuOptions',
20426
20587
  creditSpecification: 'CreditSpecification',
20427
20588
  deletionProtection: 'DeletionProtection',
20428
20589
  description: 'Description',
@@ -20444,6 +20605,7 @@ class ModifyInstanceAttributeRequest extends $tea.Model {
20444
20605
  }
20445
20606
  static types() {
20446
20607
  return {
20608
+ cpuOptions: ModifyInstanceAttributeRequestCpuOptions,
20447
20609
  creditSpecification: 'string',
20448
20610
  deletionProtection: 'boolean',
20449
20611
  description: 'string',
@@ -21027,6 +21189,7 @@ class ModifyInstanceSpecRequest extends $tea.Model {
21027
21189
  async: 'Async',
21028
21190
  clientToken: 'ClientToken',
21029
21191
  disk: 'Disk',
21192
+ dryRun: 'DryRun',
21030
21193
  instanceId: 'InstanceId',
21031
21194
  instanceType: 'InstanceType',
21032
21195
  internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
@@ -21046,6 +21209,7 @@ class ModifyInstanceSpecRequest extends $tea.Model {
21046
21209
  async: 'boolean',
21047
21210
  clientToken: 'string',
21048
21211
  disk: { 'type': 'array', 'itemType': ModifyInstanceSpecRequestDisk },
21212
+ dryRun: 'boolean',
21049
21213
  instanceId: 'string',
21050
21214
  instanceType: 'string',
21051
21215
  internetMaxBandwidthIn: 'number',
@@ -21227,6 +21391,120 @@ class ModifyInstanceVpcAttributeResponse extends $tea.Model {
21227
21391
  }
21228
21392
  }
21229
21393
  exports.ModifyInstanceVpcAttributeResponse = ModifyInstanceVpcAttributeResponse;
21394
+ class ModifyInvocationAttributeRequest extends $tea.Model {
21395
+ constructor(map) {
21396
+ super(map);
21397
+ }
21398
+ static names() {
21399
+ return {
21400
+ commandContent: 'CommandContent',
21401
+ contentEncoding: 'ContentEncoding',
21402
+ enableParameter: 'EnableParameter',
21403
+ frequency: 'Frequency',
21404
+ instanceId: 'InstanceId',
21405
+ invokeId: 'InvokeId',
21406
+ ownerAccount: 'OwnerAccount',
21407
+ ownerId: 'OwnerId',
21408
+ parameters: 'Parameters',
21409
+ regionId: 'RegionId',
21410
+ resourceOwnerAccount: 'ResourceOwnerAccount',
21411
+ resourceOwnerId: 'ResourceOwnerId',
21412
+ };
21413
+ }
21414
+ static types() {
21415
+ return {
21416
+ commandContent: 'string',
21417
+ contentEncoding: 'string',
21418
+ enableParameter: 'boolean',
21419
+ frequency: 'string',
21420
+ instanceId: { 'type': 'array', 'itemType': 'string' },
21421
+ invokeId: 'string',
21422
+ ownerAccount: 'string',
21423
+ ownerId: 'number',
21424
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
21425
+ regionId: 'string',
21426
+ resourceOwnerAccount: 'string',
21427
+ resourceOwnerId: 'number',
21428
+ };
21429
+ }
21430
+ }
21431
+ exports.ModifyInvocationAttributeRequest = ModifyInvocationAttributeRequest;
21432
+ class ModifyInvocationAttributeShrinkRequest extends $tea.Model {
21433
+ constructor(map) {
21434
+ super(map);
21435
+ }
21436
+ static names() {
21437
+ return {
21438
+ commandContent: 'CommandContent',
21439
+ contentEncoding: 'ContentEncoding',
21440
+ enableParameter: 'EnableParameter',
21441
+ frequency: 'Frequency',
21442
+ instanceId: 'InstanceId',
21443
+ invokeId: 'InvokeId',
21444
+ ownerAccount: 'OwnerAccount',
21445
+ ownerId: 'OwnerId',
21446
+ parametersShrink: 'Parameters',
21447
+ regionId: 'RegionId',
21448
+ resourceOwnerAccount: 'ResourceOwnerAccount',
21449
+ resourceOwnerId: 'ResourceOwnerId',
21450
+ };
21451
+ }
21452
+ static types() {
21453
+ return {
21454
+ commandContent: 'string',
21455
+ contentEncoding: 'string',
21456
+ enableParameter: 'boolean',
21457
+ frequency: 'string',
21458
+ instanceId: { 'type': 'array', 'itemType': 'string' },
21459
+ invokeId: 'string',
21460
+ ownerAccount: 'string',
21461
+ ownerId: 'number',
21462
+ parametersShrink: 'string',
21463
+ regionId: 'string',
21464
+ resourceOwnerAccount: 'string',
21465
+ resourceOwnerId: 'number',
21466
+ };
21467
+ }
21468
+ }
21469
+ exports.ModifyInvocationAttributeShrinkRequest = ModifyInvocationAttributeShrinkRequest;
21470
+ class ModifyInvocationAttributeResponseBody extends $tea.Model {
21471
+ constructor(map) {
21472
+ super(map);
21473
+ }
21474
+ static names() {
21475
+ return {
21476
+ commandId: 'CommandId',
21477
+ requestId: 'RequestId',
21478
+ };
21479
+ }
21480
+ static types() {
21481
+ return {
21482
+ commandId: 'string',
21483
+ requestId: 'string',
21484
+ };
21485
+ }
21486
+ }
21487
+ exports.ModifyInvocationAttributeResponseBody = ModifyInvocationAttributeResponseBody;
21488
+ class ModifyInvocationAttributeResponse extends $tea.Model {
21489
+ constructor(map) {
21490
+ super(map);
21491
+ }
21492
+ static names() {
21493
+ return {
21494
+ headers: 'headers',
21495
+ statusCode: 'statusCode',
21496
+ body: 'body',
21497
+ };
21498
+ }
21499
+ static types() {
21500
+ return {
21501
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21502
+ statusCode: 'number',
21503
+ body: ModifyInvocationAttributeResponseBody,
21504
+ };
21505
+ }
21506
+ }
21507
+ exports.ModifyInvocationAttributeResponse = ModifyInvocationAttributeResponse;
21230
21508
  class ModifyLaunchTemplateDefaultVersionRequest extends $tea.Model {
21231
21509
  constructor(map) {
21232
21510
  super(map);
@@ -21377,7 +21655,9 @@ class ModifyNetworkInterfaceAttributeRequest extends $tea.Model {
21377
21655
  regionId: 'RegionId',
21378
21656
  resourceOwnerAccount: 'ResourceOwnerAccount',
21379
21657
  resourceOwnerId: 'ResourceOwnerId',
21658
+ rxQueueSize: 'RxQueueSize',
21380
21659
  securityGroupId: 'SecurityGroupId',
21660
+ txQueueSize: 'TxQueueSize',
21381
21661
  };
21382
21662
  }
21383
21663
  static types() {
@@ -21392,7 +21672,9 @@ class ModifyNetworkInterfaceAttributeRequest extends $tea.Model {
21392
21672
  regionId: 'string',
21393
21673
  resourceOwnerAccount: 'string',
21394
21674
  resourceOwnerId: 'number',
21675
+ rxQueueSize: 'number',
21395
21676
  securityGroupId: { 'type': 'array', 'itemType': 'string' },
21677
+ txQueueSize: 'number',
21396
21678
  };
21397
21679
  }
21398
21680
  }
@@ -24772,6 +25054,7 @@ class RunCommandRequest extends $tea.Model {
24772
25054
  resourceGroupId: 'ResourceGroupId',
24773
25055
  resourceOwnerAccount: 'ResourceOwnerAccount',
24774
25056
  resourceOwnerId: 'ResourceOwnerId',
25057
+ resourceTag: 'ResourceTag',
24775
25058
  tag: 'Tag',
24776
25059
  timed: 'Timed',
24777
25060
  timeout: 'Timeout',
@@ -24802,6 +25085,7 @@ class RunCommandRequest extends $tea.Model {
24802
25085
  resourceGroupId: 'string',
24803
25086
  resourceOwnerAccount: 'string',
24804
25087
  resourceOwnerId: 'number',
25088
+ resourceTag: { 'type': 'array', 'itemType': RunCommandRequestResourceTag },
24805
25089
  tag: { 'type': 'array', 'itemType': RunCommandRequestTag },
24806
25090
  timed: 'boolean',
24807
25091
  timeout: 'number',
@@ -24838,6 +25122,7 @@ class RunCommandShrinkRequest extends $tea.Model {
24838
25122
  resourceGroupId: 'ResourceGroupId',
24839
25123
  resourceOwnerAccount: 'ResourceOwnerAccount',
24840
25124
  resourceOwnerId: 'ResourceOwnerId',
25125
+ resourceTag: 'ResourceTag',
24841
25126
  tag: 'Tag',
24842
25127
  timed: 'Timed',
24843
25128
  timeout: 'Timeout',
@@ -24868,6 +25153,7 @@ class RunCommandShrinkRequest extends $tea.Model {
24868
25153
  resourceGroupId: 'string',
24869
25154
  resourceOwnerAccount: 'string',
24870
25155
  resourceOwnerId: 'number',
25156
+ resourceTag: { 'type': 'array', 'itemType': RunCommandShrinkRequestResourceTag },
24871
25157
  tag: { 'type': 'array', 'itemType': RunCommandShrinkRequestTag },
24872
25158
  timed: 'boolean',
24873
25159
  timeout: 'number',
@@ -26802,6 +27088,7 @@ class CreateAutoProvisioningGroupRequestLaunchConfiguration extends $tea.Model {
26802
27088
  deploymentSetId: 'DeploymentSetId',
26803
27089
  hostName: 'HostName',
26804
27090
  hostNames: 'HostNames',
27091
+ imageFamily: 'ImageFamily',
26805
27092
  imageId: 'ImageId',
26806
27093
  instanceDescription: 'InstanceDescription',
26807
27094
  instanceName: 'InstanceName',
@@ -26836,6 +27123,7 @@ class CreateAutoProvisioningGroupRequestLaunchConfiguration extends $tea.Model {
26836
27123
  deploymentSetId: 'string',
26837
27124
  hostName: 'string',
26838
27125
  hostNames: { 'type': 'array', 'itemType': 'string' },
27126
+ imageFamily: 'string',
26839
27127
  imageId: 'string',
26840
27128
  instanceDescription: 'string',
26841
27129
  instanceName: 'string',
@@ -28063,6 +28351,22 @@ class DeleteActivationResponseBodyActivation extends $tea.Model {
28063
28351
  }
28064
28352
  }
28065
28353
  exports.DeleteActivationResponseBodyActivation = DeleteActivationResponseBodyActivation;
28354
+ class DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers extends $tea.Model {
28355
+ constructor(map) {
28356
+ super(map);
28357
+ }
28358
+ static names() {
28359
+ return {
28360
+ versionNumbers: 'versionNumbers',
28361
+ };
28362
+ }
28363
+ static types() {
28364
+ return {
28365
+ versionNumbers: { 'type': 'array', 'itemType': 'number' },
28366
+ };
28367
+ }
28368
+ }
28369
+ exports.DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers = DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers;
28066
28370
  class DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion extends $tea.Model {
28067
28371
  constructor(map) {
28068
28372
  super(map);
@@ -28206,6 +28510,7 @@ class DeregisterManagedInstanceResponseBodyInstance extends $tea.Model {
28206
28510
  osType: 'OsType',
28207
28511
  osVersion: 'OsVersion',
28208
28512
  registrationTime: 'RegistrationTime',
28513
+ resourceGroupId: 'ResourceGroupId',
28209
28514
  };
28210
28515
  }
28211
28516
  static types() {
@@ -28223,6 +28528,7 @@ class DeregisterManagedInstanceResponseBodyInstance extends $tea.Model {
28223
28528
  osType: 'string',
28224
28529
  osVersion: 'string',
28225
28530
  registrationTime: 'string',
28531
+ resourceGroupId: 'string',
28226
28532
  };
28227
28533
  }
28228
28534
  }
@@ -28420,6 +28726,7 @@ class DescribeActivationsResponseBodyActivationList extends $tea.Model {
28420
28726
  instanceName: 'InstanceName',
28421
28727
  ipAddressRange: 'IpAddressRange',
28422
28728
  registeredCount: 'RegisteredCount',
28729
+ resourceGroupId: 'ResourceGroupId',
28423
28730
  tags: 'Tags',
28424
28731
  timeToLiveInHours: 'TimeToLiveInHours',
28425
28732
  };
@@ -28435,6 +28742,7 @@ class DescribeActivationsResponseBodyActivationList extends $tea.Model {
28435
28742
  instanceName: 'string',
28436
28743
  ipAddressRange: 'string',
28437
28744
  registeredCount: 'number',
28745
+ resourceGroupId: 'string',
28438
28746
  tags: { 'type': 'array', 'itemType': DescribeActivationsResponseBodyActivationListTags },
28439
28747
  timeToLiveInHours: 'number',
28440
28748
  };
@@ -28684,6 +28992,7 @@ class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvis
28684
28992
  maxSpotPrice: 'MaxSpotPrice',
28685
28993
  payAsYouGoOptions: 'PayAsYouGoOptions',
28686
28994
  regionId: 'RegionId',
28995
+ resourceGroupId: 'ResourceGroupId',
28687
28996
  spotOptions: 'SpotOptions',
28688
28997
  state: 'State',
28689
28998
  status: 'Status',
@@ -28707,6 +29016,7 @@ class DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvis
28707
29016
  maxSpotPrice: 'number',
28708
29017
  payAsYouGoOptions: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions,
28709
29018
  regionId: 'string',
29019
+ resourceGroupId: 'string',
28710
29020
  spotOptions: DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions,
28711
29021
  state: 'string',
28712
29022
  status: 'string',
@@ -28807,6 +29117,7 @@ class DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPo
28807
29117
  tags: 'Tags',
28808
29118
  targetCopyRegions: 'TargetCopyRegions',
28809
29119
  timePoints: 'TimePoints',
29120
+ type: 'Type',
28810
29121
  volumeNums: 'VolumeNums',
28811
29122
  };
28812
29123
  }
@@ -28826,6 +29137,7 @@ class DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPo
28826
29137
  tags: DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags,
28827
29138
  targetCopyRegions: 'string',
28828
29139
  timePoints: 'string',
29140
+ type: 'string',
28829
29141
  volumeNums: 'number',
28830
29142
  };
28831
29143
  }
@@ -29177,12 +29489,50 @@ class DescribeCapacityReservationsRequestTag extends $tea.Model {
29177
29489
  }
29178
29490
  }
29179
29491
  exports.DescribeCapacityReservationsRequestTag = DescribeCapacityReservationsRequestTag;
29492
+ class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage extends $tea.Model {
29493
+ constructor(map) {
29494
+ super(map);
29495
+ }
29496
+ static names() {
29497
+ return {
29498
+ accountId: 'AccountId',
29499
+ serviceName: 'ServiceName',
29500
+ usedAmount: 'UsedAmount',
29501
+ };
29502
+ }
29503
+ static types() {
29504
+ return {
29505
+ accountId: 'string',
29506
+ serviceName: 'string',
29507
+ usedAmount: 'number',
29508
+ };
29509
+ }
29510
+ }
29511
+ exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage;
29512
+ class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages extends $tea.Model {
29513
+ constructor(map) {
29514
+ super(map);
29515
+ }
29516
+ static names() {
29517
+ return {
29518
+ capacityReservationUsage: 'CapacityReservationUsage',
29519
+ };
29520
+ }
29521
+ static types() {
29522
+ return {
29523
+ capacityReservationUsage: { 'type': 'array', 'itemType': DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage },
29524
+ };
29525
+ }
29526
+ }
29527
+ exports.DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages = DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages;
29180
29528
  class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource extends $tea.Model {
29181
29529
  constructor(map) {
29182
29530
  super(map);
29183
29531
  }
29184
29532
  static names() {
29185
29533
  return {
29534
+ availableAmount: 'AvailableAmount',
29535
+ capacityReservationUsages: 'CapacityReservationUsages',
29186
29536
  instanceType: 'InstanceType',
29187
29537
  totalAmount: 'TotalAmount',
29188
29538
  usedAmount: 'UsedAmount',
@@ -29191,6 +29541,8 @@ class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityRese
29191
29541
  }
29192
29542
  static types() {
29193
29543
  return {
29544
+ availableAmount: 'number',
29545
+ capacityReservationUsages: DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages,
29194
29546
  instanceType: 'string',
29195
29547
  totalAmount: 'number',
29196
29548
  usedAmount: 'number',
@@ -29256,6 +29608,7 @@ class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityRese
29256
29608
  static names() {
29257
29609
  return {
29258
29610
  allocatedResources: 'AllocatedResources',
29611
+ capacityReservationOwnerId: 'CapacityReservationOwnerId',
29259
29612
  description: 'Description',
29260
29613
  endTime: 'EndTime',
29261
29614
  endTimeType: 'EndTimeType',
@@ -29278,6 +29631,7 @@ class DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityRese
29278
29631
  static types() {
29279
29632
  return {
29280
29633
  allocatedResources: DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources,
29634
+ capacityReservationOwnerId: 'string',
29281
29635
  description: 'string',
29282
29636
  endTime: 'string',
29283
29637
  endTimeType: 'string',
@@ -29571,6 +29925,7 @@ class DescribeCommandsResponseBodyCommandsCommand extends $tea.Model {
29571
29925
  parameterDefinitions: 'ParameterDefinitions',
29572
29926
  parameterNames: 'ParameterNames',
29573
29927
  provider: 'Provider',
29928
+ resourceGroupId: 'ResourceGroupId',
29574
29929
  tags: 'Tags',
29575
29930
  timeout: 'Timeout',
29576
29931
  type: 'Type',
@@ -29592,6 +29947,7 @@ class DescribeCommandsResponseBodyCommandsCommand extends $tea.Model {
29592
29947
  parameterDefinitions: DescribeCommandsResponseBodyCommandsCommandParameterDefinitions,
29593
29948
  parameterNames: DescribeCommandsResponseBodyCommandsCommandParameterNames,
29594
29949
  provider: 'string',
29950
+ resourceGroupId: 'string',
29595
29951
  tags: DescribeCommandsResponseBodyCommandsCommandTags,
29596
29952
  timeout: 'number',
29597
29953
  type: 'string',
@@ -31081,6 +31437,8 @@ class DescribeDisksResponseBodyDisksDisk extends $tea.Model {
31081
31437
  storageSetPartitionNumber: 'StorageSetPartitionNumber',
31082
31438
  tags: 'Tags',
31083
31439
  throughput: 'Throughput',
31440
+ throughputRead: 'ThroughputRead',
31441
+ throughputWrite: 'ThroughputWrite',
31084
31442
  type: 'Type',
31085
31443
  zoneId: 'ZoneId',
31086
31444
  };
@@ -31131,6 +31489,8 @@ class DescribeDisksResponseBodyDisksDisk extends $tea.Model {
31131
31489
  storageSetPartitionNumber: 'number',
31132
31490
  tags: DescribeDisksResponseBodyDisksDiskTags,
31133
31491
  throughput: 'number',
31492
+ throughputRead: 'number',
31493
+ throughputWrite: 'number',
31134
31494
  type: 'string',
31135
31495
  zoneId: 'string',
31136
31496
  };
@@ -33888,6 +34248,7 @@ class DescribeInstancesResponseBodyInstancesInstanceCpuOptions extends $tea.Mode
33888
34248
  coreCount: 'CoreCount',
33889
34249
  numa: 'Numa',
33890
34250
  threadsPerCore: 'ThreadsPerCore',
34251
+ topologyType: 'TopologyType',
33891
34252
  };
33892
34253
  }
33893
34254
  static types() {
@@ -33895,6 +34256,7 @@ class DescribeInstancesResponseBodyInstancesInstanceCpuOptions extends $tea.Mode
33895
34256
  coreCount: 'number',
33896
34257
  numa: 'string',
33897
34258
  threadsPerCore: 'number',
34259
+ topologyType: 'string',
33898
34260
  };
33899
34261
  }
33900
34262
  }
@@ -34437,6 +34799,7 @@ class DescribeInstancesResponseBodyInstancesInstance extends $tea.Model {
34437
34799
  securityGroupIds: 'SecurityGroupIds',
34438
34800
  serialNumber: 'SerialNumber',
34439
34801
  spotDuration: 'SpotDuration',
34802
+ spotInterruptionBehavior: 'SpotInterruptionBehavior',
34440
34803
  spotPriceLimit: 'SpotPriceLimit',
34441
34804
  spotStrategy: 'SpotStrategy',
34442
34805
  startTime: 'StartTime',
@@ -34504,6 +34867,7 @@ class DescribeInstancesResponseBodyInstancesInstance extends $tea.Model {
34504
34867
  securityGroupIds: DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds,
34505
34868
  serialNumber: 'string',
34506
34869
  spotDuration: 'number',
34870
+ spotInterruptionBehavior: 'string',
34507
34871
  spotPriceLimit: 'number',
34508
34872
  spotStrategy: 'string',
34509
34873
  startTime: 'string',
@@ -34910,6 +35274,7 @@ class DescribeInvocationResultsResponseBodyInvocation extends $tea.Model {
34910
35274
  static names() {
34911
35275
  return {
34912
35276
  invocationResults: 'InvocationResults',
35277
+ nextToken: 'NextToken',
34913
35278
  pageNumber: 'PageNumber',
34914
35279
  pageSize: 'PageSize',
34915
35280
  totalCount: 'TotalCount',
@@ -34918,6 +35283,7 @@ class DescribeInvocationResultsResponseBodyInvocation extends $tea.Model {
34918
35283
  static types() {
34919
35284
  return {
34920
35285
  invocationResults: DescribeInvocationResultsResponseBodyInvocationInvocationResults,
35286
+ nextToken: 'string',
34921
35287
  pageNumber: 'number',
34922
35288
  pageSize: 'number',
34923
35289
  totalCount: 'number',
@@ -35168,6 +35534,7 @@ class DescribeKeyPairsResponseBodyKeyPairsKeyPair extends $tea.Model {
35168
35534
  creationTime: 'CreationTime',
35169
35535
  keyPairFingerPrint: 'KeyPairFingerPrint',
35170
35536
  keyPairName: 'KeyPairName',
35537
+ publicKey: 'PublicKey',
35171
35538
  resourceGroupId: 'ResourceGroupId',
35172
35539
  tags: 'Tags',
35173
35540
  };
@@ -35177,6 +35544,7 @@ class DescribeKeyPairsResponseBodyKeyPairsKeyPair extends $tea.Model {
35177
35544
  creationTime: 'string',
35178
35545
  keyPairFingerPrint: 'string',
35179
35546
  keyPairName: 'string',
35547
+ publicKey: 'string',
35180
35548
  resourceGroupId: 'string',
35181
35549
  tags: DescribeKeyPairsResponseBodyKeyPairsKeyPairTags,
35182
35550
  };
@@ -35695,6 +36063,7 @@ class DescribeManagedInstancesResponseBodyInstances extends $tea.Model {
35695
36063
  osType: 'OsType',
35696
36064
  osVersion: 'OsVersion',
35697
36065
  registrationTime: 'RegistrationTime',
36066
+ resourceGroupId: 'ResourceGroupId',
35698
36067
  tags: 'Tags',
35699
36068
  };
35700
36069
  }
@@ -35714,6 +36083,7 @@ class DescribeManagedInstancesResponseBodyInstances extends $tea.Model {
35714
36083
  osType: 'string',
35715
36084
  osVersion: 'string',
35716
36085
  registrationTime: 'string',
36086
+ resourceGroupId: 'string',
35717
36087
  tags: { 'type': 'array', 'itemType': DescribeManagedInstancesResponseBodyInstancesTags },
35718
36088
  };
35719
36089
  }
@@ -37959,6 +38329,64 @@ class DescribeRouterInterfacesResponseBodyRouterInterfaceSet extends $tea.Model
37959
38329
  }
37960
38330
  }
37961
38331
  exports.DescribeRouterInterfacesResponseBodyRouterInterfaceSet = DescribeRouterInterfacesResponseBodyRouterInterfaceSet;
38332
+ class DescribeSavingsPlanPriceResponseBodyPriceInfoPrice extends $tea.Model {
38333
+ constructor(map) {
38334
+ super(map);
38335
+ }
38336
+ static names() {
38337
+ return {
38338
+ currency: 'Currency',
38339
+ discountPrice: 'DiscountPrice',
38340
+ originalPrice: 'OriginalPrice',
38341
+ tradePrice: 'TradePrice',
38342
+ };
38343
+ }
38344
+ static types() {
38345
+ return {
38346
+ currency: 'string',
38347
+ discountPrice: 'number',
38348
+ originalPrice: 'number',
38349
+ tradePrice: 'number',
38350
+ };
38351
+ }
38352
+ }
38353
+ exports.DescribeSavingsPlanPriceResponseBodyPriceInfoPrice = DescribeSavingsPlanPriceResponseBodyPriceInfoPrice;
38354
+ class DescribeSavingsPlanPriceResponseBodyPriceInfoRules extends $tea.Model {
38355
+ constructor(map) {
38356
+ super(map);
38357
+ }
38358
+ static names() {
38359
+ return {
38360
+ description: 'Description',
38361
+ ruleId: 'RuleId',
38362
+ };
38363
+ }
38364
+ static types() {
38365
+ return {
38366
+ description: 'string',
38367
+ ruleId: 'string',
38368
+ };
38369
+ }
38370
+ }
38371
+ exports.DescribeSavingsPlanPriceResponseBodyPriceInfoRules = DescribeSavingsPlanPriceResponseBodyPriceInfoRules;
38372
+ class DescribeSavingsPlanPriceResponseBodyPriceInfo extends $tea.Model {
38373
+ constructor(map) {
38374
+ super(map);
38375
+ }
38376
+ static names() {
38377
+ return {
38378
+ price: 'Price',
38379
+ rules: 'Rules',
38380
+ };
38381
+ }
38382
+ static types() {
38383
+ return {
38384
+ price: DescribeSavingsPlanPriceResponseBodyPriceInfoPrice,
38385
+ rules: { 'type': 'array', 'itemType': DescribeSavingsPlanPriceResponseBodyPriceInfoRules },
38386
+ };
38387
+ }
38388
+ }
38389
+ exports.DescribeSavingsPlanPriceResponseBodyPriceInfo = DescribeSavingsPlanPriceResponseBodyPriceInfo;
37962
38390
  class DescribeSecurityGroupAttributeResponseBodyPermissionsPermission extends $tea.Model {
37963
38391
  constructor(map) {
37964
38392
  super(map);
@@ -38764,6 +39192,7 @@ class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
38764
39192
  lastModifiedTime: 'LastModifiedTime',
38765
39193
  productCode: 'ProductCode',
38766
39194
  progress: 'Progress',
39195
+ regionId: 'RegionId',
38767
39196
  remainTime: 'RemainTime',
38768
39197
  resourceGroupId: 'ResourceGroupId',
38769
39198
  retentionDays: 'RetentionDays',
@@ -38795,6 +39224,7 @@ class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
38795
39224
  lastModifiedTime: 'string',
38796
39225
  productCode: 'string',
38797
39226
  progress: 'string',
39227
+ regionId: 'string',
38798
39228
  remainTime: 'number',
38799
39229
  resourceGroupId: 'string',
38800
39230
  retentionDays: 'number',
@@ -40191,6 +40621,24 @@ class ImportKeyPairRequestTag extends $tea.Model {
40191
40621
  }
40192
40622
  }
40193
40623
  exports.ImportKeyPairRequestTag = ImportKeyPairRequestTag;
40624
+ class InvokeCommandRequestResourceTag extends $tea.Model {
40625
+ constructor(map) {
40626
+ super(map);
40627
+ }
40628
+ static names() {
40629
+ return {
40630
+ key: 'Key',
40631
+ value: 'Value',
40632
+ };
40633
+ }
40634
+ static types() {
40635
+ return {
40636
+ key: 'string',
40637
+ value: 'string',
40638
+ };
40639
+ }
40640
+ }
40641
+ exports.InvokeCommandRequestResourceTag = InvokeCommandRequestResourceTag;
40194
40642
  class InvokeCommandRequestTag extends $tea.Model {
40195
40643
  constructor(map) {
40196
40644
  super(map);
@@ -40209,6 +40657,24 @@ class InvokeCommandRequestTag extends $tea.Model {
40209
40657
  }
40210
40658
  }
40211
40659
  exports.InvokeCommandRequestTag = InvokeCommandRequestTag;
40660
+ class InvokeCommandShrinkRequestResourceTag extends $tea.Model {
40661
+ constructor(map) {
40662
+ super(map);
40663
+ }
40664
+ static names() {
40665
+ return {
40666
+ key: 'Key',
40667
+ value: 'Value',
40668
+ };
40669
+ }
40670
+ static types() {
40671
+ return {
40672
+ key: 'string',
40673
+ value: 'string',
40674
+ };
40675
+ }
40676
+ }
40677
+ exports.InvokeCommandShrinkRequestResourceTag = InvokeCommandShrinkRequestResourceTag;
40212
40678
  class InvokeCommandShrinkRequestTag extends $tea.Model {
40213
40679
  constructor(map) {
40214
40680
  super(map);
@@ -40543,6 +41009,22 @@ class ModifyInstanceAttachmentAttributesRequestPrivatePoolOptions extends $tea.M
40543
41009
  }
40544
41010
  }
40545
41011
  exports.ModifyInstanceAttachmentAttributesRequestPrivatePoolOptions = ModifyInstanceAttachmentAttributesRequestPrivatePoolOptions;
41012
+ class ModifyInstanceAttributeRequestCpuOptions extends $tea.Model {
41013
+ constructor(map) {
41014
+ super(map);
41015
+ }
41016
+ static names() {
41017
+ return {
41018
+ topologyType: 'TopologyType',
41019
+ };
41020
+ }
41021
+ static types() {
41022
+ return {
41023
+ topologyType: 'string',
41024
+ };
41025
+ }
41026
+ }
41027
+ exports.ModifyInstanceAttributeRequestCpuOptions = ModifyInstanceAttributeRequestCpuOptions;
40546
41028
  class ModifyInstanceAttributeRequestRemoteConnectionOptions extends $tea.Model {
40547
41029
  constructor(map) {
40548
41030
  super(map);
@@ -41171,6 +41653,24 @@ class RevokeSecurityGroupEgressRequestPermissions extends $tea.Model {
41171
41653
  }
41172
41654
  }
41173
41655
  exports.RevokeSecurityGroupEgressRequestPermissions = RevokeSecurityGroupEgressRequestPermissions;
41656
+ class RunCommandRequestResourceTag extends $tea.Model {
41657
+ constructor(map) {
41658
+ super(map);
41659
+ }
41660
+ static names() {
41661
+ return {
41662
+ key: 'Key',
41663
+ value: 'Value',
41664
+ };
41665
+ }
41666
+ static types() {
41667
+ return {
41668
+ key: 'string',
41669
+ value: 'string',
41670
+ };
41671
+ }
41672
+ }
41673
+ exports.RunCommandRequestResourceTag = RunCommandRequestResourceTag;
41174
41674
  class RunCommandRequestTag extends $tea.Model {
41175
41675
  constructor(map) {
41176
41676
  super(map);
@@ -41189,6 +41689,24 @@ class RunCommandRequestTag extends $tea.Model {
41189
41689
  }
41190
41690
  }
41191
41691
  exports.RunCommandRequestTag = RunCommandRequestTag;
41692
+ class RunCommandShrinkRequestResourceTag extends $tea.Model {
41693
+ constructor(map) {
41694
+ super(map);
41695
+ }
41696
+ static names() {
41697
+ return {
41698
+ key: 'Key',
41699
+ value: 'Value',
41700
+ };
41701
+ }
41702
+ static types() {
41703
+ return {
41704
+ key: 'string',
41705
+ value: 'string',
41706
+ };
41707
+ }
41708
+ }
41709
+ exports.RunCommandShrinkRequestResourceTag = RunCommandShrinkRequestResourceTag;
41192
41710
  class RunCommandShrinkRequestTag extends $tea.Model {
41193
41711
  constructor(map) {
41194
41712
  super(map);
@@ -41216,6 +41734,7 @@ class RunInstancesRequestCpuOptions extends $tea.Model {
41216
41734
  core: 'Core',
41217
41735
  numa: 'Numa',
41218
41736
  threadsPerCore: 'ThreadsPerCore',
41737
+ topologyType: 'TopologyType',
41219
41738
  };
41220
41739
  }
41221
41740
  static types() {
@@ -41223,6 +41742,7 @@ class RunInstancesRequestCpuOptions extends $tea.Model {
41223
41742
  core: 'number',
41224
41743
  numa: 'string',
41225
41744
  threadsPerCore: 'number',
41745
+ topologyType: 'string',
41226
41746
  };
41227
41747
  }
41228
41748
  }
@@ -41431,8 +41951,10 @@ class RunInstancesRequestNetworkInterface extends $tea.Model {
41431
41951
  primaryIpAddress: 'PrimaryIpAddress',
41432
41952
  queueNumber: 'QueueNumber',
41433
41953
  queuePairNumber: 'QueuePairNumber',
41954
+ rxQueueSize: 'RxQueueSize',
41434
41955
  securityGroupId: 'SecurityGroupId',
41435
41956
  securityGroupIds: 'SecurityGroupIds',
41957
+ txQueueSize: 'TxQueueSize',
41436
41958
  vSwitchId: 'VSwitchId',
41437
41959
  };
41438
41960
  }
@@ -41450,8 +41972,10 @@ class RunInstancesRequestNetworkInterface extends $tea.Model {
41450
41972
  primaryIpAddress: 'string',
41451
41973
  queueNumber: 'number',
41452
41974
  queuePairNumber: 'number',
41975
+ rxQueueSize: 'number',
41453
41976
  securityGroupId: 'string',
41454
41977
  securityGroupIds: { 'type': 'array', 'itemType': 'string' },
41978
+ txQueueSize: 'number',
41455
41979
  vSwitchId: 'string',
41456
41980
  };
41457
41981
  }
@@ -42886,18 +43410,17 @@ class Client extends openapi_client_1.default {
42886
43410
  return await this.attachNetworkInterfaceWithOptions(request, runtime);
42887
43411
  }
42888
43412
  /**
42889
- * In security group-related API documents, outbound traffic refers to the traffic that is sent by the source device and received at the destination device.
42890
- * When you call this operation, take note of the following items:
42891
- * * 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 of the [Limits](~~25412#SecurityGroupQuota1~~) topic.
42892
- * * The valid value of Priority ranges from 1 to 100. A smaller value specifies a higher priority.
42893
- * * If several security group rules have the same priority, drop rules take precedence.
43413
+ * Take note of the following items:
43414
+ * * The total number of outbound and inbound rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
43415
+ * * The valid values of Priority range from 1 to 100. A smaller value indicates a higher priority.
43416
+ * * When multiple security group rules have the same priority, drop rules take precedence.
42894
43417
  * * The source can be a CIDR block that is specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId. The source can also be Elastic Compute Service (ECS) instances in a security group that is specified by SourceGroupId.
42895
43418
  * * You cannot reference security groups as sources or destinations in the rules of advanced security groups.
42896
43419
  * * You can reference up to 20 security groups as sources or destinations in the rules of each basic security group.
42897
43420
  * * If the specified security group rule already exists in the security group, the call is successful but no security group rule is created.
42898
- * * The `Permissions.N` prefix is added to specific 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`.
43421
+ * * Parameters and their `Permissions.N`-prefixed counterparts cannot be specified at the same time. We recommend that you use the `Permissions.N`-prefixed parameters.
42899
43422
  * * 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.
42900
- * * Parameters used to determine 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:
43423
+ * * 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 NicType to intranet. For a security group of the classic network type, you can set NicType to either internet or intranet. Sample request:
42901
43424
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42902
43425
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42903
43426
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -42906,7 +43429,7 @@ class Client extends openapi_client_1.default {
42906
43429
  * &Permissions.1.NicType=intranet
42907
43430
  * &Permissions.1.Policy=Accept
42908
43431
  * &<Common request parameters>
42909
- * * Parameters used to determine 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. To manage access between security groups in the classic network, you can allow or deny access from another security group within the same region to your security group. The security group that is allowed to access your security group can belong to your Alibaba Cloud account or another Alibaba Cloud account that is specified by SourceGroupOwnerAccount. To manage access between security groups in VPCs, you can allow or deny access from another security group within the same VPC to your security group. Sample request:
43432
+ * * Parameters used to determine 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 NicType to intranet. For 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 SourceGroupOwnerAccount. For 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:
42910
43433
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42911
43434
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42912
43435
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -42916,7 +43439,7 @@ class Client extends openapi_client_1.default {
42916
43439
  * &Permissions.1.NicType=intranet
42917
43440
  * &Permissions.1.Policy=Drop
42918
43441
  * &<Common request parameters>
42919
- * * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourcePrefixListId. If you specify this group of parameters, prefix lists support only security groups in VPCs. You must set NicType to intranet. Sample request:
43442
+ * * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourcePrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
42920
43443
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
42921
43444
  * &SecurityGroupId=sg-bp67acfmxazb4p****
42922
43445
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -42926,7 +43449,7 @@ class Client extends openapi_client_1.default {
42926
43449
  * &Permissions.1.NicType=intranet
42927
43450
  * &Permissions.1.Policy=Drop
42928
43451
  * &<Common request parameters>
42929
- * * For examples on how to configure security group rules, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
43452
+ * * For information about examples on security group rule settings, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
42930
43453
  *
42931
43454
  * @param request AuthorizeSecurityGroupRequest
42932
43455
  * @param runtime runtime options for this request RuntimeOptions
@@ -43033,18 +43556,17 @@ class Client extends openapi_client_1.default {
43033
43556
  return $tea.cast(await this.callApi(params, req, runtime), new AuthorizeSecurityGroupResponse({}));
43034
43557
  }
43035
43558
  /**
43036
- * In security group-related API documents, outbound traffic refers to the traffic that is sent by the source device and received at the destination device.
43037
- * When you call this operation, take note of the following items:
43038
- * * 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 of the [Limits](~~25412#SecurityGroupQuota1~~) topic.
43039
- * * The valid value of Priority ranges from 1 to 100. A smaller value specifies a higher priority.
43040
- * * If several security group rules have the same priority, drop rules take precedence.
43559
+ * Take note of the following items:
43560
+ * * The total number of outbound and inbound rules in each security group cannot exceed 200. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~).
43561
+ * * The valid values of Priority range from 1 to 100. A smaller value indicates a higher priority.
43562
+ * * When multiple security group rules have the same priority, drop rules take precedence.
43041
43563
  * * The source can be a CIDR block that is specified by SourceCidrIp, Ipv6SourceCidrIp, or SourcePrefixListId. The source can also be Elastic Compute Service (ECS) instances in a security group that is specified by SourceGroupId.
43042
43564
  * * You cannot reference security groups as sources or destinations in the rules of advanced security groups.
43043
43565
  * * You can reference up to 20 security groups as sources or destinations in the rules of each basic security group.
43044
43566
  * * If the specified security group rule already exists in the security group, the call is successful but no security group rule is created.
43045
- * * The `Permissions.N` prefix is added to specific 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`.
43567
+ * * Parameters and their `Permissions.N`-prefixed counterparts cannot be specified at the same time. We recommend that you use the `Permissions.N`-prefixed parameters.
43046
43568
  * * 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.
43047
- * * Parameters used to determine 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:
43569
+ * * 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 NicType to intranet. For a security group of the classic network type, you can set NicType to either internet or intranet. Sample request:
43048
43570
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
43049
43571
  * &SecurityGroupId=sg-bp67acfmxazb4p****
43050
43572
  * &Permissions.1.SourceCidrIp=10.0.0.0/8
@@ -43053,7 +43575,7 @@ class Client extends openapi_client_1.default {
43053
43575
  * &Permissions.1.NicType=intranet
43054
43576
  * &Permissions.1.Policy=Accept
43055
43577
  * &<Common request parameters>
43056
- * * Parameters used to determine 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. To manage access between security groups in the classic network, you can allow or deny access from another security group within the same region to your security group. The security group that is allowed to access your security group can belong to your Alibaba Cloud account or another Alibaba Cloud account that is specified by SourceGroupOwnerAccount. To manage access between security groups in VPCs, you can allow or deny access from another security group within the same VPC to your security group. Sample request:
43578
+ * * Parameters used to determine 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 NicType to intranet. For 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 SourceGroupOwnerAccount. For 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:
43057
43579
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
43058
43580
  * &SecurityGroupId=sg-bp67acfmxazb4p****
43059
43581
  * &Permissions.1.SourceGroupId=sg-1651FBB**
@@ -43063,7 +43585,7 @@ class Client extends openapi_client_1.default {
43063
43585
  * &Permissions.1.NicType=intranet
43064
43586
  * &Permissions.1.Policy=Drop
43065
43587
  * &<Common request parameters>
43066
- * * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourcePrefixListId. If you specify this group of parameters, prefix lists support only security groups in VPCs. You must set NicType to intranet. Sample request:
43588
+ * * Parameters used to determine an inbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, and SourcePrefixListId. In this case, prefix lists support only security groups in VPCs. NicType must be set to intranet. Sample request:
43067
43589
  * http(s)://ecs.aliyuncs.com/?Action=AuthorizeSecurityGroup
43068
43590
  * &SecurityGroupId=sg-bp67acfmxazb4p****
43069
43591
  * &Permissions.1.SourcePrefixListId=pl-x1j1k5ykzqlixdcy****
@@ -43073,7 +43595,7 @@ class Client extends openapi_client_1.default {
43073
43595
  * &Permissions.1.NicType=intranet
43074
43596
  * &Permissions.1.Policy=Drop
43075
43597
  * &<Common request parameters>
43076
- * * For examples on how to configure security group rules, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
43598
+ * * For information about examples on security group rule settings, see [Security groups for different use cases](~~25475~~) and [Security group quintuple rules](~~97439~~).
43077
43599
  *
43078
43600
  * @param request AuthorizeSecurityGroupRequest
43079
43601
  * @return AuthorizeSecurityGroupResponse
@@ -43875,19 +44397,19 @@ class Client extends openapi_client_1.default {
43875
44397
  return await this.copySnapshotWithOptions(request, runtime);
43876
44398
  }
43877
44399
  /**
43878
- * After you use an activation code to register a server that is not provided by Alibaba Cloud as an Alibaba Cloud managed instance, you can use a variety of online services provided by Alibaba Cloud in the managed instance, such as Cloud Assistant, Operation Orchestration Service (OOS), and Apsara Devops.
43879
- * A server that is not provided by Alibaba Cloud can be registered as an Alibaba Cloud managed instance only when the server can access the Internet and runs an operating system of one of the following versions:
43880
- * * Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, and later
43881
- * * CentOS 6, CentOS 7, CentOS 8, and later
43882
- * * Debian 8, Debian 9, Debian 10, and later
43883
- * * Ubuntu 12, Ubuntu 14, Ubuntu 16, Ubuntu 18, and later
43884
- * * CoreOS
43885
- * * OpenSUSE
43886
- * * Red Hat 5, Red Hat 6, Red Hat 7, and later
43887
- * * SUSE Linux Enterprise Server (SLES) 11, SLES 12, SLES 15, and later
43888
- * * Windows Server 2012, Windows Server 2016, Windows Server 2019, and later
44400
+ * After you use an activation code to register a server that is not provided by Alibaba Cloud as an Alibaba Cloud managed instance, you can use various online services of Alibaba Cloud, such as Cloud Assistant, CloudOps Orchestration Service (OOS), and Apsara Devops, on the managed instance.
44401
+ * If a server is not provided by Alibaba Cloud, you can register the server as an Alibaba Cloud managed instance only if the server has Internet connectivity and runs an operating system of one of the following versions:
44402
+ * - Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, and later
44403
+ * - CentOS 6, CentOS 7, CentOS 8, and later
44404
+ * - Debian 8, Debian 9, Debian 10, and later
44405
+ * - Ubuntu 12, Ubuntu 14, Ubuntu 16, Ubuntu 18, and later
44406
+ * - CoreOS
44407
+ * - OpenSUSE
44408
+ * - Red Hat 5, Red Hat 6, Red Hat 7, and later
44409
+ * - SUSE Linux Enterprise Server (SLES) 11, SLES 12, SLES 15, and later
44410
+ * - Windows Server 2012, Windows Server 2016, Windows Server 2019, and later
43889
44411
  * You can have up to 5,000 activation codes per Alibaba Cloud region. When the number of activation codes exceeds 1,000, the usage of the activation codes must be greater than 50% before you can proceed to create more activation codes.
43890
- * > To view the usage of activation codes, click **Activation Code** on the **Manage Instances** tab of the **Cloud Assistant** page in the Elastic Compute Service (ECS) console.
44412
+ * >To query the usage of activation codes, go to the Cloud Assistant page in the Elastic Compute Service (ECS) console, click the Manage Instances tab, and then click Register Instance.
43891
44413
  *
43892
44414
  * @param request CreateActivationRequest
43893
44415
  * @param runtime runtime options for this request RuntimeOptions
@@ -43920,6 +44442,9 @@ class Client extends openapi_client_1.default {
43920
44442
  if (!tea_util_1.default.isUnset(request.regionId)) {
43921
44443
  query["RegionId"] = request.regionId;
43922
44444
  }
44445
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
44446
+ query["ResourceGroupId"] = request.resourceGroupId;
44447
+ }
43923
44448
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
43924
44449
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
43925
44450
  }
@@ -43949,19 +44474,19 @@ class Client extends openapi_client_1.default {
43949
44474
  return $tea.cast(await this.callApi(params, req, runtime), new CreateActivationResponse({}));
43950
44475
  }
43951
44476
  /**
43952
- * After you use an activation code to register a server that is not provided by Alibaba Cloud as an Alibaba Cloud managed instance, you can use a variety of online services provided by Alibaba Cloud in the managed instance, such as Cloud Assistant, Operation Orchestration Service (OOS), and Apsara Devops.
43953
- * A server that is not provided by Alibaba Cloud can be registered as an Alibaba Cloud managed instance only when the server can access the Internet and runs an operating system of one of the following versions:
43954
- * * Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, and later
43955
- * * CentOS 6, CentOS 7, CentOS 8, and later
43956
- * * Debian 8, Debian 9, Debian 10, and later
43957
- * * Ubuntu 12, Ubuntu 14, Ubuntu 16, Ubuntu 18, and later
43958
- * * CoreOS
43959
- * * OpenSUSE
43960
- * * Red Hat 5, Red Hat 6, Red Hat 7, and later
43961
- * * SUSE Linux Enterprise Server (SLES) 11, SLES 12, SLES 15, and later
43962
- * * Windows Server 2012, Windows Server 2016, Windows Server 2019, and later
44477
+ * After you use an activation code to register a server that is not provided by Alibaba Cloud as an Alibaba Cloud managed instance, you can use various online services of Alibaba Cloud, such as Cloud Assistant, CloudOps Orchestration Service (OOS), and Apsara Devops, on the managed instance.
44478
+ * If a server is not provided by Alibaba Cloud, you can register the server as an Alibaba Cloud managed instance only if the server has Internet connectivity and runs an operating system of one of the following versions:
44479
+ * - Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, and later
44480
+ * - CentOS 6, CentOS 7, CentOS 8, and later
44481
+ * - Debian 8, Debian 9, Debian 10, and later
44482
+ * - Ubuntu 12, Ubuntu 14, Ubuntu 16, Ubuntu 18, and later
44483
+ * - CoreOS
44484
+ * - OpenSUSE
44485
+ * - Red Hat 5, Red Hat 6, Red Hat 7, and later
44486
+ * - SUSE Linux Enterprise Server (SLES) 11, SLES 12, SLES 15, and later
44487
+ * - Windows Server 2012, Windows Server 2016, Windows Server 2019, and later
43963
44488
  * You can have up to 5,000 activation codes per Alibaba Cloud region. When the number of activation codes exceeds 1,000, the usage of the activation codes must be greater than 50% before you can proceed to create more activation codes.
43964
- * > To view the usage of activation codes, click **Activation Code** on the **Manage Instances** tab of the **Cloud Assistant** page in the Elastic Compute Service (ECS) console.
44489
+ * >To query the usage of activation codes, go to the Cloud Assistant page in the Elastic Compute Service (ECS) console, click the Manage Instances tab, and then click Register Instance.
43965
44490
  *
43966
44491
  * @param request CreateActivationRequest
43967
44492
  * @return CreateActivationResponse
@@ -43971,10 +44496,11 @@ class Client extends openapi_client_1.default {
43971
44496
  return await this.createActivationWithOptions(request, runtime);
43972
44497
  }
43973
44498
  /**
44499
+ * ## Usage notes
43974
44500
  * * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of preemptible and pay-as-you-go instances. Auto Provisioning supports push-button deployment of instance clusters 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~~).
43975
- * * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on computing capacity when preemptible instances are reclaimed.
43976
- * * Auto Provisioning is provided free-of-charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information about the billing, see [Overview](~~52088~~) and [Pay-as-you-go](~~40653~~).
43977
- * * If you specify both the `LaunchTemplate*` and `LaunchConfiguration.*` parameters, the LaunchTemplate\\* parameter takes precedence.
44501
+ * * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when preemptible instances are reclaimed.
44502
+ * * Auto Provisioning is provided free-of-charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information about the billing, see [Overview of preemptible instances](~~52088~~) and [Pay-as-you-go](~~40653~~).
44503
+ * * When you specify both a launch template (`LaunchTemplateId`) and extended configurations (`LaunchConfiguration.*` parameters), LaunchTemplateId takes precedence.
43978
44504
  *
43979
44505
  * @param request CreateAutoProvisioningGroupRequest
43980
44506
  * @param runtime runtime options for this request RuntimeOptions
@@ -44096,10 +44622,11 @@ class Client extends openapi_client_1.default {
44096
44622
  return $tea.cast(await this.callApi(params, req, runtime), new CreateAutoProvisioningGroupResponse({}));
44097
44623
  }
44098
44624
  /**
44625
+ * ## Usage notes
44099
44626
  * * Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of preemptible and pay-as-you-go instances. Auto Provisioning supports push-button deployment of instance clusters 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~~).
44100
- * * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on computing capacity when preemptible instances are reclaimed.
44101
- * * Auto Provisioning is provided free-of-charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information about the billing, see [Overview](~~52088~~) and [Pay-as-you-go](~~40653~~).
44102
- * * If you specify both the `LaunchTemplate*` and `LaunchConfiguration.*` parameters, the LaunchTemplate\\* parameter takes precedence.
44627
+ * * Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when preemptible instances are reclaimed.
44628
+ * * Auto Provisioning is provided free-of-charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information about the billing, see [Overview of preemptible instances](~~52088~~) and [Pay-as-you-go](~~40653~~).
44629
+ * * When you specify both a launch template (`LaunchTemplateId`) and extended configurations (`LaunchConfiguration.*` parameters), LaunchTemplateId takes precedence.
44103
44630
  *
44104
44631
  * @param request CreateAutoProvisioningGroupRequest
44105
44632
  * @return CreateAutoProvisioningGroupResponse
@@ -44292,7 +44819,19 @@ class Client extends openapi_client_1.default {
44292
44819
  return await this.createCapacityReservationWithOptions(request, runtime);
44293
44820
  }
44294
44821
  /**
44295
- * The ID of the region in which to create the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
44822
+ * * You can create commands of the following types:
44823
+ * * RunBatScript: batch commands. These commands are applicable to Windows instances.
44824
+ * * RunPowerShellScript: PowerShell commands. These commands are applicable to Windows instances.
44825
+ * * RunShellScript: shell commands. These commands are applicable to Linux instances.
44826
+ * * You can specify the TimeOut parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, the Cloud Assistant client forcefully terminates the command process by canceling the process ID (PID) of the command. For more information, see [Install the Cloud Assistant client](~~64921~~).
44827
+ * * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
44828
+ * * For a scheduled task, take note of the following items:
44829
+ * * The timeout period takes effect on each execution of the command.
44830
+ * * When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
44831
+ * * The timeout of one execution does not affect the subsequent executions of the command.
44832
+ * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region.
44833
+ * * You can use the WorkingDir parameter to specify the execution directory of a Cloud Assistant command. For Linux instances, the default execution directory of a command is the home directory of the root user, which is `/root`. For Windows instances, the default execution directory of a command is the directory where the Cloud Assistant client process resides, such as `C:\\Windows\\System32`.
44834
+ * * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true when you create the command. When you configure the CommandContent parameter, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, assume that the command content is `echo {{name}}`. You can use the Parameters parameter to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. Therefore, the `echo Jack` command is actually run.
44296
44835
  *
44297
44836
  * @param request CreateCommandRequest
44298
44837
  * @param runtime runtime options for this request RuntimeOptions
@@ -44328,6 +44867,9 @@ class Client extends openapi_client_1.default {
44328
44867
  if (!tea_util_1.default.isUnset(request.regionId)) {
44329
44868
  query["RegionId"] = request.regionId;
44330
44869
  }
44870
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
44871
+ query["ResourceGroupId"] = request.resourceGroupId;
44872
+ }
44331
44873
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
44332
44874
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
44333
44875
  }
@@ -44363,7 +44905,19 @@ class Client extends openapi_client_1.default {
44363
44905
  return $tea.cast(await this.callApi(params, req, runtime), new CreateCommandResponse({}));
44364
44906
  }
44365
44907
  /**
44366
- * The ID of the region in which to create the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
44908
+ * * You can create commands of the following types:
44909
+ * * RunBatScript: batch commands. These commands are applicable to Windows instances.
44910
+ * * RunPowerShellScript: PowerShell commands. These commands are applicable to Windows instances.
44911
+ * * RunShellScript: shell commands. These commands are applicable to Linux instances.
44912
+ * * You can specify the TimeOut parameter to set the maximum timeout period for executions of a command on Elastic Compute Service (ECS) instances. If an execution times out, the Cloud Assistant client forcefully terminates the command process by canceling the process ID (PID) of the command. For more information, see [Install the Cloud Assistant client](~~64921~~).
44913
+ * * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
44914
+ * * For a scheduled task, take note of the following items:
44915
+ * * The timeout period takes effect on each execution of the command.
44916
+ * * When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
44917
+ * * The timeout of one execution does not affect the subsequent executions of the command.
44918
+ * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region.
44919
+ * * You can use the WorkingDir parameter to specify the execution directory of a Cloud Assistant command. For Linux instances, the default execution directory of a command is the home directory of the root user, which is `/root`. For Windows instances, the default execution directory of a command is the directory where the Cloud Assistant client process resides, such as `C:\\Windows\\System32`.
44920
+ * * You can enable the custom parameter feature for a Cloud Assistant command by setting EnableParameter to true when you create the command. When you configure the CommandContent parameter, you can define custom parameters in the {{parameter}} format. Then, when the [InvokeCommand](~~64841~~) operation is called, the key-value pairs of custom parameters are passed in. For example, assume that the command content is `echo {{name}}`. You can use the Parameters parameter to pass in the `<name, Jack>` key-value pair when the InvokeCommand operation is called. The name key of the custom parameter is automatically replaced by the paired Jack value to generate a new command. Therefore, the `echo Jack` command is actually run.
44367
44921
  *
44368
44922
  * @param request CreateCommandRequest
44369
44923
  * @return CreateCommandResponse
@@ -44429,6 +44983,7 @@ class Client extends openapi_client_1.default {
44429
44983
  return await this.createDedicatedHostClusterWithOptions(request, runtime);
44430
44984
  }
44431
44985
  /**
44986
+ * @deprecated : CreateDemand is deprecated, please use Ecs::2014-05-26::CreateCapacityReservation instead.
44432
44987
  * You can call this operation to file a demand for an ECS instance type. Alibaba Cloud provides the requested resources based on your demand.
44433
44988
  * You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type.
44434
44989
  * > This operation is in internal preview and has not been officially released. We recommend that you do not call this operation.
@@ -44437,6 +44992,7 @@ class Client extends openapi_client_1.default {
44437
44992
  * @param runtime runtime options for this request RuntimeOptions
44438
44993
  * @return CreateDemandResponse
44439
44994
  */
44995
+ // Deprecated
44440
44996
  async createDemandWithOptions(request, runtime) {
44441
44997
  tea_util_1.default.validateModel(request);
44442
44998
  let query = {};
@@ -44505,6 +45061,7 @@ class Client extends openapi_client_1.default {
44505
45061
  return $tea.cast(await this.callApi(params, req, runtime), new CreateDemandResponse({}));
44506
45062
  }
44507
45063
  /**
45064
+ * @deprecated : CreateDemand is deprecated, please use Ecs::2014-05-26::CreateCapacityReservation instead.
44508
45065
  * You can call this operation to file a demand for an ECS instance type. Alibaba Cloud provides the requested resources based on your demand.
44509
45066
  * You can file demands only for I/O optimized instance types and instances of the virtual private cloud (VPC) type.
44510
45067
  * > This operation is in internal preview and has not been officially released. We recommend that you do not call this operation.
@@ -44512,6 +45069,7 @@ class Client extends openapi_client_1.default {
44512
45069
  * @param request CreateDemandRequest
44513
45070
  * @return CreateDemandResponse
44514
45071
  */
45072
+ // Deprecated
44515
45073
  async createDemand(request) {
44516
45074
  let runtime = new $Util.RuntimeOptions({});
44517
45075
  return await this.createDemandWithOptions(request, runtime);
@@ -44655,10 +45213,10 @@ class Client extends openapi_client_1.default {
44655
45213
  return await this.createDiagnosticReportWithOptions(request, runtime);
44656
45214
  }
44657
45215
  /**
44658
- * * When you create a disk, you can enable the multi-attach (`MultiAttach`) feature for the disk. We recommend that you familiarize yourself with the multi-attach feature and its limits before you enable it. For more information, see [NVMe protocol](~~256487~~) and [Use the multi-attach feature](~~262105~~).
44659
- * * The disk can be a basic disk, an ultra disk, a standard SSD, or an enhanced SSD (ESSD).
44660
- * * When you create disks, you may be charged for the resources used. We recommend that you get familiar with the Elastic Compute Service (ECS) billing methods before you create a disk. For more information, see [Billing overview](~~25398~~).
44661
- * * By default, `DeleteAutoSnapshot` is set to `true` when a disk is created. This indicates that when the disk is released, the automatic snapshots of the disk are also deleted. You can call the [ModifyDiskAttribute](~~25517~~) operation to modify the parameter.
45216
+ * * When you create a disk, you can enable the multi-attach (`MultiAttach`) feature for the disk. Before you enable the multi-attach feature, we recommend that you familiarize yourself with the multi-attach feature and its limits. For more information, see [NVMe protocol](~~256487~~) and [Use the multi-attach feature](~~262105~~).
45217
+ * * You can create a basic disk, an ultra disk, a standard SSD, or an enhanced SSD (ESSD).
45218
+ * * When you create disks, you may be charged for the resources used. We recommend that you familiarize yourself with the Elastic Compute Service (ECS) billing methods before you proceed. For more information, see [Billing overview](~~25398~~).
45219
+ * * By default, `DeleteAutoSnapshot` is set to `true` when a disk is created. This indicates that when the disk is released, the automatic snapshots of the disk are also deleted. You can call the [ModifyDiskAttribute](~~25517~~) operation to modify the parameter value.
44662
45220
  * * If you do not configure the performance level when you create an ESSD, the performance level for the ESSD is PL1 by default. You can call the [ModifyDiskSpec](~~123780~~) operation to modify the performance level of the ESSD.
44663
45221
  * * By default, for a disk that is created by calling this operation, the `Portable` attribute is set to `true` and the billing method is pay-as-you-go.
44664
45222
  *
@@ -44767,10 +45325,10 @@ class Client extends openapi_client_1.default {
44767
45325
  return $tea.cast(await this.callApi(params, req, runtime), new CreateDiskResponse({}));
44768
45326
  }
44769
45327
  /**
44770
- * * When you create a disk, you can enable the multi-attach (`MultiAttach`) feature for the disk. We recommend that you familiarize yourself with the multi-attach feature and its limits before you enable it. For more information, see [NVMe protocol](~~256487~~) and [Use the multi-attach feature](~~262105~~).
44771
- * * The disk can be a basic disk, an ultra disk, a standard SSD, or an enhanced SSD (ESSD).
44772
- * * When you create disks, you may be charged for the resources used. We recommend that you get familiar with the Elastic Compute Service (ECS) billing methods before you create a disk. For more information, see [Billing overview](~~25398~~).
44773
- * * By default, `DeleteAutoSnapshot` is set to `true` when a disk is created. This indicates that when the disk is released, the automatic snapshots of the disk are also deleted. You can call the [ModifyDiskAttribute](~~25517~~) operation to modify the parameter.
45328
+ * * When you create a disk, you can enable the multi-attach (`MultiAttach`) feature for the disk. Before you enable the multi-attach feature, we recommend that you familiarize yourself with the multi-attach feature and its limits. For more information, see [NVMe protocol](~~256487~~) and [Use the multi-attach feature](~~262105~~).
45329
+ * * You can create a basic disk, an ultra disk, a standard SSD, or an enhanced SSD (ESSD).
45330
+ * * When you create disks, you may be charged for the resources used. We recommend that you familiarize yourself with the Elastic Compute Service (ECS) billing methods before you proceed. For more information, see [Billing overview](~~25398~~).
45331
+ * * By default, `DeleteAutoSnapshot` is set to `true` when a disk is created. This indicates that when the disk is released, the automatic snapshots of the disk are also deleted. You can call the [ModifyDiskAttribute](~~25517~~) operation to modify the parameter value.
44774
45332
  * * If you do not configure the performance level when you create an ESSD, the performance level for the ESSD is PL1 by default. You can call the [ModifyDiskSpec](~~123780~~) operation to modify the performance level of the ESSD.
44775
45333
  * * By default, for a disk that is created by calling this operation, the `Portable` attribute is set to `true` and the billing method is pay-as-you-go.
44776
45334
  *
@@ -44785,7 +45343,7 @@ class Client extends openapi_client_1.default {
44785
45343
  * Elasticity Assurance provides a new way to purchase and use resources with flexibility and assurance. It offers assured resource reservations for pay-as-you-go Elastic Compute Service (ECS) instances. For more information, see [Overview of Elasticity Assurance](~~193630~~).
44786
45344
  * * Elasticity assurances are not refundable after purchase.
44787
45345
  * * Elasticity assurances are applicable to only pay-as-you-go ECS instances.
44788
- * * Elasticity assurances only support unlimited mode. Therefore, you must set `AssuranceTimes` to `Unlimited`. Elasticity assurances in unlimited mode can be applied an unlimited number of times within their effective period and take effect immediately after they are purchased.
45346
+ * * Elasticity assurances support only the unlimited mode. Therefore, you can set `AssuranceTimes` only to `Unlimited`. Elasticity assurances in unlimited mode can be applied an unlimited number of times within their effective period and take effect immediately after they are purchased.
44789
45347
  *
44790
45348
  * @param request CreateElasticityAssuranceRequest
44791
45349
  * @param runtime runtime options for this request RuntimeOptions
@@ -44868,7 +45426,7 @@ class Client extends openapi_client_1.default {
44868
45426
  * Elasticity Assurance provides a new way to purchase and use resources with flexibility and assurance. It offers assured resource reservations for pay-as-you-go Elastic Compute Service (ECS) instances. For more information, see [Overview of Elasticity Assurance](~~193630~~).
44869
45427
  * * Elasticity assurances are not refundable after purchase.
44870
45428
  * * Elasticity assurances are applicable to only pay-as-you-go ECS instances.
44871
- * * Elasticity assurances only support unlimited mode. Therefore, you must set `AssuranceTimes` to `Unlimited`. Elasticity assurances in unlimited mode can be applied an unlimited number of times within their effective period and take effect immediately after they are purchased.
45429
+ * * Elasticity assurances support only the unlimited mode. Therefore, you can set `AssuranceTimes` only to `Unlimited`. Elasticity assurances in unlimited mode can be applied an unlimited number of times within their effective period and take effect immediately after they are purchased.
44872
45430
  *
44873
45431
  * @param request CreateElasticityAssuranceRequest
44874
45432
  * @return CreateElasticityAssuranceResponse
@@ -46184,6 +46742,7 @@ class Client extends openapi_client_1.default {
46184
46742
  * * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
46185
46743
  * * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
46186
46744
  * * When an ENI is detached from an instance and attached to another instance, the attributes of the ENI remain unchanged and network traffic is redirected to the new instance.
46745
+ * * When you call this operation to create an ENI, you can assign up to 49 secondary private IP addresses to the ENI.
46187
46746
  * * If you want to assign IPv6 addresses when you create an ENI, make sure that IPv6 has been enabled for the vSwitch with which to associate the ENI. For more information, see [What is an IPv6 gateway?](~~98896~~)
46188
46747
  * * A quota is imposed on the number of ENIs that can be created per Alibaba Cloud region per account. You can view the quota in the ECS console. For more information, see [View and increase resource quotas](~~184115~~).
46189
46748
  * **For information about examples on how to call this operation, see **[Create an ENI](~~471552~~).
@@ -46267,6 +46826,9 @@ class Client extends openapi_client_1.default {
46267
46826
  if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
46268
46827
  query["ResourceOwnerId"] = request.resourceOwnerId;
46269
46828
  }
46829
+ if (!tea_util_1.default.isUnset(request.rxQueueSize)) {
46830
+ query["RxQueueSize"] = request.rxQueueSize;
46831
+ }
46270
46832
  if (!tea_util_1.default.isUnset(request.secondaryPrivateIpAddressCount)) {
46271
46833
  query["SecondaryPrivateIpAddressCount"] = request.secondaryPrivateIpAddressCount;
46272
46834
  }
@@ -46279,6 +46841,9 @@ class Client extends openapi_client_1.default {
46279
46841
  if (!tea_util_1.default.isUnset(request.tag)) {
46280
46842
  query["Tag"] = request.tag;
46281
46843
  }
46844
+ if (!tea_util_1.default.isUnset(request.txQueueSize)) {
46845
+ query["TxQueueSize"] = request.txQueueSize;
46846
+ }
46282
46847
  if (!tea_util_1.default.isUnset(request.vSwitchId)) {
46283
46848
  query["VSwitchId"] = request.vSwitchId;
46284
46849
  }
@@ -46308,6 +46873,7 @@ class Client extends openapi_client_1.default {
46308
46873
  * * If NetworkInterfaceId is empty in the response, no ENI is created. Call the operation again to create an ENI.
46309
46874
  * * An ENI can be attached only to a single instance that resides in a virtual private cloud (VPC).
46310
46875
  * * When an ENI is detached from an instance and attached to another instance, the attributes of the ENI remain unchanged and network traffic is redirected to the new instance.
46876
+ * * When you call this operation to create an ENI, you can assign up to 49 secondary private IP addresses to the ENI.
46311
46877
  * * If you want to assign IPv6 addresses when you create an ENI, make sure that IPv6 has been enabled for the vSwitch with which to associate the ENI. For more information, see [What is an IPv6 gateway?](~~98896~~)
46312
46878
  * * A quota is imposed on the number of ENIs that can be created per Alibaba Cloud region per account. You can view the quota in the ECS console. For more information, see [View and increase resource quotas](~~184115~~).
46313
46879
  * **For information about examples on how to call this operation, see **[Create an ENI](~~471552~~).
@@ -46723,6 +47289,56 @@ class Client extends openapi_client_1.default {
46723
47289
  let runtime = new $Util.RuntimeOptions({});
46724
47290
  return await this.createRouterInterfaceWithOptions(request, runtime);
46725
47291
  }
47292
+ async createSavingsPlanWithOptions(request, runtime) {
47293
+ tea_util_1.default.validateModel(request);
47294
+ let query = {};
47295
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
47296
+ query["ChargeType"] = request.chargeType;
47297
+ }
47298
+ if (!tea_util_1.default.isUnset(request.committedAmount)) {
47299
+ query["CommittedAmount"] = request.committedAmount;
47300
+ }
47301
+ if (!tea_util_1.default.isUnset(request.instanceTypeFamily)) {
47302
+ query["InstanceTypeFamily"] = request.instanceTypeFamily;
47303
+ }
47304
+ if (!tea_util_1.default.isUnset(request.offeringType)) {
47305
+ query["OfferingType"] = request.offeringType;
47306
+ }
47307
+ if (!tea_util_1.default.isUnset(request.period)) {
47308
+ query["Period"] = request.period;
47309
+ }
47310
+ if (!tea_util_1.default.isUnset(request.periodUnit)) {
47311
+ query["PeriodUnit"] = request.periodUnit;
47312
+ }
47313
+ if (!tea_util_1.default.isUnset(request.planType)) {
47314
+ query["PlanType"] = request.planType;
47315
+ }
47316
+ if (!tea_util_1.default.isUnset(request.regionId)) {
47317
+ query["RegionId"] = request.regionId;
47318
+ }
47319
+ if (!tea_util_1.default.isUnset(request.resourceId)) {
47320
+ query["ResourceId"] = request.resourceId;
47321
+ }
47322
+ let req = new $OpenApi.OpenApiRequest({
47323
+ query: openapi_util_1.default.query(query),
47324
+ });
47325
+ let params = new $OpenApi.Params({
47326
+ action: "CreateSavingsPlan",
47327
+ version: "2014-05-26",
47328
+ protocol: "HTTPS",
47329
+ pathname: "/",
47330
+ method: "POST",
47331
+ authType: "AK",
47332
+ style: "RPC",
47333
+ reqBodyType: "formData",
47334
+ bodyType: "json",
47335
+ });
47336
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateSavingsPlanResponse({}));
47337
+ }
47338
+ async createSavingsPlan(request) {
47339
+ let runtime = new $Util.RuntimeOptions({});
47340
+ return await this.createSavingsPlanWithOptions(request, runtime);
47341
+ }
46726
47342
  /**
46727
47343
  * When you call this operation, take note of the following items:
46728
47344
  * * You can create up to 100 security groups in a single Alibaba Cloud region.
@@ -46960,8 +47576,8 @@ class Client extends openapi_client_1.default {
46960
47576
  * You can specify `InstanceId` to create a snapshot-consistent group for the specified cloud disks of an instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple cloud disks that are attached to multiple instances within the same zone.
46961
47577
  * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N` in the same request. If `InstanceId` is set, you can use `DiskId.N` to specify only cloud disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify cloud disks attached to multiple instances.
46962
47578
  * When you call this operation, take note of the following items:
46963
- * * The cloud disk for which you want to create a snapshot must be in the **In Use**or **Unattached** (`Available`) state.``
46964
- * * If the cloud disk is in the **In Use** state, the instance to which the cloud disk is attached must be in the **Running**or **Stopped** state.``````
47579
+ * * The cloud disk for which you want to create a snapshot must be in the **In Use** or **Unattached** (`Available`) state.``
47580
+ * * If the cloud disk is in the **In Use** state, the instance to which the cloud disk is attached must be in the **Running** or **Stopped** state.``````
46965
47581
  * * If the cloud disk is in the **Unattached** (`Available`) state, make sure that the cloud disk has been attached to an ECS instance. Snapshots cannot be created for cloud disks that have never been attached to an ECS instance.
46966
47582
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
46967
47583
  * * A snapshot-consistent group can contain snapshots of up to 16 cloud disks (including the system disk and data disks) whose total disk size does not exceed 32 TiB.
@@ -47041,8 +47657,8 @@ class Client extends openapi_client_1.default {
47041
47657
  * You can specify `InstanceId` to create a snapshot-consistent group for the specified cloud disks of an instance. You can also specify `DiskId.N` to create a snapshot-consistent group for multiple cloud disks that are attached to multiple instances within the same zone.
47042
47658
  * > You cannot specify both `DiskId.N` and `ExcludeDiskId.N` in the same request. If `InstanceId` is set, you can use `DiskId.N` to specify only cloud disks attached to the instance specified by InstanceId. You cannot use DiskId.N to specify cloud disks attached to multiple instances.
47043
47659
  * When you call this operation, take note of the following items:
47044
- * * The cloud disk for which you want to create a snapshot must be in the **In Use**or **Unattached** (`Available`) state.``
47045
- * * If the cloud disk is in the **In Use** state, the instance to which the cloud disk is attached must be in the **Running**or **Stopped** state.``````
47660
+ * * The cloud disk for which you want to create a snapshot must be in the **In Use** or **Unattached** (`Available`) state.``
47661
+ * * If the cloud disk is in the **In Use** state, the instance to which the cloud disk is attached must be in the **Running** or **Stopped** state.``````
47046
47662
  * * If the cloud disk is in the **Unattached** (`Available`) state, make sure that the cloud disk has been attached to an ECS instance. Snapshots cannot be created for cloud disks that have never been attached to an ECS instance.
47047
47663
  * * The snapshot-consistent group feature can be used to create snapshots only for enhanced SSDs (ESSDs).
47048
47664
  * * A snapshot-consistent group can contain snapshots of up to 16 cloud disks (including the system disk and data disks) whose total disk size does not exceed 32 TiB.
@@ -47691,12 +48307,14 @@ class Client extends openapi_client_1.default {
47691
48307
  return await this.deleteDedicatedHostClusterWithOptions(request, runtime);
47692
48308
  }
47693
48309
  /**
48310
+ * @deprecated : DeleteDemand is deprecated, please use Ecs::2014-05-26::ReleaseCapacityReservation instead.
47694
48311
  * > This operation is in internal preview and has not been officially released. We recommend that you avoid using this operation.
47695
48312
  *
47696
48313
  * @param request DeleteDemandRequest
47697
48314
  * @param runtime runtime options for this request RuntimeOptions
47698
48315
  * @return DeleteDemandResponse
47699
48316
  */
48317
+ // Deprecated
47700
48318
  async deleteDemandWithOptions(request, runtime) {
47701
48319
  tea_util_1.default.validateModel(request);
47702
48320
  let query = {};
@@ -47741,11 +48359,13 @@ class Client extends openapi_client_1.default {
47741
48359
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteDemandResponse({}));
47742
48360
  }
47743
48361
  /**
48362
+ * @deprecated : DeleteDemand is deprecated, please use Ecs::2014-05-26::ReleaseCapacityReservation instead.
47744
48363
  * > This operation is in internal preview and has not been officially released. We recommend that you avoid using this operation.
47745
48364
  *
47746
48365
  * @param request DeleteDemandRequest
47747
48366
  * @return DeleteDemandResponse
47748
48367
  */
48368
+ // Deprecated
47749
48369
  async deleteDemand(request) {
47750
48370
  let runtime = new $Util.RuntimeOptions({});
47751
48371
  return await this.deleteDemandWithOptions(request, runtime);
@@ -48263,6 +48883,9 @@ class Client extends openapi_client_1.default {
48263
48883
  async deleteInstanceWithOptions(request, runtime) {
48264
48884
  tea_util_1.default.validateModel(request);
48265
48885
  let query = {};
48886
+ if (!tea_util_1.default.isUnset(request.dryRun)) {
48887
+ query["DryRun"] = request.dryRun;
48888
+ }
48266
48889
  if (!tea_util_1.default.isUnset(request.force)) {
48267
48890
  query["Force"] = request.force;
48268
48891
  }
@@ -48978,7 +49601,8 @@ class Client extends openapi_client_1.default {
48978
49601
  return await this.deleteRouterInterfaceWithOptions(request, runtime);
48979
49602
  }
48980
49603
  /**
48981
- * Before you delete a security group, make sure that the security group does not contain instances and is not referenced by other security groups. Otherwise, the DeleteSecurityGroup request fails. You can call the [DescribeSecurityGroupReferences](~~57320~~) operation to query the reference details of the security group.
49604
+ * - Before you delete a security group, make sure that the security group does not contain instances and is not referenced by other security groups. Otherwise, the DeleteSecurityGroup request fails. You can call the [DescribeSecurityGroupReferences](~~57320~~) operation to query the reference details of the security group.
49605
+ * - If the error code InvalidOperation.DeletionProtection is returned when you call the DeleteSecurityGroup operation to delete a security group or if a deletion protection-related message appears when you delete a security group in the console, the deletion protection feature is enabled for the security group. When you create a Container Service for Kubernetes (ACK) cluster, the deletion protection feature is enabled for an associated security group to prevent accidental deletion. You cannot manually disable the deletion protection feature for the security group. The deletion protection feature can be automatically disabled only after the ACK cluster is deleted. For more information, see [Disable deletion protection for a security group](~~353191~~)
48982
49606
  *
48983
49607
  * @param request DeleteSecurityGroupRequest
48984
49608
  * @param runtime runtime options for this request RuntimeOptions
@@ -49022,7 +49646,8 @@ class Client extends openapi_client_1.default {
49022
49646
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteSecurityGroupResponse({}));
49023
49647
  }
49024
49648
  /**
49025
- * Before you delete a security group, make sure that the security group does not contain instances and is not referenced by other security groups. Otherwise, the DeleteSecurityGroup request fails. You can call the [DescribeSecurityGroupReferences](~~57320~~) operation to query the reference details of the security group.
49649
+ * - Before you delete a security group, make sure that the security group does not contain instances and is not referenced by other security groups. Otherwise, the DeleteSecurityGroup request fails. You can call the [DescribeSecurityGroupReferences](~~57320~~) operation to query the reference details of the security group.
49650
+ * - If the error code InvalidOperation.DeletionProtection is returned when you call the DeleteSecurityGroup operation to delete a security group or if a deletion protection-related message appears when you delete a security group in the console, the deletion protection feature is enabled for the security group. When you create a Container Service for Kubernetes (ACK) cluster, the deletion protection feature is enabled for an associated security group to prevent accidental deletion. You cannot manually disable the deletion protection feature for the security group. The deletion protection feature can be automatically disabled only after the ACK cluster is deleted. For more information, see [Disable deletion protection for a security group](~~353191~~)
49026
49651
  *
49027
49652
  * @param request DeleteSecurityGroupRequest
49028
49653
  * @return DeleteSecurityGroupResponse
@@ -49308,7 +49933,7 @@ class Client extends openapi_client_1.default {
49308
49933
  return await this.deleteVirtualBorderRouterWithOptions(request, runtime);
49309
49934
  }
49310
49935
  /**
49311
- * @deprecated
49936
+ * @deprecated : DeleteVpc is deprecated, please use Vpc::2016-04-28::DeleteVpc instead.
49312
49937
  *
49313
49938
  * @param request DeleteVpcRequest
49314
49939
  * @param runtime runtime options for this request RuntimeOptions
@@ -49353,7 +49978,7 @@ class Client extends openapi_client_1.default {
49353
49978
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteVpcResponse({}));
49354
49979
  }
49355
49980
  /**
49356
- * @deprecated
49981
+ * @deprecated : DeleteVpc is deprecated, please use Vpc::2016-04-28::DeleteVpc instead.
49357
49982
  *
49358
49983
  * @param request DeleteVpcRequest
49359
49984
  * @return DeleteVpcResponse
@@ -49525,6 +50150,15 @@ class Client extends openapi_client_1.default {
49525
50150
  let runtime = new $Util.RuntimeOptions({});
49526
50151
  return await this.describeAccountAttributesWithOptions(request, runtime);
49527
50152
  }
50153
+ /**
50154
+ * You can use one of the following methods to check the responses:
50155
+ * - Method 1: When you call the DescribeActivations operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeActivations operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and use MaxResults to specify the maximum number of entries to return in this call.
50156
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
50157
+ *
50158
+ * @param request DescribeActivationsRequest
50159
+ * @param runtime runtime options for this request RuntimeOptions
50160
+ * @return DescribeActivationsResponse
50161
+ */
49528
50162
  async describeActivationsWithOptions(request, runtime) {
49529
50163
  tea_util_1.default.validateModel(request);
49530
50164
  let query = {};
@@ -49534,6 +50168,12 @@ class Client extends openapi_client_1.default {
49534
50168
  if (!tea_util_1.default.isUnset(request.instanceName)) {
49535
50169
  query["InstanceName"] = request.instanceName;
49536
50170
  }
50171
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
50172
+ query["MaxResults"] = request.maxResults;
50173
+ }
50174
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
50175
+ query["NextToken"] = request.nextToken;
50176
+ }
49537
50177
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
49538
50178
  query["OwnerAccount"] = request.ownerAccount;
49539
50179
  }
@@ -49552,6 +50192,9 @@ class Client extends openapi_client_1.default {
49552
50192
  if (!tea_util_1.default.isUnset(request.regionId)) {
49553
50193
  query["RegionId"] = request.regionId;
49554
50194
  }
50195
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
50196
+ query["ResourceGroupId"] = request.resourceGroupId;
50197
+ }
49555
50198
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
49556
50199
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
49557
50200
  }
@@ -49577,6 +50220,14 @@ class Client extends openapi_client_1.default {
49577
50220
  });
49578
50221
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeActivationsResponse({}));
49579
50222
  }
50223
+ /**
50224
+ * You can use one of the following methods to check the responses:
50225
+ * - Method 1: When you call the DescribeActivations operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeActivations operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and use MaxResults to specify the maximum number of entries to return in this call.
50226
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
50227
+ *
50228
+ * @param request DescribeActivationsRequest
50229
+ * @return DescribeActivationsResponse
50230
+ */
49580
50231
  async describeActivations(request) {
49581
50232
  let runtime = new $Util.RuntimeOptions({});
49582
50233
  return await this.describeActivationsWithOptions(request, runtime);
@@ -49708,6 +50359,9 @@ class Client extends openapi_client_1.default {
49708
50359
  if (!tea_util_1.default.isUnset(request.regionId)) {
49709
50360
  query["RegionId"] = request.regionId;
49710
50361
  }
50362
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
50363
+ query["ResourceGroupId"] = request.resourceGroupId;
50364
+ }
49711
50365
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
49712
50366
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
49713
50367
  }
@@ -50199,12 +50853,28 @@ class Client extends openapi_client_1.default {
50199
50853
  let runtime = new $Util.RuntimeOptions({});
50200
50854
  return await this.describeClassicLinkInstancesWithOptions(request, runtime);
50201
50855
  }
50856
+ /**
50857
+ * - Before you run commands on or send files to instances, especially new instances, we recommend that you query the status of Cloud Assistant on the instances by calling this operation and checking the return value of CloudAssistantStatus. Run commands on or send files to the instances only when the return value is true.
50858
+ * - You can use one of the following methods to check the responses:
50859
+ * - Method 1: When you call the DescribeCloudAssistantStatus operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeCloudAssistantStatus operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
50860
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
50861
+ *
50862
+ * @param request DescribeCloudAssistantStatusRequest
50863
+ * @param runtime runtime options for this request RuntimeOptions
50864
+ * @return DescribeCloudAssistantStatusResponse
50865
+ */
50202
50866
  async describeCloudAssistantStatusWithOptions(request, runtime) {
50203
50867
  tea_util_1.default.validateModel(request);
50204
50868
  let query = {};
50205
50869
  if (!tea_util_1.default.isUnset(request.instanceId)) {
50206
50870
  query["InstanceId"] = request.instanceId;
50207
50871
  }
50872
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
50873
+ query["MaxResults"] = request.maxResults;
50874
+ }
50875
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
50876
+ query["NextToken"] = request.nextToken;
50877
+ }
50208
50878
  if (!tea_util_1.default.isUnset(request.OSType)) {
50209
50879
  query["OSType"] = request.OSType;
50210
50880
  }
@@ -50248,6 +50918,15 @@ class Client extends openapi_client_1.default {
50248
50918
  });
50249
50919
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeCloudAssistantStatusResponse({}));
50250
50920
  }
50921
+ /**
50922
+ * - Before you run commands on or send files to instances, especially new instances, we recommend that you query the status of Cloud Assistant on the instances by calling this operation and checking the return value of CloudAssistantStatus. Run commands on or send files to the instances only when the return value is true.
50923
+ * - You can use one of the following methods to check the responses:
50924
+ * - Method 1: When you call the DescribeCloudAssistantStatus operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeCloudAssistantStatus operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
50925
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
50926
+ *
50927
+ * @param request DescribeCloudAssistantStatusRequest
50928
+ * @return DescribeCloudAssistantStatusResponse
50929
+ */
50251
50930
  async describeCloudAssistantStatus(request) {
50252
50931
  let runtime = new $Util.RuntimeOptions({});
50253
50932
  return await this.describeCloudAssistantStatusWithOptions(request, runtime);
@@ -50306,7 +50985,10 @@ class Client extends openapi_client_1.default {
50306
50985
  return await this.describeClustersWithOptions(request, runtime);
50307
50986
  }
50308
50987
  /**
50309
- * If you specify only `Action` and `RegionId` to call this operation, all the available commands (`CommandId`) that you created in the specified region are queried by default.
50988
+ * If you specify only the `Action` and `RegionId` parameters, all the available commands (`CommandId`) that you created in the specified region are queried by default.
50989
+ * You can use one of the following methods to check the responses:
50990
+ * - Method 1: During a paged query, when you call the DescribeCommands operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeCommands operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
50991
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
50310
50992
  *
50311
50993
  * @param request DescribeCommandsRequest
50312
50994
  * @param runtime runtime options for this request RuntimeOptions
@@ -50327,9 +51009,15 @@ class Client extends openapi_client_1.default {
50327
51009
  if (!tea_util_1.default.isUnset(request.latest)) {
50328
51010
  query["Latest"] = request.latest;
50329
51011
  }
51012
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
51013
+ query["MaxResults"] = request.maxResults;
51014
+ }
50330
51015
  if (!tea_util_1.default.isUnset(request.name)) {
50331
51016
  query["Name"] = request.name;
50332
51017
  }
51018
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
51019
+ query["NextToken"] = request.nextToken;
51020
+ }
50333
51021
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
50334
51022
  query["OwnerAccount"] = request.ownerAccount;
50335
51023
  }
@@ -50351,6 +51039,9 @@ class Client extends openapi_client_1.default {
50351
51039
  if (!tea_util_1.default.isUnset(request.regionId)) {
50352
51040
  query["RegionId"] = request.regionId;
50353
51041
  }
51042
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
51043
+ query["ResourceGroupId"] = request.resourceGroupId;
51044
+ }
50354
51045
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
50355
51046
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
50356
51047
  }
@@ -50380,7 +51071,10 @@ class Client extends openapi_client_1.default {
50380
51071
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeCommandsResponse({}));
50381
51072
  }
50382
51073
  /**
50383
- * If you specify only `Action` and `RegionId` to call this operation, all the available commands (`CommandId`) that you created in the specified region are queried by default.
51074
+ * If you specify only the `Action` and `RegionId` parameters, all the available commands (`CommandId`) that you created in the specified region are queried by default.
51075
+ * You can use one of the following methods to check the responses:
51076
+ * - Method 1: During a paged query, when you call the DescribeCommands operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeCommands operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
51077
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
50384
51078
  *
50385
51079
  * @param request DescribeCommandsRequest
50386
51080
  * @return DescribeCommandsResponse
@@ -50553,9 +51247,8 @@ class Client extends openapi_client_1.default {
50553
51247
  return await this.describeDedicatedHostTypesWithOptions(request, runtime);
50554
51248
  }
50555
51249
  /**
50556
- * ## Usage notes
50557
- * You can use one of the following methods to query the details of dedicated hosts:
50558
- * * Specify `DedicatedHostIds` to query the details of dedicated hosts.
51250
+ * You can use one of the following methods to query the information about dedicated hosts:
51251
+ * * Specify `DedicatedHostIds` to query the details of specified dedicated hosts.
50559
51252
  * * Specify `DedicatedHostClusterId` to query the details of the dedicated hosts in a dedicated host cluster.
50560
51253
  *
50561
51254
  * @param request DescribeDedicatedHostsRequest
@@ -50633,9 +51326,8 @@ class Client extends openapi_client_1.default {
50633
51326
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeDedicatedHostsResponse({}));
50634
51327
  }
50635
51328
  /**
50636
- * ## Usage notes
50637
- * You can use one of the following methods to query the details of dedicated hosts:
50638
- * * Specify `DedicatedHostIds` to query the details of dedicated hosts.
51329
+ * You can use one of the following methods to query the information about dedicated hosts:
51330
+ * * Specify `DedicatedHostIds` to query the details of specified dedicated hosts.
50639
51331
  * * Specify `DedicatedHostClusterId` to query the details of the dedicated hosts in a dedicated host cluster.
50640
51332
  *
50641
51333
  * @param request DescribeDedicatedHostsRequest
@@ -50646,14 +51338,16 @@ class Client extends openapi_client_1.default {
50646
51338
  return await this.describeDedicatedHostsWithOptions(request, runtime);
50647
51339
  }
50648
51340
  /**
50649
- * You can call this operation to query the details of resources you filed with Alibaba Cloud, including the types, delivery status, and consumption details of the resources.
50650
- * By default, the filing tickets of I/O optimized VPC-type instances are queried.
50651
- * For information about how to create (CreateDemand), modify (ModifyDemand), and delete (DeleteDemand) filing tickets on ECS resources, contact your account manager.
51341
+ * @deprecated : DescribeDemands is deprecated, please use Ecs::2014-05-26::DescribeCapacityReservations instead.
51342
+ * You can call this operation to query the details of resources that you filed with Alibaba Cloud, including the types, delivery status, and consumption details of the resources.
51343
+ * By default, the demands for I/O optimized instances of the Virtual Private Cloud (VPC) type are queried.
51344
+ * For information about how to create (CreateDemand), modify (ModifyDemand), and delete (DeleteDemand) demands for ECS resources, contact your account manager.
50652
51345
  *
50653
51346
  * @param request DescribeDemandsRequest
50654
51347
  * @param runtime runtime options for this request RuntimeOptions
50655
51348
  * @return DescribeDemandsResponse
50656
51349
  */
51350
+ // Deprecated
50657
51351
  async describeDemandsWithOptions(request, runtime) {
50658
51352
  tea_util_1.default.validateModel(request);
50659
51353
  let query = {};
@@ -50725,13 +51419,15 @@ class Client extends openapi_client_1.default {
50725
51419
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeDemandsResponse({}));
50726
51420
  }
50727
51421
  /**
50728
- * You can call this operation to query the details of resources you filed with Alibaba Cloud, including the types, delivery status, and consumption details of the resources.
50729
- * By default, the filing tickets of I/O optimized VPC-type instances are queried.
50730
- * For information about how to create (CreateDemand), modify (ModifyDemand), and delete (DeleteDemand) filing tickets on ECS resources, contact your account manager.
51422
+ * @deprecated : DescribeDemands is deprecated, please use Ecs::2014-05-26::DescribeCapacityReservations instead.
51423
+ * You can call this operation to query the details of resources that you filed with Alibaba Cloud, including the types, delivery status, and consumption details of the resources.
51424
+ * By default, the demands for I/O optimized instances of the Virtual Private Cloud (VPC) type are queried.
51425
+ * For information about how to create (CreateDemand), modify (ModifyDemand), and delete (DeleteDemand) demands for ECS resources, contact your account manager.
50731
51426
  *
50732
51427
  * @param request DescribeDemandsRequest
50733
51428
  * @return DescribeDemandsResponse
50734
51429
  */
51430
+ // Deprecated
50735
51431
  async describeDemands(request) {
50736
51432
  let runtime = new $Util.RuntimeOptions({});
50737
51433
  return await this.describeDemandsWithOptions(request, runtime);
@@ -51597,7 +52293,7 @@ class Client extends openapi_client_1.default {
51597
52293
  }
51598
52294
  /**
51599
52295
  * The monitoring data includes traffic sent and received over the internal network, the number of packets sent and received by the secondary ENI, and the number of dropped packets sent and received by the secondary ENI. Specific information may be missing from the returned monitoring data. This is because the system cannot obtain the relevant information. For example, if the instance to which the secondary ENI is bound is in the Stopped state, or if the secondary ENI is not bound to an instance and is in the Available state, the monitoring data of the secondary ENI cannot be obtained. When you call this operation, take note of the following items:
51600
- * * Up to 400 monitoring data entries can be returned at a time. If the value that is calculated by using the following formula is greater than 400: (EndTime StartTime)/Period, an error is returned.
52296
+ * * Up to 400 monitoring data entries can be returned at a time. If the value that is calculated by using the following formula is greater than 400: (EndTime - StartTime)/Period, an error is returned.
51601
52297
  * * Only the monitoring data within the last 30 days can be queried. If the value of StartTime is more than 30 days earlier than the time when you call this operation, an error is returned.
51602
52298
  *
51603
52299
  * @param request DescribeEniMonitorDataRequest
@@ -51655,7 +52351,7 @@ class Client extends openapi_client_1.default {
51655
52351
  }
51656
52352
  /**
51657
52353
  * The monitoring data includes traffic sent and received over the internal network, the number of packets sent and received by the secondary ENI, and the number of dropped packets sent and received by the secondary ENI. Specific information may be missing from the returned monitoring data. This is because the system cannot obtain the relevant information. For example, if the instance to which the secondary ENI is bound is in the Stopped state, or if the secondary ENI is not bound to an instance and is in the Available state, the monitoring data of the secondary ENI cannot be obtained. When you call this operation, take note of the following items:
51658
- * * Up to 400 monitoring data entries can be returned at a time. If the value that is calculated by using the following formula is greater than 400: (EndTime StartTime)/Period, an error is returned.
52354
+ * * Up to 400 monitoring data entries can be returned at a time. If the value that is calculated by using the following formula is greater than 400: (EndTime - StartTime)/Period, an error is returned.
51659
52355
  * * Only the monitoring data within the last 30 days can be queried. If the value of StartTime is more than 30 days earlier than the time when you call this operation, an error is returned.
51660
52356
  *
51661
52357
  * @param request DescribeEniMonitorDataRequest
@@ -52745,7 +53441,7 @@ class Client extends openapi_client_1.default {
52745
53441
  }
52746
53442
  /**
52747
53443
  * Take note of the following items:
52748
- * * Up to 400 monitoring data entries can be returned at a time. An error is returned if the value that is calculated by using the following formula is greater than 400: `(EndTime StartTime)/Period`.
53444
+ * * Up to 400 monitoring data entries can be returned at a time. An error is returned if the value that is calculated by using the following formula is greater than 400: `(EndTime - StartTime)/Period`.
52749
53445
  * * You can query the monitoring data of the last 30 days. If the value of the `StartTime` parameter is more than 30 days earlier than the current time, an error is returned.
52750
53446
  * * In some scenarios, such as when the instance is in the Stopped state, the system cannot obtain the relevant information and a portion may be missing from the returned monitoring data.
52751
53447
  *
@@ -52798,7 +53494,7 @@ class Client extends openapi_client_1.default {
52798
53494
  }
52799
53495
  /**
52800
53496
  * Take note of the following items:
52801
- * * Up to 400 monitoring data entries can be returned at a time. An error is returned if the value that is calculated by using the following formula is greater than 400: `(EndTime StartTime)/Period`.
53497
+ * * Up to 400 monitoring data entries can be returned at a time. An error is returned if the value that is calculated by using the following formula is greater than 400: `(EndTime - StartTime)/Period`.
52802
53498
  * * You can query the monitoring data of the last 30 days. If the value of the `StartTime` parameter is more than 30 days earlier than the current time, an error is returned.
52803
53499
  * * In some scenarios, such as when the instance is in the Stopped state, the system cannot obtain the relevant information and a portion may be missing from the returned monitoring data.
52804
53500
  *
@@ -53032,12 +53728,12 @@ class Client extends openapi_client_1.default {
53032
53728
  return await this.describeInstanceTypeFamiliesWithOptions(request, runtime);
53033
53729
  }
53034
53730
  /**
53035
- * ## Description
53731
+ * ## Usage notes
53036
53732
  * Before you call this operation, take note of the following items:
53037
- * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
53038
- * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
53039
- * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
53040
- * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
53733
+ * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results.
53734
+ * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to this return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
53735
+ * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specified region, call the [DescribeAvailableResource](~~66186~~) operation.
53736
+ * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
53041
53737
  *
53042
53738
  * @param request DescribeInstanceTypesRequest
53043
53739
  * @param runtime runtime options for this request RuntimeOptions
@@ -53186,12 +53882,12 @@ class Client extends openapi_client_1.default {
53186
53882
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceTypesResponse({}));
53187
53883
  }
53188
53884
  /**
53189
- * ## Description
53885
+ * ## Usage notes
53190
53886
  * Before you call this operation, take note of the following items:
53191
- * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results. For information about the best practices for using DescribeInstanceTypes, see [Compare the specifications of instance types](https://help.aliyun.com/practice_detail/461278) .
53192
- * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to the return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
53193
- * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specific region, call the [DescribeAvailableResource](~~66186~~) operation.
53194
- * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://selfservice.console.aliyun.com/ticket/createIndex.htm).
53887
+ * * The MaxResults parameter specifies the maximum number of entries to return on each page. The maximum value of this parameter is changed from 1600 to 100. If you called this operation in 2022, you can continue to use 1600 as the maximum value of MaxResults until November 15, 2023. As of November 15, 2023, only 100 can be used as the maximum value of MaxResults. If you do not specify the NextToken parameter when you call the DescribeInstanceTypes operation, only the first page of results that contains up to 100 entries is returned. If you want to retrieve more results, specify the NextToken parameter to perform paged queries, or specify filter conditions to filter results.
53888
+ * * We recommend that you specify the MaxResults and NextToken parameters to perform paged queries. The first time you call the DescribeInstanceTypes operation, specify MaxResults to limit the maximum number of entries to return in the call. If the number of entries to return exceeds the specified value of MaxResults, the response includes a NextToken value. You can set NextToken to this return value and specify MaxResults in your next request to DescribeInstanceTypes to retrieve the next page of results.
53889
+ * * The DescribeInstanceTypes operation is used to query only the specifications and performance information of instance types. To query instance types that are available in a specified region, call the [DescribeAvailableResource](~~66186~~) operation.
53890
+ * * To use special instance types such as instance types that are unavailable for purchase, [submit a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
53195
53891
  *
53196
53892
  * @param request DescribeInstanceTypesRequest
53197
53893
  * @return DescribeInstanceTypesResponse
@@ -53200,62 +53896,6 @@ class Client extends openapi_client_1.default {
53200
53896
  let runtime = new $Util.RuntimeOptions({});
53201
53897
  return await this.describeInstanceTypesWithOptions(request, runtime);
53202
53898
  }
53203
- /**
53204
- * @deprecated
53205
- *
53206
- * @param request DescribeInstanceVncPasswdRequest
53207
- * @param runtime runtime options for this request RuntimeOptions
53208
- * @return DescribeInstanceVncPasswdResponse
53209
- */
53210
- // Deprecated
53211
- async describeInstanceVncPasswdWithOptions(request, runtime) {
53212
- tea_util_1.default.validateModel(request);
53213
- let query = {};
53214
- if (!tea_util_1.default.isUnset(request.instanceId)) {
53215
- query["InstanceId"] = request.instanceId;
53216
- }
53217
- if (!tea_util_1.default.isUnset(request.ownerAccount)) {
53218
- query["OwnerAccount"] = request.ownerAccount;
53219
- }
53220
- if (!tea_util_1.default.isUnset(request.ownerId)) {
53221
- query["OwnerId"] = request.ownerId;
53222
- }
53223
- if (!tea_util_1.default.isUnset(request.regionId)) {
53224
- query["RegionId"] = request.regionId;
53225
- }
53226
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
53227
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
53228
- }
53229
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
53230
- query["ResourceOwnerId"] = request.resourceOwnerId;
53231
- }
53232
- let req = new $OpenApi.OpenApiRequest({
53233
- query: openapi_util_1.default.query(query),
53234
- });
53235
- let params = new $OpenApi.Params({
53236
- action: "DescribeInstanceVncPasswd",
53237
- version: "2014-05-26",
53238
- protocol: "HTTPS",
53239
- pathname: "/",
53240
- method: "POST",
53241
- authType: "AK",
53242
- style: "RPC",
53243
- reqBodyType: "formData",
53244
- bodyType: "json",
53245
- });
53246
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceVncPasswdResponse({}));
53247
- }
53248
- /**
53249
- * @deprecated
53250
- *
53251
- * @param request DescribeInstanceVncPasswdRequest
53252
- * @return DescribeInstanceVncPasswdResponse
53253
- */
53254
- // Deprecated
53255
- async describeInstanceVncPasswd(request) {
53256
- let runtime = new $Util.RuntimeOptions({});
53257
- return await this.describeInstanceVncPasswdWithOptions(request, runtime);
53258
- }
53259
53899
  /**
53260
53900
  * ## Description
53261
53901
  * When you call this operation, take note of the following items:
@@ -53524,7 +54164,7 @@ class Client extends openapi_client_1.default {
53524
54164
  }
53525
54165
  /**
53526
54166
  * The response includes instance states and instance system events that are in the Scheduled state.
53527
- * If a period is specified, events are queried based on the specified period.
54167
+ * You can specify a period of time to query events that occurred within the period of time.
53528
54168
  *
53529
54169
  * @param request DescribeInstancesFullStatusRequest
53530
54170
  * @param runtime runtime options for this request RuntimeOptions
@@ -53599,7 +54239,7 @@ class Client extends openapi_client_1.default {
53599
54239
  }
53600
54240
  /**
53601
54241
  * The response includes instance states and instance system events that are in the Scheduled state.
53602
- * If a period is specified, events are queried based on the specified period.
54242
+ * You can specify a period of time to query events that occurred within the period of time.
53603
54243
  *
53604
54244
  * @param request DescribeInstancesFullStatusRequest
53605
54245
  * @return DescribeInstancesFullStatusResponse
@@ -53609,9 +54249,10 @@ class Client extends openapi_client_1.default {
53609
54249
  return await this.describeInstancesFullStatusWithOptions(request, runtime);
53610
54250
  }
53611
54251
  /**
53612
- * The number of times that the command is run on the instance.
53613
- * * If the command is set to run only once on the instance, the value is 0 or 1.
53614
- * * If the command is set to run on a schedule on the instance, the value is the number of times that the command is run.
54252
+ * * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the actual execution results.
54253
+ * * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
54254
+ * - Method 1: During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
54255
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
53615
54256
  *
53616
54257
  * @param request DescribeInvocationResultsRequest
53617
54258
  * @param runtime runtime options for this request RuntimeOptions
@@ -53638,6 +54279,12 @@ class Client extends openapi_client_1.default {
53638
54279
  if (!tea_util_1.default.isUnset(request.invokeRecordStatus)) {
53639
54280
  query["InvokeRecordStatus"] = request.invokeRecordStatus;
53640
54281
  }
54282
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
54283
+ query["MaxResults"] = request.maxResults;
54284
+ }
54285
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
54286
+ query["NextToken"] = request.nextToken;
54287
+ }
53641
54288
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
53642
54289
  query["OwnerAccount"] = request.ownerAccount;
53643
54290
  }
@@ -53685,9 +54332,10 @@ class Client extends openapi_client_1.default {
53685
54332
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInvocationResultsResponse({}));
53686
54333
  }
53687
54334
  /**
53688
- * The number of times that the command is run on the instance.
53689
- * * If the command is set to run only once on the instance, the value is 0 or 1.
53690
- * * If the command is set to run on a schedule on the instance, the value is the number of times that the command is run.
54335
+ * * After you run a command, the command may fail to run or may return unexpected results. You can call this operation to query the actual execution results.
54336
+ * * You can query information about command executions within the last four weeks. Up to 100,000 pieces of execution information can be retained.
54337
+ * - Method 1: During a paged query, when you call the DescribeInvocationResults operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocationResults operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
54338
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
53691
54339
  *
53692
54340
  * @param request DescribeInvocationResultsRequest
53693
54341
  * @return DescribeInvocationResultsResponse
@@ -53697,8 +54345,10 @@ class Client extends openapi_client_1.default {
53697
54345
  return await this.describeInvocationResultsWithOptions(request, runtime);
53698
54346
  }
53699
54347
  /**
53700
- * * After you run a command, the command may not succeed or return the expected result. You can call this operation to query the execution result.
53701
- * * You can query information about command executions within the last four weeks. A maximum of 100,000 entries of execution information can be retained.
54348
+ * - After you run a command, the command may not succeed or return the expected result. You can call this operation to query the execution result.
54349
+ * - You can query information about command executions within the last four weeks. A maximum of 100,000 entries of execution information can be retained.
54350
+ * - Method 1: During a paged query, when you call the DescribeInvocations operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocations operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
54351
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
53702
54352
  *
53703
54353
  * @param request DescribeInvocationsRequest
53704
54354
  * @param runtime runtime options for this request RuntimeOptions
@@ -53731,6 +54381,12 @@ class Client extends openapi_client_1.default {
53731
54381
  if (!tea_util_1.default.isUnset(request.invokeStatus)) {
53732
54382
  query["InvokeStatus"] = request.invokeStatus;
53733
54383
  }
54384
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
54385
+ query["MaxResults"] = request.maxResults;
54386
+ }
54387
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
54388
+ query["NextToken"] = request.nextToken;
54389
+ }
53734
54390
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
53735
54391
  query["OwnerAccount"] = request.ownerAccount;
53736
54392
  }
@@ -53784,8 +54440,10 @@ class Client extends openapi_client_1.default {
53784
54440
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeInvocationsResponse({}));
53785
54441
  }
53786
54442
  /**
53787
- * * After you run a command, the command may not succeed or return the expected result. You can call this operation to query the execution result.
53788
- * * You can query information about command executions within the last four weeks. A maximum of 100,000 entries of execution information can be retained.
54443
+ * - After you run a command, the command may not succeed or return the expected result. You can call this operation to query the execution result.
54444
+ * - You can query information about command executions within the last four weeks. A maximum of 100,000 entries of execution information can be retained.
54445
+ * - Method 1: During a paged query, when you call the DescribeInvocations operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeInvocations operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
54446
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
53789
54447
  *
53790
54448
  * @param request DescribeInvocationsRequest
53791
54449
  * @return DescribeInvocationsResponse
@@ -53797,6 +54455,9 @@ class Client extends openapi_client_1.default {
53797
54455
  async describeKeyPairsWithOptions(request, runtime) {
53798
54456
  tea_util_1.default.validateModel(request);
53799
54457
  let query = {};
54458
+ if (!tea_util_1.default.isUnset(request.includePublicKey)) {
54459
+ query["IncludePublicKey"] = request.includePublicKey;
54460
+ }
53800
54461
  if (!tea_util_1.default.isUnset(request.keyPairFingerPrint)) {
53801
54462
  query["KeyPairFingerPrint"] = request.keyPairFingerPrint;
53802
54463
  }
@@ -54036,6 +54697,15 @@ class Client extends openapi_client_1.default {
54036
54697
  let runtime = new $Util.RuntimeOptions({});
54037
54698
  return await this.describeLimitationWithOptions(request, runtime);
54038
54699
  }
54700
+ /**
54701
+ * You can use one of the following methods to check the responses:
54702
+ * - Method 1: When you call the DescribeInstances operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeInstances operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and use MaxResults to specify the maximum number of entries to return in the call.
54703
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
54704
+ *
54705
+ * @param request DescribeManagedInstancesRequest
54706
+ * @param runtime runtime options for this request RuntimeOptions
54707
+ * @return DescribeManagedInstancesResponse
54708
+ */
54039
54709
  async describeManagedInstancesWithOptions(request, runtime) {
54040
54710
  tea_util_1.default.validateModel(request);
54041
54711
  let query = {};
@@ -54051,6 +54721,12 @@ class Client extends openapi_client_1.default {
54051
54721
  if (!tea_util_1.default.isUnset(request.instanceName)) {
54052
54722
  query["InstanceName"] = request.instanceName;
54053
54723
  }
54724
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
54725
+ query["MaxResults"] = request.maxResults;
54726
+ }
54727
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
54728
+ query["NextToken"] = request.nextToken;
54729
+ }
54054
54730
  if (!tea_util_1.default.isUnset(request.osType)) {
54055
54731
  query["OsType"] = request.osType;
54056
54732
  }
@@ -54072,6 +54748,9 @@ class Client extends openapi_client_1.default {
54072
54748
  if (!tea_util_1.default.isUnset(request.regionId)) {
54073
54749
  query["RegionId"] = request.regionId;
54074
54750
  }
54751
+ if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
54752
+ query["ResourceGroupId"] = request.resourceGroupId;
54753
+ }
54075
54754
  if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
54076
54755
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
54077
54756
  }
@@ -54097,6 +54776,14 @@ class Client extends openapi_client_1.default {
54097
54776
  });
54098
54777
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeManagedInstancesResponse({}));
54099
54778
  }
54779
+ /**
54780
+ * You can use one of the following methods to check the responses:
54781
+ * - Method 1: When you call the DescribeInstances operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the DescribeInstances operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and use MaxResults to specify the maximum number of entries to return in the call.
54782
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
54783
+ *
54784
+ * @param request DescribeManagedInstancesRequest
54785
+ * @return DescribeManagedInstancesResponse
54786
+ */
54100
54787
  async describeManagedInstances(request) {
54101
54788
  let runtime = new $Util.RuntimeOptions({});
54102
54789
  return await this.describeManagedInstancesWithOptions(request, runtime);
@@ -54166,6 +54853,14 @@ class Client extends openapi_client_1.default {
54166
54853
  let runtime = new $Util.RuntimeOptions({});
54167
54854
  return await this.describeNatGatewaysWithOptions(request, runtime);
54168
54855
  }
54856
+ /**
54857
+ * ## Debugging
54858
+ * [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeNetworkInterfaceAttribute\\&type=RPC\\&version=2014-05-26)
54859
+ *
54860
+ * @param request DescribeNetworkInterfaceAttributeRequest
54861
+ * @param runtime runtime options for this request RuntimeOptions
54862
+ * @return DescribeNetworkInterfaceAttributeResponse
54863
+ */
54169
54864
  async describeNetworkInterfaceAttributeWithOptions(request, runtime) {
54170
54865
  tea_util_1.default.validateModel(request);
54171
54866
  let query = {};
@@ -54212,6 +54907,13 @@ class Client extends openapi_client_1.default {
54212
54907
  });
54213
54908
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeNetworkInterfaceAttributeResponse({}));
54214
54909
  }
54910
+ /**
54911
+ * ## Debugging
54912
+ * [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=DescribeNetworkInterfaceAttribute\\&type=RPC\\&version=2014-05-26)
54913
+ *
54914
+ * @param request DescribeNetworkInterfaceAttributeRequest
54915
+ * @return DescribeNetworkInterfaceAttributeResponse
54916
+ */
54215
54917
  async describeNetworkInterfaceAttribute(request) {
54216
54918
  let runtime = new $Util.RuntimeOptions({});
54217
54919
  return await this.describeNetworkInterfaceAttributeWithOptions(request, runtime);
@@ -54270,8 +54972,7 @@ class Client extends openapi_client_1.default {
54270
54972
  return await this.describeNetworkInterfacePermissionsWithOptions(request, runtime);
54271
54973
  }
54272
54974
  /**
54273
- * The `DescribeNetworkInterfaces` operation supports paged queries. During a paged query, when you call the DescribeNetworkInterfaces operation to retrieve the first page of results, set `MaxResults` to limit the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which can be used in the next call to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
54274
- * > You must specify `MaxResults` or `NextToken` for the system to return results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
54975
+ * You can call the `DescribeNetworkInterfaces` operation for paged query by specifying the `MaxResults` or `NextToken` parameter. During a paged query, when you call the DescribeNetworkInterfaces operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you call the DescribeNetworkInterfaces operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
54275
54976
  *
54276
54977
  * @param request DescribeNetworkInterfacesRequest
54277
54978
  * @param runtime runtime options for this request RuntimeOptions
@@ -54372,8 +55073,7 @@ class Client extends openapi_client_1.default {
54372
55073
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeNetworkInterfacesResponse({}));
54373
55074
  }
54374
55075
  /**
54375
- * The `DescribeNetworkInterfaces` operation supports paged queries. During a paged query, when you call the DescribeNetworkInterfaces operation to retrieve the first page of results, set `MaxResults` to limit the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token, which can be used in the next call to retrieve a new page of results. When you perform the next request, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
54376
- * > You must specify `MaxResults` or `NextToken` for the system to return results based on the preceding pagination mechanism. Otherwise, the system paginates the results based on the `PageNumber` and `PageSize` parameters.
55076
+ * You can call the `DescribeNetworkInterfaces` operation for paged query by specifying the `MaxResults` or `NextToken` parameter. During a paged query, when you call the DescribeNetworkInterfaces operation to retrieve the first page of results, set `MaxResults` to specify the maximum number of entries to return in the call. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you call the DescribeNetworkInterfaces operation to retrieve a new page of results, set `NextToken` to the `NextToken` value returned in the previous call and set `MaxResults` to specify the maximum number of entries to return in this call.
54377
55077
  *
54378
55078
  * @param request DescribeNetworkInterfacesRequest
54379
55079
  * @return DescribeNetworkInterfacesResponse
@@ -55418,6 +56118,94 @@ class Client extends openapi_client_1.default {
55418
56118
  let runtime = new $Util.RuntimeOptions({});
55419
56119
  return await this.describeRouterInterfacesWithOptions(request, runtime);
55420
56120
  }
56121
+ async describeSavingsPlanEstimationWithOptions(request, runtime) {
56122
+ tea_util_1.default.validateModel(request);
56123
+ let query = {};
56124
+ if (!tea_util_1.default.isUnset(request.offeringType)) {
56125
+ query["OfferingType"] = request.offeringType;
56126
+ }
56127
+ if (!tea_util_1.default.isUnset(request.period)) {
56128
+ query["Period"] = request.period;
56129
+ }
56130
+ if (!tea_util_1.default.isUnset(request.periodUnit)) {
56131
+ query["PeriodUnit"] = request.periodUnit;
56132
+ }
56133
+ if (!tea_util_1.default.isUnset(request.planType)) {
56134
+ query["PlanType"] = request.planType;
56135
+ }
56136
+ if (!tea_util_1.default.isUnset(request.regionId)) {
56137
+ query["RegionId"] = request.regionId;
56138
+ }
56139
+ if (!tea_util_1.default.isUnset(request.resourceId)) {
56140
+ query["ResourceId"] = request.resourceId;
56141
+ }
56142
+ let req = new $OpenApi.OpenApiRequest({
56143
+ query: openapi_util_1.default.query(query),
56144
+ });
56145
+ let params = new $OpenApi.Params({
56146
+ action: "DescribeSavingsPlanEstimation",
56147
+ version: "2014-05-26",
56148
+ protocol: "HTTPS",
56149
+ pathname: "/",
56150
+ method: "POST",
56151
+ authType: "AK",
56152
+ style: "RPC",
56153
+ reqBodyType: "formData",
56154
+ bodyType: "json",
56155
+ });
56156
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeSavingsPlanEstimationResponse({}));
56157
+ }
56158
+ async describeSavingsPlanEstimation(request) {
56159
+ let runtime = new $Util.RuntimeOptions({});
56160
+ return await this.describeSavingsPlanEstimationWithOptions(request, runtime);
56161
+ }
56162
+ async describeSavingsPlanPriceWithOptions(request, runtime) {
56163
+ tea_util_1.default.validateModel(request);
56164
+ let query = {};
56165
+ if (!tea_util_1.default.isUnset(request.committedAmount)) {
56166
+ query["CommittedAmount"] = request.committedAmount;
56167
+ }
56168
+ if (!tea_util_1.default.isUnset(request.instanceTypeFamily)) {
56169
+ query["InstanceTypeFamily"] = request.instanceTypeFamily;
56170
+ }
56171
+ if (!tea_util_1.default.isUnset(request.offeringType)) {
56172
+ query["OfferingType"] = request.offeringType;
56173
+ }
56174
+ if (!tea_util_1.default.isUnset(request.period)) {
56175
+ query["Period"] = request.period;
56176
+ }
56177
+ if (!tea_util_1.default.isUnset(request.periodUnit)) {
56178
+ query["PeriodUnit"] = request.periodUnit;
56179
+ }
56180
+ if (!tea_util_1.default.isUnset(request.planType)) {
56181
+ query["PlanType"] = request.planType;
56182
+ }
56183
+ if (!tea_util_1.default.isUnset(request.regionId)) {
56184
+ query["RegionId"] = request.regionId;
56185
+ }
56186
+ if (!tea_util_1.default.isUnset(request.resourceId)) {
56187
+ query["ResourceId"] = request.resourceId;
56188
+ }
56189
+ let req = new $OpenApi.OpenApiRequest({
56190
+ query: openapi_util_1.default.query(query),
56191
+ });
56192
+ let params = new $OpenApi.Params({
56193
+ action: "DescribeSavingsPlanPrice",
56194
+ version: "2014-05-26",
56195
+ protocol: "HTTPS",
56196
+ pathname: "/",
56197
+ method: "POST",
56198
+ authType: "AK",
56199
+ style: "RPC",
56200
+ reqBodyType: "formData",
56201
+ bodyType: "json",
56202
+ });
56203
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeSavingsPlanPriceResponse({}));
56204
+ }
56205
+ async describeSavingsPlanPrice(request) {
56206
+ let runtime = new $Util.RuntimeOptions({});
56207
+ return await this.describeSavingsPlanPriceWithOptions(request, runtime);
56208
+ }
55421
56209
  async describeSecurityGroupAttributeWithOptions(request, runtime) {
55422
56210
  tea_util_1.default.validateModel(request);
55423
56211
  let query = {};
@@ -55592,6 +56380,9 @@ class Client extends openapi_client_1.default {
55592
56380
  if (!tea_util_1.default.isUnset(request.securityGroupType)) {
55593
56381
  query["SecurityGroupType"] = request.securityGroupType;
55594
56382
  }
56383
+ if (!tea_util_1.default.isUnset(request.serviceManaged)) {
56384
+ query["ServiceManaged"] = request.serviceManaged;
56385
+ }
55595
56386
  if (!tea_util_1.default.isUnset(request.tag)) {
55596
56387
  query["Tag"] = request.tag;
55597
56388
  }
@@ -55631,6 +56422,9 @@ class Client extends openapi_client_1.default {
55631
56422
  * ## Usage notes
55632
56423
  * * When you send a file, the file may fail to be sent to specified Elastic Compute Service (ECS) instances. You can call this operation to check the file sending results.
55633
56424
  * * You can call this operation to query the file sending records within the last six weeks.
56425
+ * - You can use one of the following methods to check the responses:
56426
+ * - Method 1: During a paged query, when you call the DescribeSendFileResults operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeSendFileResults operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
56427
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
55634
56428
  *
55635
56429
  * @param request DescribeSendFileResultsRequest
55636
56430
  * @param runtime runtime options for this request RuntimeOptions
@@ -55648,9 +56442,15 @@ class Client extends openapi_client_1.default {
55648
56442
  if (!tea_util_1.default.isUnset(request.invokeId)) {
55649
56443
  query["InvokeId"] = request.invokeId;
55650
56444
  }
56445
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
56446
+ query["MaxResults"] = request.maxResults;
56447
+ }
55651
56448
  if (!tea_util_1.default.isUnset(request.name)) {
55652
56449
  query["Name"] = request.name;
55653
56450
  }
56451
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
56452
+ query["NextToken"] = request.nextToken;
56453
+ }
55654
56454
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
55655
56455
  query["OwnerAccount"] = request.ownerAccount;
55656
56456
  }
@@ -55701,6 +56501,9 @@ class Client extends openapi_client_1.default {
55701
56501
  * ## Usage notes
55702
56502
  * * When you send a file, the file may fail to be sent to specified Elastic Compute Service (ECS) instances. You can call this operation to check the file sending results.
55703
56503
  * * You can call this operation to query the file sending records within the last six weeks.
56504
+ * - You can use one of the following methods to check the responses:
56505
+ * - Method 1: During a paged query, when you call the DescribeSendFileResults operation to retrieve the first page of results, set MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results. When you call the DescribeSendFileResults operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and set MaxResults to specify the maximum number of entries to return in this call.
56506
+ * - Method 2: Use PageSize to specify the number of entries to return on each page and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
55704
56507
  *
55705
56508
  * @param request DescribeSendFileResultsRequest
55706
56509
  * @return DescribeSendFileResultsResponse
@@ -55710,7 +56513,8 @@ class Client extends openapi_client_1.default {
55710
56513
  return await this.describeSendFileResultsWithOptions(request, runtime);
55711
56514
  }
55712
56515
  /**
55713
- * You can specify multiple request parameters such as `InstanceId`, `SnapshotGroupId.N`, and `Status.N` to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
56516
+ * ## [](#)Usage notes
56517
+ * You can specify multiple request parameters to be queried, such as `InstanceId`, `SnapshotGroupId.N`, and `Status.N`. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
55714
56518
  *
55715
56519
  * @param request DescribeSnapshotGroupsRequest
55716
56520
  * @param runtime runtime options for this request RuntimeOptions
@@ -55778,7 +56582,8 @@ class Client extends openapi_client_1.default {
55778
56582
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeSnapshotGroupsResponse({}));
55779
56583
  }
55780
56584
  /**
55781
- * You can specify multiple request parameters such as `InstanceId`, `SnapshotGroupId.N`, and `Status.N` to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
56585
+ * ## [](#)Usage notes
56586
+ * You can specify multiple request parameters to be queried, such as `InstanceId`, `SnapshotGroupId.N`, and `Status.N`. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.
55782
56587
  *
55783
56588
  * @param request DescribeSnapshotGroupsRequest
55784
56589
  * @return DescribeSnapshotGroupsResponse
@@ -57021,7 +57826,7 @@ class Client extends openapi_client_1.default {
57021
57826
  return await this.describeVirtualBorderRoutersForPhysicalConnectionWithOptions(request, runtime);
57022
57827
  }
57023
57828
  /**
57024
- * @deprecated
57829
+ * @deprecated : DescribeVpcs is deprecated, please use Vpc::2016-04-28::DescribeVpcs instead.
57025
57830
  *
57026
57831
  * @param request DescribeVpcsRequest
57027
57832
  * @param runtime runtime options for this request RuntimeOptions
@@ -57075,7 +57880,7 @@ class Client extends openapi_client_1.default {
57075
57880
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeVpcsResponse({}));
57076
57881
  }
57077
57882
  /**
57078
- * @deprecated
57883
+ * @deprecated : DescribeVpcs is deprecated, please use Vpc::2016-04-28::DescribeVpcs instead.
57079
57884
  *
57080
57885
  * @param request DescribeVpcsRequest
57081
57886
  * @return DescribeVpcsResponse
@@ -57719,6 +58524,7 @@ class Client extends openapi_client_1.default {
57719
58524
  /**
57720
58525
  * Before you export a custom image, complete the following operations:
57721
58526
  * * Understand the prerequisites and precautions. For more information, see [Export images](~~58181~~).
58527
+ * * The Image Format parameter is available only for the following regions: India (Mumbai), Japan (Tokyo), Australia (Sydney), Indonesia (Jakarta), Germany (Frankfurt), UAE (Dubai), US (Virginia), UK (London), Singapore, US (Silicon Valley), and Malaysia (Kuala Lumpur). By default, custom images are exported in the RAW format in regions where the Image Format parameter is unavailable.
57722
58528
  * * Use Resource Access Management (RAM) to grant Elastic Compute Service (ECS) the permissions to write data to OSS. To complete the authorization, perform the following operations:
57723
58529
  * 1. Create a role named `AliyunECSImageExportDefaultRole`, and attach the following policy to the role:
57724
58530
  * ```json
@@ -57815,6 +58621,7 @@ class Client extends openapi_client_1.default {
57815
58621
  /**
57816
58622
  * Before you export a custom image, complete the following operations:
57817
58623
  * * Understand the prerequisites and precautions. For more information, see [Export images](~~58181~~).
58624
+ * * The Image Format parameter is available only for the following regions: India (Mumbai), Japan (Tokyo), Australia (Sydney), Indonesia (Jakarta), Germany (Frankfurt), UAE (Dubai), US (Virginia), UK (London), Singapore, US (Silicon Valley), and Malaysia (Kuala Lumpur). By default, custom images are exported in the RAW format in regions where the Image Format parameter is unavailable.
57818
58625
  * * Use Resource Access Management (RAM) to grant Elastic Compute Service (ECS) the permissions to write data to OSS. To complete the authorization, perform the following operations:
57819
58626
  * 1. Create a role named `AliyunECSImageExportDefaultRole`, and attach the following policy to the role:
57820
58627
  * ```json
@@ -58087,7 +58894,7 @@ class Client extends openapi_client_1.default {
58087
58894
  * * The image supports the growpart command. To support this command, you must install the `cloud-utils-growpart` package. Package installation methods vary based on operating systems. For more information, see [Resize partitions and file systems of Linux system disks](~~111738~~).
58088
58895
  * * The image supports the resize2fs command. To support this command, you must install the `e2fsprogs` package. By default, the package is installed on the operating system. If the package is not installed, you must install it.
58089
58896
  * * The latest version of Alibaba Cloud cloud-init is installed on the operating system. If the installed version of cloud-init is 19.1, make sure that the minor version is 19.1.3 or later. If the installed version of cloud-init is 0.7.6a as in some early versions of operating systems, make sure that the minor version is 0.7.6a15 or later. For more information, see [Install cloud-init](~~57803~~).
58090
- * * If the image that you want to import uses the ARM64 architecture, you must configure the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](https://icms.alibaba-inc.com/content/ecs/image?l=1\\&m=4656\\&n=3385033).
58897
+ * * If the image that you want to import uses the ARM64 architecture, you must configure the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](~~405080~~).
58091
58898
  *
58092
58899
  * @param request ImportImageRequest
58093
58900
  * @param runtime runtime options for this request RuntimeOptions
@@ -58210,7 +59017,7 @@ class Client extends openapi_client_1.default {
58210
59017
  * * The image supports the growpart command. To support this command, you must install the `cloud-utils-growpart` package. Package installation methods vary based on operating systems. For more information, see [Resize partitions and file systems of Linux system disks](~~111738~~).
58211
59018
  * * The image supports the resize2fs command. To support this command, you must install the `e2fsprogs` package. By default, the package is installed on the operating system. If the package is not installed, you must install it.
58212
59019
  * * The latest version of Alibaba Cloud cloud-init is installed on the operating system. If the installed version of cloud-init is 19.1, make sure that the minor version is 19.1.3 or later. If the installed version of cloud-init is 0.7.6a as in some early versions of operating systems, make sure that the minor version is 0.7.6a15 or later. For more information, see [Install cloud-init](~~57803~~).
58213
- * * If the image that you want to import uses the ARM64 architecture, you must configure the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](https://icms.alibaba-inc.com/content/ecs/image?l=1\\&m=4656\\&n=3385033).
59020
+ * * If the image that you want to import uses the ARM64 architecture, you must configure the real-time clock (RTC) to use the Coordinated Universal Time (UTC) time standard. For more information, see [Linux time and time zones](~~405080~~).
58214
59021
  *
58215
59022
  * @param request ImportImageRequest
58216
59023
  * @return ImportImageResponse
@@ -58307,68 +59114,6 @@ class Client extends openapi_client_1.default {
58307
59114
  let runtime = new $Util.RuntimeOptions({});
58308
59115
  return await this.importKeyPairWithOptions(request, runtime);
58309
59116
  }
58310
- /**
58311
- * @deprecated
58312
- *
58313
- * @param request ImportSnapshotRequest
58314
- * @param runtime runtime options for this request RuntimeOptions
58315
- * @return ImportSnapshotResponse
58316
- */
58317
- // Deprecated
58318
- async importSnapshotWithOptions(request, runtime) {
58319
- tea_util_1.default.validateModel(request);
58320
- let query = {};
58321
- if (!tea_util_1.default.isUnset(request.ossBucket)) {
58322
- query["OssBucket"] = request.ossBucket;
58323
- }
58324
- if (!tea_util_1.default.isUnset(request.ossObject)) {
58325
- query["OssObject"] = request.ossObject;
58326
- }
58327
- if (!tea_util_1.default.isUnset(request.ownerId)) {
58328
- query["OwnerId"] = request.ownerId;
58329
- }
58330
- if (!tea_util_1.default.isUnset(request.regionId)) {
58331
- query["RegionId"] = request.regionId;
58332
- }
58333
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
58334
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
58335
- }
58336
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
58337
- query["ResourceOwnerId"] = request.resourceOwnerId;
58338
- }
58339
- if (!tea_util_1.default.isUnset(request.roleName)) {
58340
- query["RoleName"] = request.roleName;
58341
- }
58342
- if (!tea_util_1.default.isUnset(request.snapshotName)) {
58343
- query["SnapshotName"] = request.snapshotName;
58344
- }
58345
- let req = new $OpenApi.OpenApiRequest({
58346
- query: openapi_util_1.default.query(query),
58347
- });
58348
- let params = new $OpenApi.Params({
58349
- action: "ImportSnapshot",
58350
- version: "2014-05-26",
58351
- protocol: "HTTPS",
58352
- pathname: "/",
58353
- method: "POST",
58354
- authType: "AK",
58355
- style: "RPC",
58356
- reqBodyType: "formData",
58357
- bodyType: "json",
58358
- });
58359
- return $tea.cast(await this.callApi(params, req, runtime), new ImportSnapshotResponse({}));
58360
- }
58361
- /**
58362
- * @deprecated
58363
- *
58364
- * @param request ImportSnapshotRequest
58365
- * @return ImportSnapshotResponse
58366
- */
58367
- // Deprecated
58368
- async importSnapshot(request) {
58369
- let runtime = new $Util.RuntimeOptions({});
58370
- return await this.importSnapshotWithOptions(request, runtime);
58371
- }
58372
59117
  /**
58373
59118
  * The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
58374
59119
  *
@@ -58427,20 +59172,21 @@ class Client extends openapi_client_1.default {
58427
59172
  return await this.installCloudAssistantWithOptions(request, runtime);
58428
59173
  }
58429
59174
  /**
58430
- * * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements for running the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
58431
- * * The network type is Virtual Private Cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
58432
- * * The instances are in the `Running` state.
58433
- * * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
58434
- * * Before you run PowerShell commands, make sure that the instances have the PowerShell module configured.
58435
- * * If `Timed` is set to false, the command is run only once.
58436
- * * If `Timed` is set to true, the command is run on a schedule.
58437
- * * The schedule is specified by the `Frequency` parameter. The results of each execution of a command do not affect the next execution of the command.
58438
- * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your requirements. If you do not specify a time zone, the schedule is based on the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
58439
- * 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 ones. A scheduled task can run a command at a specified interval, only once at a specified point in time, or at designated points in time based on a cron expression with a specified year or time zone. 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~~).
58440
- * - Linux: 2.2.3.282
58441
- * - Windows: 2.1.3.282
58442
- * * 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.
58443
- * * If you enable the custom parameter feature by setting EnableParameter to true when you create a command, you must configure custom parameters in the `Parameters` when you run the command.
59175
+ * ## Usage notes
59176
+ * * ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If multiple ECS instances are specified and one of the instances does not meet the requirements for running the command, the call fails. You must specify instances that meet the requirements and call the InvokeCommand operation again.
59177
+ * * The instances are in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query instance states.
59178
+ * * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent](~~64921~~).
59179
+ * * Before you run PowerShell commands on the instances, make sure that the instances have the PowerShell module configured.
59180
+ * * The command can run only once on the instances.
59181
+ * * The command can run multiple times on the instances based on a schedule.
59182
+ * * The schedule is specified by the Frequency parameter. The results of each execution of a command do not affect the next execution of the command.
59183
+ * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information 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~~).
59184
+ * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. You can configure a command to run at a fixed interval based on a rate expression, run only once at a specified time, or run at designated times based on a cron expression. If the ClientNeedUpgrade error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Update or disable updates for Cloud Assistant Agent](~~134383~~).
59185
+ * * Linux: 2.2.3.282
59186
+ * * Windows: 2.1.3.282
59187
+ * * Commands may fail to run due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command fails to run, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
59188
+ * * If you enable the custom parameter feature when you create the command, you must specify custom parameters (`Parameters`) to run the command.
59189
+ * * Before you run a command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](~~87346~~) operation to query the state of Cloud Assistant Agent installed on the instances and make sure that the return value of CloudAssistantStatus is true.
58444
59190
  *
58445
59191
  * @param tmpReq InvokeCommandRequest
58446
59192
  * @param runtime runtime options for this request RuntimeOptions
@@ -58499,6 +59245,9 @@ class Client extends openapi_client_1.default {
58499
59245
  if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
58500
59246
  query["ResourceOwnerId"] = request.resourceOwnerId;
58501
59247
  }
59248
+ if (!tea_util_1.default.isUnset(request.resourceTag)) {
59249
+ query["ResourceTag"] = request.resourceTag;
59250
+ }
58502
59251
  if (!tea_util_1.default.isUnset(request.tag)) {
58503
59252
  query["Tag"] = request.tag;
58504
59253
  }
@@ -58531,20 +59280,21 @@ class Client extends openapi_client_1.default {
58531
59280
  return $tea.cast(await this.callApi(params, req, runtime), new InvokeCommandResponse({}));
58532
59281
  }
58533
59282
  /**
58534
- * * The ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If you specify multiple ECS instances and one of the instances does not meet the requirements for running the command, the call fails. Specify instances that meet the requirements and call the InvokeCommand operation again.
58535
- * * The network type is Virtual Private Cloud (VPC). For more information, see [What is a VPC?](~~34217~~)
58536
- * * The instances are in the `Running` state.
58537
- * * The Cloud Assistant client is installed on the instances. For more information, see [Install the Cloud Assistant client](~~64921~~).
58538
- * * Before you run PowerShell commands, make sure that the instances have the PowerShell module configured.
58539
- * * If `Timed` is set to false, the command is run only once.
58540
- * * If `Timed` is set to true, the command is run on a schedule.
58541
- * * The schedule is specified by the `Frequency` parameter. The results of each execution of a command do not affect the next execution of the command.
58542
- * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your requirements. If you do not specify a time zone, the schedule is based on the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information, see [Configure the NTP service and time zone for Linux instances](~~92803~~) or [Configure the NTP service for Windows instances](~~51890~~).
58543
- * 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 ones. A scheduled task can run a command at a specified interval, only once at a specified point in time, or at designated points in time based on a cron expression with a specified year or time zone. 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~~).
58544
- * - Linux: 2.2.3.282
58545
- * - Windows: 2.1.3.282
58546
- * * 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.
58547
- * * If you enable the custom parameter feature by setting EnableParameter to true when you create a command, you must configure custom parameters in the `Parameters` when you run the command.
59283
+ * ## Usage notes
59284
+ * * ECS instances on which you want to run the Cloud Assistant command must meet the following requirements. If multiple ECS instances are specified and one of the instances does not meet the requirements for running the command, the call fails. You must specify instances that meet the requirements and call the InvokeCommand operation again.
59285
+ * * The instances are in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query instance states.
59286
+ * * Cloud Assistant Agent is installed on the instances. For more information, see [Install Cloud Assistant Agent](~~64921~~).
59287
+ * * Before you run PowerShell commands on the instances, make sure that the instances have the PowerShell module configured.
59288
+ * * The command can run only once on the instances.
59289
+ * * The command can run multiple times on the instances based on a schedule.
59290
+ * * The schedule is specified by the Frequency parameter. The results of each execution of a command do not affect the next execution of the command.
59291
+ * * If you want to specify a schedule by using a cron expression, you can specify a time zone based on your business requirements. If you do not specify a time zone, the schedule is determined by the system time of the instance. Make sure that the time or time zone of the instance meets your business requirements. For more information 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~~).
59292
+ * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. You can configure a command to run at a fixed interval based on a rate expression, run only once at a specified time, or run at designated times based on a cron expression. If the ClientNeedUpgrade error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Update or disable updates for Cloud Assistant Agent](~~134383~~).
59293
+ * * Linux: 2.2.3.282
59294
+ * * Windows: 2.1.3.282
59295
+ * * Commands may fail to run due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command fails to run, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
59296
+ * * If you enable the custom parameter feature when you create the command, you must specify custom parameters (`Parameters`) to run the command.
59297
+ * * Before you run a command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](~~87346~~) operation to query the state of Cloud Assistant Agent installed on the instances and make sure that the return value of CloudAssistantStatus is true.
58548
59298
  *
58549
59299
  * @param request InvokeCommandRequest
58550
59300
  * @return InvokeCommandResponse
@@ -58619,8 +59369,7 @@ class Client extends openapi_client_1.default {
58619
59369
  * Take note of the following items:
58620
59370
  * * Before you add an instance to a security group, the instance must be in the **Stopped** or **Running** state.
58621
59371
  * * An instance can be added to up to five security groups.
58622
- * *
58623
- * You can increase this number to 16 by [submitting a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
59372
+ * * You can increase this number to 16 by [submitting a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
58624
59373
  * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
58625
59374
  * * The security group and the instance must reside in the same region.
58626
59375
  * * The security group and the instance must be of the same network type. If the network type is virtual private cloud (VPC), the security group and the instance must be in the same VPC.
@@ -58679,8 +59428,7 @@ class Client extends openapi_client_1.default {
58679
59428
  * Take note of the following items:
58680
59429
  * * Before you add an instance to a security group, the instance must be in the **Stopped** or **Running** state.
58681
59430
  * * An instance can be added to up to five security groups.
58682
- * *
58683
- * You can increase this number to 16 by [submitting a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
59431
+ * * You can increase this number to 16 by [submitting a ticket](https://workorder-intl.console.aliyun.com/#/ticket/createIndex).
58684
59432
  * * A basic security group can contain up to 2,000 instances. An advanced security group can contain up to 65,536 instances.
58685
59433
  * * The security group and the instance must reside in the same region.
58686
59434
  * * The security group and the instance must be of the same network type. If the network type is virtual private cloud (VPC), the security group and the instance must be in the same VPC.
@@ -58762,9 +59510,13 @@ class Client extends openapi_client_1.default {
58762
59510
  return await this.leaveSecurityGroupWithOptions(request, runtime);
58763
59511
  }
58764
59512
  /**
58765
- * Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
58766
- * * 2.2.3.344 for Linux instances
58767
- * * 2.1.3.344 for Windows instances
59513
+ * ## Usage notes
59514
+ * - Before you call this operation to query the status of Cloud Assistant plug-ins on ECS instances, make sure that the versions of Cloud Assistant Agent on the instances are not earlier than the following ones:
59515
+ * * 2.2.3.344 for Linux instances
59516
+ * * 2.1.3.344 for Windows instances
59517
+ * - You can use one of the following methods to check the responses:
59518
+ * - Method 1: When you call the ListPluginStatus operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the ListPluginStatus operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and use MaxResults to specify the maximum number of entries to return in this call.
59519
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
58768
59520
  *
58769
59521
  * @param request ListPluginStatusRequest
58770
59522
  * @param runtime runtime options for this request RuntimeOptions
@@ -58776,9 +59528,15 @@ class Client extends openapi_client_1.default {
58776
59528
  if (!tea_util_1.default.isUnset(request.instanceId)) {
58777
59529
  query["InstanceId"] = request.instanceId;
58778
59530
  }
59531
+ if (!tea_util_1.default.isUnset(request.maxResults)) {
59532
+ query["MaxResults"] = request.maxResults;
59533
+ }
58779
59534
  if (!tea_util_1.default.isUnset(request.name)) {
58780
59535
  query["Name"] = request.name;
58781
59536
  }
59537
+ if (!tea_util_1.default.isUnset(request.nextToken)) {
59538
+ query["NextToken"] = request.nextToken;
59539
+ }
58782
59540
  if (!tea_util_1.default.isUnset(request.ownerAccount)) {
58783
59541
  query["OwnerAccount"] = request.ownerAccount;
58784
59542
  }
@@ -58820,9 +59578,13 @@ class Client extends openapi_client_1.default {
58820
59578
  return $tea.cast(await this.callApi(params, req, runtime), new ListPluginStatusResponse({}));
58821
59579
  }
58822
59580
  /**
58823
- * Before you call this operation to query the states of Cloud Assistant plug-ins on ECS instances, make sure that the versions of the Cloud Assistant client installed on the instances are not earlier than the following ones:
58824
- * * 2.2.3.344 for Linux instances
58825
- * * 2.1.3.344 for Windows instances
59581
+ * ## Usage notes
59582
+ * - Before you call this operation to query the status of Cloud Assistant plug-ins on ECS instances, make sure that the versions of Cloud Assistant Agent on the instances are not earlier than the following ones:
59583
+ * * 2.2.3.344 for Linux instances
59584
+ * * 2.1.3.344 for Windows instances
59585
+ * - You can use one of the following methods to check the responses:
59586
+ * - Method 1: When you call the ListPluginStatus operation to retrieve the first page of results during a paged query, use MaxResults to specify the maximum number of entries to return in the call. The return value of NextToken is a pagination token, which you can use in the next request to retrieve a new page of results. When you call the ListPluginStatus operation to retrieve a new page of results, set NextToken to the NextToken value returned in the previous call and use MaxResults to specify the maximum number of entries to return in this call.
59587
+ * - Method 2: Use PageSize to specify the number of entries to return on each page, and then use PageNumber to specify the number of the page to return. You can use only one of the preceding methods. If you specify MaxResults or NextToken, the PageSize and PageNumber request parameters do not take effect and the TotalCount response parameter is invalid.
58826
59588
  *
58827
59589
  * @param request ListPluginStatusRequest
58828
59590
  * @return ListPluginStatusResponse
@@ -59641,6 +60403,7 @@ class Client extends openapi_client_1.default {
59641
60403
  return await this.modifyDedicatedHostsChargeTypeWithOptions(request, runtime);
59642
60404
  }
59643
60405
  /**
60406
+ * @deprecated : ModifyDemand is deprecated, please use Ecs::2014-05-26::ModifyCapacityReservation instead.
59644
60407
  * You can call this operation to modify the demand information of 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.
59645
60408
  * > This operation is in invitational preview and is not publicly available.
59646
60409
  *
@@ -59648,6 +60411,7 @@ class Client extends openapi_client_1.default {
59648
60411
  * @param runtime runtime options for this request RuntimeOptions
59649
60412
  * @return ModifyDemandResponse
59650
60413
  */
60414
+ // Deprecated
59651
60415
  async modifyDemandWithOptions(request, runtime) {
59652
60416
  tea_util_1.default.validateModel(request);
59653
60417
  let query = {};
@@ -59719,12 +60483,14 @@ class Client extends openapi_client_1.default {
59719
60483
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyDemandResponse({}));
59720
60484
  }
59721
60485
  /**
60486
+ * @deprecated : ModifyDemand is deprecated, please use Ecs::2014-05-26::ModifyCapacityReservation instead.
59722
60487
  * You can call this operation to modify the demand information of 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.
59723
60488
  * > This operation is in invitational preview and is not publicly available.
59724
60489
  *
59725
60490
  * @param request ModifyDemandRequest
59726
60491
  * @return ModifyDemandResponse
59727
60492
  */
60493
+ // Deprecated
59728
60494
  async modifyDemand(request) {
59729
60495
  let runtime = new $Util.RuntimeOptions({});
59730
60496
  return await this.modifyDemandWithOptions(request, runtime);
@@ -60682,23 +61448,30 @@ class Client extends openapi_client_1.default {
60682
61448
  return await this.modifyInstanceAttachmentAttributesWithOptions(request, runtime);
60683
61449
  }
60684
61450
  /**
60685
- * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
61451
+ * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons. No operations are allowed on the instance.
60686
61452
  * Take note of the following items:
60687
- * * Modify the hostname (`HostName`): After you modify the hostname, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new hostname does not take effect if you restart the instance from within the operating system.
61453
+ * * Modify the hostname (`HostName`): After you modify the hostname, restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new hostname does not take effect if you restart the instance from within the operating system.
60688
61454
  * * Reset the password (`Password`):
60689
- * * The instance must not be in the **Starting** state.``
60690
- * * After you reset the password, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new password does not take effect if you restart the instance from within the operating system.
61455
+ * * The instance cannot be in the **Starting** (`Starting`) state.
61456
+ * * After you reset the password, restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new password does not take effect if you restart the instance from within the operating system.
60691
61457
  * * Modify user data (`UserData`):
60692
- * * The instance must be in the **Stopped** state.``
60693
- * * The instance must support user data. For more information, see [Prepare user data](~~49121~~).
60694
- * * Change the security group (`SecurityGroupIds.N`):
60695
- * * You can move an instance to a security group of a different type. If you want to move an instance to a security group of a different type, you must be familiar with the differences between the rule configurations of the two security group types to prevent impacts on the instance network.
60696
- * * Security groups of instances that reside in the classic network cannot be changed. For more information, see the description of `SecurityGroupIds.N`.
61458
+ * * The instance must be in the **Stopped** (`Stopped`) state.
61459
+ * * The instance must meet the limits for user data. For more information, see [Prepare user data](~~49121~~).
61460
+ * > After you restart the instance, the new user data is displayed but not run as scripts.
61461
+ * * Change the security groups (`SecurityGroupIds.N`):
61462
+ * * You can move an instance to a security group of a different type.
61463
+ * If you want to move an instance to a security group of a different type, you must familiarize yourself with the differences between the rule configurations of the two security group types to prevent impacts on the instance network.
61464
+ * * Security groups of instances in the classic network cannot be changed.
61465
+ * For more information, see the description of `SecurityGroupIds.N`.
60697
61466
  * * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
60698
- * * The instance must be in the `Stopped` state.
60699
- * * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The maximum number of queues vary with the instance type.
60700
- * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation. The results are returned in the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
60701
- * * If you set this parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
61467
+ * * The instance must be in the Stopped (`Stopped`) state.
61468
+ * * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The maximum number of queues varies based on the instance type.
61469
+ * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` values.
61470
+ * * If you set this parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` value.
61471
+ * * Enable or disable the Jumbo Frame feature ([EnableJumboFrame](~~200512~~)):
61472
+ * * The instance must be in the Running (`Running`) or Stopped (`Stopped`) state.
61473
+ * * The instance must reside in a virtual private cloud (VPC).
61474
+ * * After the Jumbo Frame feature is enabled, the MTU value of the instance is set to 8500. After the Jumbo Frame feature is disabled, the MTU value of the instance is set to 1500.
60702
61475
  *
60703
61476
  * @param request ModifyInstanceAttributeRequest
60704
61477
  * @param runtime runtime options for this request RuntimeOptions
@@ -60758,6 +61531,9 @@ class Client extends openapi_client_1.default {
60758
61531
  if (!tea_util_1.default.isUnset(request.userData)) {
60759
61532
  query["UserData"] = request.userData;
60760
61533
  }
61534
+ if (!tea_util_1.default.isUnset(request.cpuOptions)) {
61535
+ query["CpuOptions"] = request.cpuOptions;
61536
+ }
60761
61537
  let req = new $OpenApi.OpenApiRequest({
60762
61538
  query: openapi_util_1.default.query(query),
60763
61539
  });
@@ -60775,23 +61551,30 @@ class Client extends openapi_client_1.default {
60775
61551
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceAttributeResponse({}));
60776
61552
  }
60777
61553
  /**
60778
- * If the response contains `{"OperationLocks": {"LockReason" : "security"}}`, the instance is locked for security reasons. No operations are allowed on the instance.
61554
+ * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` when you query the information of an instance, the instance is locked for security reasons. No operations are allowed on the instance.
60779
61555
  * Take note of the following items:
60780
- * * Modify the hostname (`HostName`): After you modify the hostname, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new hostname does not take effect if you restart the instance from within the operating system.
61556
+ * * Modify the hostname (`HostName`): After you modify the hostname, restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new hostname to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new hostname does not take effect if you restart the instance from within the operating system.
60781
61557
  * * Reset the password (`Password`):
60782
- * * The instance must not be in the **Starting** state.``
60783
- * * After you reset the password, you need to restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new password does not take effect if you restart the instance from within the operating system.
61558
+ * * The instance cannot be in the **Starting** (`Starting`) state.
61559
+ * * After you reset the password, restart the instance in the ECS console or by calling the [RebootInstance](~~25502~~) operation for the new password to take effect. For information about how to restart an instance in the ECS console, see [Restart instances](~~25440~~). The new password does not take effect if you restart the instance from within the operating system.
60784
61560
  * * Modify user data (`UserData`):
60785
- * * The instance must be in the **Stopped** state.``
60786
- * * The instance must support user data. For more information, see [Prepare user data](~~49121~~).
60787
- * * Change the security group (`SecurityGroupIds.N`):
60788
- * * You can move an instance to a security group of a different type. If you want to move an instance to a security group of a different type, you must be familiar with the differences between the rule configurations of the two security group types to prevent impacts on the instance network.
60789
- * * Security groups of instances that reside in the classic network cannot be changed. For more information, see the description of `SecurityGroupIds.N`.
61561
+ * * The instance must be in the **Stopped** (`Stopped`) state.
61562
+ * * The instance must meet the limits for user data. For more information, see [Prepare user data](~~49121~~).
61563
+ * > After you restart the instance, the new user data is displayed but not run as scripts.
61564
+ * * Change the security groups (`SecurityGroupIds.N`):
61565
+ * * You can move an instance to a security group of a different type.
61566
+ * If you want to move an instance to a security group of a different type, you must familiarize yourself with the differences between the rule configurations of the two security group types to prevent impacts on the instance network.
61567
+ * * Security groups of instances in the classic network cannot be changed.
61568
+ * For more information, see the description of `SecurityGroupIds.N`.
60790
61569
  * * Modify the number of queues supported by the primary elastic network interface (ENI) (`NetworkInterfaceQueueNumber`):
60791
- * * The instance must be in the `Stopped` state.
60792
- * * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The maximum number of queues vary with the instance type.
60793
- * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation. The results are returned in the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` parameters.
60794
- * * If you set this parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` parameter.
61570
+ * * The instance must be in the Stopped (`Stopped`) state.
61571
+ * * The value of this parameter cannot exceed the maximum number of queues allowed per ENI. The maximum number of queues varies based on the instance type.
61572
+ * * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. To obtain the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` values.
61573
+ * * If you set this parameter to -1, the value is reset to the default value for the instance type. To obtain the default number of queues supported by the primary ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the `PrimaryEniQueueNumber` value.
61574
+ * * Enable or disable the Jumbo Frame feature ([EnableJumboFrame](~~200512~~)):
61575
+ * * The instance must be in the Running (`Running`) or Stopped (`Stopped`) state.
61576
+ * * The instance must reside in a virtual private cloud (VPC).
61577
+ * * After the Jumbo Frame feature is enabled, the MTU value of the instance is set to 8500. After the Jumbo Frame feature is disabled, the MTU value of the instance is set to 1500.
60795
61578
  *
60796
61579
  * @param request ModifyInstanceAttributeRequest
60797
61580
  * @return ModifyInstanceAttributeResponse
@@ -60915,14 +61698,14 @@ class Client extends openapi_client_1.default {
60915
61698
  return await this.modifyInstanceAutoRenewAttributeWithOptions(request, runtime);
60916
61699
  }
60917
61700
  /**
60918
- * 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.
60919
- * When you call this operation, take note of the following items:
60920
- * * The instances must be in the `Running` or `Stopped` state, and you have no overdue payments for the instances.********
60921
- * * After you change the billing method, outstanding payments, if any, are automatically completed. 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 `AutoPay` 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.
61701
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
61702
+ * Take note of the following items:
61703
+ * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you cannot have overdue payments for them.
61704
+ * * After you change the billing method, outstanding payments are automatically completed. Make sure that your account balance is sufficient. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set `AutoPay` 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.
60922
61705
  * * **Change the billing method from subscription to pay-as-you-go**:
60923
- * * Your ECS usage determines whether you can change the billing method of your instance from subscription to pay-as-you-go.
61706
+ * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
60924
61707
  * * 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.
60925
- * * **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 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)**.
61708
+ * * **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 in the next month. 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)**.
60926
61709
  * * **Change the billing method from pay-as-you-go to subscription**:
60927
61710
  * * You can change the billing method of all data disks that are attached to an instance from pay-as-you-go to subscription.
60928
61711
  * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
@@ -60993,14 +61776,14 @@ class Client extends openapi_client_1.default {
60993
61776
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceChargeTypeResponse({}));
60994
61777
  }
60995
61778
  /**
60996
- * 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.
60997
- * When you call this operation, take note of the following items:
60998
- * * The instances must be in the `Running` or `Stopped` state, and you have no overdue payments for the instances.********
60999
- * * After you change the billing method, outstanding payments, if any, are automatically completed. 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 `AutoPay` 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.
61779
+ * Before you call this operation, make sure that you are familiar with the billing methods and pricing of Elastic Compute Service (ECS). For more information, see the [Elastic Compute Service](https://www.alibabacloud.com/product/ecs#pricing) product page.
61780
+ * Take note of the following items:
61781
+ * * The instances must be in the **Running** (`Running`) or **Stopped** (`Stopped`) state, and you cannot have overdue payments for them.
61782
+ * * After you change the billing method, outstanding payments are automatically completed. Make sure that your account balance is sufficient. Otherwise, your order becomes invalid and is canceled. If your account balance is insufficient, you can set `AutoPay` 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.
61000
61783
  * * **Change the billing method from subscription to pay-as-you-go**:
61001
- * * Your ECS usage determines whether you can change the billing method of your instance from subscription to pay-as-you-go.
61784
+ * * Your ECS usage determines whether the billing method of an instance can be changed from subscription to pay-as-you-go.
61002
61785
  * * 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.
61003
- * * **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 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)**.
61786
+ * * **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 in the next month. 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)**.
61004
61787
  * * **Change the billing method from pay-as-you-go to subscription**:
61005
61788
  * * You can change the billing method of all data disks that are attached to an instance from pay-as-you-go to subscription.
61006
61789
  * * This operation cannot be called for a pay-as-you-go instance that has an automatic release time set.
@@ -61013,12 +61796,12 @@ class Client extends openapi_client_1.default {
61013
61796
  return await this.modifyInstanceChargeTypeWithOptions(request, runtime);
61014
61797
  }
61015
61798
  /**
61016
- * When you call this operation for an ECS instance, take note of the following items:
61017
- * * The ECS instance must be in the **Stopped** state. The instance is automatically restarted after it is migrated.
61799
+ * Take note of the following items:
61800
+ * * The instance must be in the **Stopped** (Stopped) state. The instance is automatically restarted after it is migrated.
61018
61801
  * * The network type of the instance must be Virtual Private Cloud (VPC).
61019
61802
  * * The instance and the destination dedicated host to which to migrate the instance must belong to the same account and reside in the same region and zone.
61020
61803
  * * A pay-as-you-go instance can be migrated to a subscription dedicated host. A subscription instance can be migrated only between subscription dedicated hosts. The expiration date of the subscription instance cannot be later than that of the destination dedicated host.
61021
- * * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription or preemptible instances from a shared host to a dedicated host.
61804
+ * * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or preemptible instances from a shared host to a dedicated host.
61022
61805
  * * You can redeploy an instance to a specific dedicated host cluster.
61023
61806
  *
61024
61807
  * @param request ModifyInstanceDeploymentRequest
@@ -61093,12 +61876,12 @@ class Client extends openapi_client_1.default {
61093
61876
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceDeploymentResponse({}));
61094
61877
  }
61095
61878
  /**
61096
- * When you call this operation for an ECS instance, take note of the following items:
61097
- * * The ECS instance must be in the **Stopped** state. The instance is automatically restarted after it is migrated.
61879
+ * Take note of the following items:
61880
+ * * The instance must be in the **Stopped** (Stopped) state. The instance is automatically restarted after it is migrated.
61098
61881
  * * The network type of the instance must be Virtual Private Cloud (VPC).
61099
61882
  * * The instance and the destination dedicated host to which to migrate the instance must belong to the same account and reside in the same region and zone.
61100
61883
  * * A pay-as-you-go instance can be migrated to a subscription dedicated host. A subscription instance can be migrated only between subscription dedicated hosts. The expiration date of the subscription instance cannot be later than that of the destination dedicated host.
61101
- * * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription or preemptible instances from a shared host to a dedicated host.
61884
+ * * You can migrate only pay-as-you-go instances from a shared host to a dedicated host. You cannot migrate subscription instances or preemptible instances from a shared host to a dedicated host.
61102
61885
  * * You can redeploy an instance to a specific dedicated host cluster.
61103
61886
  *
61104
61887
  * @param request ModifyInstanceDeploymentRequest
@@ -61231,7 +62014,7 @@ class Client extends openapi_client_1.default {
61231
62014
  * * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
61232
62015
  * * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
61233
62016
  * * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a subscription (PrePaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, a public IP address is automatically assigned to the instance.
61234
- * * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a pay-as-you-go (PostPaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, no public IP address is assigned to the instance. You must call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
62017
+ * * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a pay-as-you-go (PostPaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, no public IP address is assigned to the instance. You must set `AllocatePublicIp` to true or call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
61235
62018
  * * An instance in the classic network must be in the Stopped state before you can upgrade its outbound public bandwidth (InternetMaxBandwidthOut) from 0 Mbit/s.
61236
62019
  * * After the bandwidth is upgraded, AutoPay is set to true by default and the payment is automatically made. Make sure that your account balance is sufficient. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false. In this case, when you call the ModifyInstanceNetworkSpec operation, an unpaid order is generated. Then, you can log on to the ECS console to pay for the order.
61237
62020
  * * The price difference is refunded to the payment account that you used. Vouchers or coupons that have been redeemed cannot be returned.
@@ -61307,7 +62090,7 @@ class Client extends openapi_client_1.default {
61307
62090
  * * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
61308
62091
  * * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
61309
62092
  * * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a subscription (PrePaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, a public IP address is automatically assigned to the instance.
61310
- * * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a pay-as-you-go (PostPaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, no public IP address is assigned to the instance. You must call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
62093
+ * * If you upgrade the outbound public bandwidth (InternetMaxBandwidthOut) of a pay-as-you-go (PostPaid) instance from 0 Mbit/s when you modify the bandwidth configurations of the instance, no public IP address is assigned to the instance. You must set `AllocatePublicIp` to true or call the [AllocatePublicIpAddress](~~25544~~) operation to assign a public IP address to the instance.
61311
62094
  * * An instance in the classic network must be in the Stopped state before you can upgrade its outbound public bandwidth (InternetMaxBandwidthOut) from 0 Mbit/s.
61312
62095
  * * After the bandwidth is upgraded, AutoPay is set to true by default and the payment is automatically made. Make sure that your account balance is sufficient. Otherwise, your order becomes invalid and must be canceled. If your account balance is insufficient, you can set AutoPay to false. In this case, when you call the ModifyInstanceNetworkSpec operation, an unpaid order is generated. Then, you can log on to the ECS console to pay for the order.
61313
62096
  * * The price difference is refunded to the payment account that you used. Vouchers or coupons that have been redeemed cannot be returned.
@@ -61320,15 +62103,15 @@ class Client extends openapi_client_1.default {
61320
62103
  return await this.modifyInstanceNetworkSpecWithOptions(request, runtime);
61321
62104
  }
61322
62105
  /**
61323
- * For information about how to use the SDK for Python to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
61324
- * When you call this operation, take note of the following items:
62106
+ * For information about how to use ECS SDK for Python to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
62107
+ * Take note of the following items:
61325
62108
  * * Make sure that you have no overdue payments in your account.
61326
- * * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
62109
+ * * You can modify the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
61327
62110
  * * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
61328
62111
  * * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
61329
- * * You can change only the instance type or only the public bandwidth of an instance at a time. The instance type and the public bandwidth of an instance cannot be changed together.
61330
- * * From 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 of your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
61331
- * * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
62112
+ * * The instance type and the public bandwidth of an instance cannot be changed together.
62113
+ * * 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 specified for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
62114
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
61332
62115
  * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
61333
62116
  *
61334
62117
  * @param request ModifyInstanceSpecRequest
@@ -61350,6 +62133,9 @@ class Client extends openapi_client_1.default {
61350
62133
  if (!tea_util_1.default.isUnset(request.disk)) {
61351
62134
  query["Disk"] = request.disk;
61352
62135
  }
62136
+ if (!tea_util_1.default.isUnset(request.dryRun)) {
62137
+ query["DryRun"] = request.dryRun;
62138
+ }
61353
62139
  if (!tea_util_1.default.isUnset(request.instanceId)) {
61354
62140
  query["InstanceId"] = request.instanceId;
61355
62141
  }
@@ -61400,15 +62186,15 @@ class Client extends openapi_client_1.default {
61400
62186
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceSpecResponse({}));
61401
62187
  }
61402
62188
  /**
61403
- * For information about how to use the SDK for Python to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
61404
- * When you call this operation, take note of the following items:
62189
+ * For information about how to use ECS SDK for Python to change resource configurations, see [Query available resources for configuration changes](~~109517~~).
62190
+ * Take note of the following items:
61405
62191
  * * Make sure that you have no overdue payments in your account.
61406
- * * You can adjust the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
62192
+ * * You can modify the public bandwidth of an instance only when the instance is in the **Running** (`Running`) or **Stopped** (`Stopped`) state.
61407
62193
  * * Before you change the instance type of a pay-as-you-go instance, you can call the [DescribeResourcesModification](~~66187~~) operation to query the instance types to which you can change.
61408
62194
  * * You can change the instance type of an instance only when the instance is in the **Stopped** (`Stopped`) state.
61409
- * * You can change only the instance type or only the public bandwidth of an instance at a time. The instance type and the public bandwidth of an instance cannot be changed together.
61410
- * * From 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 of your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
61411
- * * Within a single region, the sum of actual peak bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
62195
+ * * The instance type and the public bandwidth of an instance cannot be changed together.
62196
+ * * 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 specified for your account. To increase the maximum bandwidth value, submit a ticket. The following throttling policies apply:
62197
+ * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-traffic billing method for network usage cannot exceed 5 Gbit/s.
61412
62198
  * * Within a single region, the sum of actual maximum bandwidths of all ECS instances that use the pay-by-bandwidth billing method for network usage cannot exceed 50 Gbit/s.
61413
62199
  *
61414
62200
  * @param request ModifyInstanceSpecRequest
@@ -61596,6 +62382,73 @@ class Client extends openapi_client_1.default {
61596
62382
  let runtime = new $Util.RuntimeOptions({});
61597
62383
  return await this.modifyInstanceVpcAttributeWithOptions(request, runtime);
61598
62384
  }
62385
+ async modifyInvocationAttributeWithOptions(tmpReq, runtime) {
62386
+ tea_util_1.default.validateModel(tmpReq);
62387
+ let request = new ModifyInvocationAttributeShrinkRequest({});
62388
+ openapi_util_1.default.convert(tmpReq, request);
62389
+ if (!tea_util_1.default.isUnset(tmpReq.parameters)) {
62390
+ request.parametersShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.parameters, "Parameters", "json");
62391
+ }
62392
+ let query = {};
62393
+ if (!tea_util_1.default.isUnset(request.commandContent)) {
62394
+ query["CommandContent"] = request.commandContent;
62395
+ }
62396
+ if (!tea_util_1.default.isUnset(request.contentEncoding)) {
62397
+ query["ContentEncoding"] = request.contentEncoding;
62398
+ }
62399
+ if (!tea_util_1.default.isUnset(request.enableParameter)) {
62400
+ query["EnableParameter"] = request.enableParameter;
62401
+ }
62402
+ if (!tea_util_1.default.isUnset(request.frequency)) {
62403
+ query["Frequency"] = request.frequency;
62404
+ }
62405
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
62406
+ query["InstanceId"] = request.instanceId;
62407
+ }
62408
+ if (!tea_util_1.default.isUnset(request.invokeId)) {
62409
+ query["InvokeId"] = request.invokeId;
62410
+ }
62411
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
62412
+ query["OwnerAccount"] = request.ownerAccount;
62413
+ }
62414
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
62415
+ query["OwnerId"] = request.ownerId;
62416
+ }
62417
+ if (!tea_util_1.default.isUnset(request.parametersShrink)) {
62418
+ query["Parameters"] = request.parametersShrink;
62419
+ }
62420
+ if (!tea_util_1.default.isUnset(request.regionId)) {
62421
+ query["RegionId"] = request.regionId;
62422
+ }
62423
+ if (!tea_util_1.default.isUnset(request.regionId)) {
62424
+ query["RegionId"] = request.regionId;
62425
+ }
62426
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
62427
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
62428
+ }
62429
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
62430
+ query["ResourceOwnerId"] = request.resourceOwnerId;
62431
+ }
62432
+ let req = new $OpenApi.OpenApiRequest({
62433
+ query: openapi_util_1.default.query(query),
62434
+ });
62435
+ let params = new $OpenApi.Params({
62436
+ action: "ModifyInvocationAttribute",
62437
+ version: "2014-05-26",
62438
+ protocol: "HTTPS",
62439
+ pathname: "/",
62440
+ method: "POST",
62441
+ authType: "AK",
62442
+ style: "RPC",
62443
+ reqBodyType: "formData",
62444
+ bodyType: "json",
62445
+ });
62446
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyInvocationAttributeResponse({}));
62447
+ }
62448
+ async modifyInvocationAttribute(request) {
62449
+ let runtime = new $Util.RuntimeOptions({});
62450
+ return await this.modifyInvocationAttributeWithOptions(request, runtime);
62451
+ }
61599
62452
  /**
61600
62453
  * ## Debugging
61601
62454
  * [OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Ecs\\&api=ModifyLaunchTemplateDefaultVersion\\&type=RPC\\&version=2014-05-26)
@@ -61756,9 +62609,15 @@ class Client extends openapi_client_1.default {
61756
62609
  if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
61757
62610
  query["ResourceOwnerId"] = request.resourceOwnerId;
61758
62611
  }
62612
+ if (!tea_util_1.default.isUnset(request.rxQueueSize)) {
62613
+ query["RxQueueSize"] = request.rxQueueSize;
62614
+ }
61759
62615
  if (!tea_util_1.default.isUnset(request.securityGroupId)) {
61760
62616
  query["SecurityGroupId"] = request.securityGroupId;
61761
62617
  }
62618
+ if (!tea_util_1.default.isUnset(request.txQueueSize)) {
62619
+ query["TxQueueSize"] = request.txQueueSize;
62620
+ }
61762
62621
  let req = new $OpenApi.OpenApiRequest({
61763
62622
  query: openapi_util_1.default.query(query),
61764
62623
  });
@@ -64939,27 +65798,26 @@ class Client extends openapi_client_1.default {
64939
65798
  return await this.revokeSecurityGroupWithOptions(request, runtime);
64940
65799
  }
64941
65800
  /**
64942
- * In the security group-related API documents, outbound traffic is sent by the source and received by the destination.
64943
65801
  * 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:
64944
- * * The parameter 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 ID of a specified security group rule does not exist, an error is reported. - You cannot specify the parameters that are no longer available and the Permissions.N-prefixed counterparts of the parameters at the same time. - Sample request:
65802
+ * * 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 security group rule ID that you specify does not exist, an error is reported. - You cannot specify the parameters that are no longer available and the Permissions.N-prefixed counterparts of the parameters at the same time. - Sample request:
64945
65803
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
64946
65804
  * &SecurityGroupId=sg-bp67acfmxazb4p****
64947
65805
  * &SecurityGroupRuleId.1=sgr-bpdfmk****
64948
65806
  * &SecurityGroupRuleId.2=sgr-bpdfmg****
64949
65807
  * &<Common request parameters>
64950
- * * Parameters prefixed with Permissions.N.
64951
- * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroupEgress is successful but no security group rule is deleted.
64952
- * * You cannot specify the SecurityGroupRuleId parameter or parameters that are not prefixed with Permissions.N.
64953
- * * You can delete a specific outbound security group rule by specifying one of the following groups of parameters. However, you cannot delete the security group rule if you specify only one of the parameters in a group.
64954
- * * Parameters used to delete an outbound security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestCidrIp.
65808
+ * * Parameters that are prefixed with Permissions.N.
65809
+ * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroupEgress is successful but no security group rules are deleted.
65810
+ * * The SecurityGroupRuleId.N parameter and parameters that are not prefixed with Permissions.N cannot be specified.
65811
+ * * 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.
65812
+ * * Parameters used to determine an outbound security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp, and SourceCidrIp (optional). Sample request:
64955
65813
  * ```
64956
65814
  * ```
64957
65815
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress \\&SecurityGroupId=sg-bp67acfmxazb4ph\\*\\*\\* \\&Permissions.1.IpProtocol=TCP \\&Permissions.1.DestCidrIp=10.0.0.0/8 \\&Permissions.1.PortRange=-22/22 \\&Permissions.1.NicType=intranet \\&Permissions.1.Policy=accept &\\<Common request parameters> \\`\\`\\`
64958
- * * Parameters used to delete an outbound security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId.
65816
+ * * Parameters used to determine an outbound security group rule that controls access to another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId. Sample request:
64959
65817
  * ```
64960
65818
  * ```
64961
65819
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress \\&SecurityGroupId=sg-bp67acfmxazb4ph\\*\\*\\* \\&Permissions.1.DestGroupId=sg-bp67acfmxa123b\\*\\*\\*\\* \\&Permissions.1.IpProtocol=TCP \\&Permissions.1.PortRange=22/22 \\&Permissions.1.NicType=intranet \\&Permissions.1.Policy=accept &\\<Common request parameters> \\`\\`\\`
64962
- * * Parameters used to delete an outbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId.
65820
+ * * Parameters used to determine an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId. Sample request:
64963
65821
  * ```
64964
65822
  * ```
64965
65823
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress \\&SecurityGroupId=sg-bp67acfmxazb4ph\\*\\*\\* \\&Permissions.1.IpProtocol=TCP \\&Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy\\*\\*\\*\\* \\&Permissions.1.PortRange=-22/22 \\&Permissions.1.NicType=intranet \\&Permissions.1.Policy=accept &\\<Common request parameters> \\`\\`\\`
@@ -65072,27 +65930,26 @@ class Client extends openapi_client_1.default {
65072
65930
  return $tea.cast(await this.callApi(params, req, runtime), new RevokeSecurityGroupEgressResponse({}));
65073
65931
  }
65074
65932
  /**
65075
- * In the security group-related API documents, outbound traffic is sent by the source and received by the destination.
65076
65933
  * 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:
65077
- * * The parameter 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 ID of a specified security group rule does not exist, an error is reported. - You cannot specify the parameters that are no longer available and the Permissions.N-prefixed counterparts of the parameters at the same time. - Sample request:
65934
+ * * 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 security group rule ID that you specify does not exist, an error is reported. - You cannot specify the parameters that are no longer available and the Permissions.N-prefixed counterparts of the parameters at the same time. - Sample request:
65078
65935
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress
65079
65936
  * &SecurityGroupId=sg-bp67acfmxazb4p****
65080
65937
  * &SecurityGroupRuleId.1=sgr-bpdfmk****
65081
65938
  * &SecurityGroupRuleId.2=sgr-bpdfmg****
65082
65939
  * &<Common request parameters>
65083
- * * Parameters prefixed with Permissions.N.
65084
- * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroupEgress is successful but no security group rule is deleted.
65085
- * * You cannot specify the SecurityGroupRuleId parameter or parameters that are not prefixed with Permissions.N.
65086
- * * You can delete a specific outbound security group rule by specifying one of the following groups of parameters. However, you cannot delete the security group rule if you specify only one of the parameters in a group.
65087
- * * Parameters used to delete an outbound security group rule that controls access from a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestCidrIp.
65940
+ * * Parameters that are prefixed with Permissions.N.
65941
+ * * If no security group rule matches the specified parameters, the call to RevokeSecurityGroupEgress is successful but no security group rules are deleted.
65942
+ * * The SecurityGroupRuleId.N parameter and parameters that are not prefixed with Permissions.N cannot be specified.
65943
+ * * 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.
65944
+ * * Parameters used to determine an outbound security group rule that controls access to a specified CIDR block: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, DestCidrIp, and SourceCidrIp (optional). Sample request:
65088
65945
  * ```
65089
65946
  * ```
65090
65947
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress \\&SecurityGroupId=sg-bp67acfmxazb4ph\\*\\*\\* \\&Permissions.1.IpProtocol=TCP \\&Permissions.1.DestCidrIp=10.0.0.0/8 \\&Permissions.1.PortRange=-22/22 \\&Permissions.1.NicType=intranet \\&Permissions.1.Policy=accept &\\<Common request parameters> \\`\\`\\`
65091
- * * Parameters used to delete an outbound security group rule that controls access from a security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId.
65948
+ * * Parameters used to determine an outbound security group rule that controls access to another security group: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestGroupId. Sample request:
65092
65949
  * ```
65093
65950
  * ```
65094
65951
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress \\&SecurityGroupId=sg-bp67acfmxazb4ph\\*\\*\\* \\&Permissions.1.DestGroupId=sg-bp67acfmxa123b\\*\\*\\*\\* \\&Permissions.1.IpProtocol=TCP \\&Permissions.1.PortRange=22/22 \\&Permissions.1.NicType=intranet \\&Permissions.1.Policy=accept &\\<Common request parameters> \\`\\`\\`
65095
- * * Parameters used to delete an outbound security group rule that controls access from a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId.
65952
+ * * Parameters used to determine an outbound security group rule that controls access to a prefix list: IpProtocol, PortRange, SourcePortRange (optional), NicType, Policy, SourceCidrIp (optional), and DestPrefixListId. Sample request:
65096
65953
  * ```
65097
65954
  * ```
65098
65955
  * http(s)://ecs.aliyuncs.com/?Action=RevokeSecurityGroupEgress \\&SecurityGroupId=sg-bp67acfmxazb4ph\\*\\*\\* \\&Permissions.1.IpProtocol=TCP \\&Permissions.1.DestPrefixListId=pl-x1j1k5ykzqlixdcy\\*\\*\\*\\* \\&Permissions.1.PortRange=-22/22 \\&Permissions.1.NicType=intranet \\&Permissions.1.Policy=accept &\\<Common request parameters> \\`\\`\\`
@@ -65105,7 +65962,23 @@ class Client extends openapi_client_1.default {
65105
65962
  return await this.revokeSecurityGroupEgressWithOptions(request, runtime);
65106
65963
  }
65107
65964
  /**
65108
- * /home/
65965
+ * ## Usage notes
65966
+ * Unlike the [CreateCommand](~~64844~~) and [InvokeCommand](~~64841~~) operations, RunCommand can be used to create and run a command in a single request.
65967
+ * Take note of the following items:
65968
+ * * The instances on which you want to run a command must be in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query the status of instances.
65969
+ * * [Cloud Assistant Agent](~~64921~~) is pre-installed on the instances.
65970
+ * * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
65971
+ * * When you use a cron expression to specify a schedule, 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~~).
65972
+ * * You can set `Timeout` to specify the timeout period for executions of the command on ECS instances. If an execution times out, Cloud Assistant Agent forcefully terminates the command process.
65973
+ * * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
65974
+ * * For a scheduled task, the timeout period takes effect on each execution of the command. The timeout of one execution does not affect the subsequent executions of the command. When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
65975
+ * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a specified interval, only once at a specified time, or at designated times based on a cron expression with a specified year or time zone. If the `ClientNeedUpgrade` error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
65976
+ * * Linux: 2.2.3.282.
65977
+ * * Windows: 2.1.3.282.
65978
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
65979
+ * * When `EnableParameter` is set to true, the custom parameter feature is enabled. When you specify `CommandContent`, you can specify custom parameters in the `{{parameter}}` format. Then, when the command is run, the key-value pairs of the custom parameters are passed in.
65980
+ * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region based on your ECS usage. You can perform operations that are described in the [View and increase resource quotas](~~184115~~) topic or call the [DescribeAccountAttribute](~~73772~~) operation to query resource quotas.
65981
+ * * Before you run a command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](~~87346~~) operation to query the status of Cloud Assistant Agent on the instances, and then run the command when the value of CloudAssistantStatus in the response is true for the instances.
65109
65982
  *
65110
65983
  * @param tmpReq RunCommandRequest
65111
65984
  * @param runtime runtime options for this request RuntimeOptions
@@ -65179,6 +66052,9 @@ class Client extends openapi_client_1.default {
65179
66052
  if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
65180
66053
  query["ResourceOwnerId"] = request.resourceOwnerId;
65181
66054
  }
66055
+ if (!tea_util_1.default.isUnset(request.resourceTag)) {
66056
+ query["ResourceTag"] = request.resourceTag;
66057
+ }
65182
66058
  if (!tea_util_1.default.isUnset(request.tag)) {
65183
66059
  query["Tag"] = request.tag;
65184
66060
  }
@@ -65217,7 +66093,23 @@ class Client extends openapi_client_1.default {
65217
66093
  return $tea.cast(await this.callApi(params, req, runtime), new RunCommandResponse({}));
65218
66094
  }
65219
66095
  /**
65220
- * /home/
66096
+ * ## Usage notes
66097
+ * Unlike the [CreateCommand](~~64844~~) and [InvokeCommand](~~64841~~) operations, RunCommand can be used to create and run a command in a single request.
66098
+ * Take note of the following items:
66099
+ * * The instances on which you want to run a command must be in the Running (`Running`) state. You can call the [DescribeInstances](~~25506~~) operation to query the status of instances.
66100
+ * * [Cloud Assistant Agent](~~64921~~) is pre-installed on the instances.
66101
+ * * Before you run a PowerShell command on a Windows instance, make sure that the PowerShell module is installed on the instance.
66102
+ * * When you use a cron expression to specify a schedule, 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~~).
66103
+ * * You can set `Timeout` to specify the timeout period for executions of the command on ECS instances. If an execution times out, Cloud Assistant Agent forcefully terminates the command process.
66104
+ * * When the one-time execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
66105
+ * * For a scheduled task, the timeout period takes effect on each execution of the command. The timeout of one execution does not affect the subsequent executions of the command. When a scheduled execution of a command times out, the execution state ([InvokeRecordStatus](~~64845~~)) of the command becomes Failed.
66106
+ * To ensure that scheduled tasks can run as expected, make sure that the version of Cloud Assistant Agent is not earlier than the following ones. A scheduled task can run a command at a specified interval, only once at a specified time, or at designated times based on a cron expression with a specified year or time zone. If the `ClientNeedUpgrade` error code is returned, you must upgrade Cloud Assistant Agent to the latest version. For more information, see [Update or disable updates for the Cloud Assistant client](~~134383~~).
66107
+ * * Linux: 2.2.3.282.
66108
+ * * Windows: 2.1.3.282.
66109
+ * * Command executions may fail due to instance status exceptions, network exceptions, or exceptions on Cloud Assistant Agent. If a command execution fails, no execution information is generated. For more information, see [Check execution results and troubleshoot common issues](~~87029~~).
66110
+ * * When `EnableParameter` is set to true, the custom parameter feature is enabled. When you specify `CommandContent`, you can specify custom parameters in the `{{parameter}}` format. Then, when the command is run, the key-value pairs of the custom parameters are passed in.
66111
+ * * You can retain up to 500 to 10,000 Cloud Assistant commands in each region based on your ECS usage. You can perform operations that are described in the [View and increase resource quotas](~~184115~~) topic or call the [DescribeAccountAttribute](~~73772~~) operation to query resource quotas.
66112
+ * * Before you run a command on instances, especially new instances, we recommend that you call the [DescribeCloudAssistantStatus](~~87346~~) operation to query the status of Cloud Assistant Agent on the instances, and then run the command when the value of CloudAssistantStatus in the response is true for the instances.
65221
66113
  *
65222
66114
  * @param request RunCommandRequest
65223
66115
  * @return RunCommandResponse
@@ -65228,7 +66120,7 @@ class Client extends openapi_client_1.default {
65228
66120
  }
65229
66121
  /**
65230
66122
  * * **Preparations**:
65231
- * * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
66123
+ * * The real-name verification is complete.
65232
66124
  * * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
65233
66125
  * * 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.
65234
66126
  * * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
@@ -65247,7 +66139,7 @@ class Client extends openapi_client_1.default {
65247
66139
  * * 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~~).
65248
66140
  * * 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`).
65249
66141
  * * 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.
65250
- * * 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.
66142
+ * * When you create an instance in the [OpenAPI Explorer](https://api.alibabacloud.com/api/Ecs), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View OpenAPI 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.
65251
66143
  *
65252
66144
  * @param request RunInstancesRequest
65253
66145
  * @param runtime runtime options for this request RuntimeOptions
@@ -65505,7 +66397,7 @@ class Client extends openapi_client_1.default {
65505
66397
  }
65506
66398
  /**
65507
66399
  * * **Preparations**:
65508
- * * The real-name verification is complete. For more information, see [Real-name verification](~~48263~~).
66400
+ * * The real-name verification is complete.
65509
66401
  * * Cost estimation: Learn about the billing methods of ECS resources. For more information, see [Billing overview](~~25398~~).
65510
66402
  * * 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.
65511
66403
  * * Query for available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query available resources in a specific region or zone.
@@ -65524,7 +66416,7 @@ class Client extends openapi_client_1.default {
65524
66416
  * * 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~~).
65525
66417
  * * 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`).
65526
66418
  * * 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.
65527
- * * 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.
66419
+ * * When you create an instance in the [OpenAPI Explorer](https://api.alibabacloud.com/api/Ecs), you can view the best practices for calling the `RunInstances` operation. In the Preview step, click View OpenAPI 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.
65528
66420
  *
65529
66421
  * @param request RunInstancesRequest
65530
66422
  * @return RunInstancesResponse
@@ -66039,11 +66931,9 @@ class Client extends openapi_client_1.default {
66039
66931
  return await this.stopInstanceWithOptions(request, runtime);
66040
66932
  }
66041
66933
  /**
66042
- * Specifies whether to perform only a dry run, without performing the actual request. Valid Values:
66043
- * * true: performs a dry run, but the request is not made. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request passes the dry run, `DRYRUN.SUCCESS` is returned. Otherwise, an error message is returned.
66044
- * > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the request passes the dry run.
66045
- * * false: performs a dry run and sends the request. If the request passes the dry run, the operation is performed.
66046
- * Default value: false.
66934
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` for an instance, the instance is locked for security reasons. No operations are allowed on the instance.
66935
+ * * After you enable the economical mode for a pay-as-you-go instance that resided in a virtual private cloud (VPC), you can set `StoppedMode` to KeepCharging. Then, the pay-as-you-go instance continues to be billed after it is stopped. The instance type resources and public IP address are reserved for the instance.
66936
+ * * Batch operations are supported. You can use `BatchOptimization` to specify the batch operation mode.
66047
66937
  *
66048
66938
  * @param request StopInstancesRequest
66049
66939
  * @param runtime runtime options for this request RuntimeOptions
@@ -66099,11 +66989,9 @@ class Client extends openapi_client_1.default {
66099
66989
  return $tea.cast(await this.callApi(params, req, runtime), new StopInstancesResponse({}));
66100
66990
  }
66101
66991
  /**
66102
- * Specifies whether to perform only a dry run, without performing the actual request. Valid Values:
66103
- * * true: performs a dry run, but the request is not made. The system checks the request for potential issues, including required parameters, request syntax, and instance status. If the request passes the dry run, `DRYRUN.SUCCESS` is returned. Otherwise, an error message is returned.
66104
- * > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned regardless of whether the request passes the dry run.
66105
- * * false: performs a dry run and sends the request. If the request passes the dry run, the operation is performed.
66106
- * Default value: false.
66992
+ * * If the response contains `{"OperationLocks": {"LockReason" : "security"}}` for an instance, the instance is locked for security reasons. No operations are allowed on the instance.
66993
+ * * After you enable the economical mode for a pay-as-you-go instance that resided in a virtual private cloud (VPC), you can set `StoppedMode` to KeepCharging. Then, the pay-as-you-go instance continues to be billed after it is stopped. The instance type resources and public IP address are reserved for the instance.
66994
+ * * Batch operations are supported. You can use `BatchOptimization` to specify the batch operation mode.
66107
66995
  *
66108
66996
  * @param request StopInstancesRequest
66109
66997
  * @return StopInstancesResponse
@@ -66424,7 +67312,9 @@ class Client extends openapi_client_1.default {
66424
67312
  return await this.unassignIpv6AddressesWithOptions(request, runtime);
66425
67313
  }
66426
67314
  /**
66427
- * The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
67315
+ * ## Usage notes
67316
+ * - The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **Bound** (InUse) state.
67317
+ * - 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.
66428
67318
  *
66429
67319
  * @param request UnassignPrivateIpAddressesRequest
66430
67320
  * @param runtime runtime options for this request RuntimeOptions
@@ -66477,7 +67367,9 @@ class Client extends openapi_client_1.default {
66477
67367
  return $tea.cast(await this.callApi(params, req, runtime), new UnassignPrivateIpAddressesResponse({}));
66478
67368
  }
66479
67369
  /**
66480
- * The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
67370
+ * ## Usage notes
67371
+ * - The ENI from which to unassign secondary private IP addresses must be in the **Available** (Available) or **Bound** (InUse) state.
67372
+ * - 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.
66481
67373
  *
66482
67374
  * @param request UnassignPrivateIpAddressesRequest
66483
67375
  * @return UnassignPrivateIpAddressesResponse