UNPKG

@pulumiverse/fortios

Version:

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

136 lines 6.37 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.Static6 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure IPv6 static routing tables. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.router.Static6("trname", { * bfd: "disable", * blackhole: "disable", * device: "port3", * devindex: 5, * distance: 10, * dst: "2001:db8::/32", * gateway: "::", * priority: 32, * seqNum: 1, * status: "enable", * virtualWanLink: "disable", * }); * ``` * * ## Import * * Router Static6 can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:router/static6:Static6 labelname {{seq_num}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:router/static6:Static6 labelname {{seq_num}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Static6 extends pulumi.CustomResource { /** * Get an existing Static6 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 Static6(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Static6. 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'] === Static6.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["bfd"] = state ? state.bfd : undefined; resourceInputs["blackhole"] = state ? state.blackhole : undefined; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["device"] = state ? state.device : undefined; resourceInputs["devindex"] = state ? state.devindex : undefined; resourceInputs["distance"] = state ? state.distance : undefined; resourceInputs["dst"] = state ? state.dst : undefined; resourceInputs["dstaddr"] = state ? state.dstaddr : undefined; resourceInputs["dynamicGateway"] = state ? state.dynamicGateway : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["gateway"] = state ? state.gateway : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["linkMonitorExempt"] = state ? state.linkMonitorExempt : undefined; resourceInputs["priority"] = state ? state.priority : undefined; resourceInputs["sdwan"] = state ? state.sdwan : undefined; resourceInputs["sdwanZones"] = state ? state.sdwanZones : undefined; resourceInputs["seqNum"] = state ? state.seqNum : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["virtualWanLink"] = state ? state.virtualWanLink : undefined; resourceInputs["vrf"] = state ? state.vrf : undefined; resourceInputs["weight"] = state ? state.weight : undefined; } else { const args = argsOrState; if ((!args || args.device === undefined) && !opts.urn) { throw new Error("Missing required property 'device'"); } resourceInputs["bfd"] = args ? args.bfd : undefined; resourceInputs["blackhole"] = args ? args.blackhole : undefined; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["device"] = args ? args.device : undefined; resourceInputs["devindex"] = args ? args.devindex : undefined; resourceInputs["distance"] = args ? args.distance : undefined; resourceInputs["dst"] = args ? args.dst : undefined; resourceInputs["dstaddr"] = args ? args.dstaddr : undefined; resourceInputs["dynamicGateway"] = args ? args.dynamicGateway : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["gateway"] = args ? args.gateway : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["linkMonitorExempt"] = args ? args.linkMonitorExempt : undefined; resourceInputs["priority"] = args ? args.priority : undefined; resourceInputs["sdwan"] = args ? args.sdwan : undefined; resourceInputs["sdwanZones"] = args ? args.sdwanZones : undefined; resourceInputs["seqNum"] = args ? args.seqNum : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["virtualWanLink"] = args ? args.virtualWanLink : undefined; resourceInputs["vrf"] = args ? args.vrf : undefined; resourceInputs["weight"] = args ? args.weight : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Static6.__pulumiType, name, resourceInputs, opts); } } exports.Static6 = Static6; /** @internal */ Static6.__pulumiType = 'fortios:router/static6:Static6'; //# sourceMappingURL=static6.js.map