"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.getNodePoolsOutput = exports.getNodePools = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Use this data source to query detailed information of vke node pools
 * ## 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 fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
 *     securityGroupName: "acc-test-security-group",
 *     vpcId: fooVpc.id,
 * });
 * const fooImages = volcengine.ecs.getImages({
 *     nameRegex: "veLinux 1.0 CentOS兼容版 64位",
 * });
 * const fooCluster = new volcengine.vke.Cluster("fooCluster", {
 *     description: "created by terraform",
 *     deleteProtectionEnabled: false,
 *     clusterConfig: {
 *         subnetIds: [fooSubnet.id],
 *         apiServerPublicAccessEnabled: true,
 *         apiServerPublicAccessConfig: {
 *             publicAccessNetworkConfig: {
 *                 billingType: "PostPaidByBandwidth",
 *                 bandwidth: 1,
 *             },
 *         },
 *         resourcePublicAccessDefaultEnabled: true,
 *     },
 *     podsConfig: {
 *         podNetworkMode: "VpcCniShared",
 *         vpcCniConfig: {
 *             subnetIds: [fooSubnet.id],
 *         },
 *     },
 *     servicesConfig: {
 *         serviceCidrsv4s: ["172.30.0.0/18"],
 *     },
 *     tags: [{
 *         key: "tf-k1",
 *         value: "tf-v1",
 *     }],
 * });
 * const fooNodePool: volcengine.vke.NodePool[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooNodePool.push(new volcengine.vke.NodePool(`fooNodePool-${range.value}`, {
 *         clusterId: fooCluster.id,
 *         autoScaling: {
 *             enabled: true,
 *             minReplicas: 0,
 *             maxReplicas: 5,
 *             desiredReplicas: 0,
 *             priority: 5,
 *             subnetPolicy: "ZoneBalance",
 *         },
 *         nodeConfig: {
 *             instanceTypeIds: ["ecs.g1ie.xlarge"],
 *             subnetIds: [fooSubnet.id],
 *             imageId: fooImages.then(fooImages => .filter(image => image.imageName == "veLinux 1.0 CentOS兼容版 64位").map(image => (image.imageId))[0]),
 *             systemVolume: {
 *                 type: "ESSD_PL0",
 *                 size: 60,
 *             },
 *             dataVolumes: [
 *                 {
 *                     type: "ESSD_PL0",
 *                     size: 60,
 *                     mountPoint: "/tf1",
 *                 },
 *                 {
 *                     type: "ESSD_PL0",
 *                     size: 60,
 *                     mountPoint: "/tf2",
 *                 },
 *             ],
 *             initializeScript: "ZWNobyBoZWxsbyB0ZXJyYWZvcm0h",
 *             security: {
 *                 login: {
 *                     password: "UHdkMTIzNDU2",
 *                 },
 *                 securityStrategies: ["Hids"],
 *                 securityGroupIds: [fooSecurityGroup.id],
 *             },
 *             additionalContainerStorageEnabled: true,
 *             instanceChargeType: "PostPaid",
 *             namePrefix: "acc-test",
 *             ecsTags: [{
 *                 key: "ecs_k1",
 *                 value: "ecs_v1",
 *             }],
 *         },
 *         kubernetesConfig: {
 *             labels: [{
 *                 key: "label1",
 *                 value: "value1",
 *             }],
 *             taints: [{
 *                 key: "taint-key/node-type",
 *                 value: "taint-value",
 *                 effect: "NoSchedule",
 *             }],
 *             cordon: true,
 *         },
 *         tags: [{
 *             key: "node-pool-k1",
 *             value: "node-pool-v1",
 *         }],
 *     }));
 * }
 * const fooNodePools = volcengine.vke.getNodePoolsOutput({
 *     ids: fooNodePool.map(__item => __item.id),
 * });
 * ```
 */
function getNodePools(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("volcengine:vke/getNodePools:getNodePools", {
        "autoScalingEnabled": args.autoScalingEnabled,
        "clusterId": args.clusterId,
        "clusterIds": args.clusterIds,
        "createClientToken": args.createClientToken,
        "ids": args.ids,
        "name": args.name,
        "nameRegex": args.nameRegex,
        "outputFile": args.outputFile,
        "statuses": args.statuses,
        "tags": args.tags,
        "updateClientToken": args.updateClientToken,
    }, opts);
}
exports.getNodePools = getNodePools;
/**
 * Use this data source to query detailed information of vke node pools
 * ## 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 fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
 *     securityGroupName: "acc-test-security-group",
 *     vpcId: fooVpc.id,
 * });
 * const fooImages = volcengine.ecs.getImages({
 *     nameRegex: "veLinux 1.0 CentOS兼容版 64位",
 * });
 * const fooCluster = new volcengine.vke.Cluster("fooCluster", {
 *     description: "created by terraform",
 *     deleteProtectionEnabled: false,
 *     clusterConfig: {
 *         subnetIds: [fooSubnet.id],
 *         apiServerPublicAccessEnabled: true,
 *         apiServerPublicAccessConfig: {
 *             publicAccessNetworkConfig: {
 *                 billingType: "PostPaidByBandwidth",
 *                 bandwidth: 1,
 *             },
 *         },
 *         resourcePublicAccessDefaultEnabled: true,
 *     },
 *     podsConfig: {
 *         podNetworkMode: "VpcCniShared",
 *         vpcCniConfig: {
 *             subnetIds: [fooSubnet.id],
 *         },
 *     },
 *     servicesConfig: {
 *         serviceCidrsv4s: ["172.30.0.0/18"],
 *     },
 *     tags: [{
 *         key: "tf-k1",
 *         value: "tf-v1",
 *     }],
 * });
 * const fooNodePool: volcengine.vke.NodePool[] = [];
 * for (const range = {value: 0}; range.value < 3; range.value++) {
 *     fooNodePool.push(new volcengine.vke.NodePool(`fooNodePool-${range.value}`, {
 *         clusterId: fooCluster.id,
 *         autoScaling: {
 *             enabled: true,
 *             minReplicas: 0,
 *             maxReplicas: 5,
 *             desiredReplicas: 0,
 *             priority: 5,
 *             subnetPolicy: "ZoneBalance",
 *         },
 *         nodeConfig: {
 *             instanceTypeIds: ["ecs.g1ie.xlarge"],
 *             subnetIds: [fooSubnet.id],
 *             imageId: fooImages.then(fooImages => .filter(image => image.imageName == "veLinux 1.0 CentOS兼容版 64位").map(image => (image.imageId))[0]),
 *             systemVolume: {
 *                 type: "ESSD_PL0",
 *                 size: 60,
 *             },
 *             dataVolumes: [
 *                 {
 *                     type: "ESSD_PL0",
 *                     size: 60,
 *                     mountPoint: "/tf1",
 *                 },
 *                 {
 *                     type: "ESSD_PL0",
 *                     size: 60,
 *                     mountPoint: "/tf2",
 *                 },
 *             ],
 *             initializeScript: "ZWNobyBoZWxsbyB0ZXJyYWZvcm0h",
 *             security: {
 *                 login: {
 *                     password: "UHdkMTIzNDU2",
 *                 },
 *                 securityStrategies: ["Hids"],
 *                 securityGroupIds: [fooSecurityGroup.id],
 *             },
 *             additionalContainerStorageEnabled: true,
 *             instanceChargeType: "PostPaid",
 *             namePrefix: "acc-test",
 *             ecsTags: [{
 *                 key: "ecs_k1",
 *                 value: "ecs_v1",
 *             }],
 *         },
 *         kubernetesConfig: {
 *             labels: [{
 *                 key: "label1",
 *                 value: "value1",
 *             }],
 *             taints: [{
 *                 key: "taint-key/node-type",
 *                 value: "taint-value",
 *                 effect: "NoSchedule",
 *             }],
 *             cordon: true,
 *         },
 *         tags: [{
 *             key: "node-pool-k1",
 *             value: "node-pool-v1",
 *         }],
 *     }));
 * }
 * const fooNodePools = volcengine.vke.getNodePoolsOutput({
 *     ids: fooNodePool.map(__item => __item.id),
 * });
 * ```
 */
function getNodePoolsOutput(args, opts) {
    return pulumi.output(args).apply((a) => getNodePools(a, opts));
}
exports.getNodePoolsOutput = getNodePoolsOutput;
//# sourceMappingURL=getNodePools.js.map