@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
115 lines (114 loc) • 3.44 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about a Kubernetes version.
* For more information, see the [API 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.kubernetes.getVersion({
* name: "latest",
* });
* ```
*
* ### Use a specific version
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* 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 name: string;
readonly region: string;
}
/**
* Gets information about a Kubernetes version.
* For more information, see the [API 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.kubernetes.getVersion({
* name: "latest",
* });
* ```
*
* ### Use a specific version
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* 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>;
}