Skip to content

RecommendInstanceTypesProps

Properties for defining a RecommendInstanceTypes.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-recommendinstancetypes

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new RecommendInstanceTypesProps {
    object Cores = null,
    object InstanceChargeType = null,
    object InstanceFamilyLevel = null,
    object InstanceType = null,
    object InstanceTypeFamilies = null,
    object IoOptimized = null,
    object MaxPrice = null,
    object Memory = null,
    object PriorityStrategy = null,
    object RefreshOptions = null,
    object Scene = null,
    object SpotStrategy = null,
    object SystemDiskCategory = null,
    object ZoneId = null,
    object ZoneMatchMode = null
};

Properties

Name Type Description
Cores object Property cores: The number of vCPUs of the instance.
InstanceChargeType object Property instanceChargeType: The billing method of the instances of the instance type.
InstanceFamilyLevel object Property instanceFamilyLevel: The level of the instance family.
InstanceType object Property instanceType: The specified instance type.
InstanceTypeFamilies object Property instanceTypeFamilies: The list of instance family to be filtered out.
IoOptimized object Property ioOptimized: Specifies whether to match I\/O optimized instances.
MaxPrice object Property maxPrice: The maximum hourly price for pay-as-you-go instances or preemptible instances.
Memory object Property memory: The memory size of the instance.
PriorityStrategy object Property priorityStrategy: The policy for recommending instance types.
RefreshOptions object Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Scene object Property scene: Specifies the scenario in which the instance type is recommended.
SpotStrategy object Property spotStrategy: The bidding policy of preemptible instances.
SystemDiskCategory object Property systemDiskCategory: The category of the system disk.
ZoneId object Property zoneId: The zone ID of the alternative instance types.
ZoneMatchMode object Property zoneMatchMode: Specifies which alternative instance types are recommended.

CoresOptional

public object Cores { get; set; }
  • Type: object

Property cores: The number of vCPUs of the instance.

Note If the Cores and Memory parameters are both specified, all instance types that offer the vCPUs and memory size specified by the parameters are matched.


InstanceChargeTypeOptional

public object InstanceChargeType { get; set; }
  • Type: object

Property instanceChargeType: The billing method of the instances of the instance type.

Valid values: PrePaid: subscription PostPaid: pay-as-you-go Default value: PostPaid.


InstanceFamilyLevelOptional

public object InstanceFamilyLevel { get; set; }
  • Type: object

Property instanceFamilyLevel: The level of the instance family.

Valid values: EntryLevel, EnterpriseLevel, CreditEntryLevel.


InstanceTypeOptional

public object InstanceType { get; set; }
  • Type: object

Property instanceType: The specified instance type.

For more information, see Instance families or call ECS DescribeInstanceTypes operation to query the most recent instance type list. Note If the InstanceType parameter is specified, none of the Cores and Memory parameters can be specified.


InstanceTypeFamiliesOptional

public object InstanceTypeFamilies { get; set; }
  • Type: object

Property instanceTypeFamilies: The list of instance family to be filtered out.

You can also call ECS DescribeInstanceTypeFamilies operation to query the list of instance families.


IoOptimizedOptional

public object IoOptimized { get; set; }
  • Type: object

Property ioOptimized: Specifies whether to match I\/O optimized instances.

The IoOptimized parameter cannot be specified when the instance is not I/O optimized. Valid values: optimized: matches I/O optimized instances. none: matches non-I/O optimized instances. Default value: optimized. If you query alternative instance types for retired instance types, this parameter is set to none by default. Default value: none.


MaxPriceOptional

public object MaxPrice { get; set; }
  • Type: object

Property maxPrice: The maximum hourly price for pay-as-you-go instances or preemptible instances.

Note If this parameter is specified, the SpotStrategy parameter must be set to SpotWithPriceLimit.


MemoryOptional

public object Memory { get; set; }
  • Type: object

Property memory: The memory size of the instance.

Unit: GiB. Note If the Cores and Memory parameters are both specified, all instance types that offer the vCPUs and memory size specified by the parameters are matched.


PriorityStrategyOptional

public object PriorityStrategy { get; set; }
  • Type: object

Property priorityStrategy: The policy for recommending instance types.

Valid values: InventoryFirst: Instance types are recommended in descending order based on resource availability. PriceFirst: Instance types are recommended in ascending order based on hourly price per vCPU. NewProductFirst: The latest instance types are recommended first. Default value: InventoryFirst.


RefreshOptionsOptional

public object RefreshOptions { get; set; }
  • Type: object

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

SceneOptional

public object Scene { get; set; }
  • Type: object

Property scene: Specifies the scenario in which the instance type is recommended.

Valid values: UPGRADE: instance type upgrade or downgrade CREATE: instance creation Default value: CREATE.


SpotStrategyOptional

public object SpotStrategy { get; set; }
  • Type: object

Property spotStrategy: The bidding policy of preemptible instances.

Valid values: NoSpot: applies to regular pay-as-you-go instances. SpotWithPriceLimit: applies to preemptible instances that have user-defined maximum hourly prices. SpotAsPriceGo: applies to preemptible instances that are of the market price at the time of purchase. Note If the SpotStrategy parameter is specified, the InstanceChargeType parameter must be set to PostPaid. Default value: NoSpot.


SystemDiskCategoryOptional

public object SystemDiskCategory { get; set; }
  • Type: object

Property systemDiskCategory: The category of the system disk.

Valid values: cloud_efficiency: ultra disk cloud_ssd: standard SSD cloud_essd: enhanced SSD (ESSD) cloud: basic disk For non-I/O optimized instances, the default value is cloud. For I/O optimized instances, the default value is cloud_efficiency.


ZoneIdOptional

public object ZoneId { get; set; }
  • Type: object

Property zoneId: The zone ID of the alternative instance types.

You can call ECS DescribeZones operation to query the most recent zone list.When you specify this parameter, we recommend that you set ZoneMatchMode to the default value Include. This value indicates that instance types in the zone specified by ZoneId are preferentially recommended, and instance types in other zones in the same region are also listed.


ZoneMatchModeOptional

public object ZoneMatchMode { get; set; }
  • Type: object

Property zoneMatchMode: Specifies which alternative instance types are recommended.

Valid values: Strict: recommends only alternative instance types in the zone specified by ZoneId. Include: recommends all instance types in all the zones in the same region as the specified instance type. When ZoneId is specified, the default value of this parameter is Strict. This value indicates that only alternative instance types in the zone specified by ZoneId are recommended.