@alicloud/ecs20140526 7.0.15 → 7.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +28 -34
- package/dist/client.js +34 -108
- package/dist/client.js.map +1 -1
- package/dist/models/AllocateDedicatedHostsRequest.d.ts +2 -2
- package/dist/models/DescribeCloudAssistantSettingsResponseBody.d.ts +14 -0
- package/dist/models/DescribeCloudAssistantSettingsResponseBody.js +25 -1
- package/dist/models/DescribeCloudAssistantSettingsResponseBody.js.map +1 -1
- package/dist/models/DescribeDedicatedHostsRequest.d.ts +15 -15
- package/dist/models/DescribeDedicatedHostsResponseBody.d.ts +2 -2
- package/dist/models/DescribeDeploymentSetsResponseBody.d.ts +1 -0
- package/dist/models/DescribeDeploymentSetsResponseBody.js +2 -0
- package/dist/models/DescribeDeploymentSetsResponseBody.js.map +1 -1
- package/dist/models/DescribeDisksRequest.d.ts +0 -2
- package/dist/models/DescribeDisksRequest.js.map +1 -1
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.d.ts +2 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceTypesResponseBody.d.ts +34 -0
- package/dist/models/DescribeInstanceTypesResponseBody.js.map +1 -1
- package/dist/models/DescribeLaunchTemplatesRequest.d.ts +5 -5
- package/dist/models/DescribeLaunchTemplatesResponseBody.d.ts +6 -6
- package/dist/models/DescribeTerminalSessionsResponseBody.d.ts +7 -2
- package/dist/models/DescribeTerminalSessionsResponseBody.js.map +1 -1
- package/dist/models/ImportImageRequest.d.ts +8 -7
- package/dist/models/ImportImageRequest.js.map +1 -1
- package/dist/models/ModifyCloudAssistantSettingsRequest.d.ts +14 -0
- package/dist/models/ModifyCloudAssistantSettingsRequest.js +25 -1
- package/dist/models/ModifyCloudAssistantSettingsRequest.js.map +1 -1
- package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.d.ts +1 -0
- package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.js +2 -0
- package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.js.map +1 -1
- package/dist/models/ModifyElasticityAssuranceRequest.d.ts +10 -10
- package/dist/models/RunInstancesRequest.d.ts +33 -18
- package/dist/models/RunInstancesRequest.js.map +1 -1
- package/dist/models/RunInstancesResponseBody.d.ts +1 -1
- package/dist/models/model.d.ts +2 -0
- package/dist/models/model.js +47 -43
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +36 -108
- package/src/models/AllocateDedicatedHostsRequest.ts +2 -2
- package/src/models/DescribeCloudAssistantSettingsResponseBody.ts +29 -0
- package/src/models/DescribeDedicatedHostsRequest.ts +15 -15
- package/src/models/DescribeDedicatedHostsResponseBody.ts +2 -2
- package/src/models/DescribeDeploymentSetsResponseBody.ts +3 -0
- package/src/models/DescribeDisksRequest.ts +0 -2
- package/src/models/DescribeInstanceHistoryEventsResponseBody.ts +2 -0
- package/src/models/DescribeInstanceTypesResponseBody.ts +34 -0
- package/src/models/DescribeLaunchTemplatesRequest.ts +5 -5
- package/src/models/DescribeLaunchTemplatesResponseBody.ts +6 -6
- package/src/models/DescribeTerminalSessionsResponseBody.ts +7 -2
- package/src/models/ImportImageRequest.ts +8 -7
- package/src/models/ModifyCloudAssistantSettingsRequest.ts +29 -0
- package/src/models/ModifyCloudAssistantSettingsShrinkRequest.ts +3 -0
- package/src/models/ModifyElasticityAssuranceRequest.ts +10 -10
- package/src/models/RunInstancesRequest.ts +33 -18
- package/src/models/RunInstancesResponseBody.ts +1 -1
- package/src/models/model.ts +2 -0
|
@@ -5,9 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class RunInstancesRequestCpuOptions extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The number of CPU cores.
|
|
9
|
-
*
|
|
10
|
-
* For information about the default value, see [Customize CPU options](https://help.aliyun.com/document_detail/145895.html).
|
|
8
|
+
* The number of CPU cores.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* 2
|
|
@@ -791,8 +789,8 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
791
789
|
* @remarks
|
|
792
790
|
* Specifies whether to release ENI N when the associated instance is released. Valid values:
|
|
793
791
|
*
|
|
794
|
-
* * true
|
|
795
|
-
* * false
|
|
792
|
+
* * true: releases the ENI when the associated instance is released.
|
|
793
|
+
* * false: retains the ENI when the associated instance is released.
|
|
796
794
|
*
|
|
797
795
|
* Default value: true.
|
|
798
796
|
*
|
|
@@ -818,11 +816,11 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
818
816
|
description?: string;
|
|
819
817
|
/**
|
|
820
818
|
* @remarks
|
|
821
|
-
* The type of ENI N. The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
819
|
+
* The type of ENI N. The value of the first N in this parameter cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
822
820
|
*
|
|
823
821
|
* Valid values:
|
|
824
822
|
*
|
|
825
|
-
* * Primary
|
|
823
|
+
* * Primary: the primary ENI
|
|
826
824
|
* * Secondary
|
|
827
825
|
*
|
|
828
826
|
* Default value: Secondary.
|
|
@@ -862,7 +860,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
862
860
|
*
|
|
863
861
|
* Take note of the following items:
|
|
864
862
|
*
|
|
865
|
-
* * You can specify
|
|
863
|
+
* * You can specify NIC indexes only for instances of specific instance types.
|
|
866
864
|
* * If you set NetworkInterface.N.InstanceType to Primary, you can set NetworkInterface.N.NetworkCardIndex only to 0 for instance types that support network cards.
|
|
867
865
|
* * If you set NetworkInterface.N.InstanceType to Secondary or leave NetworkInterface.N.InstanceType empty, you can specify NetworkInterface.N.NetworkCardIndex based on instance types if the instance types support network cards. For more information, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html).
|
|
868
866
|
*
|
|
@@ -872,7 +870,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
872
870
|
networkCardIndex?: number;
|
|
873
871
|
/**
|
|
874
872
|
* @remarks
|
|
875
|
-
* The ID of ENI
|
|
873
|
+
* The ID of the ENI to attach to the instance.
|
|
876
874
|
*
|
|
877
875
|
* If you specify this parameter, you must set `Amount` to 1.
|
|
878
876
|
*
|
|
@@ -941,7 +939,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
941
939
|
*
|
|
942
940
|
* * The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
943
941
|
* * The value of this parameter cannot exceed the maximum number of queues allowed per ENI.
|
|
944
|
-
* * The total number of queues for all ENIs
|
|
942
|
+
* * The total number of queues for all ENIs of an instance cannot exceed the queue quota for the instance type. To query the maximum number of queues per ENI and the queue quota for an instance type, you can call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/25620.html) operation and check the `MaximumQueueNumberPerEni` and `TotalEniQueueQuantity` values in the response.
|
|
945
943
|
* * If you specify this parameter and set `NetworkInterface.N.InstanceType` to `Primary`, you cannot specify `NetworkInterfaceQueueNumber`.
|
|
946
944
|
*
|
|
947
945
|
* @example
|
|
@@ -984,7 +982,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
984
982
|
*
|
|
985
983
|
* * The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
986
984
|
* * If `NetworkInterface.N.InstanceType` is set to `Primary`, you must specify this parameter. In this case, this parameter is equivalent to `SecurityGroupId` and you cannot specify `SecurityGroupId`, `SecurityGroupIds.N`, or `NetworkInterface.N.SecurityGroupIds.N`.
|
|
987
|
-
* * If `NetworkInterface.N.InstanceType`
|
|
985
|
+
* * If you set `NetworkInterface.N.InstanceType` to `Secondary` or leave NetworkInterface.N.InstanceType empty, you do not need to specify this parameter. The default value is the ID of the security group to which to assign the instance.
|
|
988
986
|
*
|
|
989
987
|
* @example
|
|
990
988
|
* sg-bp67acfmxazb4p****
|
|
@@ -995,7 +993,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
995
993
|
* The IDs of security groups to which to assign ENI N.
|
|
996
994
|
*
|
|
997
995
|
* * The value of the first N in this parameter cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
998
|
-
* * The second N in this parameter indicates that one or more security group IDs can be specified. The valid values of the second N vary based on the maximum number of security groups to which an instance can belong. For more information, see
|
|
996
|
+
* * The second N in this parameter indicates that one or more security group IDs can be specified. The valid values of the second N vary based on the maximum number of security groups to which an instance can belong. For more information, see [Security group limits](~~25412#SecurityGroupQuota1~~).
|
|
999
997
|
*
|
|
1000
998
|
* Take note of the following items:
|
|
1001
999
|
*
|
|
@@ -1008,7 +1006,14 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
1008
1006
|
securityGroupIds?: string[];
|
|
1009
1007
|
/**
|
|
1010
1008
|
* @remarks
|
|
1011
|
-
*
|
|
1009
|
+
* Specifies whether to enable the source and destination IP address check feature. We recommend that you enable the feature to improve network security. Valid value:
|
|
1010
|
+
*
|
|
1011
|
+
* * true: enables the performance burst feature for the system disk.
|
|
1012
|
+
* * false: disables the performance burst feature for the data disk.
|
|
1013
|
+
*
|
|
1014
|
+
* Default value: false.
|
|
1015
|
+
*
|
|
1016
|
+
* > This feature is available only in some regions. Before you use this method, read [Source and destination IP address check](https://help.aliyun.com/document_detail/2863210.html).
|
|
1012
1017
|
*
|
|
1013
1018
|
* @example
|
|
1014
1019
|
* false
|
|
@@ -1034,7 +1039,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
|
|
|
1034
1039
|
* @remarks
|
|
1035
1040
|
* The ID of the vSwitch to which to connect ENI N.
|
|
1036
1041
|
*
|
|
1037
|
-
*
|
|
1042
|
+
* When you specify this parameter, take note of the following items:
|
|
1038
1043
|
*
|
|
1039
1044
|
* * The value of N cannot exceed the maximum number of ENIs per instance that the instance type supports. For the maximum number of ENIs per instance that an instance type supports, see [Overview of instance families](https://help.aliyun.com/document_detail/25378.html) or call the [DescribeInstanceTypes](https://help.aliyun.com/document_detail/2679699.html) operation.
|
|
1040
1045
|
* * If `NetworkInterface.N.InstanceType` is set to `Primary`, you must specify this parameter. In this case, this parameter is equivalent to `VSwitchId`. You cannot specify both NetworkInterface.N.VSwitchId and `VSwitchId` in the same request.
|
|
@@ -1412,10 +1417,12 @@ export class RunInstancesRequest extends $dara.Model {
|
|
|
1412
1417
|
dataDisk?: RunInstancesRequestDataDisk[];
|
|
1413
1418
|
/**
|
|
1414
1419
|
* @remarks
|
|
1415
|
-
* The ID of the dedicated host
|
|
1420
|
+
* The ID of the dedicated host.
|
|
1416
1421
|
*
|
|
1417
1422
|
* You can call the [DescribeDedicatedHosts](https://help.aliyun.com/document_detail/134242.html) operation to query the list of dedicated host IDs.
|
|
1418
1423
|
*
|
|
1424
|
+
* > Spot instances cannot be created on dedicated hosts. If you specify DedicatedHostId, SpotStrategy and SpotPriceLimit are automatically ignored.
|
|
1425
|
+
*
|
|
1419
1426
|
* @example
|
|
1420
1427
|
* dh-bp67acfmxazb4p****
|
|
1421
1428
|
*/
|
|
@@ -1925,12 +1932,20 @@ export class RunInstancesRequest extends $dara.Model {
|
|
|
1925
1932
|
securityGroupIds?: string[];
|
|
1926
1933
|
/**
|
|
1927
1934
|
* @remarks
|
|
1928
|
-
* The protection period of the spot instance. Unit: hours.
|
|
1935
|
+
* The protection period of the spot instance. Unit: hours. Valid values:
|
|
1929
1936
|
*
|
|
1930
1937
|
* * 1: After a spot instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance.
|
|
1931
|
-
* * 0: After a spot instance is created, Alibaba Cloud does not ensure that the instance
|
|
1938
|
+
* * 0: After a spot instance is created, Alibaba Cloud does not ensure that the instance can run for one hour. The system compares the biding price with the market prices and checks the resource inventory to determine whether to retain or release the instance.
|
|
1939
|
+
*
|
|
1940
|
+
* Default value: 1.
|
|
1941
|
+
*
|
|
1942
|
+
* >
|
|
1943
|
+
*
|
|
1944
|
+
* * You can set this parameter only to 0 or 1.
|
|
1945
|
+
*
|
|
1946
|
+
* * The spot instance is billed by second. Specify an appropriate protection period.
|
|
1932
1947
|
*
|
|
1933
|
-
* Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released.
|
|
1948
|
+
* * Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released.
|
|
1934
1949
|
*
|
|
1935
1950
|
* @example
|
|
1936
1951
|
* 1
|
|
@@ -31,7 +31,7 @@ export class RunInstancesResponseBodyInstanceIdSets extends $dara.Model {
|
|
|
31
31
|
export class RunInstancesResponseBody extends $dara.Model {
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The instance IDs
|
|
34
|
+
* The instance IDs.
|
|
35
35
|
*/
|
|
36
36
|
instanceIdSets?: RunInstancesResponseBodyInstanceIdSets;
|
|
37
37
|
/**
|
package/src/models/model.ts
CHANGED
|
@@ -192,6 +192,7 @@ export { DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgr
|
|
|
192
192
|
export { DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig } from './DescribeCloudAssistantSettingsResponseBody';
|
|
193
193
|
export { DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig } from './DescribeCloudAssistantSettingsResponseBody';
|
|
194
194
|
export { DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs } from './DescribeCloudAssistantSettingsResponseBody';
|
|
195
|
+
export { DescribeCloudAssistantSettingsResponseBodySessionManagerConfig } from './DescribeCloudAssistantSettingsResponseBody';
|
|
195
196
|
export { DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig } from './DescribeCloudAssistantSettingsResponseBody';
|
|
196
197
|
export { DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs } from './DescribeCloudAssistantSettingsResponseBody';
|
|
197
198
|
export { DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus } from './DescribeCloudAssistantStatusResponseBody';
|
|
@@ -780,6 +781,7 @@ export { ModifyAutoSnapshotPolicyExRequestCopyEncryptionConfiguration } from './
|
|
|
780
781
|
export { ModifyCapacityReservationRequestPrivatePoolOptions } from './ModifyCapacityReservationRequest';
|
|
781
782
|
export { ModifyCloudAssistantSettingsRequestAgentUpgradeConfig } from './ModifyCloudAssistantSettingsRequest';
|
|
782
783
|
export { ModifyCloudAssistantSettingsRequestOssDeliveryConfig } from './ModifyCloudAssistantSettingsRequest';
|
|
784
|
+
export { ModifyCloudAssistantSettingsRequestSessionManagerConfig } from './ModifyCloudAssistantSettingsRequest';
|
|
783
785
|
export { ModifyCloudAssistantSettingsRequestSlsDeliveryConfig } from './ModifyCloudAssistantSettingsRequest';
|
|
784
786
|
export { ModifyDedicatedHostAttributeRequestNetworkAttributes } from './ModifyDedicatedHostAttributeRequest';
|
|
785
787
|
export { ModifyDedicatedHostsChargeTypeResponseBodyFeeOfInstancesFeeOfInstance } from './ModifyDedicatedHostsChargeTypeResponseBody';
|