UNPKG

@pulumiverse/fortios

Version:

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

231 lines 12.1 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.Profile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); /** * Configure Web filter profiles. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.filter.web.Profile("trname", { * extendedLog: "disable", * ftgdWf: { * exemptQuota: "17", * filters: [ * { * action: "warning", * category: 2, * id: 1, * log: "enable", * warnDuration: "5m", * warningDurationType: "timeout", * warningPrompt: "per-category", * }, * { * action: "warning", * category: 7, * id: 2, * log: "enable", * warnDuration: "5m", * warningDurationType: "timeout", * warningPrompt: "per-category", * }, * ], * maxQuotaTimeout: 300, * rateCrlUrls: "enable", * rateCssUrls: "enable", * rateImageUrls: "enable", * rateJavascriptUrls: "enable", * }, * httpsReplacemsg: "enable", * inspectionMode: "flow-based", * logAllUrl: "disable", * override: { * ovrdCookie: "deny", * ovrdDur: "15m", * ovrdDurMode: "constant", * ovrdScope: "user", * profileAttribute: "Login-LAT-Service", * profileType: "list", * }, * postAction: "normal", * web: { * blacklist: "disable", * bwordTable: 0, * bwordThreshold: 10, * contentHeaderList: 0, * logSearch: "disable", * urlfilterTable: 0, * youtubeRestrict: "none", * }, * webContentLog: "enable", * webExtendedAllActionLog: "disable", * webFilterActivexLog: "enable", * webFilterAppletLog: "enable", * webFilterCommandBlockLog: "enable", * webFilterCookieLog: "enable", * webFilterCookieRemovalLog: "enable", * webFilterJsLog: "enable", * webFilterJscriptLog: "enable", * webFilterRefererLog: "enable", * webFilterUnknownLog: "enable", * webFilterVbsLog: "enable", * webFtgdErrLog: "enable", * webFtgdQuotaUsage: "enable", * webInvalidDomainLog: "enable", * webUrlLog: "enable", * wisp: "disable", * wispAlgorithm: "auto-learning", * youtubeChannelStatus: "disable", * }); * ``` * * ## Import * * Webfilter Profile can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:filter/web/profile:Profile labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:filter/web/profile:Profile labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Profile extends pulumi.CustomResource { /** * Get an existing Profile 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 Profile(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Profile. 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'] === Profile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["antiphish"] = state ? state.antiphish : undefined; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["extendedLog"] = state ? state.extendedLog : undefined; resourceInputs["featureSet"] = state ? state.featureSet : undefined; resourceInputs["fileFilter"] = state ? state.fileFilter : undefined; resourceInputs["ftgdWf"] = state ? state.ftgdWf : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["httpsReplacemsg"] = state ? state.httpsReplacemsg : undefined; resourceInputs["inspectionMode"] = state ? state.inspectionMode : undefined; resourceInputs["logAllUrl"] = state ? state.logAllUrl : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["options"] = state ? state.options : undefined; resourceInputs["override"] = state ? state.override : undefined; resourceInputs["ovrdPerm"] = state ? state.ovrdPerm : undefined; resourceInputs["postAction"] = state ? state.postAction : undefined; resourceInputs["replacemsgGroup"] = state ? state.replacemsgGroup : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["web"] = state ? state.web : undefined; resourceInputs["webAntiphishingLog"] = state ? state.webAntiphishingLog : undefined; resourceInputs["webContentLog"] = state ? state.webContentLog : undefined; resourceInputs["webExtendedAllActionLog"] = state ? state.webExtendedAllActionLog : undefined; resourceInputs["webFilterActivexLog"] = state ? state.webFilterActivexLog : undefined; resourceInputs["webFilterAppletLog"] = state ? state.webFilterAppletLog : undefined; resourceInputs["webFilterCommandBlockLog"] = state ? state.webFilterCommandBlockLog : undefined; resourceInputs["webFilterCookieLog"] = state ? state.webFilterCookieLog : undefined; resourceInputs["webFilterCookieRemovalLog"] = state ? state.webFilterCookieRemovalLog : undefined; resourceInputs["webFilterJsLog"] = state ? state.webFilterJsLog : undefined; resourceInputs["webFilterJscriptLog"] = state ? state.webFilterJscriptLog : undefined; resourceInputs["webFilterRefererLog"] = state ? state.webFilterRefererLog : undefined; resourceInputs["webFilterUnknownLog"] = state ? state.webFilterUnknownLog : undefined; resourceInputs["webFilterVbsLog"] = state ? state.webFilterVbsLog : undefined; resourceInputs["webFlowLogEncoding"] = state ? state.webFlowLogEncoding : undefined; resourceInputs["webFtgdErrLog"] = state ? state.webFtgdErrLog : undefined; resourceInputs["webFtgdQuotaUsage"] = state ? state.webFtgdQuotaUsage : undefined; resourceInputs["webInvalidDomainLog"] = state ? state.webInvalidDomainLog : undefined; resourceInputs["webUrlLog"] = state ? state.webUrlLog : undefined; resourceInputs["wisp"] = state ? state.wisp : undefined; resourceInputs["wispAlgorithm"] = state ? state.wispAlgorithm : undefined; resourceInputs["wispServers"] = state ? state.wispServers : undefined; resourceInputs["youtubeChannelFilters"] = state ? state.youtubeChannelFilters : undefined; resourceInputs["youtubeChannelStatus"] = state ? state.youtubeChannelStatus : undefined; } else { const args = argsOrState; resourceInputs["antiphish"] = args ? args.antiphish : undefined; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["extendedLog"] = args ? args.extendedLog : undefined; resourceInputs["featureSet"] = args ? args.featureSet : undefined; resourceInputs["fileFilter"] = args ? args.fileFilter : undefined; resourceInputs["ftgdWf"] = args ? args.ftgdWf : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["httpsReplacemsg"] = args ? args.httpsReplacemsg : undefined; resourceInputs["inspectionMode"] = args ? args.inspectionMode : undefined; resourceInputs["logAllUrl"] = args ? args.logAllUrl : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["options"] = args ? args.options : undefined; resourceInputs["override"] = args ? args.override : undefined; resourceInputs["ovrdPerm"] = args ? args.ovrdPerm : undefined; resourceInputs["postAction"] = args ? args.postAction : undefined; resourceInputs["replacemsgGroup"] = args ? args.replacemsgGroup : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["web"] = args ? args.web : undefined; resourceInputs["webAntiphishingLog"] = args ? args.webAntiphishingLog : undefined; resourceInputs["webContentLog"] = args ? args.webContentLog : undefined; resourceInputs["webExtendedAllActionLog"] = args ? args.webExtendedAllActionLog : undefined; resourceInputs["webFilterActivexLog"] = args ? args.webFilterActivexLog : undefined; resourceInputs["webFilterAppletLog"] = args ? args.webFilterAppletLog : undefined; resourceInputs["webFilterCommandBlockLog"] = args ? args.webFilterCommandBlockLog : undefined; resourceInputs["webFilterCookieLog"] = args ? args.webFilterCookieLog : undefined; resourceInputs["webFilterCookieRemovalLog"] = args ? args.webFilterCookieRemovalLog : undefined; resourceInputs["webFilterJsLog"] = args ? args.webFilterJsLog : undefined; resourceInputs["webFilterJscriptLog"] = args ? args.webFilterJscriptLog : undefined; resourceInputs["webFilterRefererLog"] = args ? args.webFilterRefererLog : undefined; resourceInputs["webFilterUnknownLog"] = args ? args.webFilterUnknownLog : undefined; resourceInputs["webFilterVbsLog"] = args ? args.webFilterVbsLog : undefined; resourceInputs["webFlowLogEncoding"] = args ? args.webFlowLogEncoding : undefined; resourceInputs["webFtgdErrLog"] = args ? args.webFtgdErrLog : undefined; resourceInputs["webFtgdQuotaUsage"] = args ? args.webFtgdQuotaUsage : undefined; resourceInputs["webInvalidDomainLog"] = args ? args.webInvalidDomainLog : undefined; resourceInputs["webUrlLog"] = args ? args.webUrlLog : undefined; resourceInputs["wisp"] = args ? args.wisp : undefined; resourceInputs["wispAlgorithm"] = args ? args.wispAlgorithm : undefined; resourceInputs["wispServers"] = args ? args.wispServers : undefined; resourceInputs["youtubeChannelFilters"] = args ? args.youtubeChannelFilters : undefined; resourceInputs["youtubeChannelStatus"] = args ? args.youtubeChannelStatus : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Profile.__pulumiType, name, resourceInputs, opts); } } exports.Profile = Profile; /** @internal */ Profile.__pulumiType = 'fortios:filter/web/profile:Profile'; //# sourceMappingURL=profile.js.map