UNPKG

@osmit-gmbh/pulumi-authentik

Version:

A Pulumi package for creating and managing authentik cloud resources.

130 lines 7.41 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.SourceSaml = 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 a SAML Source * const default-source-pre-authentication = authentik.getFlow({ * slug: "default-source-pre-authentication", * }); * const default-source-authentication = authentik.getFlow({ * slug: "default-source-authentication", * }); * const default-source-enrollment = authentik.getFlow({ * slug: "default-source-enrollment", * }); * const name = new authentik.SourceSaml("name", { * name: "test-source", * slug: "test-source", * authenticationFlow: default_source_authentication.then(default_source_authentication => default_source_authentication.id), * enrollmentFlow: default_source_enrollment.then(default_source_enrollment => default_source_enrollment.id), * preAuthenticationFlow: default_source_pre_authentication.then(default_source_pre_authentication => default_source_pre_authentication.id), * ssoUrl: "http://localhost", * }); * ``` */ class SourceSaml extends pulumi.CustomResource { /** * Get an existing SourceSaml 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 SourceSaml(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SourceSaml. 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'] === SourceSaml.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["allowIdpInitiated"] = state ? state.allowIdpInitiated : undefined; resourceInputs["authenticationFlow"] = state ? state.authenticationFlow : undefined; resourceInputs["bindingType"] = state ? state.bindingType : undefined; resourceInputs["digestAlgorithm"] = state ? state.digestAlgorithm : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["encryptionKp"] = state ? state.encryptionKp : undefined; resourceInputs["enrollmentFlow"] = state ? state.enrollmentFlow : undefined; resourceInputs["groupMatchingMode"] = state ? state.groupMatchingMode : undefined; resourceInputs["issuer"] = state ? state.issuer : undefined; resourceInputs["metadata"] = state ? state.metadata : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nameIdPolicy"] = state ? state.nameIdPolicy : undefined; resourceInputs["policyEngineMode"] = state ? state.policyEngineMode : undefined; resourceInputs["preAuthenticationFlow"] = state ? state.preAuthenticationFlow : undefined; resourceInputs["signatureAlgorithm"] = state ? state.signatureAlgorithm : undefined; resourceInputs["signingKp"] = state ? state.signingKp : undefined; resourceInputs["sloUrl"] = state ? state.sloUrl : undefined; resourceInputs["slug"] = state ? state.slug : undefined; resourceInputs["ssoUrl"] = state ? state.ssoUrl : undefined; resourceInputs["temporaryUserDeleteAfter"] = state ? state.temporaryUserDeleteAfter : undefined; resourceInputs["userMatchingMode"] = state ? state.userMatchingMode : undefined; resourceInputs["userPathTemplate"] = state ? state.userPathTemplate : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; } else { const args = argsOrState; if ((!args || args.preAuthenticationFlow === undefined) && !opts.urn) { throw new Error("Missing required property 'preAuthenticationFlow'"); } if ((!args || args.slug === undefined) && !opts.urn) { throw new Error("Missing required property 'slug'"); } if ((!args || args.ssoUrl === undefined) && !opts.urn) { throw new Error("Missing required property 'ssoUrl'"); } resourceInputs["allowIdpInitiated"] = args ? args.allowIdpInitiated : undefined; resourceInputs["authenticationFlow"] = args ? args.authenticationFlow : undefined; resourceInputs["bindingType"] = args ? args.bindingType : undefined; resourceInputs["digestAlgorithm"] = args ? args.digestAlgorithm : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["encryptionKp"] = args ? args.encryptionKp : undefined; resourceInputs["enrollmentFlow"] = args ? args.enrollmentFlow : undefined; resourceInputs["groupMatchingMode"] = args ? args.groupMatchingMode : undefined; resourceInputs["issuer"] = args ? args.issuer : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nameIdPolicy"] = args ? args.nameIdPolicy : undefined; resourceInputs["policyEngineMode"] = args ? args.policyEngineMode : undefined; resourceInputs["preAuthenticationFlow"] = args ? args.preAuthenticationFlow : undefined; resourceInputs["signatureAlgorithm"] = args ? args.signatureAlgorithm : undefined; resourceInputs["signingKp"] = args ? args.signingKp : undefined; resourceInputs["sloUrl"] = args ? args.sloUrl : undefined; resourceInputs["slug"] = args ? args.slug : undefined; resourceInputs["ssoUrl"] = args ? args.ssoUrl : undefined; resourceInputs["temporaryUserDeleteAfter"] = args ? args.temporaryUserDeleteAfter : undefined; resourceInputs["userMatchingMode"] = args ? args.userMatchingMode : undefined; resourceInputs["userPathTemplate"] = args ? args.userPathTemplate : undefined; resourceInputs["uuid"] = args ? args.uuid : undefined; resourceInputs["metadata"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SourceSaml.__pulumiType, name, resourceInputs, opts); } } exports.SourceSaml = SourceSaml; /** @internal */ SourceSaml.__pulumiType = 'authentik:index/sourceSaml:SourceSaml'; //# sourceMappingURL=sourceSaml.js.map