UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

115 lines 6.47 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.URLCategories = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://help.zscaler.com/zia/about-url-categories) * * [API documentation](https://help.zscaler.com/zia/url-categories#/urlCategories-get) * * The **zia_url_categories** resource creates and manages a new custom URL category. If keywords are included within the request, they will be added to the new category. * * ## 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_url_categories** can be imported by using `<CATEGORY_ID>` or `<CATEGORY_NAME>` as the import ID. * * For example: * * ```sh * $ pulumi import zia:index/uRLCategories:URLCategories example <category_id> * ``` * * or * * ```sh * $ pulumi import zia:index/uRLCategories:URLCategories example <category_name> * ``` * * ⚠️ **NOTE :**: This provider only supports the importing of custom URL categories. The importing of built-in categories is not supported. */ class URLCategories extends pulumi.CustomResource { /** * Get an existing URLCategories 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 URLCategories(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of URLCategories. 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'] === URLCategories.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["categoryId"] = state ? state.categoryId : undefined; resourceInputs["configuredName"] = state ? state.configuredName : undefined; resourceInputs["customCategory"] = state ? state.customCategory : undefined; resourceInputs["customIpRangesCount"] = state ? state.customIpRangesCount : undefined; resourceInputs["customUrlsCount"] = state ? state.customUrlsCount : undefined; resourceInputs["dbCategorizedUrls"] = state ? state.dbCategorizedUrls : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["editable"] = state ? state.editable : undefined; resourceInputs["ipRanges"] = state ? state.ipRanges : undefined; resourceInputs["ipRangesRetainingParentCategories"] = state ? state.ipRangesRetainingParentCategories : undefined; resourceInputs["ipRangesRetainingParentCategoryCount"] = state ? state.ipRangesRetainingParentCategoryCount : undefined; resourceInputs["keywords"] = state ? state.keywords : undefined; resourceInputs["keywordsRetainingParentCategories"] = state ? state.keywordsRetainingParentCategories : undefined; resourceInputs["scopes"] = state ? state.scopes : undefined; resourceInputs["superCategory"] = state ? state.superCategory : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["urlKeywordCounts"] = state ? state.urlKeywordCounts : undefined; resourceInputs["urls"] = state ? state.urls : undefined; resourceInputs["urlsRetainingParentCategoryCount"] = state ? state.urlsRetainingParentCategoryCount : undefined; } else { const args = argsOrState; resourceInputs["configuredName"] = args ? args.configuredName : undefined; resourceInputs["customCategory"] = args ? args.customCategory : undefined; resourceInputs["customIpRangesCount"] = args ? args.customIpRangesCount : undefined; resourceInputs["customUrlsCount"] = args ? args.customUrlsCount : undefined; resourceInputs["dbCategorizedUrls"] = args ? args.dbCategorizedUrls : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["editable"] = args ? args.editable : undefined; resourceInputs["ipRanges"] = args ? args.ipRanges : undefined; resourceInputs["ipRangesRetainingParentCategories"] = args ? args.ipRangesRetainingParentCategories : undefined; resourceInputs["ipRangesRetainingParentCategoryCount"] = args ? args.ipRangesRetainingParentCategoryCount : undefined; resourceInputs["keywords"] = args ? args.keywords : undefined; resourceInputs["keywordsRetainingParentCategories"] = args ? args.keywordsRetainingParentCategories : undefined; resourceInputs["scopes"] = args ? args.scopes : undefined; resourceInputs["superCategory"] = args ? args.superCategory : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["urlKeywordCounts"] = args ? args.urlKeywordCounts : undefined; resourceInputs["urls"] = args ? args.urls : undefined; resourceInputs["urlsRetainingParentCategoryCount"] = args ? args.urlsRetainingParentCategoryCount : undefined; resourceInputs["categoryId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(URLCategories.__pulumiType, name, resourceInputs, opts); } } exports.URLCategories = URLCategories; /** @internal */ URLCategories.__pulumiType = 'zia:index/uRLCategories:URLCategories'; //# sourceMappingURL=urlcategories.js.map