UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

89 lines 4.34 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.TrafficForwardingGRETunnel = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language. * * Visit * * **zia_traffic_forwarding_gre_tunnel** can be imported by using `<TUNNEL_ID>` as the import ID. * * For example: * * ```sh * $ pulumi import zia:index/trafficForwardingGRETunnel:TrafficForwardingGRETunnel example <tunnel_id> * ``` * * or * * ```sh * $ pulumi import zia:index/trafficForwardingGRETunnel:TrafficForwardingGRETunnel example <engine_name> * ``` */ class TrafficForwardingGRETunnel extends pulumi.CustomResource { /** * Get an existing TrafficForwardingGRETunnel 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 TrafficForwardingGRETunnel(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of TrafficForwardingGRETunnel. 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'] === TrafficForwardingGRETunnel.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["countryCode"] = state ? state.countryCode : undefined; resourceInputs["internalIpRange"] = state ? state.internalIpRange : undefined; resourceInputs["ipUnnumbered"] = state ? state.ipUnnumbered : undefined; resourceInputs["primaryDestVips"] = state ? state.primaryDestVips : undefined; resourceInputs["secondaryDestVips"] = state ? state.secondaryDestVips : undefined; resourceInputs["sourceIp"] = state ? state.sourceIp : undefined; resourceInputs["tunnelId"] = state ? state.tunnelId : undefined; resourceInputs["withinCountry"] = state ? state.withinCountry : undefined; } else { const args = argsOrState; if ((!args || args.sourceIp === undefined) && !opts.urn) { throw new Error("Missing required property 'sourceIp'"); } resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["countryCode"] = args ? args.countryCode : undefined; resourceInputs["internalIpRange"] = args ? args.internalIpRange : undefined; resourceInputs["ipUnnumbered"] = args ? args.ipUnnumbered : undefined; resourceInputs["primaryDestVips"] = args ? args.primaryDestVips : undefined; resourceInputs["secondaryDestVips"] = args ? args.secondaryDestVips : undefined; resourceInputs["sourceIp"] = args ? args.sourceIp : undefined; resourceInputs["withinCountry"] = args ? args.withinCountry : undefined; resourceInputs["tunnelId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TrafficForwardingGRETunnel.__pulumiType, name, resourceInputs, opts); } } exports.TrafficForwardingGRETunnel = TrafficForwardingGRETunnel; /** @internal */ TrafficForwardingGRETunnel.__pulumiType = 'zia:index/trafficForwardingGRETunnel:TrafficForwardingGRETunnel'; //# sourceMappingURL=trafficForwardingGRETunnel.js.map