UNPKG

@pulumi/meraki

Version:

A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0

85 lines 4.63 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.WirelessRfProfiles = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ## Import * * ```sh * $ pulumi import meraki:networks/wirelessRfProfiles:WirelessRfProfiles example "network_id,rf_profile_id" * ``` */ class WirelessRfProfiles extends pulumi.CustomResource { /** * Get an existing WirelessRfProfiles 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 WirelessRfProfiles(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of WirelessRfProfiles. 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'] === WirelessRfProfiles.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["apBandSettings"] = state ? state.apBandSettings : undefined; resourceInputs["bandSelectionType"] = state ? state.bandSelectionType : undefined; resourceInputs["clientBalancingEnabled"] = state ? state.clientBalancingEnabled : undefined; resourceInputs["fiveGhzSettings"] = state ? state.fiveGhzSettings : undefined; resourceInputs["flexRadios"] = state ? state.flexRadios : undefined; resourceInputs["minBitrateType"] = state ? state.minBitrateType : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["networkId"] = state ? state.networkId : undefined; resourceInputs["perSsidSettings"] = state ? state.perSsidSettings : undefined; resourceInputs["rfProfileId"] = state ? state.rfProfileId : undefined; resourceInputs["sixGhzSettings"] = state ? state.sixGhzSettings : undefined; resourceInputs["transmission"] = state ? state.transmission : undefined; resourceInputs["twoFourGhzSettings"] = state ? state.twoFourGhzSettings : undefined; } else { const args = argsOrState; if ((!args || args.networkId === undefined) && !opts.urn) { throw new Error("Missing required property 'networkId'"); } resourceInputs["apBandSettings"] = args ? args.apBandSettings : undefined; resourceInputs["bandSelectionType"] = args ? args.bandSelectionType : undefined; resourceInputs["clientBalancingEnabled"] = args ? args.clientBalancingEnabled : undefined; resourceInputs["fiveGhzSettings"] = args ? args.fiveGhzSettings : undefined; resourceInputs["flexRadios"] = args ? args.flexRadios : undefined; resourceInputs["minBitrateType"] = args ? args.minBitrateType : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networkId"] = args ? args.networkId : undefined; resourceInputs["perSsidSettings"] = args ? args.perSsidSettings : undefined; resourceInputs["rfProfileId"] = args ? args.rfProfileId : undefined; resourceInputs["sixGhzSettings"] = args ? args.sixGhzSettings : undefined; resourceInputs["transmission"] = args ? args.transmission : undefined; resourceInputs["twoFourGhzSettings"] = args ? args.twoFourGhzSettings : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(WirelessRfProfiles.__pulumiType, name, resourceInputs, opts); } } exports.WirelessRfProfiles = WirelessRfProfiles; /** @internal */ WirelessRfProfiles.__pulumiType = 'meraki:networks/wirelessRfProfiles:WirelessRfProfiles'; //# sourceMappingURL=wirelessRfProfiles.js.map