UNPKG

@osmit-gmbh/pulumi-authentik

Version:

A Pulumi package for creating and managing authentik cloud resources.

93 lines 4.55 kB
"use strict"; // *** 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.StagePromptField = 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 a prompt field * const field = new authentik.StagePromptField("field", { * fieldKey: "username", * label: "Username", * type: "username", * }); * ``` */ class StagePromptField extends pulumi.CustomResource { /** * Get an existing StagePromptField 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 StagePromptField(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of StagePromptField. 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'] === StagePromptField.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["fieldKey"] = state ? state.fieldKey : undefined; resourceInputs["initialValue"] = state ? state.initialValue : undefined; resourceInputs["initialValueExpression"] = state ? state.initialValueExpression : undefined; resourceInputs["label"] = state ? state.label : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["order"] = state ? state.order : undefined; resourceInputs["placeholder"] = state ? state.placeholder : undefined; resourceInputs["placeholderExpression"] = state ? state.placeholderExpression : undefined; resourceInputs["required"] = state ? state.required : undefined; resourceInputs["subText"] = state ? state.subText : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; if ((!args || args.fieldKey === undefined) && !opts.urn) { throw new Error("Missing required property 'fieldKey'"); } if ((!args || args.label === undefined) && !opts.urn) { throw new Error("Missing required property 'label'"); } if ((!args || args.type === undefined) && !opts.urn) { throw new Error("Missing required property 'type'"); } resourceInputs["fieldKey"] = args ? args.fieldKey : undefined; resourceInputs["initialValue"] = args ? args.initialValue : undefined; resourceInputs["initialValueExpression"] = args ? args.initialValueExpression : undefined; resourceInputs["label"] = args ? args.label : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["order"] = args ? args.order : undefined; resourceInputs["placeholder"] = args ? args.placeholder : undefined; resourceInputs["placeholderExpression"] = args ? args.placeholderExpression : undefined; resourceInputs["required"] = args ? args.required : undefined; resourceInputs["subText"] = args ? args.subText : undefined; resourceInputs["type"] = args ? args.type : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(StagePromptField.__pulumiType, name, resourceInputs, opts); } } exports.StagePromptField = StagePromptField; /** @internal */ StagePromptField.__pulumiType = 'authentik:index/stagePromptField:StagePromptField'; //# sourceMappingURL=stagePromptField.js.map