UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

114 lines 3.86 kB
import * as pulumi from "@pulumi/pulumi"; /** * The `scaleway.kubernetes.getVersion` data source is used to retrieve information about a Kubernetes version. * * Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information. * * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Use the latest version * const latest = scaleway.kubernetes.getVersion({ * name: "latest", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Use a specific version * const byName = scaleway.kubernetes.getVersion({ * name: "1.26.0", * }); * ``` */ /** @deprecated scaleway.index/getk8sversion.getK8sVersion has been deprecated in favor of scaleway.kubernetes/getversion.getVersion */ export declare function getK8sVersion(args: GetK8sVersionArgs, opts?: pulumi.InvokeOptions): Promise<GetK8sVersionResult>; /** * A collection of arguments for invoking getK8sVersion. */ export interface GetK8sVersionArgs { /** * The name of the Kubernetes version. */ name: string; /** * `region`) The region in which the version exists. */ region?: string; } /** * A collection of values returned by getK8sVersion. */ export interface GetK8sVersionResult { /** * The list of supported Container Network Interface (CNI) plugins for this version. */ readonly availableCnis: string[]; /** * The list of supported container runtimes for this version. */ readonly availableContainerRuntimes: string[]; /** * The list of supported feature gates for this version. */ readonly availableFeatureGates: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly majorMinorOnly: string; readonly name: string; readonly region?: string; } /** * The `scaleway.kubernetes.getVersion` data source is used to retrieve information about a Kubernetes version. * * Refer to the Kubernetes [documentation](https://www.scaleway.com/en/docs/compute/kubernetes/) and [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/) for more information. * * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Use the latest version * const latest = scaleway.kubernetes.getVersion({ * name: "latest", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Use a specific version * const byName = scaleway.kubernetes.getVersion({ * name: "1.26.0", * }); * ``` */ /** @deprecated scaleway.index/getk8sversion.getK8sVersion has been deprecated in favor of scaleway.kubernetes/getversion.getVersion */ export declare function getK8sVersionOutput(args: GetK8sVersionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetK8sVersionResult>; /** * A collection of arguments for invoking getK8sVersion. */ export interface GetK8sVersionOutputArgs { /** * The name of the Kubernetes version. */ name: pulumi.Input<string>; /** * `region`) The region in which the version exists. */ region?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getK8sVersion.d.ts.map