UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

115 lines 6.62 kB
"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.KubernetesNodePool = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * Kubernetes pools can be imported using the `{region}/{id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/kubernetesNodePool:KubernetesNodePool mypool fr-par/11111111-1111-1111-1111-111111111111 * ``` */ class KubernetesNodePool extends pulumi.CustomResource { /** * Get an existing KubernetesNodePool 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 KubernetesNodePool(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of KubernetesNodePool. 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'] === KubernetesNodePool.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["autohealing"] = state ? state.autohealing : undefined; resourceInputs["autoscaling"] = state ? state.autoscaling : undefined; resourceInputs["clusterId"] = state ? state.clusterId : undefined; resourceInputs["containerRuntime"] = state ? state.containerRuntime : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["currentSize"] = state ? state.currentSize : undefined; resourceInputs["kubeletArgs"] = state ? state.kubeletArgs : undefined; resourceInputs["maxSize"] = state ? state.maxSize : undefined; resourceInputs["minSize"] = state ? state.minSize : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nodeType"] = state ? state.nodeType : undefined; resourceInputs["nodes"] = state ? state.nodes : undefined; resourceInputs["placementGroupId"] = state ? state.placementGroupId : undefined; resourceInputs["publicIpDisabled"] = state ? state.publicIpDisabled : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["rootVolumeSizeInGb"] = state ? state.rootVolumeSizeInGb : undefined; resourceInputs["rootVolumeType"] = state ? state.rootVolumeType : undefined; resourceInputs["size"] = state ? state.size : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["updatedAt"] = state ? state.updatedAt : undefined; resourceInputs["upgradePolicy"] = state ? state.upgradePolicy : undefined; resourceInputs["version"] = state ? state.version : undefined; resourceInputs["waitForPoolReady"] = state ? state.waitForPoolReady : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { const args = argsOrState; if ((!args || args.clusterId === undefined) && !opts.urn) { throw new Error("Missing required property 'clusterId'"); } if ((!args || args.nodeType === undefined) && !opts.urn) { throw new Error("Missing required property 'nodeType'"); } if ((!args || args.size === undefined) && !opts.urn) { throw new Error("Missing required property 'size'"); } resourceInputs["autohealing"] = args ? args.autohealing : undefined; resourceInputs["autoscaling"] = args ? args.autoscaling : undefined; resourceInputs["clusterId"] = args ? args.clusterId : undefined; resourceInputs["containerRuntime"] = args ? args.containerRuntime : undefined; resourceInputs["kubeletArgs"] = args ? args.kubeletArgs : undefined; resourceInputs["maxSize"] = args ? args.maxSize : undefined; resourceInputs["minSize"] = args ? args.minSize : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nodeType"] = args ? args.nodeType : undefined; resourceInputs["placementGroupId"] = args ? args.placementGroupId : undefined; resourceInputs["publicIpDisabled"] = args ? args.publicIpDisabled : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["rootVolumeSizeInGb"] = args ? args.rootVolumeSizeInGb : undefined; resourceInputs["rootVolumeType"] = args ? args.rootVolumeType : undefined; resourceInputs["size"] = args ? args.size : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["upgradePolicy"] = args ? args.upgradePolicy : undefined; resourceInputs["waitForPoolReady"] = args ? args.waitForPoolReady : undefined; resourceInputs["zone"] = args ? args.zone : undefined; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["currentSize"] = undefined /*out*/; resourceInputs["nodes"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(KubernetesNodePool.__pulumiType, name, resourceInputs, opts); } } exports.KubernetesNodePool = KubernetesNodePool; /** @internal */ KubernetesNodePool.__pulumiType = 'scaleway:index/kubernetesNodePool:KubernetesNodePool'; //# sourceMappingURL=kubernetesNodePool.js.map