@bdzscaler/pulumi-zia
Version:
A Pulumi package for creating and managing zia cloud resources.
106 lines • 5.81 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.CasbMalwareRules = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* * [Official documentation](https://help.zscaler.com/zia/configuring-data-rest-scanning-malware-detection-policy)
* * [API documentation](https://help.zscaler.com/zia/saas-security-api#/casbMalwareRules-post)
*
* The **zia_casb_malware_rules** resource Adds a new SaaS Security Data at Rest Scanning Malware Detection rule.
*
* ## 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_casb_malware_rules** can be imported by using `<RULE_TYPE:RULE_ID>` or `<RULE_TYPE:RULE_NAME>` as the import ID.
*
* For example:
*
* ```sh
* $ pulumi import zia:index/casbMalwareRules:CasbMalwareRules this <rule_type:rule_id>
* ```
*
* ```sh
* $ pulumi import zia:index/casbMalwareRules:CasbMalwareRules this <"rule_type:rule_name">
* ```
*
* @deprecated zia.index/casbmalwarerules.CasbMalwareRules has been deprecated in favor of zia.index/casbmalwarerule.CasbMalwareRule
*/
class CasbMalwareRules extends pulumi.CustomResource {
/**
* Get an existing CasbMalwareRules 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("CasbMalwareRules is deprecated: zia.index/casbmalwarerules.CasbMalwareRules has been deprecated in favor of zia.index/casbmalwarerule.CasbMalwareRule");
return new CasbMalwareRules(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CasbMalwareRules. 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'] === CasbMalwareRules.__pulumiType;
}
/** @deprecated zia.index/casbmalwarerules.CasbMalwareRules has been deprecated in favor of zia.index/casbmalwarerule.CasbMalwareRule */
constructor(name, argsOrState, opts) {
pulumi.log.warn("CasbMalwareRules is deprecated: zia.index/casbmalwarerules.CasbMalwareRules has been deprecated in favor of zia.index/casbmalwarerule.CasbMalwareRule");
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["action"] = state ? state.action : undefined;
resourceInputs["buckets"] = state ? state.buckets : undefined;
resourceInputs["casbEmailLabels"] = state ? state.casbEmailLabels : undefined;
resourceInputs["casbTombstoneTemplates"] = state ? state.casbTombstoneTemplates : undefined;
resourceInputs["cloudAppTenantIds"] = state ? state.cloudAppTenantIds : undefined;
resourceInputs["cloudAppTenants"] = state ? state.cloudAppTenants : undefined;
resourceInputs["labels"] = state ? state.labels : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["order"] = state ? state.order : undefined;
resourceInputs["quarantineLocation"] = state ? state.quarantineLocation : undefined;
resourceInputs["ruleId"] = state ? state.ruleId : undefined;
resourceInputs["scanInboundEmailLink"] = state ? state.scanInboundEmailLink : undefined;
resourceInputs["state"] = state ? state.state : undefined;
resourceInputs["type"] = state ? state.type : undefined;
}
else {
const args = argsOrState;
resourceInputs["action"] = args ? args.action : undefined;
resourceInputs["buckets"] = args ? args.buckets : undefined;
resourceInputs["casbEmailLabels"] = args ? args.casbEmailLabels : undefined;
resourceInputs["casbTombstoneTemplates"] = args ? args.casbTombstoneTemplates : undefined;
resourceInputs["cloudAppTenantIds"] = args ? args.cloudAppTenantIds : undefined;
resourceInputs["cloudAppTenants"] = args ? args.cloudAppTenants : undefined;
resourceInputs["labels"] = args ? args.labels : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["order"] = args ? args.order : undefined;
resourceInputs["quarantineLocation"] = args ? args.quarantineLocation : undefined;
resourceInputs["scanInboundEmailLink"] = args ? args.scanInboundEmailLink : undefined;
resourceInputs["state"] = args ? args.state : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["ruleId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CasbMalwareRules.__pulumiType, name, resourceInputs, opts);
}
}
exports.CasbMalwareRules = CasbMalwareRules;
/** @internal */
CasbMalwareRules.__pulumiType = 'zia:index/casbMalwareRules:CasbMalwareRules';
//# sourceMappingURL=casbMalwareRules.js.map