import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::AutoScaling::ScalingGroup */ export declare function getScalingGroup(args: GetScalingGroupArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getScalingGroup. */ export interface GetScalingGroupArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getScalingGroup. */ export interface GetScalingGroupResult { /** * ID of the scaling configuration bound to the scaling group */ readonly activeScalingConfigurationId: string; /** * Scaling group creation time */ readonly createdTime: string; /** * ID of the RDS database instance. */ readonly dbInstanceIds: string[]; /** * Cooldown period after a scaling activity (adding or removing ECS instances) completes. During the cooldown period, the scaling group does not perform other scaling activities; only scaling activities triggered by Cloud Monitoring alarms and scaling rules are effective. Value range: 5 ~ 86400 seconds. Default value: 300. */ readonly defaultCooldown: number; /** * Expected number of running instances in the scaling group. 1. Must be no less than MinInstanceNumber and no greater than MaxInstanceNumber. 2. Default value: -1, which means the expected instance count feature is disabled. In this case, after the scaling group is created, scaling activities will automatically add the corresponding number of instances. */ readonly desireInstanceNumber: number; /** * Health check mode for the scaling group. 1. NONE: No instance health check. 2. ECS (default): Performs health checks on ECS instances in the scaling group. */ readonly healthCheckType: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Instance removal policy */ readonly instanceRemovePolicies: outputs.autoscaling.GetScalingGroupInstanceRemovePolicy[]; /** * Instance removal policies: 1. OldestInstance: Removes the earliest instance added to the scaling group (including both automatically created and manually added instances). 2. NewestInstance: Removes the latest instance added to the scaling group (including both automatically created and manually added instances). 3. OldestScalingConfigurationWithOldestInstance (default): Removes the earliest automatically created instance in the scaling configuration that was first associated with the scaling group. 4. OldestScalingConfigurationWithNewestInstance: Removes the latest automatically created instance in the scaling configuration that was first associated with the scaling group. */ readonly instanceTerminatePolicy: string; /** * Collection of instance subresources managed manually within the scaling group (Attach / Detach / Remove) */ readonly instances: outputs.autoscaling.GetScalingGroupInstance[]; /** * Instance distribution policy. */ readonly instancesDistribution: outputs.autoscaling.GetScalingGroupInstancesDistribution; /** * Whether to enable the scaling group. true: enabled. false: stopped */ readonly isEnableScalingGroup: boolean; /** * Instance launch template ID. When configured, it indicates that the launch template is used as the source for the scaling configuration. */ readonly launchTemplateId: string; /** * Instance launch template information */ readonly launchTemplateOverrides: outputs.autoscaling.GetScalingGroupLaunchTemplateOverride[]; /** * Instance launch template version. 1. A specific template version number. 2. Default: always use the default template version. 3. Latest: always use the latest template version. */ readonly launchTemplateVersion: string; /** * Status of the scaling group. Active: enabled. InActive: not activated. Deleting: deleting. Locked: locked. CoolingDown: cooling down. Unknown: unknown status. */ readonly lifecycleState: string; /** * Grace period for CLB health checks on scaling group instances */ readonly loadBalancerHealthCheckGracePeriod: number; /** * Maximum number of instances in the scaling group. Default value: 0 ~ 100. You can adjust this in the Quota Center. */ readonly maxInstanceNumber: number; /** * Minimum number of instances in the scaling group. Default value: 0–100. You can adjust this in the quota center. */ readonly minInstanceNumber: number; /** * Scaling strategy. If you select multiple subnets, you must configure this parameter. 1. PRIORITY (default): priority strategy. 2. BALANCE: balanced distribution strategy. */ readonly multiAzPolicy: string; /** * Project to which the scaling group belongs. Default is 'default'. A resource can belong to only one project. Only letters, numbers, underscores '_', dots '.', and hyphens '-' are allowed. Maximum length: 64 characters. */ readonly projectName: string; /** * Scaling group ID. */ readonly scalingGroupId: string; /** * Scaling group name, unique within the same region. Must start with a Chinese character or letter, and can only contain Chinese characters, letters, numbers, underscores, and hyphens. Length limit: 1 ~ 128 characters. Special characters are not supported. */ readonly scalingGroupName: string; /** * Instance recycling mode for the scaling group. 1. release (default): Release mode. 2. recycle: Stop-and-recycle mode. */ readonly scalingMode: string; /** * Load balancer information associated with the scaling group. */ readonly serverGroupAttributes: outputs.autoscaling.GetScalingGroupServerGroupAttribute[]; /** * Number of instances in the scaling group that are in the disabled state. */ readonly stoppedInstanceCount: number; /** * List of subnet IDs for the primary network interface of instances in the scaling group */ readonly subnetIds: string[]; /** * Paused processes. If there are no paused processes, returns an empty value. ScaleIn: scale-in process. ScaleOut: scale-out process. HealthCheck: health check. AlarmNotification: alarm task. ScheduledAction: scheduled task. */ readonly suspendedProcesses: string[]; /** * Tag list. */ readonly tags: outputs.autoscaling.GetScalingGroupTag[]; /** * Number of instances currently in the scaling group */ readonly totalInstanceCount: number; /** * Scaling group update time. */ readonly updatedTime: string; /** * VPC ID to which the scaling group belongs */ readonly vpcId: string; } /** * Data Source schema for Volcengine::AutoScaling::ScalingGroup */ export declare function getScalingGroupOutput(args: GetScalingGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getScalingGroup. */ export interface GetScalingGroupOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }