UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

169 lines 10.9 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.Wtp = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure Wireless Termination Points (WTPs), that is, FortiAPs or APs to be managed by FortiGate. * * ## Import * * WirelessController Wtp can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:wirelesscontroller/wtp:Wtp labelname {{wtp_id}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:wirelesscontroller/wtp:Wtp labelname {{wtp_id}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Wtp extends pulumi.CustomResource { /** * Get an existing Wtp 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 Wtp(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Wtp. 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'] === Wtp.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["admin"] = state ? state.admin : undefined; resourceInputs["allowaccess"] = state ? state.allowaccess : undefined; resourceInputs["apcfgProfile"] = state ? state.apcfgProfile : undefined; resourceInputs["bleMajorId"] = state ? state.bleMajorId : undefined; resourceInputs["bleMinorId"] = state ? state.bleMinorId : undefined; resourceInputs["bonjourProfile"] = state ? state.bonjourProfile : undefined; resourceInputs["coordinateLatitude"] = state ? state.coordinateLatitude : undefined; resourceInputs["coordinateLongitude"] = state ? state.coordinateLongitude : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["firmwareProvision"] = state ? state.firmwareProvision : undefined; resourceInputs["firmwareProvisionLatest"] = state ? state.firmwareProvisionLatest : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["imageDownload"] = state ? state.imageDownload : undefined; resourceInputs["index"] = state ? state.index : undefined; resourceInputs["ipFragmentPreventing"] = state ? state.ipFragmentPreventing : undefined; resourceInputs["lan"] = state ? state.lan : undefined; resourceInputs["ledState"] = state ? state.ledState : undefined; resourceInputs["location"] = state ? state.location : undefined; resourceInputs["loginPasswd"] = state ? state.loginPasswd : undefined; resourceInputs["loginPasswdChange"] = state ? state.loginPasswdChange : undefined; resourceInputs["meshBridgeEnable"] = state ? state.meshBridgeEnable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["overrideAllowaccess"] = state ? state.overrideAllowaccess : undefined; resourceInputs["overrideIpFragment"] = state ? state.overrideIpFragment : undefined; resourceInputs["overrideLan"] = state ? state.overrideLan : undefined; resourceInputs["overrideLedState"] = state ? state.overrideLedState : undefined; resourceInputs["overrideLoginPasswdChange"] = state ? state.overrideLoginPasswdChange : undefined; resourceInputs["overrideSplitTunnel"] = state ? state.overrideSplitTunnel : undefined; resourceInputs["overrideWanPortMode"] = state ? state.overrideWanPortMode : undefined; resourceInputs["purdueLevel"] = state ? state.purdueLevel : undefined; resourceInputs["radio1"] = state ? state.radio1 : undefined; resourceInputs["radio2"] = state ? state.radio2 : undefined; resourceInputs["radio3"] = state ? state.radio3 : undefined; resourceInputs["radio4"] = state ? state.radio4 : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["regionX"] = state ? state.regionX : undefined; resourceInputs["regionY"] = state ? state.regionY : undefined; resourceInputs["splitTunnelingAclLocalApSubnet"] = state ? state.splitTunnelingAclLocalApSubnet : undefined; resourceInputs["splitTunnelingAclPath"] = state ? state.splitTunnelingAclPath : undefined; resourceInputs["splitTunnelingAcls"] = state ? state.splitTunnelingAcls : undefined; resourceInputs["tunMtuDownlink"] = state ? state.tunMtuDownlink : undefined; resourceInputs["tunMtuUplink"] = state ? state.tunMtuUplink : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["wanPortMode"] = state ? state.wanPortMode : undefined; resourceInputs["wtpId"] = state ? state.wtpId : undefined; resourceInputs["wtpMode"] = state ? state.wtpMode : undefined; resourceInputs["wtpProfile"] = state ? state.wtpProfile : undefined; } else { const args = argsOrState; if ((!args || args.wtpProfile === undefined) && !opts.urn) { throw new Error("Missing required property 'wtpProfile'"); } resourceInputs["admin"] = args ? args.admin : undefined; resourceInputs["allowaccess"] = args ? args.allowaccess : undefined; resourceInputs["apcfgProfile"] = args ? args.apcfgProfile : undefined; resourceInputs["bleMajorId"] = args ? args.bleMajorId : undefined; resourceInputs["bleMinorId"] = args ? args.bleMinorId : undefined; resourceInputs["bonjourProfile"] = args ? args.bonjourProfile : undefined; resourceInputs["coordinateLatitude"] = args ? args.coordinateLatitude : undefined; resourceInputs["coordinateLongitude"] = args ? args.coordinateLongitude : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["firmwareProvision"] = args ? args.firmwareProvision : undefined; resourceInputs["firmwareProvisionLatest"] = args ? args.firmwareProvisionLatest : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["imageDownload"] = args ? args.imageDownload : undefined; resourceInputs["index"] = args ? args.index : undefined; resourceInputs["ipFragmentPreventing"] = args ? args.ipFragmentPreventing : undefined; resourceInputs["lan"] = args ? args.lan : undefined; resourceInputs["ledState"] = args ? args.ledState : undefined; resourceInputs["location"] = args ? args.location : undefined; resourceInputs["loginPasswd"] = (args === null || args === void 0 ? void 0 : args.loginPasswd) ? pulumi.secret(args.loginPasswd) : undefined; resourceInputs["loginPasswdChange"] = args ? args.loginPasswdChange : undefined; resourceInputs["meshBridgeEnable"] = args ? args.meshBridgeEnable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["overrideAllowaccess"] = args ? args.overrideAllowaccess : undefined; resourceInputs["overrideIpFragment"] = args ? args.overrideIpFragment : undefined; resourceInputs["overrideLan"] = args ? args.overrideLan : undefined; resourceInputs["overrideLedState"] = args ? args.overrideLedState : undefined; resourceInputs["overrideLoginPasswdChange"] = args ? args.overrideLoginPasswdChange : undefined; resourceInputs["overrideSplitTunnel"] = args ? args.overrideSplitTunnel : undefined; resourceInputs["overrideWanPortMode"] = args ? args.overrideWanPortMode : undefined; resourceInputs["purdueLevel"] = args ? args.purdueLevel : undefined; resourceInputs["radio1"] = args ? args.radio1 : undefined; resourceInputs["radio2"] = args ? args.radio2 : undefined; resourceInputs["radio3"] = args ? args.radio3 : undefined; resourceInputs["radio4"] = args ? args.radio4 : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["regionX"] = args ? args.regionX : undefined; resourceInputs["regionY"] = args ? args.regionY : undefined; resourceInputs["splitTunnelingAclLocalApSubnet"] = args ? args.splitTunnelingAclLocalApSubnet : undefined; resourceInputs["splitTunnelingAclPath"] = args ? args.splitTunnelingAclPath : undefined; resourceInputs["splitTunnelingAcls"] = args ? args.splitTunnelingAcls : undefined; resourceInputs["tunMtuDownlink"] = args ? args.tunMtuDownlink : undefined; resourceInputs["tunMtuUplink"] = args ? args.tunMtuUplink : undefined; resourceInputs["uuid"] = args ? args.uuid : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["wanPortMode"] = args ? args.wanPortMode : undefined; resourceInputs["wtpId"] = args ? args.wtpId : undefined; resourceInputs["wtpMode"] = args ? args.wtpMode : undefined; resourceInputs["wtpProfile"] = args ? args.wtpProfile : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["loginPasswd"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Wtp.__pulumiType, name, resourceInputs, opts); } } exports.Wtp = Wtp; /** @internal */ Wtp.__pulumiType = 'fortios:wirelesscontroller/wtp:Wtp'; //# sourceMappingURL=wtp.js.map