UNPKG

@osmit-gmbh/pulumi-authentik

Version:

A Pulumi package for creating and managing authentik cloud resources.

100 lines 4.63 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.Flow = 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 flow with a stage attached * const name = new authentik.StageDummy("name", {name: "test-stage"}); * const flow = new authentik.Flow("flow", { * name: "test-flow", * title: "Test flow", * slug: "test-flow", * designation: "authorization", * }); * const dummy_flow = new authentik.FlowStageBinding("dummy-flow", { * target: flow.uuid, * stage: name.id, * order: 0, * }); * ``` */ class Flow extends pulumi.CustomResource { /** * Get an existing Flow 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 Flow(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Flow. 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'] === Flow.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authentication"] = state ? state.authentication : undefined; resourceInputs["background"] = state ? state.background : undefined; resourceInputs["compatibilityMode"] = state ? state.compatibilityMode : undefined; resourceInputs["deniedAction"] = state ? state.deniedAction : undefined; resourceInputs["designation"] = state ? state.designation : undefined; resourceInputs["layout"] = state ? state.layout : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["policyEngineMode"] = state ? state.policyEngineMode : undefined; resourceInputs["slug"] = state ? state.slug : undefined; resourceInputs["title"] = state ? state.title : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; } else { const args = argsOrState; if ((!args || args.designation === undefined) && !opts.urn) { throw new Error("Missing required property 'designation'"); } if ((!args || args.slug === undefined) && !opts.urn) { throw new Error("Missing required property 'slug'"); } if ((!args || args.title === undefined) && !opts.urn) { throw new Error("Missing required property 'title'"); } resourceInputs["authentication"] = args ? args.authentication : undefined; resourceInputs["background"] = args ? args.background : undefined; resourceInputs["compatibilityMode"] = args ? args.compatibilityMode : undefined; resourceInputs["deniedAction"] = args ? args.deniedAction : undefined; resourceInputs["designation"] = args ? args.designation : undefined; resourceInputs["layout"] = args ? args.layout : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["policyEngineMode"] = args ? args.policyEngineMode : undefined; resourceInputs["slug"] = args ? args.slug : undefined; resourceInputs["title"] = args ? args.title : undefined; resourceInputs["uuid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Flow.__pulumiType, name, resourceInputs, opts); } } exports.Flow = Flow; /** @internal */ Flow.__pulumiType = 'authentik:index/flow:Flow'; //# sourceMappingURL=flow.js.map