UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

114 lines 4.89 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 Org WxRules (WxLAN 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.org.Wxrule("wxrule_one", { * orgId: terraformTest.id, * templateId: wlantemplateOne.id, * srcWxtags: [wxtagOne.id], * enabled: true, * action: "allow", * dstDenyWxtags: [wxtagTwo.id], * order: 1, * }); * ``` * * ## Import * * Using `pulumi import`, import `mist_org_wxrule` with: * * Org WxRule can be imported by specifying the org_id and the wxrule_id * * ```sh * $ pulumi import junipermist:org/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, { ...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?.action; resourceInputs["applyTags"] = state?.applyTags; resourceInputs["blockedApps"] = state?.blockedApps; resourceInputs["dstAllowWxtags"] = state?.dstAllowWxtags; resourceInputs["dstDenyWxtags"] = state?.dstDenyWxtags; resourceInputs["dstWxtags"] = state?.dstWxtags; resourceInputs["enabled"] = state?.enabled; resourceInputs["order"] = state?.order; resourceInputs["orgId"] = state?.orgId; resourceInputs["srcWxtags"] = state?.srcWxtags; resourceInputs["templateId"] = state?.templateId; } else { const args = argsOrState; if (args?.action === undefined && !opts.urn) { throw new Error("Missing required property 'action'"); } if (args?.order === undefined && !opts.urn) { throw new Error("Missing required property 'order'"); } if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } if (args?.templateId === undefined && !opts.urn) { throw new Error("Missing required property 'templateId'"); } resourceInputs["action"] = args?.action; resourceInputs["applyTags"] = args?.applyTags; resourceInputs["blockedApps"] = args?.blockedApps; resourceInputs["dstAllowWxtags"] = args?.dstAllowWxtags; resourceInputs["dstDenyWxtags"] = args?.dstDenyWxtags; resourceInputs["dstWxtags"] = args?.dstWxtags; resourceInputs["enabled"] = args?.enabled; resourceInputs["order"] = args?.order; resourceInputs["orgId"] = args?.orgId; resourceInputs["srcWxtags"] = args?.srcWxtags; resourceInputs["templateId"] = args?.templateId; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Wxrule.__pulumiType, name, resourceInputs, opts); } } exports.Wxrule = Wxrule; /** @internal */ Wxrule.__pulumiType = 'junipermist:org/wxrule:Wxrule'; //# sourceMappingURL=wxrule.js.map