@bdzscaler/pulumi-zia
Version:
A Pulumi package for creating and managing zia cloud resources.
139 lines • 7.96 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.NatControlRules = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* * [Official documentation](https://help.zscaler.com/zia/about-nat-control)
* * [API documentation](https://help.zscaler.com/zia/nat-control-policy#/dnatRules-get)
*
* The **zia_nat_control_rules** resource allows the creation and management of NAT Control rules in the Zscaler Internet Access.
*
* ## 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_nat_control_rules** can be imported by using `<RULE ID>` or `<RULE NAME>` as the import ID.
*
* For example:
*
* ```sh
* $ pulumi import zia:index/natControlRules:NatControlRules example <rule_id>
* ```
*
* or
*
* ```sh
* $ pulumi import zia:index/natControlRules:NatControlRules example <rule_name>
* ```
*/
class NatControlRules extends pulumi.CustomResource {
/**
* Get an existing NatControlRules 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 NatControlRules(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of NatControlRules. 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'] === NatControlRules.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["defaultRule"] = state ? state.defaultRule : undefined;
resourceInputs["departments"] = state ? state.departments : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["destAddresses"] = state ? state.destAddresses : undefined;
resourceInputs["destCountries"] = state ? state.destCountries : undefined;
resourceInputs["destIpCategories"] = state ? state.destIpCategories : undefined;
resourceInputs["destIpGroups"] = state ? state.destIpGroups : undefined;
resourceInputs["destIpv6Groups"] = state ? state.destIpv6Groups : undefined;
resourceInputs["deviceGroups"] = state ? state.deviceGroups : undefined;
resourceInputs["devices"] = state ? state.devices : undefined;
resourceInputs["enableFullLogging"] = state ? state.enableFullLogging : undefined;
resourceInputs["groups"] = state ? state.groups : undefined;
resourceInputs["labels"] = state ? state.labels : undefined;
resourceInputs["locationGroups"] = state ? state.locationGroups : undefined;
resourceInputs["locations"] = state ? state.locations : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["nwServiceGroups"] = state ? state.nwServiceGroups : undefined;
resourceInputs["nwServices"] = state ? state.nwServices : undefined;
resourceInputs["order"] = state ? state.order : undefined;
resourceInputs["predefined"] = state ? state.predefined : undefined;
resourceInputs["rank"] = state ? state.rank : undefined;
resourceInputs["redirectFqdn"] = state ? state.redirectFqdn : undefined;
resourceInputs["redirectIp"] = state ? state.redirectIp : undefined;
resourceInputs["redirectPort"] = state ? state.redirectPort : undefined;
resourceInputs["resCategories"] = state ? state.resCategories : undefined;
resourceInputs["ruleId"] = state ? state.ruleId : undefined;
resourceInputs["srcIpGroups"] = state ? state.srcIpGroups : undefined;
resourceInputs["srcIps"] = state ? state.srcIps : undefined;
resourceInputs["srcIpv6Groups"] = state ? state.srcIpv6Groups : undefined;
resourceInputs["state"] = state ? state.state : undefined;
resourceInputs["timeWindows"] = state ? state.timeWindows : undefined;
resourceInputs["users"] = state ? state.users : undefined;
}
else {
const args = argsOrState;
resourceInputs["defaultRule"] = args ? args.defaultRule : undefined;
resourceInputs["departments"] = args ? args.departments : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["destAddresses"] = args ? args.destAddresses : undefined;
resourceInputs["destCountries"] = args ? args.destCountries : undefined;
resourceInputs["destIpCategories"] = args ? args.destIpCategories : undefined;
resourceInputs["destIpGroups"] = args ? args.destIpGroups : undefined;
resourceInputs["destIpv6Groups"] = args ? args.destIpv6Groups : undefined;
resourceInputs["deviceGroups"] = args ? args.deviceGroups : undefined;
resourceInputs["devices"] = args ? args.devices : undefined;
resourceInputs["enableFullLogging"] = args ? args.enableFullLogging : undefined;
resourceInputs["groups"] = args ? args.groups : undefined;
resourceInputs["labels"] = args ? args.labels : undefined;
resourceInputs["locationGroups"] = args ? args.locationGroups : undefined;
resourceInputs["locations"] = args ? args.locations : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["nwServiceGroups"] = args ? args.nwServiceGroups : undefined;
resourceInputs["nwServices"] = args ? args.nwServices : undefined;
resourceInputs["order"] = args ? args.order : undefined;
resourceInputs["predefined"] = args ? args.predefined : undefined;
resourceInputs["rank"] = args ? args.rank : undefined;
resourceInputs["redirectFqdn"] = args ? args.redirectFqdn : undefined;
resourceInputs["redirectIp"] = args ? args.redirectIp : undefined;
resourceInputs["redirectPort"] = args ? args.redirectPort : undefined;
resourceInputs["resCategories"] = args ? args.resCategories : undefined;
resourceInputs["srcIpGroups"] = args ? args.srcIpGroups : undefined;
resourceInputs["srcIps"] = args ? args.srcIps : undefined;
resourceInputs["srcIpv6Groups"] = args ? args.srcIpv6Groups : undefined;
resourceInputs["state"] = args ? args.state : undefined;
resourceInputs["timeWindows"] = args ? args.timeWindows : undefined;
resourceInputs["users"] = args ? args.users : undefined;
resourceInputs["ruleId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(NatControlRules.__pulumiType, name, resourceInputs, opts);
}
}
exports.NatControlRules = NatControlRules;
/** @internal */
NatControlRules.__pulumiType = 'zia:index/natControlRules:NatControlRules';
//# sourceMappingURL=natControlRules.js.map
;