UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

258 lines (257 loc) 11.9 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * * [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 */ export declare 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: string, id: pulumi.Input<pulumi.ID>, state?: BrowserControlPolicyState, opts?: pulumi.CustomResourceOptions): BrowserControlPolicy; /** * 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: any): obj is BrowserControlPolicy; /** * A Boolean value that specifies whether or not to allow all the browsers and their respective versions access to the * internet */ readonly allowAllBrowsers: pulumi.Output<boolean>; /** * Versions of Google Chrome browser that need to be blocked. If not set, all Google Chrome versions are allowed. */ readonly blockedChromeVersions: pulumi.Output<string[]>; /** * Versions of Mozilla Firefox browser that need to be blocked. If not set, all Mozilla Firefox versions are allowed. */ readonly blockedFirefoxVersions: pulumi.Output<string[]>; /** * Versions of Microsoft browser that need to be blocked. If not set, all Microsoft browser versions are allowed. */ readonly blockedInternetExplorerVersions: pulumi.Output<string[]>; /** * Versions of Opera browser that need to be blocked. If not set, all Opera versions are allowed */ readonly blockedOperaVersions: pulumi.Output<string[]>; /** * Versions of Apple Safari browser that need to be blocked. If not set, all Apple Safari versions are allowed */ readonly blockedSafariVersions: pulumi.Output<string[]>; /** * If set to true, all the browsers are bypassed for warnings */ readonly bypassAllBrowsers: pulumi.Output<boolean>; /** * List of applications that need to be bypassed for warnings. This attribute has effect only if the 'enableWarnings' * attribute is set to true. If not set, all vulnerable applications are warned */ readonly bypassApplications: pulumi.Output<string[]>; /** * List of plugins that need to be bypassed for warnings. This attribute has effect only if the 'enableWarnings' attribute * is set to true. If not set, all vulnerable plugins are warned */ readonly bypassPlugins: pulumi.Output<string[]>; /** * A Boolean value that specifies if Smart Browser Isolation is enabled */ readonly enableSmartBrowserIsolation: pulumi.Output<boolean>; /** * A Boolean value that specifies if the warnings are enabled */ readonly enableWarnings: pulumi.Output<boolean>; /** * Specifies how frequently the service checks browsers and relevant applications to warn users regarding outdated or * vulnerable browsers, plugins, and applications. If not set, the warnings are disabled */ readonly pluginCheckFrequency: pulumi.Output<string | undefined>; /** * Name-ID pairs of groups for which the rule is applied */ readonly smartIsolationGroups: pulumi.Output<outputs.BrowserControlPolicySmartIsolationGroups | undefined>; /** * The isolation profile */ readonly smartIsolationProfiles: pulumi.Output<outputs.BrowserControlPolicySmartIsolationProfile[]>; /** * Name-ID pairs of users for which the rule is applied */ readonly smartIsolationUsers: pulumi.Output<outputs.BrowserControlPolicySmartIsolationUsers | undefined>; /** * Create a BrowserControlPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ /** @deprecated zia.index/browsercontrolpolicy.BrowserControlPolicy has been deprecated in favor of zia.index/browsercontrolsettings.BrowserControlSettings */ constructor(name: string, args?: BrowserControlPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BrowserControlPolicy resources. */ export interface BrowserControlPolicyState { /** * A Boolean value that specifies whether or not to allow all the browsers and their respective versions access to the * internet */ allowAllBrowsers?: pulumi.Input<boolean>; /** * Versions of Google Chrome browser that need to be blocked. If not set, all Google Chrome versions are allowed. */ blockedChromeVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Mozilla Firefox browser that need to be blocked. If not set, all Mozilla Firefox versions are allowed. */ blockedFirefoxVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Microsoft browser that need to be blocked. If not set, all Microsoft browser versions are allowed. */ blockedInternetExplorerVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Opera browser that need to be blocked. If not set, all Opera versions are allowed */ blockedOperaVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Apple Safari browser that need to be blocked. If not set, all Apple Safari versions are allowed */ blockedSafariVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * If set to true, all the browsers are bypassed for warnings */ bypassAllBrowsers?: pulumi.Input<boolean>; /** * List of applications that need to be bypassed for warnings. This attribute has effect only if the 'enableWarnings' * attribute is set to true. If not set, all vulnerable applications are warned */ bypassApplications?: pulumi.Input<pulumi.Input<string>[]>; /** * List of plugins that need to be bypassed for warnings. This attribute has effect only if the 'enableWarnings' attribute * is set to true. If not set, all vulnerable plugins are warned */ bypassPlugins?: pulumi.Input<pulumi.Input<string>[]>; /** * A Boolean value that specifies if Smart Browser Isolation is enabled */ enableSmartBrowserIsolation?: pulumi.Input<boolean>; /** * A Boolean value that specifies if the warnings are enabled */ enableWarnings?: pulumi.Input<boolean>; /** * Specifies how frequently the service checks browsers and relevant applications to warn users regarding outdated or * vulnerable browsers, plugins, and applications. If not set, the warnings are disabled */ pluginCheckFrequency?: pulumi.Input<string>; /** * Name-ID pairs of groups for which the rule is applied */ smartIsolationGroups?: pulumi.Input<inputs.BrowserControlPolicySmartIsolationGroups>; /** * The isolation profile */ smartIsolationProfiles?: pulumi.Input<pulumi.Input<inputs.BrowserControlPolicySmartIsolationProfile>[]>; /** * Name-ID pairs of users for which the rule is applied */ smartIsolationUsers?: pulumi.Input<inputs.BrowserControlPolicySmartIsolationUsers>; } /** * The set of arguments for constructing a BrowserControlPolicy resource. */ export interface BrowserControlPolicyArgs { /** * A Boolean value that specifies whether or not to allow all the browsers and their respective versions access to the * internet */ allowAllBrowsers?: pulumi.Input<boolean>; /** * Versions of Google Chrome browser that need to be blocked. If not set, all Google Chrome versions are allowed. */ blockedChromeVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Mozilla Firefox browser that need to be blocked. If not set, all Mozilla Firefox versions are allowed. */ blockedFirefoxVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Microsoft browser that need to be blocked. If not set, all Microsoft browser versions are allowed. */ blockedInternetExplorerVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Opera browser that need to be blocked. If not set, all Opera versions are allowed */ blockedOperaVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * Versions of Apple Safari browser that need to be blocked. If not set, all Apple Safari versions are allowed */ blockedSafariVersions?: pulumi.Input<pulumi.Input<string>[]>; /** * If set to true, all the browsers are bypassed for warnings */ bypassAllBrowsers?: pulumi.Input<boolean>; /** * List of applications that need to be bypassed for warnings. This attribute has effect only if the 'enableWarnings' * attribute is set to true. If not set, all vulnerable applications are warned */ bypassApplications?: pulumi.Input<pulumi.Input<string>[]>; /** * List of plugins that need to be bypassed for warnings. This attribute has effect only if the 'enableWarnings' attribute * is set to true. If not set, all vulnerable plugins are warned */ bypassPlugins?: pulumi.Input<pulumi.Input<string>[]>; /** * A Boolean value that specifies if Smart Browser Isolation is enabled */ enableSmartBrowserIsolation?: pulumi.Input<boolean>; /** * A Boolean value that specifies if the warnings are enabled */ enableWarnings?: pulumi.Input<boolean>; /** * Specifies how frequently the service checks browsers and relevant applications to warn users regarding outdated or * vulnerable browsers, plugins, and applications. If not set, the warnings are disabled */ pluginCheckFrequency?: pulumi.Input<string>; /** * Name-ID pairs of groups for which the rule is applied */ smartIsolationGroups?: pulumi.Input<inputs.BrowserControlPolicySmartIsolationGroups>; /** * The isolation profile */ smartIsolationProfiles?: pulumi.Input<pulumi.Input<inputs.BrowserControlPolicySmartIsolationProfile>[]>; /** * Name-ID pairs of users for which the rule is applied */ smartIsolationUsers?: pulumi.Input<inputs.BrowserControlPolicySmartIsolationUsers>; }