UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

129 lines 6.14 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Filter = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); /** * Filters for null device logging. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.log.nulldevice.Filter("trname", { * anomaly: "enable", * dns: "enable", * filterType: "include", * forwardTraffic: "enable", * gtp: "enable", * localTraffic: "enable", * multicastTraffic: "enable", * severity: "information", * snifferTraffic: "enable", * ssh: "enable", * voip: "enable", * }); * ``` * * ## Import * * LogNullDevice Filter can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:log/nulldevice/filter:Filter labelname LogNullDeviceFilter * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:log/nulldevice/filter:Filter labelname LogNullDeviceFilter * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Filter extends pulumi.CustomResource { /** * Get an existing Filter 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 Filter(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Filter. 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'] === Filter.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["anomaly"] = state ? state.anomaly : undefined; resourceInputs["dns"] = state ? state.dns : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["filter"] = state ? state.filter : undefined; resourceInputs["filterType"] = state ? state.filterType : undefined; resourceInputs["fortiSwitch"] = state ? state.fortiSwitch : undefined; resourceInputs["forwardTraffic"] = state ? state.forwardTraffic : undefined; resourceInputs["freeStyles"] = state ? state.freeStyles : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["gtp"] = state ? state.gtp : undefined; resourceInputs["localTraffic"] = state ? state.localTraffic : undefined; resourceInputs["multicastTraffic"] = state ? state.multicastTraffic : undefined; resourceInputs["netscanDiscovery"] = state ? state.netscanDiscovery : undefined; resourceInputs["netscanVulnerability"] = state ? state.netscanVulnerability : undefined; resourceInputs["severity"] = state ? state.severity : undefined; resourceInputs["snifferTraffic"] = state ? state.snifferTraffic : undefined; resourceInputs["ssh"] = state ? state.ssh : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["voip"] = state ? state.voip : undefined; resourceInputs["ztnaTraffic"] = state ? state.ztnaTraffic : undefined; } else { const args = argsOrState; resourceInputs["anomaly"] = args ? args.anomaly : undefined; resourceInputs["dns"] = args ? args.dns : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["filter"] = args ? args.filter : undefined; resourceInputs["filterType"] = args ? args.filterType : undefined; resourceInputs["fortiSwitch"] = args ? args.fortiSwitch : undefined; resourceInputs["forwardTraffic"] = args ? args.forwardTraffic : undefined; resourceInputs["freeStyles"] = args ? args.freeStyles : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["gtp"] = args ? args.gtp : undefined; resourceInputs["localTraffic"] = args ? args.localTraffic : undefined; resourceInputs["multicastTraffic"] = args ? args.multicastTraffic : undefined; resourceInputs["netscanDiscovery"] = args ? args.netscanDiscovery : undefined; resourceInputs["netscanVulnerability"] = args ? args.netscanVulnerability : undefined; resourceInputs["severity"] = args ? args.severity : undefined; resourceInputs["snifferTraffic"] = args ? args.snifferTraffic : undefined; resourceInputs["ssh"] = args ? args.ssh : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["voip"] = args ? args.voip : undefined; resourceInputs["ztnaTraffic"] = args ? args.ztnaTraffic : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Filter.__pulumiType, name, resourceInputs, opts); } } exports.Filter = Filter; /** @internal */ Filter.__pulumiType = 'fortios:log/nulldevice/filter:Filter'; //# sourceMappingURL=filter.js.map