UNPKG

@pulumiverse/fortios

Version:

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

90 lines 4.25 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.Virtualswitch = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure virtual hardware switch interfaces. Applies to FortiOS Version `7.0.4`. * * ## Import * * System VirtualSwitch can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/virtualswitch:Virtualswitch labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/virtualswitch:Virtualswitch labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Virtualswitch extends pulumi.CustomResource { /** * Get an existing Virtualswitch 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 Virtualswitch(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Virtualswitch. 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'] === Virtualswitch.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["physicalSwitch"] = state ? state.physicalSwitch : undefined; resourceInputs["ports"] = state ? state.ports : undefined; resourceInputs["span"] = state ? state.span : undefined; resourceInputs["spanDestPort"] = state ? state.spanDestPort : undefined; resourceInputs["spanDirection"] = state ? state.spanDirection : undefined; resourceInputs["spanSourcePort"] = state ? state.spanSourcePort : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["vlan"] = state ? state.vlan : undefined; } else { const args = argsOrState; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["physicalSwitch"] = args ? args.physicalSwitch : undefined; resourceInputs["ports"] = args ? args.ports : undefined; resourceInputs["span"] = args ? args.span : undefined; resourceInputs["spanDestPort"] = args ? args.spanDestPort : undefined; resourceInputs["spanDirection"] = args ? args.spanDirection : undefined; resourceInputs["spanSourcePort"] = args ? args.spanSourcePort : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["vlan"] = args ? args.vlan : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Virtualswitch.__pulumiType, name, resourceInputs, opts); } } exports.Virtualswitch = Virtualswitch; /** @internal */ Virtualswitch.__pulumiType = 'fortios:system/virtualswitch:Virtualswitch'; //# sourceMappingURL=virtualswitch.js.map