UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

106 lines 5.36 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.NetTunnel = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `f5bigip.NetTunnel` Manages a tunnel configuration * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as f5bigip from "@pulumi/f5bigip"; * * const example1 = new f5bigip.NetTunnel("example1", { * name: "example1", * localAddress: "192.16.81.240", * profile: "/Common/dslite", * }); * ``` */ class NetTunnel extends pulumi.CustomResource { /** * Get an existing NetTunnel 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 NetTunnel(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of NetTunnel. 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'] === NetTunnel.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["appService"] = state ? state.appService : undefined; resourceInputs["autoLastHop"] = state ? state.autoLastHop : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["idleTimeout"] = state ? state.idleTimeout : undefined; resourceInputs["key"] = state ? state.key : undefined; resourceInputs["localAddress"] = state ? state.localAddress : undefined; resourceInputs["mode"] = state ? state.mode : undefined; resourceInputs["mtu"] = state ? state.mtu : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["partition"] = state ? state.partition : undefined; resourceInputs["profile"] = state ? state.profile : undefined; resourceInputs["remoteAddress"] = state ? state.remoteAddress : undefined; resourceInputs["secondaryAddress"] = state ? state.secondaryAddress : undefined; resourceInputs["tos"] = state ? state.tos : undefined; resourceInputs["trafficGroup"] = state ? state.trafficGroup : undefined; resourceInputs["transparent"] = state ? state.transparent : undefined; resourceInputs["usePmtu"] = state ? state.usePmtu : undefined; } else { const args = argsOrState; if ((!args || args.localAddress === undefined) && !opts.urn) { throw new Error("Missing required property 'localAddress'"); } if ((!args || args.name === undefined) && !opts.urn) { throw new Error("Missing required property 'name'"); } if ((!args || args.profile === undefined) && !opts.urn) { throw new Error("Missing required property 'profile'"); } resourceInputs["appService"] = args ? args.appService : undefined; resourceInputs["autoLastHop"] = args ? args.autoLastHop : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["idleTimeout"] = args ? args.idleTimeout : undefined; resourceInputs["key"] = args ? args.key : undefined; resourceInputs["localAddress"] = args ? args.localAddress : undefined; resourceInputs["mode"] = args ? args.mode : undefined; resourceInputs["mtu"] = args ? args.mtu : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["partition"] = args ? args.partition : undefined; resourceInputs["profile"] = args ? args.profile : undefined; resourceInputs["remoteAddress"] = args ? args.remoteAddress : undefined; resourceInputs["secondaryAddress"] = args ? args.secondaryAddress : undefined; resourceInputs["tos"] = args ? args.tos : undefined; resourceInputs["trafficGroup"] = args ? args.trafficGroup : undefined; resourceInputs["transparent"] = args ? args.transparent : undefined; resourceInputs["usePmtu"] = args ? args.usePmtu : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(NetTunnel.__pulumiType, name, resourceInputs, opts); } } exports.NetTunnel = NetTunnel; /** @internal */ NetTunnel.__pulumiType = 'f5bigip:index/netTunnel:NetTunnel'; //# sourceMappingURL=netTunnel.js.map