UNPKG

@pulumiverse/fortios

Version:

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

137 lines 6.38 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.Vip64 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure IPv6 to IPv4 virtual IPs. Applies to FortiOS Version `<= 7.0.0`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.firewall.Vip64("trname", { * arpReply: "enable", * color: 0, * extip: "2001:db8:99:203::22", * extport: "0-65535", * fosid: 0, * ldbMethod: "static", * mappedip: "1.1.1.1", * mappedport: "0-65535", * portforward: "disable", * protocol: "tcp", * type: "static-nat", * }); * ``` * * ## Import * * Firewall Vip64 can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:firewall/vip64:Vip64 labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:firewall/vip64:Vip64 labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Vip64 extends pulumi.CustomResource { /** * Get an existing Vip64 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 Vip64(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Vip64. 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'] === Vip64.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arpReply"] = state ? state.arpReply : undefined; resourceInputs["color"] = state ? state.color : undefined; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["extip"] = state ? state.extip : undefined; resourceInputs["extport"] = state ? state.extport : undefined; resourceInputs["fosid"] = state ? state.fosid : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["ldbMethod"] = state ? state.ldbMethod : undefined; resourceInputs["mappedip"] = state ? state.mappedip : undefined; resourceInputs["mappedport"] = state ? state.mappedport : undefined; resourceInputs["monitors"] = state ? state.monitors : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["portforward"] = state ? state.portforward : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["realservers"] = state ? state.realservers : undefined; resourceInputs["serverType"] = state ? state.serverType : undefined; resourceInputs["srcFilters"] = state ? state.srcFilters : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.extip === undefined) && !opts.urn) { throw new Error("Missing required property 'extip'"); } if ((!args || args.mappedip === undefined) && !opts.urn) { throw new Error("Missing required property 'mappedip'"); } resourceInputs["arpReply"] = args ? args.arpReply : undefined; resourceInputs["color"] = args ? args.color : undefined; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["extip"] = args ? args.extip : undefined; resourceInputs["extport"] = args ? args.extport : undefined; resourceInputs["fosid"] = args ? args.fosid : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["ldbMethod"] = args ? args.ldbMethod : undefined; resourceInputs["mappedip"] = args ? args.mappedip : undefined; resourceInputs["mappedport"] = args ? args.mappedport : undefined; resourceInputs["monitors"] = args ? args.monitors : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["portforward"] = args ? args.portforward : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["realservers"] = args ? args.realservers : undefined; resourceInputs["serverType"] = args ? args.serverType : undefined; resourceInputs["srcFilters"] = args ? args.srcFilters : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["uuid"] = args ? args.uuid : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Vip64.__pulumiType, name, resourceInputs, opts); } } exports.Vip64 = Vip64; /** @internal */ Vip64.__pulumiType = 'fortios:firewall/vip64:Vip64'; //# sourceMappingURL=vip64.js.map