import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::AutoScaling::ScalingPolicy */ export declare function getScalingPolicy(args: GetScalingPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getScalingPolicy. */ export interface GetScalingPolicyArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getScalingPolicy. */ export interface GetScalingPolicyResult { /** * 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. */ readonly adjustmentType: string; /** * 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. */ readonly adjustmentValue: number; /** * Detailed information about the alarm task. */ readonly alarmPolicy: outputs.autoscaling.GetScalingPolicyAlarmPolicy; /** * Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default. */ readonly cooldown: number; /** * Uniquely identifies the resource. */ readonly id: string; /** * Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status. */ readonly isEnabledPolicy: boolean; /** * Scaling group ID. */ readonly scalingGroupId: string; /** * Scaling rule ID. */ readonly scalingPolicyId: string; /** * Name of the scaling rule. */ readonly scalingPolicyName: string; /** * Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task. */ readonly scalingPolicyType: string; /** * Detailed information for scheduled/recurring tasks. */ readonly scheduledPolicy: outputs.autoscaling.GetScalingPolicyScheduledPolicy; /** * Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status. */ readonly status: string; } /** * Data Source schema for Volcengine::AutoScaling::ScalingPolicy */ export declare function getScalingPolicyOutput(args: GetScalingPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getScalingPolicy. */ export interface GetScalingPolicyOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }