@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
89 lines • 4.78 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.Certifi = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Manages the custom SSL/TLS certificate for a specific node.
*/
class Certifi extends pulumi.CustomResource {
/**
* Get an existing Certifi 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 Certifi(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Certifi. 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'] === Certifi.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["certificate"] = state ? state.certificate : undefined;
resourceInputs["certificateChain"] = state ? state.certificateChain : undefined;
resourceInputs["expirationDate"] = state ? state.expirationDate : undefined;
resourceInputs["fileName"] = state ? state.fileName : undefined;
resourceInputs["issuer"] = state ? state.issuer : undefined;
resourceInputs["nodeName"] = state ? state.nodeName : undefined;
resourceInputs["overwrite"] = state ? state.overwrite : undefined;
resourceInputs["privateKey"] = state ? state.privateKey : undefined;
resourceInputs["publicKeySize"] = state ? state.publicKeySize : undefined;
resourceInputs["publicKeyType"] = state ? state.publicKeyType : undefined;
resourceInputs["sslFingerprint"] = state ? state.sslFingerprint : undefined;
resourceInputs["startDate"] = state ? state.startDate : undefined;
resourceInputs["subject"] = state ? state.subject : undefined;
resourceInputs["subjectAlternativeNames"] = state ? state.subjectAlternativeNames : undefined;
}
else {
const args = argsOrState;
if ((!args || args.certificate === undefined) && !opts.urn) {
throw new Error("Missing required property 'certificate'");
}
if ((!args || args.nodeName === undefined) && !opts.urn) {
throw new Error("Missing required property 'nodeName'");
}
if ((!args || args.privateKey === undefined) && !opts.urn) {
throw new Error("Missing required property 'privateKey'");
}
resourceInputs["certificate"] = args ? args.certificate : undefined;
resourceInputs["certificateChain"] = args ? args.certificateChain : undefined;
resourceInputs["nodeName"] = args ? args.nodeName : undefined;
resourceInputs["overwrite"] = args ? args.overwrite : undefined;
resourceInputs["privateKey"] = (args === null || args === void 0 ? void 0 : args.privateKey) ? pulumi.secret(args.privateKey) : undefined;
resourceInputs["expirationDate"] = undefined /*out*/;
resourceInputs["fileName"] = undefined /*out*/;
resourceInputs["issuer"] = undefined /*out*/;
resourceInputs["publicKeySize"] = undefined /*out*/;
resourceInputs["publicKeyType"] = undefined /*out*/;
resourceInputs["sslFingerprint"] = undefined /*out*/;
resourceInputs["startDate"] = undefined /*out*/;
resourceInputs["subject"] = undefined /*out*/;
resourceInputs["subjectAlternativeNames"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["privateKey"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Certifi.__pulumiType, name, resourceInputs, opts);
}
}
exports.Certifi = Certifi;
/** @internal */
Certifi.__pulumiType = 'proxmoxve:index/certifi:Certifi';
//# sourceMappingURL=certifi.js.map