"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.scalingGroupsOutput = exports.scalingGroups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of scaling groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooScalingGroup: volcengine.autoscaling.ScalingGroup[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooScalingGroup.push(new volcengine.autoscaling.ScalingGroup(`fooScalingGroup-${range.value}`, {
 *         scalingGroupName: `acc-test-scaling-group-${range.value}`,
 *         subnetIds: [fooSubnet.id],
 *         multiAzPolicy: "BALANCE",
 *         desireInstanceNumber: 0,
 *         minInstanceNumber: 0,
 *         maxInstanceNumber: 10,
 *         instanceTerminatePolicy: "OldestInstance",
 *         defaultCooldown: 30,
 *         tags: [
 *             {
 *                 key: "k2",
 *                 value: "v2",
 *             },
 *             {
 *                 key: "k1",
 *                 value: "v1",
 *             },
 *         ],
 *     }));
 * }
 * const default = volcengine.autoscaling.getScalingGroupsOutput({
 *     ids: fooScalingGroup.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.autoscaling.ScalingGroups has been deprecated in favor of volcengine.autoscaling.getScalingGroups */
function scalingGroups(args, opts) {
    pulumi.log.warn("scalingGroups is deprecated: volcengine.autoscaling.ScalingGroups has been deprecated in favor of volcengine.autoscaling.getScalingGroups");
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:autoscaling/scalingGroups:ScalingGroups", {
        "ids": args.ids,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "projectName": args.projectName,
        "scalingGroupNames": args.scalingGroupNames,
        "tags": args.tags,
    }, opts);
}
exports.scalingGroups = scalingGroups;
/**
 * Use this data source to query detailed information of scaling groups
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const fooZones = volcengine.ecs.getZones({});
 * const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
 *     vpcName: "acc-test-vpc",
 *     cidrBlock: "172.16.0.0/16",
 * });
 * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
 *     subnetName: "acc-test-subnet",
 *     cidrBlock: "172.16.0.0/24",
 *     zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
 *     vpcId: fooVpc.id,
 * });
 * const fooScalingGroup: volcengine.autoscaling.ScalingGroup[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooScalingGroup.push(new volcengine.autoscaling.ScalingGroup(`fooScalingGroup-${range.value}`, {
 *         scalingGroupName: `acc-test-scaling-group-${range.value}`,
 *         subnetIds: [fooSubnet.id],
 *         multiAzPolicy: "BALANCE",
 *         desireInstanceNumber: 0,
 *         minInstanceNumber: 0,
 *         maxInstanceNumber: 10,
 *         instanceTerminatePolicy: "OldestInstance",
 *         defaultCooldown: 30,
 *         tags: [
 *             {
 *                 key: "k2",
 *                 value: "v2",
 *             },
 *             {
 *                 key: "k1",
 *                 value: "v1",
 *             },
 *         ],
 *     }));
 * }
 * const default = volcengine.autoscaling.getScalingGroupsOutput({
 *     ids: fooScalingGroup.map(__item => __item.id),
 * });
 * ```
 */
/** @deprecated volcengine.autoscaling.ScalingGroups has been deprecated in favor of volcengine.autoscaling.getScalingGroups */
function scalingGroupsOutput(args, opts) {
    return pulumi.output(args).apply((a) => scalingGroups(a, opts));
}
exports.scalingGroupsOutput = scalingGroupsOutput;
//# sourceMappingURL=scalingGroups.js.map