UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

103 lines 6.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.BrowserControlSettings = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://help.zscaler.com/zia/configuring-browser-control-policy) * * [API documentation](https://help.zscaler.com/zia/browser-control-policy#/browserControlSettings-get) * * The **zia_browser_control_policy** resource allows you to update the malware protection policy configuration details. To learn more see [Configuring the Browser Control Policy](https://help.zscaler.com/zia/configuring-browser-control-policy) * * ## Example Usage * * ### Enable Smart Isolation * * ## 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_browser_control_policy** can be imported by using `browser_settings` as the import ID. * * For example: * * ```sh * $ pulumi import zia:index/browserControlSettings:BrowserControlSettings this "browser_settings" * ``` */ class BrowserControlSettings extends pulumi.CustomResource { /** * Get an existing BrowserControlSettings 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 BrowserControlSettings(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of BrowserControlSettings. 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'] === BrowserControlSettings.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["allowAllBrowsers"] = state ? state.allowAllBrowsers : undefined; resourceInputs["blockedChromeVersions"] = state ? state.blockedChromeVersions : undefined; resourceInputs["blockedFirefoxVersions"] = state ? state.blockedFirefoxVersions : undefined; resourceInputs["blockedInternetExplorerVersions"] = state ? state.blockedInternetExplorerVersions : undefined; resourceInputs["blockedOperaVersions"] = state ? state.blockedOperaVersions : undefined; resourceInputs["blockedSafariVersions"] = state ? state.blockedSafariVersions : undefined; resourceInputs["bypassAllBrowsers"] = state ? state.bypassAllBrowsers : undefined; resourceInputs["bypassApplications"] = state ? state.bypassApplications : undefined; resourceInputs["bypassPlugins"] = state ? state.bypassPlugins : undefined; resourceInputs["enableSmartBrowserIsolation"] = state ? state.enableSmartBrowserIsolation : undefined; resourceInputs["enableWarnings"] = state ? state.enableWarnings : undefined; resourceInputs["pluginCheckFrequency"] = state ? state.pluginCheckFrequency : undefined; resourceInputs["smartIsolationGroups"] = state ? state.smartIsolationGroups : undefined; resourceInputs["smartIsolationProfiles"] = state ? state.smartIsolationProfiles : undefined; resourceInputs["smartIsolationUsers"] = state ? state.smartIsolationUsers : undefined; } else { const args = argsOrState; resourceInputs["allowAllBrowsers"] = args ? args.allowAllBrowsers : undefined; resourceInputs["blockedChromeVersions"] = args ? args.blockedChromeVersions : undefined; resourceInputs["blockedFirefoxVersions"] = args ? args.blockedFirefoxVersions : undefined; resourceInputs["blockedInternetExplorerVersions"] = args ? args.blockedInternetExplorerVersions : undefined; resourceInputs["blockedOperaVersions"] = args ? args.blockedOperaVersions : undefined; resourceInputs["blockedSafariVersions"] = args ? args.blockedSafariVersions : undefined; resourceInputs["bypassAllBrowsers"] = args ? args.bypassAllBrowsers : undefined; resourceInputs["bypassApplications"] = args ? args.bypassApplications : undefined; resourceInputs["bypassPlugins"] = args ? args.bypassPlugins : undefined; resourceInputs["enableSmartBrowserIsolation"] = args ? args.enableSmartBrowserIsolation : undefined; resourceInputs["enableWarnings"] = args ? args.enableWarnings : undefined; resourceInputs["pluginCheckFrequency"] = args ? args.pluginCheckFrequency : undefined; resourceInputs["smartIsolationGroups"] = args ? args.smartIsolationGroups : undefined; resourceInputs["smartIsolationProfiles"] = args ? args.smartIsolationProfiles : undefined; resourceInputs["smartIsolationUsers"] = args ? args.smartIsolationUsers : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const aliasOpts = { aliases: [{ type: "zia:index/browserControlPolicy:BrowserControlPolicy" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(BrowserControlSettings.__pulumiType, name, resourceInputs, opts); } } exports.BrowserControlSettings = BrowserControlSettings; /** @internal */ BrowserControlSettings.__pulumiType = 'zia:index/browserControlSettings:BrowserControlSettings'; //# sourceMappingURL=browserControlSettings.js.map