UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

142 lines (141 loc) 4.3 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage vke addon * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vke.Addon("foo", { * clusterId: "cccctv1vqtofp49d96ujg", * config: "{\"xxx\":\"true\"}", * deployMode: "Unmanaged", * deployNodeType: "Node", * version: "v0.1.3", * }); * ``` * * ## Import * * VkeAddon can be imported using the clusterId:Name, e.g. * * ```sh * $ pulumi import volcengine:vke/addon:Addon default cc9l74mvqtofjnoj5****:nginx-ingress * ``` * * Notice * * Some kind of VKEAddon can not be removed from volcengine, and it will make a forbidden error when try to destroy. * * If you want to remove it from terraform state, please use command * * $ terraform state rm volcengine_vke_addon.${name} */ export declare class Addon extends pulumi.CustomResource { /** * Get an existing Addon 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: string, id: pulumi.Input<pulumi.ID>, state?: AddonState, opts?: pulumi.CustomResourceOptions): Addon; /** * Returns true if the given object is an instance of Addon. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Addon; /** * The cluster id of the addon. */ readonly clusterId: pulumi.Output<string>; /** * The config info of addon. Please notice that `ingress-nginx` component prohibits updating config, can only works on the web console. */ readonly config: pulumi.Output<string>; /** * The deploy mode. */ readonly deployMode: pulumi.Output<string>; /** * The deploy node type. */ readonly deployNodeType: pulumi.Output<string>; /** * The name of the addon. */ readonly name: pulumi.Output<string>; /** * The version info of the cluster. */ readonly version: pulumi.Output<string>; /** * Create a Addon resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AddonArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Addon resources. */ export interface AddonState { /** * The cluster id of the addon. */ clusterId?: pulumi.Input<string>; /** * The config info of addon. Please notice that `ingress-nginx` component prohibits updating config, can only works on the web console. */ config?: pulumi.Input<string>; /** * The deploy mode. */ deployMode?: pulumi.Input<string>; /** * The deploy node type. */ deployNodeType?: pulumi.Input<string>; /** * The name of the addon. */ name?: pulumi.Input<string>; /** * The version info of the cluster. */ version?: pulumi.Input<string>; } /** * The set of arguments for constructing a Addon resource. */ export interface AddonArgs { /** * The cluster id of the addon. */ clusterId: pulumi.Input<string>; /** * The config info of addon. Please notice that `ingress-nginx` component prohibits updating config, can only works on the web console. */ config?: pulumi.Input<string>; /** * The deploy mode. */ deployMode?: pulumi.Input<string>; /** * The deploy node type. */ deployNodeType?: pulumi.Input<string>; /** * The name of the addon. */ name?: pulumi.Input<string>; /** * The version info of the cluster. */ version?: pulumi.Input<string>; }