"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.EdgeNodePool = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Provides a resource to manage veecp edge node pool
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const foo = new volcengine.veecp.EdgeNodePool("foo", {
 *     clusterId: "ccvmb0c66t101fnob3dhg",
 *     elasticConfig: {
 *         autoScaleConfig: {
 *             desiredReplicas: 0,
 *             enabled: true,
 *             maxReplicas: 2,
 *             minReplicas: 0,
 *             priority: 10,
 *         },
 *         cloudServerIdentity: "cloudserver-47vz7k929cp9xqb",
 *         instanceArea: {
 *             clusterName: "bdcdn-zzcu02",
 *             vpcIdentity: "vpc-l9sz9qlf2t",
 *         },
 *     },
 *     nodePoolType: "edge-machine-pool",
 *     vpcId: "vpc-l9sz9qlf2t",
 * });
 * ```
 *
 * ## Import
 *
 * VeecpNodePool can be imported using the id, e.g.
 *
 * ```sh
 * $ pulumi import volcengine:veecp/edgeNodePool:EdgeNodePool default resource_id
 * ```
 */
class EdgeNodePool extends pulumi.CustomResource {
    /**
     * Get an existing EdgeNodePool 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 EdgeNodePool(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of EdgeNodePool.  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'] === EdgeNodePool.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["billingConfigs"] = state ? state.billingConfigs : undefined;
            resourceInputs["clientToken"] = state ? state.clientToken : undefined;
            resourceInputs["clusterId"] = state ? state.clusterId : undefined;
            resourceInputs["elasticConfig"] = state ? state.elasticConfig : undefined;
            resourceInputs["kubernetesConfig"] = state ? state.kubernetesConfig : undefined;
            resourceInputs["name"] = state ? state.name : undefined;
            resourceInputs["nodePoolType"] = state ? state.nodePoolType : undefined;
            resourceInputs["vpcId"] = state ? state.vpcId : undefined;
        }
        else {
            const args = argsOrState;
            if ((!args || args.clusterId === undefined) && !opts.urn) {
                throw new Error("Missing required property 'clusterId'");
            }
            resourceInputs["billingConfigs"] = args ? args.billingConfigs : undefined;
            resourceInputs["clientToken"] = args ? args.clientToken : undefined;
            resourceInputs["clusterId"] = args ? args.clusterId : undefined;
            resourceInputs["elasticConfig"] = args ? args.elasticConfig : undefined;
            resourceInputs["kubernetesConfig"] = args ? args.kubernetesConfig : undefined;
            resourceInputs["name"] = args ? args.name : undefined;
            resourceInputs["nodePoolType"] = args ? args.nodePoolType : undefined;
            resourceInputs["vpcId"] = args ? args.vpcId : undefined;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(EdgeNodePool.__pulumiType, name, resourceInputs, opts);
    }
}
exports.EdgeNodePool = EdgeNodePool;
/** @internal */
EdgeNodePool.__pulumiType = 'volcengine:veecp/edgeNodePool:EdgeNodePool';
//# sourceMappingURL=edgeNodePool.js.map