UNPKG

@osmit-gmbh/pulumi-authentik

Version:

A Pulumi package for creating and managing authentik cloud resources.

84 lines 3.67 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.Outpost = 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"; * import * as authentik from "@pulumi/authentik"; * * // Create an outpost with a proxy provider * const default-authorization-flow = authentik.getFlow({ * slug: "default-provider-authorization-implicit-consent", * }); * const proxy = new authentik.ProviderProxy("proxy", { * name: "proxy", * authorizationFlow: default_authorization_flow.then(default_authorization_flow => default_authorization_flow.id), * externalHost: "http://foo.bar.baz", * internalHost: "http://internal.local", * }); * const outpost = new authentik.Outpost("outpost", { * name: "test-outpost", * protocolProviders: [proxy.id], * }); * ``` */ class Outpost extends pulumi.CustomResource { /** * Get an existing Outpost 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 Outpost(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Outpost. 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'] === Outpost.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["config"] = state ? state.config : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["protocolProviders"] = state ? state.protocolProviders : undefined; resourceInputs["serviceConnection"] = state ? state.serviceConnection : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; if ((!args || args.protocolProviders === undefined) && !opts.urn) { throw new Error("Missing required property 'protocolProviders'"); } resourceInputs["config"] = args ? args.config : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["protocolProviders"] = args ? args.protocolProviders : undefined; resourceInputs["serviceConnection"] = args ? args.serviceConnection : undefined; resourceInputs["type"] = args ? args.type : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Outpost.__pulumiType, name, resourceInputs, opts); } } exports.Outpost = Outpost; /** @internal */ Outpost.__pulumiType = 'authentik:index/outpost:Outpost'; //# sourceMappingURL=outpost.js.map