UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

140 lines 8.33 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.FirewallFilteringRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## 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 * * **zia_firewall_filtering_rule** can be imported by using `<RULE ID>` or `<RULE NAME>` as the import ID. * * For example: * * ```sh * $ pulumi import zia:index/firewallFilteringRule:FirewallFilteringRule example <rule_id> * ``` * * or * * ```sh * $ pulumi import zia:index/firewallFilteringRule:FirewallFilteringRule example <rule_name> * ``` */ class FirewallFilteringRule extends pulumi.CustomResource { /** * Get an existing FirewallFilteringRule 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 FirewallFilteringRule(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of FirewallFilteringRule. 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'] === FirewallFilteringRule.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["action"] = state ? state.action : undefined; resourceInputs["appServiceGroups"] = state ? state.appServiceGroups : undefined; resourceInputs["appServices"] = state ? state.appServices : undefined; resourceInputs["defaultRule"] = state ? state.defaultRule : undefined; resourceInputs["departments"] = state ? state.departments : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["destAddresses"] = state ? state.destAddresses : undefined; resourceInputs["destCountries"] = state ? state.destCountries : undefined; resourceInputs["destIpCategories"] = state ? state.destIpCategories : undefined; resourceInputs["destIpGroups"] = state ? state.destIpGroups : undefined; resourceInputs["deviceGroups"] = state ? state.deviceGroups : undefined; resourceInputs["deviceTrustLevels"] = state ? state.deviceTrustLevels : undefined; resourceInputs["devices"] = state ? state.devices : undefined; resourceInputs["enableFullLogging"] = state ? state.enableFullLogging : undefined; resourceInputs["groups"] = state ? state.groups : undefined; resourceInputs["labels"] = state ? state.labels : undefined; resourceInputs["locationGroups"] = state ? state.locationGroups : undefined; resourceInputs["locations"] = state ? state.locations : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nwApplicationGroups"] = state ? state.nwApplicationGroups : undefined; resourceInputs["nwApplications"] = state ? state.nwApplications : undefined; resourceInputs["nwServiceGroups"] = state ? state.nwServiceGroups : undefined; resourceInputs["nwServices"] = state ? state.nwServices : undefined; resourceInputs["order"] = state ? state.order : undefined; resourceInputs["predefined"] = state ? state.predefined : undefined; resourceInputs["rank"] = state ? state.rank : undefined; resourceInputs["ruleId"] = state ? state.ruleId : undefined; resourceInputs["sourceCountries"] = state ? state.sourceCountries : undefined; resourceInputs["srcIpGroups"] = state ? state.srcIpGroups : undefined; resourceInputs["srcIps"] = state ? state.srcIps : undefined; resourceInputs["state"] = state ? state.state : undefined; resourceInputs["timeWindows"] = state ? state.timeWindows : undefined; resourceInputs["users"] = state ? state.users : undefined; resourceInputs["workloadGroups"] = state ? state.workloadGroups : undefined; resourceInputs["zpaAppSegments"] = state ? state.zpaAppSegments : undefined; } else { const args = argsOrState; resourceInputs["action"] = args ? args.action : undefined; resourceInputs["appServiceGroups"] = args ? args.appServiceGroups : undefined; resourceInputs["appServices"] = args ? args.appServices : undefined; resourceInputs["defaultRule"] = args ? args.defaultRule : undefined; resourceInputs["departments"] = args ? args.departments : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["destAddresses"] = args ? args.destAddresses : undefined; resourceInputs["destCountries"] = args ? args.destCountries : undefined; resourceInputs["destIpCategories"] = args ? args.destIpCategories : undefined; resourceInputs["destIpGroups"] = args ? args.destIpGroups : undefined; resourceInputs["deviceGroups"] = args ? args.deviceGroups : undefined; resourceInputs["deviceTrustLevels"] = args ? args.deviceTrustLevels : undefined; resourceInputs["devices"] = args ? args.devices : undefined; resourceInputs["enableFullLogging"] = args ? args.enableFullLogging : undefined; resourceInputs["groups"] = args ? args.groups : undefined; resourceInputs["labels"] = args ? args.labels : undefined; resourceInputs["locationGroups"] = args ? args.locationGroups : undefined; resourceInputs["locations"] = args ? args.locations : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nwApplicationGroups"] = args ? args.nwApplicationGroups : undefined; resourceInputs["nwApplications"] = args ? args.nwApplications : undefined; resourceInputs["nwServiceGroups"] = args ? args.nwServiceGroups : undefined; resourceInputs["nwServices"] = args ? args.nwServices : undefined; resourceInputs["order"] = args ? args.order : undefined; resourceInputs["predefined"] = args ? args.predefined : undefined; resourceInputs["rank"] = args ? args.rank : undefined; resourceInputs["sourceCountries"] = args ? args.sourceCountries : undefined; resourceInputs["srcIpGroups"] = args ? args.srcIpGroups : undefined; resourceInputs["srcIps"] = args ? args.srcIps : undefined; resourceInputs["state"] = args ? args.state : undefined; resourceInputs["timeWindows"] = args ? args.timeWindows : undefined; resourceInputs["users"] = args ? args.users : undefined; resourceInputs["workloadGroups"] = args ? args.workloadGroups : undefined; resourceInputs["zpaAppSegments"] = args ? args.zpaAppSegments : undefined; resourceInputs["ruleId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FirewallFilteringRule.__pulumiType, name, resourceInputs, opts); } } exports.FirewallFilteringRule = FirewallFilteringRule; /** @internal */ FirewallFilteringRule.__pulumiType = 'zia:index/firewallFilteringRule:FirewallFilteringRule'; //# sourceMappingURL=firewallFilteringRule.js.map