UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

129 lines 4.9 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.Rftemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages the RF Templates. * * The RF Templates can be used to define Wireless Access Points radio configuration, and can be assigned to the sites * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const rftemplateOne = new junipermist.org.Rftemplate("rftemplate_one", { * name: "rftemplate_one", * orgId: terraformTest.id, * band24Usage: "auto", * band5: { * antGain: 2, * power: 8, * channels: [ * 60, * 104, * 132, * ], * bandwidth: 20, * }, * band6: { * antGain: 2, * power: 8, * }, * band24: { * antGain: 1, * allowRrmDisable: true, * powerMin: 18, * powerMax: 18, * bandwidth: 20, * }, * antGain5: 2, * antGain6: 2, * antGain24: 1, * countryCode: "FR", * }); * ``` * * ## Import * * Using `pulumi import`, import `mist_org_rftemplate` with: * * Org RF Template can be imported by specifying the org_id and the rftemplate_id * * ```sh * $ pulumi import junipermist:org/rftemplate:Rftemplate rftemplate_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Rftemplate extends pulumi.CustomResource { /** * Get an existing Rftemplate 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 Rftemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of Rftemplate. 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'] === Rftemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["antGain24"] = state?.antGain24; resourceInputs["antGain5"] = state?.antGain5; resourceInputs["antGain6"] = state?.antGain6; resourceInputs["band24"] = state?.band24; resourceInputs["band24Usage"] = state?.band24Usage; resourceInputs["band5"] = state?.band5; resourceInputs["band5On24Radio"] = state?.band5On24Radio; resourceInputs["band6"] = state?.band6; resourceInputs["countryCode"] = state?.countryCode; resourceInputs["modelSpecific"] = state?.modelSpecific; resourceInputs["name"] = state?.name; resourceInputs["orgId"] = state?.orgId; resourceInputs["scanningEnabled"] = state?.scanningEnabled; } else { const args = argsOrState; if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["antGain24"] = args?.antGain24; resourceInputs["antGain5"] = args?.antGain5; resourceInputs["antGain6"] = args?.antGain6; resourceInputs["band24"] = args?.band24; resourceInputs["band24Usage"] = args?.band24Usage; resourceInputs["band5"] = args?.band5; resourceInputs["band5On24Radio"] = args?.band5On24Radio; resourceInputs["band6"] = args?.band6; resourceInputs["countryCode"] = args?.countryCode; resourceInputs["modelSpecific"] = args?.modelSpecific; resourceInputs["name"] = args?.name; resourceInputs["orgId"] = args?.orgId; resourceInputs["scanningEnabled"] = args?.scanningEnabled; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Rftemplate.__pulumiType, name, resourceInputs, opts); } } exports.Rftemplate = Rftemplate; /** @internal */ Rftemplate.__pulumiType = 'junipermist:org/rftemplate:Rftemplate'; //# sourceMappingURL=rftemplate.js.map