UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

76 lines 2.47 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.getK8sVersionOutput = exports.getK8sVersion = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a Kubernetes version. * For more information, see [the documentation](https://developers.scaleway.com/en/products/k8s/api). * * You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw k8s version list` to list all available versions. * * ## Example Usage * ### Use the latest version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const latest = scaleway.getK8sVersion({ * name: "latest", * }); * ``` * ### Use a specific version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getK8sVersion({ * name: "1.26.0", * }); * ``` */ function getK8sVersion(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getK8sVersion:getK8sVersion", { "name": args.name, "region": args.region, }, opts); } exports.getK8sVersion = getK8sVersion; /** * Gets information about a Kubernetes version. * For more information, see [the documentation](https://developers.scaleway.com/en/products/k8s/api). * * You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw k8s version list` to list all available versions. * * ## Example Usage * ### Use the latest version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const latest = scaleway.getK8sVersion({ * name: "latest", * }); * ``` * ### Use a specific version * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getK8sVersion({ * name: "1.26.0", * }); * ``` */ function getK8sVersionOutput(args, opts) { return pulumi.output(args).apply((a) => getK8sVersion(a, opts)); } exports.getK8sVersionOutput = getK8sVersionOutput; //# sourceMappingURL=getK8sVersion.js.map