Skip to content

AutoProvisioningGroupProps

Properties for defining a AutoProvisioningGroup.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-autoprovisioninggroup

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new AutoProvisioningGroupProps {
    object TotalTargetCapacity,
    object AutoProvisioningGroupName = null,
    object AutoProvisioningGroupType = null,
    object CheckExecutionStatus = null,
    object DefaultTargetCapacityType = null,
    object Description = null,
    object ExcessCapacityTerminationPolicy = null,
    object LaunchConfiguration = null,
    object LaunchTemplateConfig = null,
    object LaunchTemplateId = null,
    object LaunchTemplateVersion = null,
    object MaxSpotPrice = null,
    object PayAsYouGoAllocationStrategy = null,
    object PayAsYouGoTargetCapacity = null,
    object SpotAllocationStrategy = null,
    object SpotInstanceInterruptionBehavior = null,
    object SpotInstancePoolsToUseCount = null,
    object SpotTargetCapacity = null,
    object TerminateInstances = null,
    object TerminateInstancesWithExpiration = null,
    object ValidFrom = null,
    object ValidUntil = null
};

Properties

Name Type Description
TotalTargetCapacity object Property totalTargetCapacity: The total target capacity of the auto provisioning group.
AutoProvisioningGroupName object Property autoProvisioningGroupName: The name of the auto provisioning group to be created.
AutoProvisioningGroupType object Property autoProvisioningGroupType: The type of the auto provisioning group.
CheckExecutionStatus object Property checkExecutionStatus: Whether check execution status.
DefaultTargetCapacityType object Property defaultTargetCapacityType: The type of supplemental instances.
Description object Property description: The description of the auto provisioning group.
ExcessCapacityTerminationPolicy object Property excessCapacityTerminationPolicy: The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity.
LaunchConfiguration object Property launchConfiguration:.
LaunchTemplateConfig object Property launchTemplateConfig:.
LaunchTemplateId object Property launchTemplateId: The ID of the instance launch template associated with the auto provisioning group.
LaunchTemplateVersion object Property launchTemplateVersion: The version of the instance launch template associated with the auto provisioning group.
MaxSpotPrice object Property maxSpotPrice: The global maximum price for preemptible instances in the auto provisioning group.
PayAsYouGoAllocationStrategy object Property payAsYouGoAllocationStrategy: The scale-out policy for pay-as-you-go instances.
PayAsYouGoTargetCapacity object Property payAsYouGoTargetCapacity: The target capacity of pay-as-you-go instances in the auto provisioning group.
SpotAllocationStrategy object Property spotAllocationStrategy: The scale-out policy for preemptible instances.
SpotInstanceInterruptionBehavior object Property spotInstanceInterruptionBehavior: The default behavior after preemptible instances are shut down.
SpotInstancePoolsToUseCount object Property spotInstancePoolsToUseCount: This parameter takes effect when the SpotAllocationStrategy parameter is set to lowest-price.
SpotTargetCapacity object Property spotTargetCapacity: The target capacity of preemptible instances in the auto provisioning group.
TerminateInstances object Property terminateInstances: Specifies whether to release instances of the auto provisioning group.
TerminateInstancesWithExpiration object Property terminateInstancesWithExpiration: The shutdown policy for preemptible instances when the auto provisioning group expires.
ValidFrom object Property validFrom: The time when the auto provisioning group is started.
ValidUntil object Property validUntil: The time when the auto provisioning group expires.

TotalTargetCapacityRequired

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

Property totalTargetCapacity: The total target capacity of the auto provisioning group.

The target capacity consists of the following three parts: The target capacity of pay-as-you-go instances specified by the PayAsYouGoTargetCapacity parameter The target capacity of preemptible instances specified by the SpotTargetCapacity parameter The supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity


AutoProvisioningGroupNameOptional

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

Property autoProvisioningGroupName: The name of the auto provisioning group to be created.

It must be 2 to 128 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).


AutoProvisioningGroupTypeOptional

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

Property autoProvisioningGroupType: The type of the auto provisioning group.

Valid values: request: One-time delivery. After the auto provisioning group is started, it only attempts to create an instance cluster once. If the cluster fails to be created, the group does not try again. maintain: The continuous delivery and maintain capacity type. After the auto provisioning group is started, it continuously attempts to create and maintain the instance cluster. The auto provisioning group compares the real-time and target capacity of the cluster. If the cluster does not meet the target capacity, the group will create instances until the cluster meets the target capacity. Default value: maintain


CheckExecutionStatusOptional

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

Property checkExecutionStatus: Whether check execution status.

If set true, ROS will check the state of AutoProvisioningGroup to be fulfilled. Otherwise ROS will regard AutoProvisioningGroup create failed.


DefaultTargetCapacityTypeOptional

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

Property defaultTargetCapacityType: The type of supplemental instances.

When the total value of PayAsYouGoTargetCapacity and SpotTargetCapacity is smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values: PayAsYouGo: Pay-as-you-go instances. Spot: Preemptible instances. Default value: Spot


DescriptionOptional

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

Property description: The description of the auto provisioning group.


ExcessCapacityTerminationPolicyOptional

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

Property excessCapacityTerminationPolicy: The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity.

Valid values: no-termination: Excess preemptible instances are not shut down. termination: Excess preemptible instances are to be shut down. The action to be performed on these shutdown instances is specified by the SpotInstanceInterruptionBehavior parameter. Default value: no-termination


LaunchConfigurationOptional

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

Property launchConfiguration:.


LaunchTemplateConfigOptional

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

Property launchTemplateConfig:.


LaunchTemplateIdOptional

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

Property launchTemplateId: The ID of the instance launch template associated with the auto provisioning group.

You can call the DescribeLaunchTemplates operation to query available instance launch templates. An auto provisioning group can be associated with only one instance launch template. But you can configure multiple extended configurations for the launch template through the LaunchTemplateConfig parameter.


LaunchTemplateVersionOptional

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

Property launchTemplateVersion: The version of the instance launch template associated with the auto provisioning group.

You can call the DescribeLaunchTemplateVersions operation to query the versions of available instance launch templates.


MaxSpotPriceOptional

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

Property maxSpotPrice: The global maximum price for preemptible instances in the auto provisioning group.

If both the MaxSpotPrice and LaunchTemplateConfig.N.MaxPrice parameters are specified, the maximum price is the lower value of the two.


PayAsYouGoAllocationStrategyOptional

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

Property payAsYouGoAllocationStrategy: The scale-out policy for pay-as-you-go instances.

Valid values: lowest-price: The cost optimization policy the auto provisioning group follows to select instance types of the lowest cost to create instances. prioritized: The priority-based policy the auto provisioning group follows to create instances. The priority of an instance type is specified by the LaunchTemplateConfig.N.Priority parameter. Default value: lowest-price


PayAsYouGoTargetCapacityOptional

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

Property payAsYouGoTargetCapacity: The target capacity of pay-as-you-go instances in the auto provisioning group.


SpotAllocationStrategyOptional

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

Property spotAllocationStrategy: The scale-out policy for preemptible instances.

Valid values: lowest-price: The cost optimization policy the auto provisioning group follows to select instance types of the lowest cost to create instances. diversified: The distribution balancing policy the auto provisioning group follows to evenly create instances across zones specified in multiple extended template configurations. Default value: lowest-price


SpotInstanceInterruptionBehaviorOptional

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

Property spotInstanceInterruptionBehavior: The default behavior after preemptible instances are shut down.

Value values: stop: stops preemptible instances. terminate: releases preemptible instances. Default value: stop


SpotInstancePoolsToUseCountOptional

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

Property spotInstancePoolsToUseCount: This parameter takes effect when the SpotAllocationStrategy parameter is set to lowest-price.

The auto provisioning group selects instance types of the lowest cost to create instances.


SpotTargetCapacityOptional

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

Property spotTargetCapacity: The target capacity of preemptible instances in the auto provisioning group.


TerminateInstancesOptional

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

Property terminateInstances: Specifies whether to release instances of the auto provisioning group.

Valid values: true false Default: false


TerminateInstancesWithExpirationOptional

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

Property terminateInstancesWithExpiration: The shutdown policy for preemptible instances when the auto provisioning group expires.

Valid values: true: shuts down preemptible instances. The action to be performed on these shutdown instances is specified by the SpotInstanceInterruptionBehavior parameter. false: does not shut down preemptible instances. Default: false


ValidFromOptional

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

Property validFrom: The time when the auto provisioning group is started.

The period of time between this point in time and the point in time specified by the ValidUntil parameter is the effective time period of the auto provisioning group. By default, an auto provisioning group is immediately started after creation.


ValidUntilOptional

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

Property validUntil: The time when the auto provisioning group expires.

The period of time between this point in time and the point in time specified by the ValidFrom parameter is the effective time period of the auto provisioning group. By default, an auto provisioning group never expires.