UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

174 lines 7.14 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.NacPortal = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * This resource manages Org NAC Portals. * * NAC Portal configuration defines the authentication portal for network access control. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const guestPortal = new junipermist.org.NacPortal("guest_portal", { * orgId: terraformTest.id, * name: "Guest Portal", * type: "marvis_client", * accessType: "wireless+wired", * ssid: "Guest-Network", * certExpireTime: 365, * eapType: "wpa3", * enableTelemetry: true, * expiryNotificationTime: 30, * notifyExpiry: true, * tos: "By using this network, you agree to our terms of service and privacy policy.", * additionalCacerts: [`-----BEGIN CERTIFICATE----- * MIIC...certificate...content * -----END CERTIFICATE-----`], * additionalNacServerNames: [ * "nac1.example.com", * "nac2.example.com", * ], * portal: { * auth: "multi", * expire: 43200, * externalPortalUrl: "https://portal.example.com/external", * forceReconnect: false, * forward: true, * forwardUrl: "https://example.com/portal/welcome", * maxNumDevices: 10, * privacy: true, * }, * sso: { * idpCert: `-----BEGIN CERTIFICATE----- * MIIC...idp...cert * -----END CERTIFICATE-----`, * idpSignAlgo: "sha384", * idpSsoUrl: "https://idp.example.com/saml/sso", * issuer: "https://idp.example.com", * nameidFormat: "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent", * useSsoRoleForCert: false, * ssoRoleMatchings: [ * { * match: "Administrator", * assigned: "full-access", * }, * { * match: "Manager", * assigned: "manager-access", * }, * { * match: "Employee", * assigned: "employee-access", * }, * { * match: "Guest", * assigned: "guest-access", * }, * ], * }, * }); * ``` */ class NacPortal extends pulumi.CustomResource { /** * Get an existing NacPortal 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 NacPortal(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'junipermist:org/nacPortal:NacPortal'; /** * Returns true if the given object is an instance of NacPortal. 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'] === NacPortal.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accessType"] = state?.accessType; resourceInputs["additionalCacerts"] = state?.additionalCacerts; resourceInputs["additionalNacServerNames"] = state?.additionalNacServerNames; resourceInputs["certExpireTime"] = state?.certExpireTime; resourceInputs["eapType"] = state?.eapType; resourceInputs["enableTelemetry"] = state?.enableTelemetry; resourceInputs["expiryNotificationTime"] = state?.expiryNotificationTime; resourceInputs["name"] = state?.name; resourceInputs["notifyExpiry"] = state?.notifyExpiry; resourceInputs["orgId"] = state?.orgId; resourceInputs["portal"] = state?.portal; resourceInputs["ssid"] = state?.ssid; resourceInputs["sso"] = state?.sso; resourceInputs["tos"] = state?.tos; resourceInputs["type"] = state?.type; } else { const args = argsOrState; if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["accessType"] = args?.accessType; resourceInputs["additionalCacerts"] = args?.additionalCacerts; resourceInputs["additionalNacServerNames"] = args?.additionalNacServerNames; resourceInputs["certExpireTime"] = args?.certExpireTime; resourceInputs["eapType"] = args?.eapType; resourceInputs["enableTelemetry"] = args?.enableTelemetry; resourceInputs["expiryNotificationTime"] = args?.expiryNotificationTime; resourceInputs["name"] = args?.name; resourceInputs["notifyExpiry"] = args?.notifyExpiry; resourceInputs["orgId"] = args?.orgId; resourceInputs["portal"] = args?.portal; resourceInputs["ssid"] = args?.ssid; resourceInputs["sso"] = args?.sso; resourceInputs["tos"] = args?.tos; resourceInputs["type"] = args?.type; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(NacPortal.__pulumiType, name, resourceInputs, opts); } } exports.NacPortal = NacPortal; //# sourceMappingURL=nacPortal.js.map