UNPKG

@bdzscaler/pulumi-zpa

Version:

A Pulumi package for creating and managing Zscaler Private Access (ZPA) cloud resources.

131 lines 8.18 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.ApplicationSegment = 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 ZPA configurations into Terraform-compliant HashiCorp Configuration Language. * * Visit * * Application Segment can be imported by using `<APPLICATION SEGMENT ID>` or `<APPLICATION SEGMENT NAME>` as the import ID. * * ```sh * $ pulumi import zpa:index/applicationSegment:ApplicationSegment example <application_segment_id> * ``` * * or * * ```sh * $ pulumi import zpa:index/applicationSegment:ApplicationSegment example <application_segment_name> * ``` */ class ApplicationSegment extends pulumi.CustomResource { /** * Get an existing ApplicationSegment 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 ApplicationSegment(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ApplicationSegment. 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'] === ApplicationSegment.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["apiProtectionEnabled"] = state ? state.apiProtectionEnabled : undefined; resourceInputs["bypassOnReauth"] = state ? state.bypassOnReauth : undefined; resourceInputs["bypassType"] = state ? state.bypassType : undefined; resourceInputs["configSpace"] = state ? state.configSpace : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["domainNames"] = state ? state.domainNames : undefined; resourceInputs["doubleEncrypt"] = state ? state.doubleEncrypt : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["fqdnDnsCheck"] = state ? state.fqdnDnsCheck : undefined; resourceInputs["healthCheckType"] = state ? state.healthCheckType : undefined; resourceInputs["healthReporting"] = state ? state.healthReporting : undefined; resourceInputs["icmpAccessType"] = state ? state.icmpAccessType : undefined; resourceInputs["inspectTrafficWithZia"] = state ? state.inspectTrafficWithZia : undefined; resourceInputs["ipAnchored"] = state ? state.ipAnchored : undefined; resourceInputs["isCnameEnabled"] = state ? state.isCnameEnabled : undefined; resourceInputs["isIncompleteDrConfig"] = state ? state.isIncompleteDrConfig : undefined; resourceInputs["matchStyle"] = state ? state.matchStyle : undefined; resourceInputs["microtenantId"] = state ? state.microtenantId : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["passiveHealthEnabled"] = state ? state.passiveHealthEnabled : undefined; resourceInputs["segmentGroupId"] = state ? state.segmentGroupId : undefined; resourceInputs["segmentGroupName"] = state ? state.segmentGroupName : undefined; resourceInputs["selectConnectorCloseToApp"] = state ? state.selectConnectorCloseToApp : undefined; resourceInputs["serverGroups"] = state ? state.serverGroups : undefined; resourceInputs["shareToMicrotenants"] = state ? state.shareToMicrotenants : undefined; resourceInputs["tcpKeepAlive"] = state ? state.tcpKeepAlive : undefined; resourceInputs["tcpPortRange"] = state ? state.tcpPortRange : undefined; resourceInputs["tcpPortRanges"] = state ? state.tcpPortRanges : undefined; resourceInputs["udpPortRange"] = state ? state.udpPortRange : undefined; resourceInputs["udpPortRanges"] = state ? state.udpPortRanges : undefined; resourceInputs["useInDrMode"] = state ? state.useInDrMode : undefined; } else { const args = argsOrState; if ((!args || args.domainNames === undefined) && !opts.urn) { throw new Error("Missing required property 'domainNames'"); } resourceInputs["apiProtectionEnabled"] = args ? args.apiProtectionEnabled : undefined; resourceInputs["bypassOnReauth"] = args ? args.bypassOnReauth : undefined; resourceInputs["bypassType"] = args ? args.bypassType : undefined; resourceInputs["configSpace"] = args ? args.configSpace : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["domainNames"] = args ? args.domainNames : undefined; resourceInputs["doubleEncrypt"] = args ? args.doubleEncrypt : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["fqdnDnsCheck"] = args ? args.fqdnDnsCheck : undefined; resourceInputs["healthCheckType"] = args ? args.healthCheckType : undefined; resourceInputs["healthReporting"] = args ? args.healthReporting : undefined; resourceInputs["icmpAccessType"] = args ? args.icmpAccessType : undefined; resourceInputs["inspectTrafficWithZia"] = args ? args.inspectTrafficWithZia : undefined; resourceInputs["ipAnchored"] = args ? args.ipAnchored : undefined; resourceInputs["isCnameEnabled"] = args ? args.isCnameEnabled : undefined; resourceInputs["isIncompleteDrConfig"] = args ? args.isIncompleteDrConfig : undefined; resourceInputs["matchStyle"] = args ? args.matchStyle : undefined; resourceInputs["microtenantId"] = args ? args.microtenantId : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["passiveHealthEnabled"] = args ? args.passiveHealthEnabled : undefined; resourceInputs["segmentGroupId"] = args ? args.segmentGroupId : undefined; resourceInputs["segmentGroupName"] = args ? args.segmentGroupName : undefined; resourceInputs["selectConnectorCloseToApp"] = args ? args.selectConnectorCloseToApp : undefined; resourceInputs["serverGroups"] = args ? args.serverGroups : undefined; resourceInputs["shareToMicrotenants"] = args ? args.shareToMicrotenants : undefined; resourceInputs["tcpKeepAlive"] = args ? args.tcpKeepAlive : undefined; resourceInputs["tcpPortRange"] = args ? args.tcpPortRange : undefined; resourceInputs["tcpPortRanges"] = args ? args.tcpPortRanges : undefined; resourceInputs["udpPortRange"] = args ? args.udpPortRange : undefined; resourceInputs["udpPortRanges"] = args ? args.udpPortRanges : undefined; resourceInputs["useInDrMode"] = args ? args.useInDrMode : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ApplicationSegment.__pulumiType, name, resourceInputs, opts); } } exports.ApplicationSegment = ApplicationSegment; /** @internal */ ApplicationSegment.__pulumiType = 'zpa:index/applicationSegment:ApplicationSegment'; //# sourceMappingURL=applicationSegment.js.map