alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.ess.ScalingRule

Import

ESS scaling rule can be imported using the id, e.g.

 $ pulumi import alicloud:ess/scalingRule:ScalingRule example abc123456

Create ScalingRule Resource

new ScalingRule(name: string, args: ScalingRuleArgs, opts?: CustomResourceOptions);
@overload
def ScalingRule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                adjustment_type: Optional[str] = None,
                adjustment_value: Optional[int] = None,
                cooldown: Optional[int] = None,
                disable_scale_in: Optional[bool] = None,
                estimated_instance_warmup: Optional[int] = None,
                metric_name: Optional[str] = None,
                scaling_group_id: Optional[str] = None,
                scaling_rule_name: Optional[str] = None,
                scaling_rule_type: Optional[str] = None,
                step_adjustments: Optional[Sequence[ScalingRuleStepAdjustmentArgs]] = None,
                target_value: Optional[float] = None)
@overload
def ScalingRule(resource_name: str,
                args: ScalingRuleArgs,
                opts: Optional[ResourceOptions] = None)
func NewScalingRule(ctx *Context, name string, args ScalingRuleArgs, opts ...ResourceOption) (*ScalingRule, error)
public ScalingRule(string name, ScalingRuleArgs args, CustomResourceOptions? opts = null)
public ScalingRule(String name, ScalingRuleArgs args)
public ScalingRule(String name, ScalingRuleArgs args, CustomResourceOptions options)
type: alicloud:ess:ScalingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ScalingRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ScalingRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ScalingRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ScalingRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ScalingRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ScalingRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ScalingRule resource accepts the following input properties:

ScalingGroupId string

ID of the scaling group of a scaling rule.

AdjustmentType string

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
AdjustmentValue int

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
Cooldown int

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

DisableScaleIn bool

Indicates whether scale in by the target tracking policy is disabled. Default to false.

EstimatedInstanceWarmup int

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

MetricName string

A CloudMonitor metric name.

ScalingRuleName string

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

ScalingRuleType string

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

StepAdjustments List<Pulumi.AliCloud.Ess.Inputs.ScalingRuleStepAdjustmentArgs>

Steps for StepScalingRule. See Block stepAdjustment below for details.

TargetValue double

The target value for the metric.

ScalingGroupId string

ID of the scaling group of a scaling rule.

AdjustmentType string

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
AdjustmentValue int

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
Cooldown int

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

DisableScaleIn bool

Indicates whether scale in by the target tracking policy is disabled. Default to false.

EstimatedInstanceWarmup int

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

MetricName string

A CloudMonitor metric name.

ScalingRuleName string

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

ScalingRuleType string

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

StepAdjustments []ScalingRuleStepAdjustmentArgs

Steps for StepScalingRule. See Block stepAdjustment below for details.

TargetValue float64

The target value for the metric.

scalingGroupId String

ID of the scaling group of a scaling rule.

adjustmentType String

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustmentValue Integer

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
cooldown Integer

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disableScaleIn Boolean

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimatedInstanceWarmup Integer

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metricName String

A CloudMonitor metric name.

scalingRuleName String

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scalingRuleType String

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

stepAdjustments List<ScalingRuleStepAdjustmentArgs>

Steps for StepScalingRule. See Block stepAdjustment below for details.

targetValue Double

The target value for the metric.

scalingGroupId string

ID of the scaling group of a scaling rule.

adjustmentType string

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustmentValue number

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
cooldown number

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disableScaleIn boolean

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimatedInstanceWarmup number

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metricName string

A CloudMonitor metric name.

scalingRuleName string

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scalingRuleType string

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

stepAdjustments ScalingRuleStepAdjustmentArgs[]

Steps for StepScalingRule. See Block stepAdjustment below for details.

targetValue number

The target value for the metric.

scaling_group_id str

ID of the scaling group of a scaling rule.

adjustment_type str

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustment_value int

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
cooldown int

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disable_scale_in bool

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimated_instance_warmup int

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metric_name str

A CloudMonitor metric name.

scaling_rule_name str

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scaling_rule_type str

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

step_adjustments Sequence[ScalingRuleStepAdjustmentArgs]

Steps for StepScalingRule. See Block stepAdjustment below for details.

target_value float

The target value for the metric.

scalingGroupId String

ID of the scaling group of a scaling rule.

adjustmentType String

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustmentValue Number

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
cooldown Number

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disableScaleIn Boolean

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimatedInstanceWarmup Number

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metricName String

A CloudMonitor metric name.

scalingRuleName String

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scalingRuleType String

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

stepAdjustments List<Property Map>

Steps for StepScalingRule. See Block stepAdjustment below for details.

targetValue Number

The target value for the metric.

Outputs

All input properties are implicitly available as output properties. Additionally, the ScalingRule resource produces the following output properties:

Ari string
Id string

The provider-assigned unique ID for this managed resource.

Ari string
Id string

The provider-assigned unique ID for this managed resource.

ari String
id String

The provider-assigned unique ID for this managed resource.

ari string
id string

The provider-assigned unique ID for this managed resource.

ari str
id str

The provider-assigned unique ID for this managed resource.

ari String
id String

The provider-assigned unique ID for this managed resource.

Look up Existing ScalingRule Resource

Get an existing ScalingRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ScalingRuleState, opts?: CustomResourceOptions): ScalingRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adjustment_type: Optional[str] = None,
        adjustment_value: Optional[int] = None,
        ari: Optional[str] = None,
        cooldown: Optional[int] = None,
        disable_scale_in: Optional[bool] = None,
        estimated_instance_warmup: Optional[int] = None,
        metric_name: Optional[str] = None,
        scaling_group_id: Optional[str] = None,
        scaling_rule_name: Optional[str] = None,
        scaling_rule_type: Optional[str] = None,
        step_adjustments: Optional[Sequence[ScalingRuleStepAdjustmentArgs]] = None,
        target_value: Optional[float] = None) -> ScalingRule
func GetScalingRule(ctx *Context, name string, id IDInput, state *ScalingRuleState, opts ...ResourceOption) (*ScalingRule, error)
public static ScalingRule Get(string name, Input<string> id, ScalingRuleState? state, CustomResourceOptions? opts = null)
public static ScalingRule get(String name, Output<String> id, ScalingRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AdjustmentType string

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
AdjustmentValue int

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
Ari string
Cooldown int

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

DisableScaleIn bool

Indicates whether scale in by the target tracking policy is disabled. Default to false.

EstimatedInstanceWarmup int

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

MetricName string

A CloudMonitor metric name.

ScalingGroupId string

ID of the scaling group of a scaling rule.

ScalingRuleName string

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

ScalingRuleType string

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

StepAdjustments List<Pulumi.AliCloud.Ess.Inputs.ScalingRuleStepAdjustmentArgs>

Steps for StepScalingRule. See Block stepAdjustment below for details.

TargetValue double

The target value for the metric.

AdjustmentType string

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
AdjustmentValue int

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
Ari string
Cooldown int

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

DisableScaleIn bool

Indicates whether scale in by the target tracking policy is disabled. Default to false.

EstimatedInstanceWarmup int

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

MetricName string

A CloudMonitor metric name.

ScalingGroupId string

ID of the scaling group of a scaling rule.

ScalingRuleName string

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

ScalingRuleType string

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

StepAdjustments []ScalingRuleStepAdjustmentArgs

Steps for StepScalingRule. See Block stepAdjustment below for details.

TargetValue float64

The target value for the metric.

adjustmentType String

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustmentValue Integer

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
ari String
cooldown Integer

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disableScaleIn Boolean

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimatedInstanceWarmup Integer

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metricName String

A CloudMonitor metric name.

scalingGroupId String

ID of the scaling group of a scaling rule.

scalingRuleName String

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scalingRuleType String

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

stepAdjustments List<ScalingRuleStepAdjustmentArgs>

Steps for StepScalingRule. See Block stepAdjustment below for details.

targetValue Double

The target value for the metric.

adjustmentType string

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustmentValue number

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
ari string
cooldown number

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disableScaleIn boolean

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimatedInstanceWarmup number

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metricName string

A CloudMonitor metric name.

scalingGroupId string

ID of the scaling group of a scaling rule.

scalingRuleName string

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scalingRuleType string

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

stepAdjustments ScalingRuleStepAdjustmentArgs[]

Steps for StepScalingRule. See Block stepAdjustment below for details.

targetValue number

The target value for the metric.

adjustment_type str

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustment_value int

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
ari str
cooldown int

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disable_scale_in bool

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimated_instance_warmup int

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metric_name str

A CloudMonitor metric name.

scaling_group_id str

ID of the scaling group of a scaling rule.

scaling_rule_name str

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scaling_rule_type str

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

step_adjustments Sequence[ScalingRuleStepAdjustmentArgs]

Steps for StepScalingRule. See Block stepAdjustment below for details.

target_value float

The target value for the metric.

adjustmentType String

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
adjustmentValue Number

The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
ari String
cooldown Number

The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

disableScaleIn Boolean

Indicates whether scale in by the target tracking policy is disabled. Default to false.

estimatedInstanceWarmup Number

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

metricName String

A CloudMonitor metric name.

scalingGroupId String

ID of the scaling group of a scaling rule.

scalingRuleName String

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

scalingRuleType String

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

stepAdjustments List<Property Map>

Steps for StepScalingRule. See Block stepAdjustment below for details.

targetValue Number

The target value for the metric.

Supporting Types

ScalingRuleStepAdjustment

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.