@bdzscaler/pulumi-zia
Version:
A Pulumi package for creating and managing zia cloud resources.
106 lines • 6.72 kB
JavaScript
// *** 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.BrowserControlPolicy = 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/browserControlPolicy:BrowserControlPolicy this "browser_settings"
* ```
*
* @deprecated zia.index/browsercontrolpolicy.BrowserControlPolicy has been deprecated in favor of zia.index/browsercontrolsettings.BrowserControlSettings
*/
class BrowserControlPolicy extends pulumi.CustomResource {
/**
* Get an existing BrowserControlPolicy 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) {
pulumi.log.warn("BrowserControlPolicy is deprecated: zia.index/browsercontrolpolicy.BrowserControlPolicy has been deprecated in favor of zia.index/browsercontrolsettings.BrowserControlSettings");
return new BrowserControlPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of BrowserControlPolicy. 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'] === BrowserControlPolicy.__pulumiType;
}
/** @deprecated zia.index/browsercontrolpolicy.BrowserControlPolicy has been deprecated in favor of zia.index/browsercontrolsettings.BrowserControlSettings */
constructor(name, argsOrState, opts) {
pulumi.log.warn("BrowserControlPolicy is deprecated: zia.index/browsercontrolpolicy.BrowserControlPolicy has been deprecated in favor of zia.index/browsercontrolsettings.BrowserControlSettings");
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);
super(BrowserControlPolicy.__pulumiType, name, resourceInputs, opts);
}
}
exports.BrowserControlPolicy = BrowserControlPolicy;
/** @internal */
BrowserControlPolicy.__pulumiType = 'zia:index/browserControlPolicy:BrowserControlPolicy';
//# sourceMappingURL=browserControlPolicy.js.map
;