UNPKG

@pulumiverse/fortios

Version:

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

147 lines 6.41 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.Ripng = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure RIPng. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.router.Ripng("trname", { * defaultInformationOriginate: "disable", * defaultMetric: 1, * garbageTimer: 120, * maxOutMetric: 0, * 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, * }); * ``` * * ## Import * * Router Ripng can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:router/ripng:Ripng labelname RouterRipng * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:router/ripng:Ripng labelname RouterRipng * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Ripng extends pulumi.CustomResource { /** * Get an existing Ripng 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 Ripng(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Ripng. 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'] === Ripng.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["aggregateAddresses"] = state ? state.aggregateAddresses : undefined; 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["redistributes"] = state ? state.redistributes : undefined; resourceInputs["timeoutTimer"] = state ? state.timeoutTimer : undefined; resourceInputs["updateTimer"] = state ? state.updateTimer : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["aggregateAddresses"] = args ? args.aggregateAddresses : undefined; 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["redistributes"] = args ? args.redistributes : undefined; resourceInputs["timeoutTimer"] = args ? args.timeoutTimer : undefined; resourceInputs["updateTimer"] = args ? args.updateTimer : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Ripng.__pulumiType, name, resourceInputs, opts); } } exports.Ripng = Ripng; /** @internal */ Ripng.__pulumiType = 'fortios:router/ripng:Ripng'; //# sourceMappingURL=ripng.js.map