@osmit-gmbh/pulumi-authentik
Version:
A Pulumi package for creating and managing authentik cloud resources.
88 lines • 4.62 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.StageEmail = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@osmit-gmbh/pulumi-authentik";
*
* // Create email stage for email verification, uses global settings by default
* const name = new authentik.StageEmail("name", {name: "email-verification"});
* ```
*/
class StageEmail extends pulumi.CustomResource {
/**
* Get an existing StageEmail 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 StageEmail(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of StageEmail. 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'] === StageEmail.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["activateUserOnSuccess"] = state ? state.activateUserOnSuccess : undefined;
resourceInputs["fromAddress"] = state ? state.fromAddress : undefined;
resourceInputs["host"] = state ? state.host : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["password"] = state ? state.password : undefined;
resourceInputs["port"] = state ? state.port : undefined;
resourceInputs["subject"] = state ? state.subject : undefined;
resourceInputs["template"] = state ? state.template : undefined;
resourceInputs["timeout"] = state ? state.timeout : undefined;
resourceInputs["tokenExpiry"] = state ? state.tokenExpiry : undefined;
resourceInputs["useGlobalSettings"] = state ? state.useGlobalSettings : undefined;
resourceInputs["useSsl"] = state ? state.useSsl : undefined;
resourceInputs["useTls"] = state ? state.useTls : undefined;
resourceInputs["username"] = state ? state.username : undefined;
}
else {
const args = argsOrState;
resourceInputs["activateUserOnSuccess"] = args ? args.activateUserOnSuccess : undefined;
resourceInputs["fromAddress"] = args ? args.fromAddress : undefined;
resourceInputs["host"] = args ? args.host : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
resourceInputs["port"] = args ? args.port : undefined;
resourceInputs["subject"] = args ? args.subject : undefined;
resourceInputs["template"] = args ? args.template : undefined;
resourceInputs["timeout"] = args ? args.timeout : undefined;
resourceInputs["tokenExpiry"] = args ? args.tokenExpiry : undefined;
resourceInputs["useGlobalSettings"] = args ? args.useGlobalSettings : undefined;
resourceInputs["useSsl"] = args ? args.useSsl : undefined;
resourceInputs["useTls"] = args ? args.useTls : undefined;
resourceInputs["username"] = args ? args.username : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["password"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(StageEmail.__pulumiType, name, resourceInputs, opts);
}
}
exports.StageEmail = StageEmail;
/** @internal */
StageEmail.__pulumiType = 'authentik:index/stageEmail:StageEmail';
//# sourceMappingURL=stageEmail.js.map