UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

100 lines 3.91 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.TunnelInterface = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * TunnelInterface resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // * // Creates a tunnel interface with static ipv4 address * // * const scmTunnelIntf = new scm.TunnelInterface("scm_tunnel_intf", { * name: "$scm_tunnel_intf", * comment: "Managed by Pulumi", * folder: "ngfw-shared", * ips: [{ * name: "198.18.1.1/32", * }], * }); * // * // Creates a tunnel interface with static ipv4 address, with default value tunnel.123 * // * const scmTunnelIntf2 = new scm.TunnelInterface("scm_tunnel_intf_2", { * name: "$scm_tunnel_intf_2", * comment: "Managed by Pulumi", * folder: "ngfw-shared", * ips: [{ * name: "198.18.1.2/32", * }], * }); * ``` */ class TunnelInterface extends pulumi.CustomResource { /** * Get an existing TunnelInterface 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 TunnelInterface(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of TunnelInterface. 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'] === TunnelInterface.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["comment"] = state?.comment; resourceInputs["defaultValue"] = state?.defaultValue; resourceInputs["device"] = state?.device; resourceInputs["folder"] = state?.folder; resourceInputs["interfaceManagementProfile"] = state?.interfaceManagementProfile; resourceInputs["ips"] = state?.ips; resourceInputs["mtu"] = state?.mtu; resourceInputs["name"] = state?.name; resourceInputs["snippet"] = state?.snippet; resourceInputs["tfid"] = state?.tfid; } else { const args = argsOrState; resourceInputs["comment"] = args?.comment; resourceInputs["defaultValue"] = args?.defaultValue; resourceInputs["device"] = args?.device; resourceInputs["folder"] = args?.folder; resourceInputs["interfaceManagementProfile"] = args?.interfaceManagementProfile; resourceInputs["ips"] = args?.ips; resourceInputs["mtu"] = args?.mtu; resourceInputs["name"] = args?.name; resourceInputs["snippet"] = args?.snippet; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TunnelInterface.__pulumiType, name, resourceInputs, opts); } } exports.TunnelInterface = TunnelInterface; /** @internal */ TunnelInterface.__pulumiType = 'scm:index/tunnelInterface:TunnelInterface'; //# sourceMappingURL=tunnelInterface.js.map