1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. autoscaling
  5. ScalingPolicy
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus

    Scaling rules define the conditions and methods for triggering scaling actions, including rule type, trigger time, scaling action, cooldown time. You can enable multiple scaling rules within the same scaling group. Scaling actions are executed when any rule type is met. If multiple rule types are met at the same time, manual scaling actions take priority.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      autoScalingScalingPolicyDemo:
        type: bytepluscc:autoscaling:ScalingPolicy
        name: AutoScalingScalingPolicyDemo
        properties:
          scalingGroupId: scg-ye9vu9ztco9ht5lxxxxx
          scalingPolicyName: AutoScalingScalingPolicyDemo
          scalingPolicyType: Scheduled
          adjustmentType: PercentChangeInCapacity
          adjustmentValue: 1
          cooldown: 86400
          scheduledPolicy:
            launch_time: 2025-12-21T11:58Z
            recurrence_end_time: ""
            recurrence_type: ""
            recurrence_value: ""
          isEnabledPolicy: false
    

    Create ScalingPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ScalingPolicy(name: string, args: ScalingPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ScalingPolicy(resource_name: str,
                      args: ScalingPolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScalingPolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      scaling_group_id: Optional[str] = None,
                      scaling_policy_name: Optional[str] = None,
                      scaling_policy_type: Optional[str] = None,
                      adjustment_type: Optional[str] = None,
                      adjustment_value: Optional[int] = None,
                      alarm_policy: Optional[ScalingPolicyAlarmPolicyArgs] = None,
                      cooldown: Optional[int] = None,
                      is_enabled_policy: Optional[bool] = None,
                      scheduled_policy: Optional[ScalingPolicyScheduledPolicyArgs] = None)
    func NewScalingPolicy(ctx *Context, name string, args ScalingPolicyArgs, opts ...ResourceOption) (*ScalingPolicy, error)
    public ScalingPolicy(string name, ScalingPolicyArgs args, CustomResourceOptions? opts = null)
    public ScalingPolicy(String name, ScalingPolicyArgs args)
    public ScalingPolicy(String name, ScalingPolicyArgs args, CustomResourceOptions options)
    
    type: bytepluscc:autoscaling:ScalingPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ScalingPolicyArgs
    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 ScalingPolicyArgs
    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 ScalingPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScalingPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScalingPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var scalingPolicyResource = new Bytepluscc.Autoscaling.ScalingPolicy("scalingPolicyResource", new()
    {
        ScalingGroupId = "string",
        ScalingPolicyName = "string",
        ScalingPolicyType = "string",
        AdjustmentType = "string",
        AdjustmentValue = 0,
        AlarmPolicy = new Bytepluscc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyArgs
        {
            Condition = new Bytepluscc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyConditionArgs
            {
                ComparisonOperator = "string",
                MetricName = "string",
                MetricUnit = "string",
                Threshold = "string",
            },
            ConditionOperator = "string",
            Conditions = new[]
            {
                new Bytepluscc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyConditionArgs
                {
                    ComparisonOperator = "string",
                    MetricName = "string",
                    MetricUnit = "string",
                    Threshold = "string",
                },
            },
            Effective = "string",
            EvaluationCount = 0,
            RuleType = "string",
        },
        Cooldown = 0,
        IsEnabledPolicy = false,
        ScheduledPolicy = new Bytepluscc.Autoscaling.Inputs.ScalingPolicyScheduledPolicyArgs
        {
            LaunchTime = "string",
            LaunchTimeRead = "string",
            RecurrenceEndTime = "string",
            RecurrenceEndTimeRead = "string",
            RecurrenceStartTime = "string",
            RecurrenceType = "string",
            RecurrenceValue = "string",
        },
    });
    
    example, err := autoscaling.NewScalingPolicy(ctx, "scalingPolicyResource", &autoscaling.ScalingPolicyArgs{
    	ScalingGroupId:    pulumi.String("string"),
    	ScalingPolicyName: pulumi.String("string"),
    	ScalingPolicyType: pulumi.String("string"),
    	AdjustmentType:    pulumi.String("string"),
    	AdjustmentValue:   pulumi.Int(0),
    	AlarmPolicy: &autoscaling.ScalingPolicyAlarmPolicyArgs{
    		Condition: &autoscaling.ScalingPolicyAlarmPolicyConditionArgs{
    			ComparisonOperator: pulumi.String("string"),
    			MetricName:         pulumi.String("string"),
    			MetricUnit:         pulumi.String("string"),
    			Threshold:          pulumi.String("string"),
    		},
    		ConditionOperator: pulumi.String("string"),
    		Conditions: autoscaling.ScalingPolicyAlarmPolicyConditionArray{
    			&autoscaling.ScalingPolicyAlarmPolicyConditionArgs{
    				ComparisonOperator: pulumi.String("string"),
    				MetricName:         pulumi.String("string"),
    				MetricUnit:         pulumi.String("string"),
    				Threshold:          pulumi.String("string"),
    			},
    		},
    		Effective:       pulumi.String("string"),
    		EvaluationCount: pulumi.Int(0),
    		RuleType:        pulumi.String("string"),
    	},
    	Cooldown:        pulumi.Int(0),
    	IsEnabledPolicy: pulumi.Bool(false),
    	ScheduledPolicy: &autoscaling.ScalingPolicyScheduledPolicyArgs{
    		LaunchTime:            pulumi.String("string"),
    		LaunchTimeRead:        pulumi.String("string"),
    		RecurrenceEndTime:     pulumi.String("string"),
    		RecurrenceEndTimeRead: pulumi.String("string"),
    		RecurrenceStartTime:   pulumi.String("string"),
    		RecurrenceType:        pulumi.String("string"),
    		RecurrenceValue:       pulumi.String("string"),
    	},
    })
    
    var scalingPolicyResource = new ScalingPolicy("scalingPolicyResource", ScalingPolicyArgs.builder()
        .scalingGroupId("string")
        .scalingPolicyName("string")
        .scalingPolicyType("string")
        .adjustmentType("string")
        .adjustmentValue(0)
        .alarmPolicy(ScalingPolicyAlarmPolicyArgs.builder()
            .condition(ScalingPolicyAlarmPolicyConditionArgs.builder()
                .comparisonOperator("string")
                .metricName("string")
                .metricUnit("string")
                .threshold("string")
                .build())
            .conditionOperator("string")
            .conditions(ScalingPolicyAlarmPolicyConditionArgs.builder()
                .comparisonOperator("string")
                .metricName("string")
                .metricUnit("string")
                .threshold("string")
                .build())
            .effective("string")
            .evaluationCount(0)
            .ruleType("string")
            .build())
        .cooldown(0)
        .isEnabledPolicy(false)
        .scheduledPolicy(ScalingPolicyScheduledPolicyArgs.builder()
            .launchTime("string")
            .launchTimeRead("string")
            .recurrenceEndTime("string")
            .recurrenceEndTimeRead("string")
            .recurrenceStartTime("string")
            .recurrenceType("string")
            .recurrenceValue("string")
            .build())
        .build());
    
    scaling_policy_resource = bytepluscc.autoscaling.ScalingPolicy("scalingPolicyResource",
        scaling_group_id="string",
        scaling_policy_name="string",
        scaling_policy_type="string",
        adjustment_type="string",
        adjustment_value=0,
        alarm_policy={
            "condition": {
                "comparison_operator": "string",
                "metric_name": "string",
                "metric_unit": "string",
                "threshold": "string",
            },
            "condition_operator": "string",
            "conditions": [{
                "comparison_operator": "string",
                "metric_name": "string",
                "metric_unit": "string",
                "threshold": "string",
            }],
            "effective": "string",
            "evaluation_count": 0,
            "rule_type": "string",
        },
        cooldown=0,
        is_enabled_policy=False,
        scheduled_policy={
            "launch_time": "string",
            "launch_time_read": "string",
            "recurrence_end_time": "string",
            "recurrence_end_time_read": "string",
            "recurrence_start_time": "string",
            "recurrence_type": "string",
            "recurrence_value": "string",
        })
    
    const scalingPolicyResource = new bytepluscc.autoscaling.ScalingPolicy("scalingPolicyResource", {
        scalingGroupId: "string",
        scalingPolicyName: "string",
        scalingPolicyType: "string",
        adjustmentType: "string",
        adjustmentValue: 0,
        alarmPolicy: {
            condition: {
                comparisonOperator: "string",
                metricName: "string",
                metricUnit: "string",
                threshold: "string",
            },
            conditionOperator: "string",
            conditions: [{
                comparisonOperator: "string",
                metricName: "string",
                metricUnit: "string",
                threshold: "string",
            }],
            effective: "string",
            evaluationCount: 0,
            ruleType: "string",
        },
        cooldown: 0,
        isEnabledPolicy: false,
        scheduledPolicy: {
            launchTime: "string",
            launchTimeRead: "string",
            recurrenceEndTime: "string",
            recurrenceEndTimeRead: "string",
            recurrenceStartTime: "string",
            recurrenceType: "string",
            recurrenceValue: "string",
        },
    });
    
    type: bytepluscc:autoscaling:ScalingPolicy
    properties:
        adjustmentType: string
        adjustmentValue: 0
        alarmPolicy:
            condition:
                comparisonOperator: string
                metricName: string
                metricUnit: string
                threshold: string
            conditionOperator: string
            conditions:
                - comparisonOperator: string
                  metricName: string
                  metricUnit: string
                  threshold: string
            effective: string
            evaluationCount: 0
            ruleType: string
        cooldown: 0
        isEnabledPolicy: false
        scalingGroupId: string
        scalingPolicyName: string
        scalingPolicyType: string
        scheduledPolicy:
            launchTime: string
            launchTimeRead: string
            recurrenceEndTime: string
            recurrenceEndTimeRead: string
            recurrenceStartTime: string
            recurrenceType: string
            recurrenceValue: string
    

    ScalingPolicy Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ScalingPolicy resource accepts the following input properties:

    ScalingGroupId string
    Scaling group ID.
    ScalingPolicyName string
    Name of the scaling rule.
    ScalingPolicyType string
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    AdjustmentType string
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    AdjustmentValue int
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    AlarmPolicy Byteplus.ScalingPolicyAlarmPolicy
    Detailed information about the alarm task.
    Cooldown int
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    IsEnabledPolicy bool
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    ScheduledPolicy Byteplus.ScalingPolicyScheduledPolicy
    Detailed information for scheduled/recurring tasks.
    ScalingGroupId string
    Scaling group ID.
    ScalingPolicyName string
    Name of the scaling rule.
    ScalingPolicyType string
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    AdjustmentType string
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    AdjustmentValue int
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    AlarmPolicy ScalingPolicyAlarmPolicyArgs
    Detailed information about the alarm task.
    Cooldown int
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    IsEnabledPolicy bool
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    ScheduledPolicy ScalingPolicyScheduledPolicyArgs
    Detailed information for scheduled/recurring tasks.
    scalingGroupId String
    Scaling group ID.
    scalingPolicyName String
    Name of the scaling rule.
    scalingPolicyType String
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    adjustmentType String
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustmentValue Integer
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarmPolicy ScalingPolicyAlarmPolicy
    Detailed information about the alarm task.
    cooldown Integer
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    isEnabledPolicy Boolean
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scheduledPolicy ScalingPolicyScheduledPolicy
    Detailed information for scheduled/recurring tasks.
    scalingGroupId string
    Scaling group ID.
    scalingPolicyName string
    Name of the scaling rule.
    scalingPolicyType string
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    adjustmentType string
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustmentValue number
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarmPolicy ScalingPolicyAlarmPolicy
    Detailed information about the alarm task.
    cooldown number
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    isEnabledPolicy boolean
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scheduledPolicy ScalingPolicyScheduledPolicy
    Detailed information for scheduled/recurring tasks.
    scaling_group_id str
    Scaling group ID.
    scaling_policy_name str
    Name of the scaling rule.
    scaling_policy_type str
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    adjustment_type str
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustment_value int
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarm_policy ScalingPolicyAlarmPolicyArgs
    Detailed information about the alarm task.
    cooldown int
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    is_enabled_policy bool
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scheduled_policy ScalingPolicyScheduledPolicyArgs
    Detailed information for scheduled/recurring tasks.
    scalingGroupId String
    Scaling group ID.
    scalingPolicyName String
    Name of the scaling rule.
    scalingPolicyType String
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    adjustmentType String
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustmentValue Number
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarmPolicy Property Map
    Detailed information about the alarm task.
    cooldown Number
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    isEnabledPolicy Boolean
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scheduledPolicy Property Map
    Detailed information for scheduled/recurring tasks.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ScalingPolicyId string
    Scaling rule ID.
    Status string
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    Id string
    The provider-assigned unique ID for this managed resource.
    ScalingPolicyId string
    Scaling rule ID.
    Status string
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    id String
    The provider-assigned unique ID for this managed resource.
    scalingPolicyId String
    Scaling rule ID.
    status String
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    id string
    The provider-assigned unique ID for this managed resource.
    scalingPolicyId string
    Scaling rule ID.
    status string
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    id str
    The provider-assigned unique ID for this managed resource.
    scaling_policy_id str
    Scaling rule ID.
    status str
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    id String
    The provider-assigned unique ID for this managed resource.
    scalingPolicyId String
    Scaling rule ID.
    status String
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.

    Look up Existing ScalingPolicy Resource

    Get an existing ScalingPolicy 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?: ScalingPolicyState, opts?: CustomResourceOptions): ScalingPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adjustment_type: Optional[str] = None,
            adjustment_value: Optional[int] = None,
            alarm_policy: Optional[ScalingPolicyAlarmPolicyArgs] = None,
            cooldown: Optional[int] = None,
            is_enabled_policy: Optional[bool] = None,
            scaling_group_id: Optional[str] = None,
            scaling_policy_id: Optional[str] = None,
            scaling_policy_name: Optional[str] = None,
            scaling_policy_type: Optional[str] = None,
            scheduled_policy: Optional[ScalingPolicyScheduledPolicyArgs] = None,
            status: Optional[str] = None) -> ScalingPolicy
    func GetScalingPolicy(ctx *Context, name string, id IDInput, state *ScalingPolicyState, opts ...ResourceOption) (*ScalingPolicy, error)
    public static ScalingPolicy Get(string name, Input<string> id, ScalingPolicyState? state, CustomResourceOptions? opts = null)
    public static ScalingPolicy get(String name, Output<String> id, ScalingPolicyState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:autoscaling:ScalingPolicy    get:      id: ${id}
    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
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    AdjustmentValue int
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    AlarmPolicy Byteplus.ScalingPolicyAlarmPolicy
    Detailed information about the alarm task.
    Cooldown int
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    IsEnabledPolicy bool
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    ScalingGroupId string
    Scaling group ID.
    ScalingPolicyId string
    Scaling rule ID.
    ScalingPolicyName string
    Name of the scaling rule.
    ScalingPolicyType string
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    ScheduledPolicy Byteplus.ScalingPolicyScheduledPolicy
    Detailed information for scheduled/recurring tasks.
    Status string
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    AdjustmentType string
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    AdjustmentValue int
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    AlarmPolicy ScalingPolicyAlarmPolicyArgs
    Detailed information about the alarm task.
    Cooldown int
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    IsEnabledPolicy bool
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    ScalingGroupId string
    Scaling group ID.
    ScalingPolicyId string
    Scaling rule ID.
    ScalingPolicyName string
    Name of the scaling rule.
    ScalingPolicyType string
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    ScheduledPolicy ScalingPolicyScheduledPolicyArgs
    Detailed information for scheduled/recurring tasks.
    Status string
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    adjustmentType String
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustmentValue Integer
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarmPolicy ScalingPolicyAlarmPolicy
    Detailed information about the alarm task.
    cooldown Integer
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    isEnabledPolicy Boolean
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scalingGroupId String
    Scaling group ID.
    scalingPolicyId String
    Scaling rule ID.
    scalingPolicyName String
    Name of the scaling rule.
    scalingPolicyType String
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    scheduledPolicy ScalingPolicyScheduledPolicy
    Detailed information for scheduled/recurring tasks.
    status String
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    adjustmentType string
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustmentValue number
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarmPolicy ScalingPolicyAlarmPolicy
    Detailed information about the alarm task.
    cooldown number
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    isEnabledPolicy boolean
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scalingGroupId string
    Scaling group ID.
    scalingPolicyId string
    Scaling rule ID.
    scalingPolicyName string
    Name of the scaling rule.
    scalingPolicyType string
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    scheduledPolicy ScalingPolicyScheduledPolicy
    Detailed information for scheduled/recurring tasks.
    status string
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    adjustment_type str
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustment_value int
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarm_policy ScalingPolicyAlarmPolicyArgs
    Detailed information about the alarm task.
    cooldown int
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    is_enabled_policy bool
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scaling_group_id str
    Scaling group ID.
    scaling_policy_id str
    Scaling rule ID.
    scaling_policy_name str
    Name of the scaling rule.
    scaling_policy_type str
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    scheduled_policy ScalingPolicyScheduledPolicyArgs
    Detailed information for scheduled/recurring tasks.
    status str
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
    adjustmentType String
    Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
    adjustmentValue Number
    Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
    alarmPolicy Property Map
    Detailed information about the alarm task.
    cooldown Number
    Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
    isEnabledPolicy Boolean
    Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
    scalingGroupId String
    Scaling group ID.
    scalingPolicyId String
    Scaling rule ID.
    scalingPolicyName String
    Name of the scaling rule.
    scalingPolicyType String
    Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
    scheduledPolicy Property Map
    Detailed information for scheduled/recurring tasks.
    status String
    Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.

    Supporting Types

    ScalingPolicyAlarmPolicy, ScalingPolicyAlarmPolicyArgs

    Condition Byteplus.ScalingPolicyAlarmPolicyCondition
    Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
    ConditionOperator string
    Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
    Conditions List<Byteplus.ScalingPolicyAlarmPolicyCondition>
    Effective string
    The effective period for the alarm task.
    EvaluationCount int
    Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
    RuleType string
    Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
    Condition ScalingPolicyAlarmPolicyCondition
    Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
    ConditionOperator string
    Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
    Conditions []ScalingPolicyAlarmPolicyCondition
    Effective string
    The effective period for the alarm task.
    EvaluationCount int
    Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
    RuleType string
    Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
    condition ScalingPolicyAlarmPolicyCondition
    Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
    conditionOperator String
    Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
    conditions List<ScalingPolicyAlarmPolicyCondition>
    effective String
    The effective period for the alarm task.
    evaluationCount Integer
    Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
    ruleType String
    Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
    condition ScalingPolicyAlarmPolicyCondition
    Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
    conditionOperator string
    Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
    conditions ScalingPolicyAlarmPolicyCondition[]
    effective string
    The effective period for the alarm task.
    evaluationCount number
    Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
    ruleType string
    Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
    condition ScalingPolicyAlarmPolicyCondition
    Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
    condition_operator str
    Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
    conditions Sequence[ScalingPolicyAlarmPolicyCondition]
    effective str
    The effective period for the alarm task.
    evaluation_count int
    Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
    rule_type str
    Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
    condition Property Map
    Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
    conditionOperator String
    Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
    conditions List<Property Map>
    effective String
    The effective period for the alarm task.
    evaluationCount Number
    Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
    ruleType String
    Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.

    ScalingPolicyAlarmPolicyCondition, ScalingPolicyAlarmPolicyConditionArgs

    ComparisonOperator string
    Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
    MetricName string
    Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
    MetricUnit string
    The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
    Threshold string
    The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
    ComparisonOperator string
    Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
    MetricName string
    Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
    MetricUnit string
    The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
    Threshold string
    The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
    comparisonOperator String
    Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
    metricName String
    Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
    metricUnit String
    The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
    threshold String
    The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
    comparisonOperator string
    Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
    metricName string
    Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
    metricUnit string
    The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
    threshold string
    The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
    comparison_operator str
    Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
    metric_name str
    Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
    metric_unit str
    The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
    threshold str
    The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
    comparisonOperator String
    Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
    metricName String
    Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
    metricUnit String
    The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
    threshold String
    The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.

    ScalingPolicyScheduledPolicy, ScalingPolicyScheduledPolicyArgs

    LaunchTime string
    Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
    LaunchTimeRead string
    Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
    RecurrenceEndTime string
    Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
    RecurrenceEndTimeRead string
    Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
    RecurrenceStartTime string
    Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
    RecurrenceType string
    Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
    RecurrenceValue string
    Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
    LaunchTime string
    Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
    LaunchTimeRead string
    Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
    RecurrenceEndTime string
    Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
    RecurrenceEndTimeRead string
    Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
    RecurrenceStartTime string
    Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
    RecurrenceType string
    Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
    RecurrenceValue string
    Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
    launchTime String
    Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
    launchTimeRead String
    Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
    recurrenceEndTime String
    Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
    recurrenceEndTimeRead String
    Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
    recurrenceStartTime String
    Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
    recurrenceType String
    Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
    recurrenceValue String
    Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
    launchTime string
    Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
    launchTimeRead string
    Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
    recurrenceEndTime string
    Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
    recurrenceEndTimeRead string
    Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
    recurrenceStartTime string
    Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
    recurrenceType string
    Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
    recurrenceValue string
    Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
    launch_time str
    Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
    launch_time_read str
    Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
    recurrence_end_time str
    Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
    recurrence_end_time_read str
    Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
    recurrence_start_time str
    Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
    recurrence_type str
    Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
    recurrence_value str
    Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
    launchTime String
    Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
    launchTimeRead String
    Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
    recurrenceEndTime String
    Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
    recurrenceEndTimeRead String
    Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
    recurrenceStartTime String
    Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
    recurrenceType String
    Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
    recurrenceValue String
    Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.

    Import

    $ pulumi import bytepluscc:autoscaling/scalingPolicy:ScalingPolicy example "scaling_group_id|scaling_policy_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.21
    published on Thursday, Apr 2, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.