UNPKG

@pulumiverse/fortios

Version:

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

151 lines 6.55 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.Rip = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure RIP. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.router.Rip("trname", { * defaultInformationOriginate: "disable", * defaultMetric: 1, * garbageTimer: 120, * maxOutMetric: 0, * recvBufferSize: 655360, * redistributes: [ * { * metric: 10, * name: "connected", * status: "disable", * }, * { * metric: 10, * name: "static", * status: "disable", * }, * { * metric: 10, * name: "ospf", * status: "disable", * }, * { * metric: 10, * name: "bgp", * status: "disable", * }, * { * metric: 10, * name: "isis", * status: "disable", * }, * ], * timeoutTimer: 180, * updateTimer: 30, * version: "2", * }); * ``` * * ## Import * * Router Rip can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:router/rip:Rip labelname RouterRip * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:router/rip:Rip labelname RouterRip * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Rip extends pulumi.CustomResource { /** * Get an existing Rip 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 Rip(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Rip. 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'] === Rip.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["defaultInformationOriginate"] = state ? state.defaultInformationOriginate : undefined; resourceInputs["defaultMetric"] = state ? state.defaultMetric : undefined; resourceInputs["distances"] = state ? state.distances : undefined; resourceInputs["distributeLists"] = state ? state.distributeLists : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["garbageTimer"] = state ? state.garbageTimer : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["interfaces"] = state ? state.interfaces : undefined; resourceInputs["maxOutMetric"] = state ? state.maxOutMetric : undefined; resourceInputs["neighbors"] = state ? state.neighbors : undefined; resourceInputs["networks"] = state ? state.networks : undefined; resourceInputs["offsetLists"] = state ? state.offsetLists : undefined; resourceInputs["passiveInterfaces"] = state ? state.passiveInterfaces : undefined; resourceInputs["recvBufferSize"] = state ? state.recvBufferSize : undefined; resourceInputs["redistributes"] = state ? state.redistributes : undefined; resourceInputs["timeoutTimer"] = state ? state.timeoutTimer : undefined; resourceInputs["updateTimer"] = state ? state.updateTimer : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["version"] = state ? state.version : undefined; } else { const args = argsOrState; resourceInputs["defaultInformationOriginate"] = args ? args.defaultInformationOriginate : undefined; resourceInputs["defaultMetric"] = args ? args.defaultMetric : undefined; resourceInputs["distances"] = args ? args.distances : undefined; resourceInputs["distributeLists"] = args ? args.distributeLists : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["garbageTimer"] = args ? args.garbageTimer : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["interfaces"] = args ? args.interfaces : undefined; resourceInputs["maxOutMetric"] = args ? args.maxOutMetric : undefined; resourceInputs["neighbors"] = args ? args.neighbors : undefined; resourceInputs["networks"] = args ? args.networks : undefined; resourceInputs["offsetLists"] = args ? args.offsetLists : undefined; resourceInputs["passiveInterfaces"] = args ? args.passiveInterfaces : undefined; resourceInputs["recvBufferSize"] = args ? args.recvBufferSize : undefined; resourceInputs["redistributes"] = args ? args.redistributes : undefined; resourceInputs["timeoutTimer"] = args ? args.timeoutTimer : undefined; resourceInputs["updateTimer"] = args ? args.updateTimer : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["version"] = args ? args.version : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Rip.__pulumiType, name, resourceInputs, opts); } } exports.Rip = Rip; /** @internal */ Rip.__pulumiType = 'fortios:router/rip:Rip'; //# sourceMappingURL=rip.js.map