UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

94 lines 4.39 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.TrafficForwardingStaticIP = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://help.zscaler.com/zia/about-static-ip) * * [API documentation](https://help.zscaler.com/zia/traffic-forwarding-0#/staticIP-get) * * The **zia_traffic_forwarding_static_ip** resource allows the creation and management of static ip addresses in the Zscaler Internet Access cloud. The resource, can then be associated with other resources such as: * * * VPN Credentials of type `IP` * * Location Management * * GRE Tunnel * * ## Example Usage * * ## Import * * Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language. * * Visit * * Static IP resources can be imported by using `<STATIC IP ID>` or `<IP ADDRESS>`as the import ID. * * ```sh * $ pulumi import zia:index/trafficForwardingStaticIP:TrafficForwardingStaticIP example <static_ip_id> * ``` * * or * * ```sh * $ pulumi import zia:index/trafficForwardingStaticIP:TrafficForwardingStaticIP example <ip_address> * ``` */ class TrafficForwardingStaticIP extends pulumi.CustomResource { /** * Get an existing TrafficForwardingStaticIP 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 TrafficForwardingStaticIP(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of TrafficForwardingStaticIP. 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'] === TrafficForwardingStaticIP.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["geoOverride"] = state ? state.geoOverride : undefined; resourceInputs["ipAddress"] = state ? state.ipAddress : undefined; resourceInputs["latitude"] = state ? state.latitude : undefined; resourceInputs["longitude"] = state ? state.longitude : undefined; resourceInputs["routableIp"] = state ? state.routableIp : undefined; resourceInputs["staticIpId"] = state ? state.staticIpId : undefined; } else { const args = argsOrState; if ((!args || args.ipAddress === undefined) && !opts.urn) { throw new Error("Missing required property 'ipAddress'"); } resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["geoOverride"] = args ? args.geoOverride : undefined; resourceInputs["ipAddress"] = args ? args.ipAddress : undefined; resourceInputs["latitude"] = args ? args.latitude : undefined; resourceInputs["longitude"] = args ? args.longitude : undefined; resourceInputs["routableIp"] = args ? args.routableIp : undefined; resourceInputs["staticIpId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TrafficForwardingStaticIP.__pulumiType, name, resourceInputs, opts); } } exports.TrafficForwardingStaticIP = TrafficForwardingStaticIP; /** @internal */ TrafficForwardingStaticIP.__pulumiType = 'zia:index/trafficForwardingStaticIP:TrafficForwardingStaticIP'; //# sourceMappingURL=trafficForwardingStaticIP.js.map