UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

87 lines 4.06 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.Nacrule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages the NAC Rules (Auth Policies). * * A NAC Rule defines a list of criteria (NAC Tag) the network client must match to execute the Rule, an action (Allow/Deny)and a list of RADIUS Attributes (NAC Tags) to return * * ## Import * * Using `pulumi import`, import `mist_org_nacrule` with: * * NAC Rule can be imported by specifying the org_id and the nacrule_id * * ```sh * $ pulumi import junipermist:org/nacrule:Nacrule nacrule_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Nacrule extends pulumi.CustomResource { /** * Get an existing Nacrule 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 Nacrule(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Nacrule. 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'] === Nacrule.__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["enabled"] = state ? state.enabled : undefined; resourceInputs["matching"] = state ? state.matching : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["notMatching"] = state ? state.notMatching : undefined; resourceInputs["order"] = state ? state.order : undefined; resourceInputs["orgId"] = state ? state.orgId : 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.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["action"] = args ? args.action : undefined; resourceInputs["applyTags"] = args ? args.applyTags : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["matching"] = args ? args.matching : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["notMatching"] = args ? args.notMatching : undefined; resourceInputs["order"] = args ? args.order : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Nacrule.__pulumiType, name, resourceInputs, opts); } } exports.Nacrule = Nacrule; /** @internal */ Nacrule.__pulumiType = 'junipermist:org/nacrule:Nacrule'; //# sourceMappingURL=nacrule.js.map