UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

289 lines 16 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.Wlan = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages the Org Wlans. * * The WLAN object contains all the required configuration to broadcast an SSID (Authentication, VLAN, ...) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const wlanOne = new junipermist.org.Wlan("wlan_one", { * ssid: "wlan_one", * orgId: terraformTest.id, * templateId: test101.id, * bands: [ * "5", * "6", * ], * vlanEnabled: true, * vlanId: "143", * wlanLimitUp: "10000", * wlanLimitDown: "20000", * clientLimitUp: "512", * clientLimitDown: "1000", * auth: { * type: "psk", * psk: "secretpsk", * }, * "interface": "all", * }); * ``` * * ## Import * * Using `pulumi import`, import `mist_org_wlan` with: * * Org WLAN can be imported by specifying the org_id and the wlan_id * * ```sh * $ pulumi import junipermist:org/wlan:Wlan wlan_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Wlan extends pulumi.CustomResource { /** * Get an existing Wlan 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 Wlan(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of Wlan. 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'] === Wlan.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["acctImmediateUpdate"] = state?.acctImmediateUpdate; resourceInputs["acctInterimInterval"] = state?.acctInterimInterval; resourceInputs["acctServers"] = state?.acctServers; resourceInputs["airwatch"] = state?.airwatch; resourceInputs["allowIpv6Ndp"] = state?.allowIpv6Ndp; resourceInputs["allowMdns"] = state?.allowMdns; resourceInputs["allowSsdp"] = state?.allowSsdp; resourceInputs["apIds"] = state?.apIds; resourceInputs["appLimit"] = state?.appLimit; resourceInputs["appQos"] = state?.appQos; resourceInputs["applyTo"] = state?.applyTo; resourceInputs["arpFilter"] = state?.arpFilter; resourceInputs["auth"] = state?.auth; resourceInputs["authServerSelection"] = state?.authServerSelection; resourceInputs["authServers"] = state?.authServers; resourceInputs["authServersNasId"] = state?.authServersNasId; resourceInputs["authServersNasIp"] = state?.authServersNasIp; resourceInputs["authServersRetries"] = state?.authServersRetries; resourceInputs["authServersTimeout"] = state?.authServersTimeout; resourceInputs["bandSteer"] = state?.bandSteer; resourceInputs["bandSteerForceBand5"] = state?.bandSteerForceBand5; resourceInputs["bands"] = state?.bands; resourceInputs["blockBlacklistClients"] = state?.blockBlacklistClients; resourceInputs["bonjour"] = state?.bonjour; resourceInputs["ciscoCwa"] = state?.ciscoCwa; resourceInputs["clientLimitDown"] = state?.clientLimitDown; resourceInputs["clientLimitDownEnabled"] = state?.clientLimitDownEnabled; resourceInputs["clientLimitUp"] = state?.clientLimitUp; resourceInputs["clientLimitUpEnabled"] = state?.clientLimitUpEnabled; resourceInputs["coaServers"] = state?.coaServers; resourceInputs["disable11ax"] = state?.disable11ax; resourceInputs["disable11be"] = state?.disable11be; resourceInputs["disableHtVhtRates"] = state?.disableHtVhtRates; resourceInputs["disableUapsd"] = state?.disableUapsd; resourceInputs["disableV1RoamNotify"] = state?.disableV1RoamNotify; resourceInputs["disableV2RoamNotify"] = state?.disableV2RoamNotify; resourceInputs["disableWhenGatewayUnreachable"] = state?.disableWhenGatewayUnreachable; resourceInputs["disableWhenMxtunnelDown"] = state?.disableWhenMxtunnelDown; resourceInputs["disableWmm"] = state?.disableWmm; resourceInputs["dnsServerRewrite"] = state?.dnsServerRewrite; resourceInputs["dtim"] = state?.dtim; resourceInputs["dynamicPsk"] = state?.dynamicPsk; resourceInputs["dynamicVlan"] = state?.dynamicVlan; resourceInputs["enableLocalKeycaching"] = state?.enableLocalKeycaching; resourceInputs["enableWirelessBridging"] = state?.enableWirelessBridging; resourceInputs["enableWirelessBridgingDhcpTracking"] = state?.enableWirelessBridgingDhcpTracking; resourceInputs["enabled"] = state?.enabled; resourceInputs["fastDot1xTimers"] = state?.fastDot1xTimers; resourceInputs["hideSsid"] = state?.hideSsid; resourceInputs["hostnameIe"] = state?.hostnameIe; resourceInputs["hotspot20"] = state?.hotspot20; resourceInputs["injectDhcpOption82"] = state?.injectDhcpOption82; resourceInputs["interface"] = state?.interface; resourceInputs["isolation"] = state?.isolation; resourceInputs["l2Isolation"] = state?.l2Isolation; resourceInputs["legacyOverds"] = state?.legacyOverds; resourceInputs["limitBcast"] = state?.limitBcast; resourceInputs["limitProbeResponse"] = state?.limitProbeResponse; resourceInputs["maxIdletime"] = state?.maxIdletime; resourceInputs["maxNumClients"] = state?.maxNumClients; resourceInputs["mistNac"] = state?.mistNac; resourceInputs["mspId"] = state?.mspId; resourceInputs["mxtunnelIds"] = state?.mxtunnelIds; resourceInputs["mxtunnelNames"] = state?.mxtunnelNames; resourceInputs["noStaticDns"] = state?.noStaticDns; resourceInputs["noStaticIp"] = state?.noStaticIp; resourceInputs["orgId"] = state?.orgId; resourceInputs["portal"] = state?.portal; resourceInputs["portalAllowedHostnames"] = state?.portalAllowedHostnames; resourceInputs["portalAllowedSubnets"] = state?.portalAllowedSubnets; resourceInputs["portalApiSecret"] = state?.portalApiSecret; resourceInputs["portalDeniedHostnames"] = state?.portalDeniedHostnames; resourceInputs["portalImage"] = state?.portalImage; resourceInputs["portalSsoUrl"] = state?.portalSsoUrl; resourceInputs["qos"] = state?.qos; resourceInputs["radsec"] = state?.radsec; resourceInputs["rateset"] = state?.rateset; resourceInputs["reconnectClientsWhenRoamingMxcluster"] = state?.reconnectClientsWhenRoamingMxcluster; resourceInputs["roamMode"] = state?.roamMode; resourceInputs["schedule"] = state?.schedule; resourceInputs["sleExcluded"] = state?.sleExcluded; resourceInputs["ssid"] = state?.ssid; resourceInputs["templateId"] = state?.templateId; resourceInputs["useEapolV1"] = state?.useEapolV1; resourceInputs["vlanEnabled"] = state?.vlanEnabled; resourceInputs["vlanId"] = state?.vlanId; resourceInputs["vlanIds"] = state?.vlanIds; resourceInputs["vlanPooling"] = state?.vlanPooling; resourceInputs["wlanLimitDown"] = state?.wlanLimitDown; resourceInputs["wlanLimitDownEnabled"] = state?.wlanLimitDownEnabled; resourceInputs["wlanLimitUp"] = state?.wlanLimitUp; resourceInputs["wlanLimitUpEnabled"] = state?.wlanLimitUpEnabled; resourceInputs["wxtagIds"] = state?.wxtagIds; resourceInputs["wxtunnelId"] = state?.wxtunnelId; resourceInputs["wxtunnelRemoteId"] = state?.wxtunnelRemoteId; } else { const args = argsOrState; if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } if (args?.ssid === undefined && !opts.urn) { throw new Error("Missing required property 'ssid'"); } if (args?.templateId === undefined && !opts.urn) { throw new Error("Missing required property 'templateId'"); } resourceInputs["acctImmediateUpdate"] = args?.acctImmediateUpdate; resourceInputs["acctInterimInterval"] = args?.acctInterimInterval; resourceInputs["acctServers"] = args?.acctServers; resourceInputs["airwatch"] = args?.airwatch; resourceInputs["allowIpv6Ndp"] = args?.allowIpv6Ndp; resourceInputs["allowMdns"] = args?.allowMdns; resourceInputs["allowSsdp"] = args?.allowSsdp; resourceInputs["apIds"] = args?.apIds; resourceInputs["appLimit"] = args?.appLimit; resourceInputs["appQos"] = args?.appQos; resourceInputs["applyTo"] = args?.applyTo; resourceInputs["arpFilter"] = args?.arpFilter; resourceInputs["auth"] = args?.auth; resourceInputs["authServerSelection"] = args?.authServerSelection; resourceInputs["authServers"] = args?.authServers; resourceInputs["authServersNasId"] = args?.authServersNasId; resourceInputs["authServersNasIp"] = args?.authServersNasIp; resourceInputs["authServersRetries"] = args?.authServersRetries; resourceInputs["authServersTimeout"] = args?.authServersTimeout; resourceInputs["bandSteer"] = args?.bandSteer; resourceInputs["bandSteerForceBand5"] = args?.bandSteerForceBand5; resourceInputs["bands"] = args?.bands; resourceInputs["blockBlacklistClients"] = args?.blockBlacklistClients; resourceInputs["bonjour"] = args?.bonjour; resourceInputs["ciscoCwa"] = args?.ciscoCwa; resourceInputs["clientLimitDown"] = args?.clientLimitDown; resourceInputs["clientLimitDownEnabled"] = args?.clientLimitDownEnabled; resourceInputs["clientLimitUp"] = args?.clientLimitUp; resourceInputs["clientLimitUpEnabled"] = args?.clientLimitUpEnabled; resourceInputs["coaServers"] = args?.coaServers; resourceInputs["disable11ax"] = args?.disable11ax; resourceInputs["disable11be"] = args?.disable11be; resourceInputs["disableHtVhtRates"] = args?.disableHtVhtRates; resourceInputs["disableUapsd"] = args?.disableUapsd; resourceInputs["disableV1RoamNotify"] = args?.disableV1RoamNotify; resourceInputs["disableV2RoamNotify"] = args?.disableV2RoamNotify; resourceInputs["disableWhenGatewayUnreachable"] = args?.disableWhenGatewayUnreachable; resourceInputs["disableWhenMxtunnelDown"] = args?.disableWhenMxtunnelDown; resourceInputs["disableWmm"] = args?.disableWmm; resourceInputs["dnsServerRewrite"] = args?.dnsServerRewrite; resourceInputs["dtim"] = args?.dtim; resourceInputs["dynamicPsk"] = args?.dynamicPsk; resourceInputs["dynamicVlan"] = args?.dynamicVlan; resourceInputs["enableLocalKeycaching"] = args?.enableLocalKeycaching; resourceInputs["enableWirelessBridging"] = args?.enableWirelessBridging; resourceInputs["enableWirelessBridgingDhcpTracking"] = args?.enableWirelessBridgingDhcpTracking; resourceInputs["enabled"] = args?.enabled; resourceInputs["fastDot1xTimers"] = args?.fastDot1xTimers; resourceInputs["hideSsid"] = args?.hideSsid; resourceInputs["hostnameIe"] = args?.hostnameIe; resourceInputs["hotspot20"] = args?.hotspot20; resourceInputs["injectDhcpOption82"] = args?.injectDhcpOption82; resourceInputs["interface"] = args?.interface; resourceInputs["isolation"] = args?.isolation; resourceInputs["l2Isolation"] = args?.l2Isolation; resourceInputs["legacyOverds"] = args?.legacyOverds; resourceInputs["limitBcast"] = args?.limitBcast; resourceInputs["limitProbeResponse"] = args?.limitProbeResponse; resourceInputs["maxIdletime"] = args?.maxIdletime; resourceInputs["maxNumClients"] = args?.maxNumClients; resourceInputs["mistNac"] = args?.mistNac; resourceInputs["mxtunnelIds"] = args?.mxtunnelIds; resourceInputs["mxtunnelNames"] = args?.mxtunnelNames; resourceInputs["noStaticDns"] = args?.noStaticDns; resourceInputs["noStaticIp"] = args?.noStaticIp; resourceInputs["orgId"] = args?.orgId; resourceInputs["portal"] = args?.portal; resourceInputs["portalAllowedHostnames"] = args?.portalAllowedHostnames; resourceInputs["portalAllowedSubnets"] = args?.portalAllowedSubnets; resourceInputs["portalDeniedHostnames"] = args?.portalDeniedHostnames; resourceInputs["qos"] = args?.qos; resourceInputs["radsec"] = args?.radsec; resourceInputs["rateset"] = args?.rateset; resourceInputs["reconnectClientsWhenRoamingMxcluster"] = args?.reconnectClientsWhenRoamingMxcluster; resourceInputs["roamMode"] = args?.roamMode; resourceInputs["schedule"] = args?.schedule; resourceInputs["sleExcluded"] = args?.sleExcluded; resourceInputs["ssid"] = args?.ssid; resourceInputs["templateId"] = args?.templateId; resourceInputs["useEapolV1"] = args?.useEapolV1; resourceInputs["vlanEnabled"] = args?.vlanEnabled; resourceInputs["vlanId"] = args?.vlanId; resourceInputs["vlanIds"] = args?.vlanIds; resourceInputs["vlanPooling"] = args?.vlanPooling; resourceInputs["wlanLimitDown"] = args?.wlanLimitDown; resourceInputs["wlanLimitDownEnabled"] = args?.wlanLimitDownEnabled; resourceInputs["wlanLimitUp"] = args?.wlanLimitUp; resourceInputs["wlanLimitUpEnabled"] = args?.wlanLimitUpEnabled; resourceInputs["wxtagIds"] = args?.wxtagIds; resourceInputs["wxtunnelId"] = args?.wxtunnelId; resourceInputs["wxtunnelRemoteId"] = args?.wxtunnelRemoteId; resourceInputs["mspId"] = undefined /*out*/; resourceInputs["portalApiSecret"] = undefined /*out*/; resourceInputs["portalImage"] = undefined /*out*/; resourceInputs["portalSsoUrl"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Wlan.__pulumiType, name, resourceInputs, opts); } } exports.Wlan = Wlan; /** @internal */ Wlan.__pulumiType = 'junipermist:org/wlan:Wlan'; //# sourceMappingURL=wlan.js.map