import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manage a Rancher service in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const rancher = new ovh.cloudproject.Rancher("rancher", { * projectId: "", * targetSpec: { * name: "MyRancher", * plan: "STANDARD", * }, * }); * export const rancherUrl = rancher.currentState.apply(currentState => currentState.url); * ``` * * ## Import * * A share in a public cloud project can be imported using the `project_id` and `id` attributes. Using the following configuration: * * terraform * * import { * * id = "/" * * to = ovh_cloud_project_rancher.rancher * * } * * You can then run: * * bash * * $ pulumi preview -generate-config-out=rancher.tf * * $ pulumi up * * The file `rancher.tf` will then contain the imported resource's configuration, that can be copied next to the `import` block above. See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details. */ export declare class Rancher extends pulumi.CustomResource { /** * Get an existing Rancher 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, state?: RancherState, opts?: pulumi.CustomResourceOptions): Rancher; /** * Returns true if the given object is an instance of Rancher. 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 Rancher; /** * Date of the managed Rancher service creation */ readonly createdAt: pulumi.Output; /** * Current configuration applied to the managed Rancher service */ readonly currentState: pulumi.Output; /** * Asynchronous operations ongoing on the managed Rancher service */ readonly currentTasks: pulumi.Output; /** * Project ID */ readonly projectId: pulumi.Output; /** * Rancher ID */ readonly rancherId: pulumi.Output; /** * Reflects the readiness of the managed Rancher service. A new target specification request will be accepted only in `READY` status */ readonly resourceStatus: pulumi.Output; /** * Target specification for the managed Rancher service */ readonly targetSpec: pulumi.Output; /** * Date of the last managed Rancher service update */ readonly updatedAt: pulumi.Output; /** * Create a Rancher 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: RancherArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Rancher resources. */ export interface RancherState { /** * Date of the managed Rancher service creation */ createdAt?: pulumi.Input; /** * Current configuration applied to the managed Rancher service */ currentState?: pulumi.Input; /** * Asynchronous operations ongoing on the managed Rancher service */ currentTasks?: pulumi.Input[]>; /** * Project ID */ projectId?: pulumi.Input; /** * Rancher ID */ rancherId?: pulumi.Input; /** * Reflects the readiness of the managed Rancher service. A new target specification request will be accepted only in `READY` status */ resourceStatus?: pulumi.Input; /** * Target specification for the managed Rancher service */ targetSpec?: pulumi.Input; /** * Date of the last managed Rancher service update */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a Rancher resource. */ export interface RancherArgs { /** * Project ID */ projectId: pulumi.Input; /** * Rancher ID */ rancherId?: pulumi.Input; /** * Target specification for the managed Rancher service */ targetSpec: pulumi.Input; }