UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

163 lines 9.42 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.URLFilteringRules = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://help.zscaler.com/zia/about-url-filtering) * * [API documentation](https://help.zscaler.com/zia/url-filtering-policy#/urlFilteringRules-post) * * The **zia_url_filtering_rules** resource creates and manages a URL filtering rules within the Zscaler Internet Access cloud. * * ## Example Usage * * ### ALLOW ACTION * * ### BLOCK ACTION * * ### CAUTION ACTION * * ### ISOLATE ACTION * * ⚠️ **WARNING 1:**: Creating a URL Filtering rule with the action of `ISOLATE` requires the Cloud Browser Isolation subscription. To learn more, contact Zscaler Support or your local account team. * * ## 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_url_filtering_rules** can be imported by using `<RULE_ID>` or `<RULE_NAME>` as the import ID. * * For example: * * ```sh * $ pulumi import zia:index/uRLFilteringRules:URLFilteringRules example <rule_id> * ``` * * or * * ```sh * $ pulumi import zia:index/uRLFilteringRules:URLFilteringRules example <rule_name> * ``` */ class URLFilteringRules extends pulumi.CustomResource { /** * Get an existing URLFilteringRules 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 URLFilteringRules(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of URLFilteringRules. 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'] === URLFilteringRules.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["action"] = state ? state.action : undefined; resourceInputs["blockOverride"] = state ? state.blockOverride : undefined; resourceInputs["cbiProfiles"] = state ? state.cbiProfiles : undefined; resourceInputs["ciparule"] = state ? state.ciparule : undefined; resourceInputs["departments"] = state ? state.departments : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["deviceGroups"] = state ? state.deviceGroups : undefined; resourceInputs["deviceTrustLevels"] = state ? state.deviceTrustLevels : undefined; resourceInputs["devices"] = state ? state.devices : undefined; resourceInputs["endUserNotificationUrl"] = state ? state.endUserNotificationUrl : undefined; resourceInputs["enforceTimeValidity"] = state ? state.enforceTimeValidity : 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["order"] = state ? state.order : undefined; resourceInputs["overrideGroups"] = state ? state.overrideGroups : undefined; resourceInputs["overrideUsers"] = state ? state.overrideUsers : undefined; resourceInputs["protocols"] = state ? state.protocols : undefined; resourceInputs["rank"] = state ? state.rank : undefined; resourceInputs["requestMethods"] = state ? state.requestMethods : undefined; resourceInputs["ruleId"] = state ? state.ruleId : undefined; resourceInputs["sizeQuota"] = state ? state.sizeQuota : undefined; resourceInputs["sourceIpGroups"] = state ? state.sourceIpGroups : undefined; resourceInputs["state"] = state ? state.state : undefined; resourceInputs["timeQuota"] = state ? state.timeQuota : undefined; resourceInputs["timeWindows"] = state ? state.timeWindows : undefined; resourceInputs["urlCategories"] = state ? state.urlCategories : undefined; resourceInputs["userAgentTypes"] = state ? state.userAgentTypes : undefined; resourceInputs["userRiskScoreLevels"] = state ? state.userRiskScoreLevels : undefined; resourceInputs["users"] = state ? state.users : undefined; resourceInputs["validityEndTime"] = state ? state.validityEndTime : undefined; resourceInputs["validityStartTime"] = state ? state.validityStartTime : undefined; resourceInputs["validityTimeZoneId"] = state ? state.validityTimeZoneId : undefined; resourceInputs["workloadGroups"] = state ? state.workloadGroups : undefined; } else { const args = argsOrState; if ((!args || args.order === undefined) && !opts.urn) { throw new Error("Missing required property 'order'"); } if ((!args || args.protocols === undefined) && !opts.urn) { throw new Error("Missing required property 'protocols'"); } resourceInputs["action"] = args ? args.action : undefined; resourceInputs["blockOverride"] = args ? args.blockOverride : undefined; resourceInputs["cbiProfiles"] = args ? args.cbiProfiles : undefined; resourceInputs["ciparule"] = args ? args.ciparule : undefined; resourceInputs["departments"] = args ? args.departments : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["deviceGroups"] = args ? args.deviceGroups : undefined; resourceInputs["deviceTrustLevels"] = args ? args.deviceTrustLevels : undefined; resourceInputs["devices"] = args ? args.devices : undefined; resourceInputs["endUserNotificationUrl"] = args ? args.endUserNotificationUrl : undefined; resourceInputs["enforceTimeValidity"] = args ? args.enforceTimeValidity : 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["order"] = args ? args.order : undefined; resourceInputs["overrideGroups"] = args ? args.overrideGroups : undefined; resourceInputs["overrideUsers"] = args ? args.overrideUsers : undefined; resourceInputs["protocols"] = args ? args.protocols : undefined; resourceInputs["rank"] = args ? args.rank : undefined; resourceInputs["requestMethods"] = args ? args.requestMethods : undefined; resourceInputs["sizeQuota"] = args ? args.sizeQuota : undefined; resourceInputs["sourceIpGroups"] = args ? args.sourceIpGroups : undefined; resourceInputs["state"] = args ? args.state : undefined; resourceInputs["timeQuota"] = args ? args.timeQuota : undefined; resourceInputs["timeWindows"] = args ? args.timeWindows : undefined; resourceInputs["urlCategories"] = args ? args.urlCategories : undefined; resourceInputs["userAgentTypes"] = args ? args.userAgentTypes : undefined; resourceInputs["userRiskScoreLevels"] = args ? args.userRiskScoreLevels : undefined; resourceInputs["users"] = args ? args.users : undefined; resourceInputs["validityEndTime"] = args ? args.validityEndTime : undefined; resourceInputs["validityStartTime"] = args ? args.validityStartTime : undefined; resourceInputs["validityTimeZoneId"] = args ? args.validityTimeZoneId : undefined; resourceInputs["workloadGroups"] = args ? args.workloadGroups : undefined; resourceInputs["ruleId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(URLFilteringRules.__pulumiType, name, resourceInputs, opts); } } exports.URLFilteringRules = URLFilteringRules; /** @internal */ URLFilteringRules.__pulumiType = 'zia:index/uRLFilteringRules:URLFilteringRules'; //# sourceMappingURL=urlfilteringRules.js.map