UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

123 lines 6.12 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! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Sso = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = 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 `mist_org_sso` with: * * Org PSK can be imported by specifying the org_id and the sso_id * * ```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, Object.assign(Object.assign({}, opts), { id: id })); } /** * 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 ? state.customLogoutUrl : undefined; resourceInputs["defaultRole"] = state ? state.defaultRole : undefined; resourceInputs["domain"] = state ? state.domain : undefined; resourceInputs["idpCert"] = state ? state.idpCert : undefined; resourceInputs["idpSignAlgo"] = state ? state.idpSignAlgo : undefined; resourceInputs["idpSsoUrl"] = state ? state.idpSsoUrl : undefined; resourceInputs["ignoreUnmatchedRoles"] = state ? state.ignoreUnmatchedRoles : undefined; resourceInputs["issuer"] = state ? state.issuer : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nameidFormat"] = state ? state.nameidFormat : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["roleAttrExtraction"] = state ? state.roleAttrExtraction : undefined; resourceInputs["roleAttrFrom"] = state ? state.roleAttrFrom : undefined; } else { const args = argsOrState; if ((!args || args.idpCert === undefined) && !opts.urn) { throw new Error("Missing required property 'idpCert'"); } if ((!args || args.idpSignAlgo === undefined) && !opts.urn) { throw new Error("Missing required property 'idpSignAlgo'"); } if ((!args || args.idpSsoUrl === undefined) && !opts.urn) { throw new Error("Missing required property 'idpSsoUrl'"); } if ((!args || args.issuer === undefined) && !opts.urn) { throw new Error("Missing required property 'issuer'"); } if ((!args || args.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["customLogoutUrl"] = args ? args.customLogoutUrl : undefined; resourceInputs["defaultRole"] = args ? args.defaultRole : undefined; resourceInputs["idpCert"] = args ? args.idpCert : undefined; resourceInputs["idpSignAlgo"] = args ? args.idpSignAlgo : undefined; resourceInputs["idpSsoUrl"] = args ? args.idpSsoUrl : undefined; resourceInputs["ignoreUnmatchedRoles"] = args ? args.ignoreUnmatchedRoles : undefined; resourceInputs["issuer"] = args ? args.issuer : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nameidFormat"] = args ? args.nameidFormat : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["roleAttrExtraction"] = args ? args.roleAttrExtraction : undefined; resourceInputs["roleAttrFrom"] = args ? args.roleAttrFrom : undefined; resourceInputs["domain"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Sso.__pulumiType, name, resourceInputs, opts); } } exports.Sso = Sso; /** @internal */ Sso.__pulumiType = 'junipermist:org/sso:Sso'; //# sourceMappingURL=sso.js.map