UNPKG

@pulumiverse/fortios

Version:

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

131 lines 7.62 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.Setting = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure router settings. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.router.Setting("trname", {hostname: "s1"}); * ``` * * ## Import * * Router Setting can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:router/setting:Setting labelname RouterSetting * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:router/setting:Setting labelname RouterSetting * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Setting extends pulumi.CustomResource { /** * Get an existing Setting 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 Setting(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Setting. 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'] === Setting.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["bgpDebugFlags"] = state ? state.bgpDebugFlags : undefined; resourceInputs["hostname"] = state ? state.hostname : undefined; resourceInputs["igmpDebugFlags"] = state ? state.igmpDebugFlags : undefined; resourceInputs["imiDebugFlags"] = state ? state.imiDebugFlags : undefined; resourceInputs["isisDebugFlags"] = state ? state.isisDebugFlags : undefined; resourceInputs["ospf6DebugEventsFlags"] = state ? state.ospf6DebugEventsFlags : undefined; resourceInputs["ospf6DebugIfsmFlags"] = state ? state.ospf6DebugIfsmFlags : undefined; resourceInputs["ospf6DebugLsaFlags"] = state ? state.ospf6DebugLsaFlags : undefined; resourceInputs["ospf6DebugNfsmFlags"] = state ? state.ospf6DebugNfsmFlags : undefined; resourceInputs["ospf6DebugNsmFlags"] = state ? state.ospf6DebugNsmFlags : undefined; resourceInputs["ospf6DebugPacketFlags"] = state ? state.ospf6DebugPacketFlags : undefined; resourceInputs["ospf6DebugRouteFlags"] = state ? state.ospf6DebugRouteFlags : undefined; resourceInputs["ospfDebugEventsFlags"] = state ? state.ospfDebugEventsFlags : undefined; resourceInputs["ospfDebugIfsmFlags"] = state ? state.ospfDebugIfsmFlags : undefined; resourceInputs["ospfDebugLsaFlags"] = state ? state.ospfDebugLsaFlags : undefined; resourceInputs["ospfDebugNfsmFlags"] = state ? state.ospfDebugNfsmFlags : undefined; resourceInputs["ospfDebugNsmFlags"] = state ? state.ospfDebugNsmFlags : undefined; resourceInputs["ospfDebugPacketFlags"] = state ? state.ospfDebugPacketFlags : undefined; resourceInputs["ospfDebugRouteFlags"] = state ? state.ospfDebugRouteFlags : undefined; resourceInputs["pimdmDebugFlags"] = state ? state.pimdmDebugFlags : undefined; resourceInputs["pimsmDebugJoinpruneFlags"] = state ? state.pimsmDebugJoinpruneFlags : undefined; resourceInputs["pimsmDebugSimpleFlags"] = state ? state.pimsmDebugSimpleFlags : undefined; resourceInputs["pimsmDebugTimerFlags"] = state ? state.pimsmDebugTimerFlags : undefined; resourceInputs["ripDebugFlags"] = state ? state.ripDebugFlags : undefined; resourceInputs["ripngDebugFlags"] = state ? state.ripngDebugFlags : undefined; resourceInputs["showFilter"] = state ? state.showFilter : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["bgpDebugFlags"] = args ? args.bgpDebugFlags : undefined; resourceInputs["hostname"] = args ? args.hostname : undefined; resourceInputs["igmpDebugFlags"] = args ? args.igmpDebugFlags : undefined; resourceInputs["imiDebugFlags"] = args ? args.imiDebugFlags : undefined; resourceInputs["isisDebugFlags"] = args ? args.isisDebugFlags : undefined; resourceInputs["ospf6DebugEventsFlags"] = args ? args.ospf6DebugEventsFlags : undefined; resourceInputs["ospf6DebugIfsmFlags"] = args ? args.ospf6DebugIfsmFlags : undefined; resourceInputs["ospf6DebugLsaFlags"] = args ? args.ospf6DebugLsaFlags : undefined; resourceInputs["ospf6DebugNfsmFlags"] = args ? args.ospf6DebugNfsmFlags : undefined; resourceInputs["ospf6DebugNsmFlags"] = args ? args.ospf6DebugNsmFlags : undefined; resourceInputs["ospf6DebugPacketFlags"] = args ? args.ospf6DebugPacketFlags : undefined; resourceInputs["ospf6DebugRouteFlags"] = args ? args.ospf6DebugRouteFlags : undefined; resourceInputs["ospfDebugEventsFlags"] = args ? args.ospfDebugEventsFlags : undefined; resourceInputs["ospfDebugIfsmFlags"] = args ? args.ospfDebugIfsmFlags : undefined; resourceInputs["ospfDebugLsaFlags"] = args ? args.ospfDebugLsaFlags : undefined; resourceInputs["ospfDebugNfsmFlags"] = args ? args.ospfDebugNfsmFlags : undefined; resourceInputs["ospfDebugNsmFlags"] = args ? args.ospfDebugNsmFlags : undefined; resourceInputs["ospfDebugPacketFlags"] = args ? args.ospfDebugPacketFlags : undefined; resourceInputs["ospfDebugRouteFlags"] = args ? args.ospfDebugRouteFlags : undefined; resourceInputs["pimdmDebugFlags"] = args ? args.pimdmDebugFlags : undefined; resourceInputs["pimsmDebugJoinpruneFlags"] = args ? args.pimsmDebugJoinpruneFlags : undefined; resourceInputs["pimsmDebugSimpleFlags"] = args ? args.pimsmDebugSimpleFlags : undefined; resourceInputs["pimsmDebugTimerFlags"] = args ? args.pimsmDebugTimerFlags : undefined; resourceInputs["ripDebugFlags"] = args ? args.ripDebugFlags : undefined; resourceInputs["ripngDebugFlags"] = args ? args.ripngDebugFlags : undefined; resourceInputs["showFilter"] = args ? args.showFilter : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Setting.__pulumiType, name, resourceInputs, opts); } } exports.Setting = Setting; /** @internal */ Setting.__pulumiType = 'fortios:router/setting:Setting'; //# sourceMappingURL=setting.js.map