UNPKG

@pulumi/sdwan

Version:

A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1

143 lines 6.98 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.CiscoWirelessLanFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Cisco Wireless LAN feature template. * - Minimum SD-WAN Manager version: `15.0.0` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.CiscoWirelessLanFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * shutdown24ghz: false, * shutdown5ghz: false, * ssids: [{ * wirelessNetworkName: "WLAN1", * adminState: false, * broadcastSsid: true, * vlanId: 1, * radioType: "24ghz", * securityType: "enterprise", * radiusServerIp: "1.2.3.4", * radiusServerPort: 1812, * radiusServerSecret: "MySecret1", * passphrase: "passphrase", * qosProfile: "silver", * }], * country: "AE", * username: "user1", * password: "myPassword01", * controllerIpAddress: "0.0.0.0", * controllerSubnetMask: "0.0.0.0", * controllerDefaultGateway: "0.0.0.0", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/ciscoWirelessLanFeatureTemplate:CiscoWirelessLanFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CiscoWirelessLanFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CiscoWirelessLanFeatureTemplate 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 CiscoWirelessLanFeatureTemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CiscoWirelessLanFeatureTemplate. 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'] === CiscoWirelessLanFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["controllerDefaultGateway"] = state?.controllerDefaultGateway; resourceInputs["controllerDefaultGatewayVariable"] = state?.controllerDefaultGatewayVariable; resourceInputs["controllerIpAddress"] = state?.controllerIpAddress; resourceInputs["controllerIpAddressVariable"] = state?.controllerIpAddressVariable; resourceInputs["controllerSubnetMask"] = state?.controllerSubnetMask; resourceInputs["controllerSubnetMaskVariable"] = state?.controllerSubnetMaskVariable; resourceInputs["country"] = state?.country; resourceInputs["countryVariable"] = state?.countryVariable; resourceInputs["description"] = state?.description; resourceInputs["deviceTypes"] = state?.deviceTypes; resourceInputs["name"] = state?.name; resourceInputs["password"] = state?.password; resourceInputs["passwordVariable"] = state?.passwordVariable; resourceInputs["shutdown24ghz"] = state?.shutdown24ghz; resourceInputs["shutdown24ghzVariable"] = state?.shutdown24ghzVariable; resourceInputs["shutdown5ghz"] = state?.shutdown5ghz; resourceInputs["shutdown5ghzVariable"] = state?.shutdown5ghzVariable; resourceInputs["ssids"] = state?.ssids; resourceInputs["templateType"] = state?.templateType; resourceInputs["username"] = state?.username; resourceInputs["usernameVariable"] = state?.usernameVariable; resourceInputs["version"] = state?.version; } else { const args = argsOrState; if (args?.description === undefined && !opts.urn) { throw new Error("Missing required property 'description'"); } if (args?.deviceTypes === undefined && !opts.urn) { throw new Error("Missing required property 'deviceTypes'"); } resourceInputs["controllerDefaultGateway"] = args?.controllerDefaultGateway; resourceInputs["controllerDefaultGatewayVariable"] = args?.controllerDefaultGatewayVariable; resourceInputs["controllerIpAddress"] = args?.controllerIpAddress; resourceInputs["controllerIpAddressVariable"] = args?.controllerIpAddressVariable; resourceInputs["controllerSubnetMask"] = args?.controllerSubnetMask; resourceInputs["controllerSubnetMaskVariable"] = args?.controllerSubnetMaskVariable; resourceInputs["country"] = args?.country; resourceInputs["countryVariable"] = args?.countryVariable; resourceInputs["description"] = args?.description; resourceInputs["deviceTypes"] = args?.deviceTypes; resourceInputs["name"] = args?.name; resourceInputs["password"] = args?.password; resourceInputs["passwordVariable"] = args?.passwordVariable; resourceInputs["shutdown24ghz"] = args?.shutdown24ghz; resourceInputs["shutdown24ghzVariable"] = args?.shutdown24ghzVariable; resourceInputs["shutdown5ghz"] = args?.shutdown5ghz; resourceInputs["shutdown5ghzVariable"] = args?.shutdown5ghzVariable; resourceInputs["ssids"] = args?.ssids; resourceInputs["username"] = args?.username; resourceInputs["usernameVariable"] = args?.usernameVariable; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CiscoWirelessLanFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CiscoWirelessLanFeatureTemplate = CiscoWirelessLanFeatureTemplate; /** @internal */ CiscoWirelessLanFeatureTemplate.__pulumiType = 'sdwan:index/ciscoWirelessLanFeatureTemplate:CiscoWirelessLanFeatureTemplate'; //# sourceMappingURL=ciscoWirelessLanFeatureTemplate.js.map