UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

155 lines 7.59 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sso = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * This resource manages Org SSO Configuration. * * Org SSO, or Single Sign-On, is a method of authentication that allows users to securely log in to multiple applications and websites with a single set of login credentials.\ * It involves integrating the Org portal with an Identity Provider (IdP) using the Security Assertion Markup Language (SAML) framework.\ * This enables users to authenticate themselves through their corporate IdP, eliminating the need to remember separate passwords or enter credentials each time they access the Org portal. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const ssoAdminOne = new junipermist.org.Sso("sso_admin_one", { * orgId: terraformTest.id, * name: "sso_admin_one", * customLogoutUrl: "https://idp.com/logout", * idpCert: "-----BEGIN CERTIFICATE-----MIIF0jC .../fSCGx7-----END CERTIFICATE-----", * idpSignAlgo: "sha512", * idpSsoUrl: "https://idp.com/login", * issuer: "my_idp_issuer", * nameidFormat: "email", * }); * ``` * * ## Import * * Using `pulumi import`, import `junipermist.org.Sso` with: * Org PSK can be imported by specifying the orgId and the ssoId * * ```sh * $ pulumi import junipermist:org/sso:Sso sso_admin_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Sso extends pulumi.CustomResource { /** * Get an existing Sso 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 Sso(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'junipermist:org/sso:Sso'; /** * Returns true if the given object is an instance of Sso. 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'] === Sso.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["customLogoutUrl"] = state?.customLogoutUrl; resourceInputs["defaultRole"] = state?.defaultRole; resourceInputs["domain"] = state?.domain; resourceInputs["idpCert"] = state?.idpCert; resourceInputs["idpSignAlgo"] = state?.idpSignAlgo; resourceInputs["idpSsoUrl"] = state?.idpSsoUrl; resourceInputs["ignoreUnmatchedRoles"] = state?.ignoreUnmatchedRoles; resourceInputs["issuer"] = state?.issuer; resourceInputs["name"] = state?.name; resourceInputs["nameidFormat"] = state?.nameidFormat; resourceInputs["oauthProviderDomain"] = state?.oauthProviderDomain; resourceInputs["openroamingSsids"] = state?.openroamingSsids; resourceInputs["openroamingWbaClientCert"] = state?.openroamingWbaClientCert; resourceInputs["openroamingWbaClientKey"] = state?.openroamingWbaClientKey; resourceInputs["orgId"] = state?.orgId; resourceInputs["roleAttrExtraction"] = state?.roleAttrExtraction; resourceInputs["roleAttrFrom"] = state?.roleAttrFrom; } else { const args = argsOrState; if (args?.idpCert === undefined && !opts.urn) { throw new Error("Missing required property 'idpCert'"); } if (args?.idpSignAlgo === undefined && !opts.urn) { throw new Error("Missing required property 'idpSignAlgo'"); } if (args?.idpSsoUrl === undefined && !opts.urn) { throw new Error("Missing required property 'idpSsoUrl'"); } if (args?.issuer === undefined && !opts.urn) { throw new Error("Missing required property 'issuer'"); } if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["customLogoutUrl"] = args?.customLogoutUrl; resourceInputs["defaultRole"] = args?.defaultRole; resourceInputs["idpCert"] = args?.idpCert; resourceInputs["idpSignAlgo"] = args?.idpSignAlgo; resourceInputs["idpSsoUrl"] = args?.idpSsoUrl; resourceInputs["ignoreUnmatchedRoles"] = args?.ignoreUnmatchedRoles; resourceInputs["issuer"] = args?.issuer; resourceInputs["name"] = args?.name; resourceInputs["nameidFormat"] = args?.nameidFormat; resourceInputs["oauthProviderDomain"] = args?.oauthProviderDomain; resourceInputs["openroamingSsids"] = args?.openroamingSsids; resourceInputs["openroamingWbaClientCert"] = args?.openroamingWbaClientCert ? pulumi.secret(args.openroamingWbaClientCert) : undefined; resourceInputs["openroamingWbaClientKey"] = args?.openroamingWbaClientKey ? pulumi.secret(args.openroamingWbaClientKey) : undefined; resourceInputs["orgId"] = args?.orgId; resourceInputs["roleAttrExtraction"] = args?.roleAttrExtraction; resourceInputs["roleAttrFrom"] = args?.roleAttrFrom; resourceInputs["domain"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["openroamingWbaClientCert", "openroamingWbaClientKey"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Sso.__pulumiType, name, resourceInputs, opts); } } exports.Sso = Sso; //# sourceMappingURL=sso.js.map