UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

107 lines 5.01 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.Wxrule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages the Site WxRules (WLAN policies). * A WxLAN policy is a set of rules and settings that can be applied to devices in a network to determine how they are treated. it provides support for access policies, network segmentation, role-based policies, micro-segmentation, and least privilege.\ * WxLAN policies are used to allow or deny specific users from accessing specific resources in a wireless network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const wxruleOne = new junipermist.site.Wxrule("wxrule_one", { * siteId: terraformTest.id, * srcWxtags: [wxtagOne.id], * enabled: true, * action: "allow", * dstDenyWxtags: [wxtagTwo.id], * order: 1, * }); * ``` * * ## Import * * Using `pulumi import`, import `mist_site_wxrule` with: * * Site WxRule can be imported by specifying the site_id and the wxrule_id * * ```sh * $ pulumi import junipermist:site/wxrule:Wxrule wxrule_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Wxrule extends pulumi.CustomResource { /** * Get an existing Wxrule 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 Wxrule(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Wxrule. 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'] === Wxrule.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["action"] = state ? state.action : undefined; resourceInputs["applyTags"] = state ? state.applyTags : undefined; resourceInputs["blockedApps"] = state ? state.blockedApps : undefined; resourceInputs["dstAllowWxtags"] = state ? state.dstAllowWxtags : undefined; resourceInputs["dstDenyWxtags"] = state ? state.dstDenyWxtags : undefined; resourceInputs["dstWxtags"] = state ? state.dstWxtags : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["order"] = state ? state.order : undefined; resourceInputs["siteId"] = state ? state.siteId : undefined; resourceInputs["srcWxtags"] = state ? state.srcWxtags : undefined; } else { const args = argsOrState; if ((!args || args.action === undefined) && !opts.urn) { throw new Error("Missing required property 'action'"); } if ((!args || args.order === undefined) && !opts.urn) { throw new Error("Missing required property 'order'"); } if ((!args || args.siteId === undefined) && !opts.urn) { throw new Error("Missing required property 'siteId'"); } resourceInputs["action"] = args ? args.action : undefined; resourceInputs["applyTags"] = args ? args.applyTags : undefined; resourceInputs["blockedApps"] = args ? args.blockedApps : undefined; resourceInputs["dstAllowWxtags"] = args ? args.dstAllowWxtags : undefined; resourceInputs["dstDenyWxtags"] = args ? args.dstDenyWxtags : undefined; resourceInputs["dstWxtags"] = args ? args.dstWxtags : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["order"] = args ? args.order : undefined; resourceInputs["siteId"] = args ? args.siteId : undefined; resourceInputs["srcWxtags"] = args ? args.srcWxtags : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Wxrule.__pulumiType, name, resourceInputs, opts); } } exports.Wxrule = Wxrule; /** @internal */ Wxrule.__pulumiType = 'junipermist:site/wxrule:Wxrule'; //# sourceMappingURL=wxrule.js.map