UNPKG

@pulumiverse/fortios

Version:

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

179 lines 10.2 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.Sniffer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure sniffer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.firewall.Sniffer("trname", { * applicationListStatus: "disable", * avProfileStatus: "disable", * dlpSensorStatus: "disable", * dsri: "disable", * fosid: 1, * "interface": "port4", * ipsDosStatus: "disable", * ipsSensorStatus: "disable", * ipv6: "disable", * logtraffic: "utm", * maxPacketCount: 4000, * nonIp: "enable", * scanBotnetConnections: "disable", * spamfilterProfileStatus: "disable", * status: "enable", * webfilterProfileStatus: "disable", * }); * ``` * * ## Import * * Firewall Sniffer can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:firewall/sniffer:Sniffer labelname {{fosid}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:firewall/sniffer:Sniffer labelname {{fosid}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Sniffer extends pulumi.CustomResource { /** * Get an existing Sniffer 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 Sniffer(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Sniffer. 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'] === Sniffer.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["anomalies"] = state ? state.anomalies : undefined; resourceInputs["applicationList"] = state ? state.applicationList : undefined; resourceInputs["applicationListStatus"] = state ? state.applicationListStatus : undefined; resourceInputs["avProfile"] = state ? state.avProfile : undefined; resourceInputs["avProfileStatus"] = state ? state.avProfileStatus : undefined; resourceInputs["casbProfile"] = state ? state.casbProfile : undefined; resourceInputs["casbProfileStatus"] = state ? state.casbProfileStatus : undefined; resourceInputs["dlpProfile"] = state ? state.dlpProfile : undefined; resourceInputs["dlpProfileStatus"] = state ? state.dlpProfileStatus : undefined; resourceInputs["dlpSensor"] = state ? state.dlpSensor : undefined; resourceInputs["dlpSensorStatus"] = state ? state.dlpSensorStatus : undefined; resourceInputs["dsri"] = state ? state.dsri : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["emailfilterProfile"] = state ? state.emailfilterProfile : undefined; resourceInputs["emailfilterProfileStatus"] = state ? state.emailfilterProfileStatus : undefined; resourceInputs["fileFilterProfile"] = state ? state.fileFilterProfile : undefined; resourceInputs["fileFilterProfileStatus"] = state ? state.fileFilterProfileStatus : undefined; resourceInputs["fosid"] = state ? state.fosid : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["host"] = state ? state.host : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["ipThreatfeedStatus"] = state ? state.ipThreatfeedStatus : undefined; resourceInputs["ipThreatfeeds"] = state ? state.ipThreatfeeds : undefined; resourceInputs["ipsDosStatus"] = state ? state.ipsDosStatus : undefined; resourceInputs["ipsSensor"] = state ? state.ipsSensor : undefined; resourceInputs["ipsSensorStatus"] = state ? state.ipsSensorStatus : undefined; resourceInputs["ipv6"] = state ? state.ipv6 : undefined; resourceInputs["logtraffic"] = state ? state.logtraffic : undefined; resourceInputs["maxPacketCount"] = state ? state.maxPacketCount : undefined; resourceInputs["nonIp"] = state ? state.nonIp : undefined; resourceInputs["port"] = state ? state.port : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["scanBotnetConnections"] = state ? state.scanBotnetConnections : undefined; resourceInputs["spamfilterProfile"] = state ? state.spamfilterProfile : undefined; resourceInputs["spamfilterProfileStatus"] = state ? state.spamfilterProfileStatus : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["uuid"] = state ? state.uuid : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["vlan"] = state ? state.vlan : undefined; resourceInputs["webfilterProfile"] = state ? state.webfilterProfile : undefined; resourceInputs["webfilterProfileStatus"] = state ? state.webfilterProfileStatus : undefined; } else { const args = argsOrState; if ((!args || args.interface === undefined) && !opts.urn) { throw new Error("Missing required property 'interface'"); } resourceInputs["anomalies"] = args ? args.anomalies : undefined; resourceInputs["applicationList"] = args ? args.applicationList : undefined; resourceInputs["applicationListStatus"] = args ? args.applicationListStatus : undefined; resourceInputs["avProfile"] = args ? args.avProfile : undefined; resourceInputs["avProfileStatus"] = args ? args.avProfileStatus : undefined; resourceInputs["casbProfile"] = args ? args.casbProfile : undefined; resourceInputs["casbProfileStatus"] = args ? args.casbProfileStatus : undefined; resourceInputs["dlpProfile"] = args ? args.dlpProfile : undefined; resourceInputs["dlpProfileStatus"] = args ? args.dlpProfileStatus : undefined; resourceInputs["dlpSensor"] = args ? args.dlpSensor : undefined; resourceInputs["dlpSensorStatus"] = args ? args.dlpSensorStatus : undefined; resourceInputs["dsri"] = args ? args.dsri : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["emailfilterProfile"] = args ? args.emailfilterProfile : undefined; resourceInputs["emailfilterProfileStatus"] = args ? args.emailfilterProfileStatus : undefined; resourceInputs["fileFilterProfile"] = args ? args.fileFilterProfile : undefined; resourceInputs["fileFilterProfileStatus"] = args ? args.fileFilterProfileStatus : undefined; resourceInputs["fosid"] = args ? args.fosid : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["host"] = args ? args.host : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["ipThreatfeedStatus"] = args ? args.ipThreatfeedStatus : undefined; resourceInputs["ipThreatfeeds"] = args ? args.ipThreatfeeds : undefined; resourceInputs["ipsDosStatus"] = args ? args.ipsDosStatus : undefined; resourceInputs["ipsSensor"] = args ? args.ipsSensor : undefined; resourceInputs["ipsSensorStatus"] = args ? args.ipsSensorStatus : undefined; resourceInputs["ipv6"] = args ? args.ipv6 : undefined; resourceInputs["logtraffic"] = args ? args.logtraffic : undefined; resourceInputs["maxPacketCount"] = args ? args.maxPacketCount : undefined; resourceInputs["nonIp"] = args ? args.nonIp : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["scanBotnetConnections"] = args ? args.scanBotnetConnections : undefined; resourceInputs["spamfilterProfile"] = args ? args.spamfilterProfile : undefined; resourceInputs["spamfilterProfileStatus"] = args ? args.spamfilterProfileStatus : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["uuid"] = args ? args.uuid : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["vlan"] = args ? args.vlan : undefined; resourceInputs["webfilterProfile"] = args ? args.webfilterProfile : undefined; resourceInputs["webfilterProfileStatus"] = args ? args.webfilterProfileStatus : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Sniffer.__pulumiType, name, resourceInputs, opts); } } exports.Sniffer = Sniffer; /** @internal */ Sniffer.__pulumiType = 'fortios:firewall/sniffer:Sniffer'; //# sourceMappingURL=sniffer.js.map