UNPKG

@bdzscaler/pulumi-zia

Version:

A Pulumi package for creating and managing zia cloud resources.

151 lines 8.86 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.FirewallDNSRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ### Create Firewall DNS Rules - Redirect Action * * ### Create Firewall DNS Rules - Redirect Request DOH * * ### Create Firewall DNS Rules - Redirect TCP Request * * resource "zia.FirewallDNSRule" "this3" { * name = "Example_DNS_Rule03" * description = "Example_DNS_Rule03" * action = "REDIR_REQ_TCP" * state = "ENABLED" * order = 13 * rank = 7 * destCountries = ["CA", "US"] * sourceCountries = ["CA", "US"] * protocols = ["ANY_RULE"] * dnsGateway { * id = 18207342 * name = "DNS_GW01" * } * } */ class FirewallDNSRule extends pulumi.CustomResource { /** * Get an existing FirewallDNSRule 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 FirewallDNSRule(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of FirewallDNSRule. 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'] === FirewallDNSRule.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["action"] = state ? state.action : undefined; resourceInputs["applicationGroups"] = state ? state.applicationGroups : undefined; resourceInputs["applications"] = state ? state.applications : undefined; resourceInputs["blockResponseCode"] = state ? state.blockResponseCode : undefined; resourceInputs["capturePcap"] = state ? state.capturePcap : undefined; 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["dnsGateway"] = state ? state.dnsGateway : undefined; resourceInputs["dnsRuleRequestTypes"] = state ? state.dnsRuleRequestTypes : undefined; resourceInputs["ednsEcsObject"] = state ? state.ednsEcsObject : 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["order"] = state ? state.order : undefined; resourceInputs["predefined"] = state ? state.predefined : undefined; resourceInputs["protocols"] = state ? state.protocols : undefined; resourceInputs["rank"] = state ? state.rank : undefined; resourceInputs["redirectIp"] = state ? state.redirectIp : undefined; resourceInputs["resCategories"] = state ? state.resCategories : undefined; resourceInputs["ruleId"] = state ? state.ruleId : undefined; resourceInputs["sourceCountries"] = state ? state.sourceCountries : 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; resourceInputs["zpaIpGroup"] = state ? state.zpaIpGroup : undefined; } else { const args = argsOrState; if ((!args || args.order === undefined) && !opts.urn) { throw new Error("Missing required property 'order'"); } resourceInputs["action"] = args ? args.action : undefined; resourceInputs["applicationGroups"] = args ? args.applicationGroups : undefined; resourceInputs["applications"] = args ? args.applications : undefined; resourceInputs["blockResponseCode"] = args ? args.blockResponseCode : undefined; resourceInputs["capturePcap"] = args ? args.capturePcap : undefined; 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["dnsGateway"] = args ? args.dnsGateway : undefined; resourceInputs["dnsRuleRequestTypes"] = args ? args.dnsRuleRequestTypes : undefined; resourceInputs["ednsEcsObject"] = args ? args.ednsEcsObject : 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["order"] = args ? args.order : undefined; resourceInputs["predefined"] = args ? args.predefined : undefined; resourceInputs["protocols"] = args ? args.protocols : undefined; resourceInputs["rank"] = args ? args.rank : undefined; resourceInputs["redirectIp"] = args ? args.redirectIp : undefined; resourceInputs["resCategories"] = args ? args.resCategories : undefined; resourceInputs["sourceCountries"] = args ? args.sourceCountries : 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["zpaIpGroup"] = args ? args.zpaIpGroup : undefined; resourceInputs["ruleId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FirewallDNSRule.__pulumiType, name, resourceInputs, opts); } } exports.FirewallDNSRule = FirewallDNSRule; /** @internal */ FirewallDNSRule.__pulumiType = 'zia:index/firewallDNSRule:FirewallDNSRule'; //# sourceMappingURL=firewallDNSRule.js.map