@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
94 lines • 3.96 kB
JavaScript
;
// *** 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.AcmeAccount = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Manages an ACME account in a Proxmox VE cluster.
*
* > This resource requires `root@pam` authentication.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const example = new proxmoxve.AcmeAccount("example", {
* contact: "example@email.com",
* directory: "https://acme-staging-v02.api.letsencrypt.org/directory",
* tos: "https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf",
* });
* ```
*
* ## Import
*
* #!/usr/bin/env sh
*
* ACME accounts can be imported using their name, e.g.:
*
* ```sh
* $ pulumi import proxmoxve:index/acmeAccount:AcmeAccount example example
* ```
*/
class AcmeAccount extends pulumi.CustomResource {
/**
* Get an existing AcmeAccount 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 AcmeAccount(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of AcmeAccount. 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'] === AcmeAccount.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["contact"] = state ? state.contact : undefined;
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
resourceInputs["directory"] = state ? state.directory : undefined;
resourceInputs["eabHmacKey"] = state ? state.eabHmacKey : undefined;
resourceInputs["eabKid"] = state ? state.eabKid : undefined;
resourceInputs["location"] = state ? state.location : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["tos"] = state ? state.tos : undefined;
}
else {
const args = argsOrState;
if ((!args || args.contact === undefined) && !opts.urn) {
throw new Error("Missing required property 'contact'");
}
resourceInputs["contact"] = args ? args.contact : undefined;
resourceInputs["directory"] = args ? args.directory : undefined;
resourceInputs["eabHmacKey"] = args ? args.eabHmacKey : undefined;
resourceInputs["eabKid"] = args ? args.eabKid : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["tos"] = args ? args.tos : undefined;
resourceInputs["createdAt"] = undefined /*out*/;
resourceInputs["location"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AcmeAccount.__pulumiType, name, resourceInputs, opts);
}
}
exports.AcmeAccount = AcmeAccount;
/** @internal */
AcmeAccount.__pulumiType = 'proxmoxve:index/acmeAccount:AcmeAccount';
//# sourceMappingURL=acmeAccount.js.map