UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

123 lines 6.03 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.Mxcluster = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * This resource manages MxCluster (cluster of MxEdge devices) in the Mist Organization. * * A Mist Edge Cluster is a group of one or more Org Mist Edge devices (mist_org_mxedge) providing tunnel termination, edge network services and RADIUS proxy capabilities. * * ## Import * * Using `pulumi import`, import `junipermist.org.Mxcluster` with: * Mist Org MxCluster can be imported by specifying the orgId and the mxclusterId * * ```sh * $ pulumi import junipermist:org/mxcluster:Mxcluster cluster_one 17f90707-aebe-4274-af42-f42952a665a3.387804a7-3474-85ce-15a2-f9a9684c9c90 * ``` */ class Mxcluster extends pulumi.CustomResource { /** * Get an existing Mxcluster 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 Mxcluster(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'junipermist:org/mxcluster:Mxcluster'; /** * Returns true if the given object is an instance of Mxcluster. 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'] === Mxcluster.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["mistDas"] = state?.mistDas; resourceInputs["mistNac"] = state?.mistNac; resourceInputs["mistNacedge"] = state?.mistNacedge; resourceInputs["mxedgeMgmt"] = state?.mxedgeMgmt; resourceInputs["name"] = state?.name; resourceInputs["orgId"] = state?.orgId; resourceInputs["proxy"] = state?.proxy; resourceInputs["radsec"] = state?.radsec; resourceInputs["radsecTls"] = state?.radsecTls; resourceInputs["siteId"] = state?.siteId; resourceInputs["tuntermApSubnets"] = state?.tuntermApSubnets; resourceInputs["tuntermDhcpdConfig"] = state?.tuntermDhcpdConfig; resourceInputs["tuntermExtraRoutes"] = state?.tuntermExtraRoutes; resourceInputs["tuntermHosts"] = state?.tuntermHosts; resourceInputs["tuntermHostsOrders"] = state?.tuntermHostsOrders; resourceInputs["tuntermHostsSelection"] = state?.tuntermHostsSelection; resourceInputs["tuntermMonitoringDisabled"] = state?.tuntermMonitoringDisabled; resourceInputs["tuntermMonitorings"] = state?.tuntermMonitorings; } else { const args = argsOrState; if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["mistDas"] = args?.mistDas; resourceInputs["mistNac"] = args?.mistNac; resourceInputs["mistNacedge"] = args?.mistNacedge; resourceInputs["mxedgeMgmt"] = args?.mxedgeMgmt; resourceInputs["name"] = args?.name; resourceInputs["orgId"] = args?.orgId; resourceInputs["proxy"] = args?.proxy; resourceInputs["radsec"] = args?.radsec; resourceInputs["siteId"] = args?.siteId; resourceInputs["tuntermApSubnets"] = args?.tuntermApSubnets; resourceInputs["tuntermDhcpdConfig"] = args?.tuntermDhcpdConfig; resourceInputs["tuntermExtraRoutes"] = args?.tuntermExtraRoutes; resourceInputs["tuntermHosts"] = args?.tuntermHosts; resourceInputs["tuntermHostsOrders"] = args?.tuntermHostsOrders; resourceInputs["tuntermHostsSelection"] = args?.tuntermHostsSelection; resourceInputs["tuntermMonitoringDisabled"] = args?.tuntermMonitoringDisabled; resourceInputs["tuntermMonitorings"] = args?.tuntermMonitorings; resourceInputs["radsecTls"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Mxcluster.__pulumiType, name, resourceInputs, opts); } } exports.Mxcluster = Mxcluster; //# sourceMappingURL=mxcluster.js.map