import * as pulumi from "@pulumi/pulumi"; /** * Manages Proxmox HA resources. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const example = new proxmoxve.Haresource("example", { * resourceId: "vm:123", * state: "started", * group: "example", * comment: "Managed by Pulumi", * }, { * dependsOn: [exampleProxmoxHagroup], * }); * ``` * * ## Import * * !/usr/bin/env sh * HA resources can be imported using their identifiers, e.g.: * * ```sh * $ pulumi import proxmoxve:index/haresource:Haresource example vm:123 * ``` */ export declare class Haresource extends pulumi.CustomResource { /** * Get an existing Haresource 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?: HaresourceState, opts?: pulumi.CustomResourceOptions): Haresource; /** * Returns true if the given object is an instance of Haresource. 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 Haresource; /** * The comment associated with this resource. */ readonly comment: pulumi.Output; /** * The identifier of the High Availability group this resource is a member of. */ readonly group: pulumi.Output; /** * The maximal number of relocation attempts. */ readonly maxRelocate: pulumi.Output; /** * The maximal number of restart attempts. */ readonly maxRestart: pulumi.Output; /** * The Proxmox HA resource identifier */ readonly resourceId: pulumi.Output; /** * The desired state of the resource. */ readonly state: pulumi.Output; /** * The type of HA resources to create. If unset, it will be deduced from the `resourceId`. */ readonly type: pulumi.Output; /** * Create a Haresource 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: HaresourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Haresource resources. */ export interface HaresourceState { /** * The comment associated with this resource. */ comment?: pulumi.Input; /** * The identifier of the High Availability group this resource is a member of. */ group?: pulumi.Input; /** * The maximal number of relocation attempts. */ maxRelocate?: pulumi.Input; /** * The maximal number of restart attempts. */ maxRestart?: pulumi.Input; /** * The Proxmox HA resource identifier */ resourceId?: pulumi.Input; /** * The desired state of the resource. */ state?: pulumi.Input; /** * The type of HA resources to create. If unset, it will be deduced from the `resourceId`. */ type?: pulumi.Input; } /** * The set of arguments for constructing a Haresource resource. */ export interface HaresourceArgs { /** * The comment associated with this resource. */ comment?: pulumi.Input; /** * The identifier of the High Availability group this resource is a member of. */ group?: pulumi.Input; /** * The maximal number of relocation attempts. */ maxRelocate?: pulumi.Input; /** * The maximal number of restart attempts. */ maxRestart?: pulumi.Input; /** * The Proxmox HA resource identifier */ resourceId: pulumi.Input; /** * The desired state of the resource. */ state?: pulumi.Input; /** * The type of HA resources to create. If unset, it will be deduced from the `resourceId`. */ type?: pulumi.Input; } //# sourceMappingURL=haresource.d.ts.map