UNPKG

@pulumiverse/fortios

Version:

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

94 lines 4.53 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.Vnetunnel = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure virtual network enabler tunnel. Applies to FortiOS Version `>= 6.4.1`. * * ## Import * * System VneTunnel can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/vnetunnel:Vnetunnel labelname SystemVneTunnel * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/vnetunnel:Vnetunnel labelname SystemVneTunnel * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Vnetunnel extends pulumi.CustomResource { /** * Get an existing Vnetunnel 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 Vnetunnel(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Vnetunnel. 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'] === Vnetunnel.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["autoAsicOffload"] = state ? state.autoAsicOffload : undefined; resourceInputs["bmrHostname"] = state ? state.bmrHostname : undefined; resourceInputs["br"] = state ? state.br : undefined; resourceInputs["httpPassword"] = state ? state.httpPassword : undefined; resourceInputs["httpUsername"] = state ? state.httpUsername : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["ipv4Address"] = state ? state.ipv4Address : undefined; resourceInputs["mode"] = state ? state.mode : undefined; resourceInputs["sslCertificate"] = state ? state.sslCertificate : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["updateUrl"] = state ? state.updateUrl : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["autoAsicOffload"] = args ? args.autoAsicOffload : undefined; resourceInputs["bmrHostname"] = (args === null || args === void 0 ? void 0 : args.bmrHostname) ? pulumi.secret(args.bmrHostname) : undefined; resourceInputs["br"] = args ? args.br : undefined; resourceInputs["httpPassword"] = args ? args.httpPassword : undefined; resourceInputs["httpUsername"] = args ? args.httpUsername : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["ipv4Address"] = args ? args.ipv4Address : undefined; resourceInputs["mode"] = args ? args.mode : undefined; resourceInputs["sslCertificate"] = args ? args.sslCertificate : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["updateUrl"] = args ? args.updateUrl : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["bmrHostname"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Vnetunnel.__pulumiType, name, resourceInputs, opts); } } exports.Vnetunnel = Vnetunnel; /** @internal */ Vnetunnel.__pulumiType = 'fortios:system/vnetunnel:Vnetunnel'; //# sourceMappingURL=vnetunnel.js.map