UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

226 lines 10.1 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.Setting = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * This resource manages the Org Settings. * * The Org Settings can be used to customize the Org configuration * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const terraformTest = new junipermist.org.Setting("terraform_test", { * orgId: terraformTestMistOrg.id, * apUpdownThreshold: 10, * cradlepoint: { * cpApiId: "cp_api_id_test", * cpApiKey: "secret", * ecmApiId: "ecm_api_id_test", * ecmApiKey: "secret", * }, * deviceUpdownThreshold: 10, * disablePcap: false, * disableRemoteShell: true, * gatewayUpdownThreshold: 10, * mxedgeMgmt: { * mistPassword: "root_secret_password", * rootPassword: "root_secret_password", * oobIpType: "dhcp", * oobIpType6: "disabled", * }, * passwordPolicy: { * enabled: true, * freshness: 180, * minLength: 12, * requiresSpecialChar: true, * requiresTwoFactorAuth: false, * }, * security: { * disableLocalSsh: true, * }, * switchUpdownThreshold: 10, * syntheticTest: { * disabled: false, * vlans: [ * { * vlanIds: [ * "10", * "30", * ], * customTestUrls: [ * "http://www.abc.com/", * "https://10.3.5.1:8080/about", * ], * }, * { * vlanIds: ["20"], * disabled: true, * }, * ], * }, * uiIdleTimeout: 120, * }); * ``` * * ## Import * * Using `pulumi import`, import `junipermist.org.Setting` with: * Org Setting can be imported by specifying the orgId * * ```sh * $ pulumi import junipermist:org/setting:Setting setting_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a * ``` */ class Setting extends pulumi.CustomResource { /** * Get an existing Setting 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 Setting(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'junipermist:org/setting:Setting'; /** * Returns true if the given object is an instance of Setting. 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'] === Setting.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["allowMist"] = state?.allowMist; resourceInputs["apUpdownThreshold"] = state?.apUpdownThreshold; resourceInputs["apiPolicy"] = state?.apiPolicy; resourceInputs["autoUpgrade"] = state?.autoUpgrade; resourceInputs["cacerts"] = state?.cacerts; resourceInputs["celona"] = state?.celona; resourceInputs["cloudshark"] = state?.cloudshark; resourceInputs["cradlepoint"] = state?.cradlepoint; resourceInputs["deviceCert"] = state?.deviceCert; resourceInputs["deviceUpdownThreshold"] = state?.deviceUpdownThreshold; resourceInputs["disablePcap"] = state?.disablePcap; resourceInputs["disableRemoteShell"] = state?.disableRemoteShell; resourceInputs["gatewayTunnelUpdownThreshold"] = state?.gatewayTunnelUpdownThreshold; resourceInputs["gatewayUpdownThreshold"] = state?.gatewayUpdownThreshold; resourceInputs["installer"] = state?.installer; resourceInputs["jcloud"] = state?.jcloud; resourceInputs["jcloudRa"] = state?.jcloudRa; resourceInputs["juniper"] = state?.juniper; resourceInputs["juniperSrx"] = state?.juniperSrx; resourceInputs["junosShellAccess"] = state?.junosShellAccess; resourceInputs["marvis"] = state?.marvis; resourceInputs["mgmt"] = state?.mgmt; resourceInputs["mistNac"] = state?.mistNac; resourceInputs["mxedgeMgmt"] = state?.mxedgeMgmt; resourceInputs["opticPortConfig"] = state?.opticPortConfig; resourceInputs["orgId"] = state?.orgId; resourceInputs["passwordPolicy"] = state?.passwordPolicy; resourceInputs["pcap"] = state?.pcap; resourceInputs["security"] = state?.security; resourceInputs["ssr"] = state?.ssr; resourceInputs["switch"] = state?.switch; resourceInputs["switchMgmt"] = state?.switchMgmt; resourceInputs["switchUpdownThreshold"] = state?.switchUpdownThreshold; resourceInputs["syntheticTest"] = state?.syntheticTest; resourceInputs["uiIdleTimeout"] = state?.uiIdleTimeout; resourceInputs["uiNoTracking"] = state?.uiNoTracking; resourceInputs["vpnOptions"] = state?.vpnOptions; resourceInputs["wanPma"] = state?.wanPma; resourceInputs["wiredPma"] = state?.wiredPma; resourceInputs["wirelessPma"] = state?.wirelessPma; } else { const args = argsOrState; if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["apUpdownThreshold"] = args?.apUpdownThreshold; resourceInputs["apiPolicy"] = args?.apiPolicy; resourceInputs["autoUpgrade"] = args?.autoUpgrade; resourceInputs["cacerts"] = args?.cacerts; resourceInputs["celona"] = args?.celona; resourceInputs["cloudshark"] = args?.cloudshark; resourceInputs["deviceCert"] = args?.deviceCert; resourceInputs["deviceUpdownThreshold"] = args?.deviceUpdownThreshold; resourceInputs["disablePcap"] = args?.disablePcap; resourceInputs["disableRemoteShell"] = args?.disableRemoteShell; resourceInputs["gatewayTunnelUpdownThreshold"] = args?.gatewayTunnelUpdownThreshold; resourceInputs["gatewayUpdownThreshold"] = args?.gatewayUpdownThreshold; resourceInputs["installer"] = args?.installer; resourceInputs["jcloud"] = args?.jcloud; resourceInputs["jcloudRa"] = args?.jcloudRa; resourceInputs["juniperSrx"] = args?.juniperSrx; resourceInputs["junosShellAccess"] = args?.junosShellAccess; resourceInputs["marvis"] = args?.marvis; resourceInputs["mgmt"] = args?.mgmt; resourceInputs["mistNac"] = args?.mistNac; resourceInputs["mxedgeMgmt"] = args?.mxedgeMgmt; resourceInputs["opticPortConfig"] = args?.opticPortConfig; resourceInputs["orgId"] = args?.orgId; resourceInputs["passwordPolicy"] = args?.passwordPolicy; resourceInputs["security"] = args?.security; resourceInputs["ssr"] = args?.ssr; resourceInputs["switch"] = args?.switch; resourceInputs["switchMgmt"] = args?.switchMgmt; resourceInputs["switchUpdownThreshold"] = args?.switchUpdownThreshold; resourceInputs["syntheticTest"] = args?.syntheticTest; resourceInputs["uiIdleTimeout"] = args?.uiIdleTimeout; resourceInputs["uiNoTracking"] = args?.uiNoTracking; resourceInputs["vpnOptions"] = args?.vpnOptions; resourceInputs["wanPma"] = args?.wanPma; resourceInputs["wiredPma"] = args?.wiredPma; resourceInputs["wirelessPma"] = args?.wirelessPma; resourceInputs["allowMist"] = undefined /*out*/; resourceInputs["cradlepoint"] = undefined /*out*/; resourceInputs["juniper"] = undefined /*out*/; resourceInputs["pcap"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Setting.__pulumiType, name, resourceInputs, opts); } } exports.Setting = Setting; //# sourceMappingURL=setting.js.map