UNPKG

@muhlba91/pulumi-proxmoxve

Version:

A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.

94 lines 3.77 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.AcmeDnsPlugin = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Manages an ACME plugin in a Proxmox VE cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const example = new proxmoxve.AcmeDnsPlugin("example", { * api: "aws", * data: { * AWS_ACCESS_KEY_ID: "EXAMPLE", * AWS_SECRET_ACCESS_KEY: "EXAMPLE", * }, * plugin: "test", * }); * ``` * * ## Import * * #!/usr/bin/env sh * * ACME accounts can be imported using their name, e.g.: * * ```sh * $ pulumi import proxmoxve:index/acmeDnsPlugin:AcmeDnsPlugin example test * ``` */ class AcmeDnsPlugin extends pulumi.CustomResource { /** * Get an existing AcmeDnsPlugin 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, id, state, opts) { return new AcmeDnsPlugin(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of AcmeDnsPlugin. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === AcmeDnsPlugin.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["api"] = state ? state.api : undefined; resourceInputs["data"] = state ? state.data : undefined; resourceInputs["digest"] = state ? state.digest : undefined; resourceInputs["disable"] = state ? state.disable : undefined; resourceInputs["plugin"] = state ? state.plugin : undefined; resourceInputs["validationDelay"] = state ? state.validationDelay : undefined; } else { const args = argsOrState; if ((!args || args.api === undefined) && !opts.urn) { throw new Error("Missing required property 'api'"); } if ((!args || args.plugin === undefined) && !opts.urn) { throw new Error("Missing required property 'plugin'"); } resourceInputs["api"] = args ? args.api : undefined; resourceInputs["data"] = args ? args.data : undefined; resourceInputs["digest"] = args ? args.digest : undefined; resourceInputs["disable"] = args ? args.disable : undefined; resourceInputs["plugin"] = args ? args.plugin : undefined; resourceInputs["validationDelay"] = args ? args.validationDelay : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AcmeDnsPlugin.__pulumiType, name, resourceInputs, opts); } } exports.AcmeDnsPlugin = AcmeDnsPlugin; /** @internal */ AcmeDnsPlugin.__pulumiType = 'proxmoxve:index/acmeDnsPlugin:AcmeDnsPlugin'; //# sourceMappingURL=acmeDnsPlugin.js.map