"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.KubernetesClusterNodePool = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages a Node Pool within a Kubernetes Cluster
 *
 * > **NOTE:** Multiple Node Pools are only supported when the Kubernetes Cluster is using Virtual Machine Scale Sets.
 *
 * > **Note:** Changing certain properties is done by cycling the node pool. When cycling it, it doesn’t perform cordon and drain, and it will disrupt rescheduling pods currently running on the previous node pool. `temporaryNameForRotation` must be specified when changing any of the following properties: `fipsEnabled`, `hostEncryptionEnabled`, `kubeletConfig`, `kubeletDiskType`, `linuxOsConfig`, `maxPods`, `nodePublicIpEnabled`, `osDiskSizeGb`, `osDiskType`, `podSubnetId`, `snapshotId`, `ultraSsdEnabled`, `vmSize`, `vnetSubnetId`, `zones`.
 *
 * ## Example Usage
 *
 * This example provisions a basic Kubernetes Node Pool.
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleKubernetesCluster = new azure.containerservice.KubernetesCluster("example", {
 *     name: "example-aks1",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     dnsPrefix: "exampleaks1",
 *     defaultNodePool: {
 *         name: "default",
 *         nodeCount: 1,
 *         vmSize: "Standard_D2_v2",
 *     },
 *     servicePrincipal: {
 *         clientId: "00000000-0000-0000-0000-000000000000",
 *         clientSecret: "00000000000000000000000000000000",
 *     },
 * });
 * const exampleKubernetesClusterNodePool = new azure.containerservice.KubernetesClusterNodePool("example", {
 *     name: "internal",
 *     kubernetesClusterId: exampleKubernetesCluster.id,
 *     vmSize: "Standard_DS2_v2",
 *     nodeCount: 1,
 *     tags: {
 *         Environment: "Production",
 *     },
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.ContainerService` - 2025-10-01
 *
 * ## Import
 *
 * Kubernetes Cluster Node Pools can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:containerservice/kubernetesClusterNodePool:KubernetesClusterNodePool pool1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool1
 * ```
 */
class KubernetesClusterNodePool extends pulumi.CustomResource {
    /**
     * Get an existing KubernetesClusterNodePool resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new KubernetesClusterNodePool(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:containerservice/kubernetesClusterNodePool:KubernetesClusterNodePool';
    /**
     * Returns true if the given object is an instance of KubernetesClusterNodePool.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === KubernetesClusterNodePool.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["autoScalingEnabled"] = state?.autoScalingEnabled;
            resourceInputs["capacityReservationGroupId"] = state?.capacityReservationGroupId;
            resourceInputs["evictionPolicy"] = state?.evictionPolicy;
            resourceInputs["fipsEnabled"] = state?.fipsEnabled;
            resourceInputs["gpuDriver"] = state?.gpuDriver;
            resourceInputs["gpuInstance"] = state?.gpuInstance;
            resourceInputs["hostEncryptionEnabled"] = state?.hostEncryptionEnabled;
            resourceInputs["hostGroupId"] = state?.hostGroupId;
            resourceInputs["kubeletConfig"] = state?.kubeletConfig;
            resourceInputs["kubeletDiskType"] = state?.kubeletDiskType;
            resourceInputs["kubernetesClusterId"] = state?.kubernetesClusterId;
            resourceInputs["linuxOsConfig"] = state?.linuxOsConfig;
            resourceInputs["maxCount"] = state?.maxCount;
            resourceInputs["maxPods"] = state?.maxPods;
            resourceInputs["minCount"] = state?.minCount;
            resourceInputs["mode"] = state?.mode;
            resourceInputs["name"] = state?.name;
            resourceInputs["nodeCount"] = state?.nodeCount;
            resourceInputs["nodeImageVersion"] = state?.nodeImageVersion;
            resourceInputs["nodeLabels"] = state?.nodeLabels;
            resourceInputs["nodeNetworkProfile"] = state?.nodeNetworkProfile;
            resourceInputs["nodePublicIpEnabled"] = state?.nodePublicIpEnabled;
            resourceInputs["nodePublicIpPrefixId"] = state?.nodePublicIpPrefixId;
            resourceInputs["nodeTaints"] = state?.nodeTaints;
            resourceInputs["orchestratorVersion"] = state?.orchestratorVersion;
            resourceInputs["osDiskSizeGb"] = state?.osDiskSizeGb;
            resourceInputs["osDiskType"] = state?.osDiskType;
            resourceInputs["osSku"] = state?.osSku;
            resourceInputs["osType"] = state?.osType;
            resourceInputs["podSubnetId"] = state?.podSubnetId;
            resourceInputs["priority"] = state?.priority;
            resourceInputs["proximityPlacementGroupId"] = state?.proximityPlacementGroupId;
            resourceInputs["scaleDownMode"] = state?.scaleDownMode;
            resourceInputs["snapshotId"] = state?.snapshotId;
            resourceInputs["spotMaxPrice"] = state?.spotMaxPrice;
            resourceInputs["tags"] = state?.tags;
            resourceInputs["temporaryNameForRotation"] = state?.temporaryNameForRotation;
            resourceInputs["ultraSsdEnabled"] = state?.ultraSsdEnabled;
            resourceInputs["upgradeSettings"] = state?.upgradeSettings;
            resourceInputs["vmSize"] = state?.vmSize;
            resourceInputs["vnetSubnetId"] = state?.vnetSubnetId;
            resourceInputs["windowsProfile"] = state?.windowsProfile;
            resourceInputs["workloadRuntime"] = state?.workloadRuntime;
            resourceInputs["zones"] = state?.zones;
        }
        else {
            const args = argsOrState;
            if (args?.kubernetesClusterId === undefined && !opts.urn) {
                throw new Error("Missing required property 'kubernetesClusterId'");
            }
            resourceInputs["autoScalingEnabled"] = args?.autoScalingEnabled;
            resourceInputs["capacityReservationGroupId"] = args?.capacityReservationGroupId;
            resourceInputs["evictionPolicy"] = args?.evictionPolicy;
            resourceInputs["fipsEnabled"] = args?.fipsEnabled;
            resourceInputs["gpuDriver"] = args?.gpuDriver;
            resourceInputs["gpuInstance"] = args?.gpuInstance;
            resourceInputs["hostEncryptionEnabled"] = args?.hostEncryptionEnabled;
            resourceInputs["hostGroupId"] = args?.hostGroupId;
            resourceInputs["kubeletConfig"] = args?.kubeletConfig;
            resourceInputs["kubeletDiskType"] = args?.kubeletDiskType;
            resourceInputs["kubernetesClusterId"] = args?.kubernetesClusterId;
            resourceInputs["linuxOsConfig"] = args?.linuxOsConfig;
            resourceInputs["maxCount"] = args?.maxCount;
            resourceInputs["maxPods"] = args?.maxPods;
            resourceInputs["minCount"] = args?.minCount;
            resourceInputs["mode"] = args?.mode;
            resourceInputs["name"] = args?.name;
            resourceInputs["nodeCount"] = args?.nodeCount;
            resourceInputs["nodeLabels"] = args?.nodeLabels;
            resourceInputs["nodeNetworkProfile"] = args?.nodeNetworkProfile;
            resourceInputs["nodePublicIpEnabled"] = args?.nodePublicIpEnabled;
            resourceInputs["nodePublicIpPrefixId"] = args?.nodePublicIpPrefixId;
            resourceInputs["nodeTaints"] = args?.nodeTaints;
            resourceInputs["orchestratorVersion"] = args?.orchestratorVersion;
            resourceInputs["osDiskSizeGb"] = args?.osDiskSizeGb;
            resourceInputs["osDiskType"] = args?.osDiskType;
            resourceInputs["osSku"] = args?.osSku;
            resourceInputs["osType"] = args?.osType;
            resourceInputs["podSubnetId"] = args?.podSubnetId;
            resourceInputs["priority"] = args?.priority;
            resourceInputs["proximityPlacementGroupId"] = args?.proximityPlacementGroupId;
            resourceInputs["scaleDownMode"] = args?.scaleDownMode;
            resourceInputs["snapshotId"] = args?.snapshotId;
            resourceInputs["spotMaxPrice"] = args?.spotMaxPrice;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["temporaryNameForRotation"] = args?.temporaryNameForRotation;
            resourceInputs["ultraSsdEnabled"] = args?.ultraSsdEnabled;
            resourceInputs["upgradeSettings"] = args?.upgradeSettings;
            resourceInputs["vmSize"] = args?.vmSize;
            resourceInputs["vnetSubnetId"] = args?.vnetSubnetId;
            resourceInputs["windowsProfile"] = args?.windowsProfile;
            resourceInputs["workloadRuntime"] = args?.workloadRuntime;
            resourceInputs["zones"] = args?.zones;
            resourceInputs["nodeImageVersion"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(KubernetesClusterNodePool.__pulumiType, name, resourceInputs, opts);
    }
}
exports.KubernetesClusterNodePool = KubernetesClusterNodePool;
//# sourceMappingURL=kubernetesClusterNodePool.js.map