UNPKG

@pulumiverse/fortios

Version:

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

164 lines 9.65 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.Setting = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure alert email settings. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.alertemail.Setting("trname", { * adminLoginLogs: "disable", * alertInterval: 2, * amcInterfaceBypassMode: "disable", * antivirusLogs: "disable", * configurationChangesLogs: "disable", * criticalInterval: 3, * debugInterval: 60, * emailInterval: 5, * emergencyInterval: 1, * errorInterval: 5, * fdsLicenseExpiringDays: 15, * informationInterval: 30, * }); * ``` * * ## Import * * Alertemail Setting can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:alertemail/setting:Setting labelname AlertemailSetting * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:alertemail/setting:Setting labelname AlertemailSetting * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Setting extends pulumi.CustomResource { /** * Get an existing Setting 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 Setting(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Setting. 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'] === Setting.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["adminLoginLogs"] = state ? state.adminLoginLogs : undefined; resourceInputs["alertInterval"] = state ? state.alertInterval : undefined; resourceInputs["amcInterfaceBypassMode"] = state ? state.amcInterfaceBypassMode : undefined; resourceInputs["antivirusLogs"] = state ? state.antivirusLogs : undefined; resourceInputs["configurationChangesLogs"] = state ? state.configurationChangesLogs : undefined; resourceInputs["criticalInterval"] = state ? state.criticalInterval : undefined; resourceInputs["debugInterval"] = state ? state.debugInterval : undefined; resourceInputs["emailInterval"] = state ? state.emailInterval : undefined; resourceInputs["emergencyInterval"] = state ? state.emergencyInterval : undefined; resourceInputs["errorInterval"] = state ? state.errorInterval : undefined; resourceInputs["fdsLicenseExpiringDays"] = state ? state.fdsLicenseExpiringDays : undefined; resourceInputs["fdsLicenseExpiringWarning"] = state ? state.fdsLicenseExpiringWarning : undefined; resourceInputs["fdsUpdateLogs"] = state ? state.fdsUpdateLogs : undefined; resourceInputs["filterMode"] = state ? state.filterMode : undefined; resourceInputs["fipsCcErrors"] = state ? state.fipsCcErrors : undefined; resourceInputs["firewallAuthenticationFailureLogs"] = state ? state.firewallAuthenticationFailureLogs : undefined; resourceInputs["fortiguardLogQuotaWarning"] = state ? state.fortiguardLogQuotaWarning : undefined; resourceInputs["fssoDisconnectLogs"] = state ? state.fssoDisconnectLogs : undefined; resourceInputs["haLogs"] = state ? state.haLogs : undefined; resourceInputs["informationInterval"] = state ? state.informationInterval : undefined; resourceInputs["ipsLogs"] = state ? state.ipsLogs : undefined; resourceInputs["ipsecErrorsLogs"] = state ? state.ipsecErrorsLogs : undefined; resourceInputs["localDiskUsage"] = state ? state.localDiskUsage : undefined; resourceInputs["logDiskUsageWarning"] = state ? state.logDiskUsageWarning : undefined; resourceInputs["mailto1"] = state ? state.mailto1 : undefined; resourceInputs["mailto2"] = state ? state.mailto2 : undefined; resourceInputs["mailto3"] = state ? state.mailto3 : undefined; resourceInputs["notificationInterval"] = state ? state.notificationInterval : undefined; resourceInputs["pppErrorsLogs"] = state ? state.pppErrorsLogs : undefined; resourceInputs["severity"] = state ? state.severity : undefined; resourceInputs["sshLogs"] = state ? state.sshLogs : undefined; resourceInputs["sslvpnAuthenticationErrorsLogs"] = state ? state.sslvpnAuthenticationErrorsLogs : undefined; resourceInputs["username"] = state ? state.username : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["violationTrafficLogs"] = state ? state.violationTrafficLogs : undefined; resourceInputs["warningInterval"] = state ? state.warningInterval : undefined; resourceInputs["webfilterLogs"] = state ? state.webfilterLogs : undefined; } else { const args = argsOrState; resourceInputs["adminLoginLogs"] = args ? args.adminLoginLogs : undefined; resourceInputs["alertInterval"] = args ? args.alertInterval : undefined; resourceInputs["amcInterfaceBypassMode"] = args ? args.amcInterfaceBypassMode : undefined; resourceInputs["antivirusLogs"] = args ? args.antivirusLogs : undefined; resourceInputs["configurationChangesLogs"] = args ? args.configurationChangesLogs : undefined; resourceInputs["criticalInterval"] = args ? args.criticalInterval : undefined; resourceInputs["debugInterval"] = args ? args.debugInterval : undefined; resourceInputs["emailInterval"] = args ? args.emailInterval : undefined; resourceInputs["emergencyInterval"] = args ? args.emergencyInterval : undefined; resourceInputs["errorInterval"] = args ? args.errorInterval : undefined; resourceInputs["fdsLicenseExpiringDays"] = args ? args.fdsLicenseExpiringDays : undefined; resourceInputs["fdsLicenseExpiringWarning"] = args ? args.fdsLicenseExpiringWarning : undefined; resourceInputs["fdsUpdateLogs"] = args ? args.fdsUpdateLogs : undefined; resourceInputs["filterMode"] = args ? args.filterMode : undefined; resourceInputs["fipsCcErrors"] = args ? args.fipsCcErrors : undefined; resourceInputs["firewallAuthenticationFailureLogs"] = args ? args.firewallAuthenticationFailureLogs : undefined; resourceInputs["fortiguardLogQuotaWarning"] = args ? args.fortiguardLogQuotaWarning : undefined; resourceInputs["fssoDisconnectLogs"] = args ? args.fssoDisconnectLogs : undefined; resourceInputs["haLogs"] = args ? args.haLogs : undefined; resourceInputs["informationInterval"] = args ? args.informationInterval : undefined; resourceInputs["ipsLogs"] = args ? args.ipsLogs : undefined; resourceInputs["ipsecErrorsLogs"] = args ? args.ipsecErrorsLogs : undefined; resourceInputs["localDiskUsage"] = args ? args.localDiskUsage : undefined; resourceInputs["logDiskUsageWarning"] = args ? args.logDiskUsageWarning : undefined; resourceInputs["mailto1"] = args ? args.mailto1 : undefined; resourceInputs["mailto2"] = args ? args.mailto2 : undefined; resourceInputs["mailto3"] = args ? args.mailto3 : undefined; resourceInputs["notificationInterval"] = args ? args.notificationInterval : undefined; resourceInputs["pppErrorsLogs"] = args ? args.pppErrorsLogs : undefined; resourceInputs["severity"] = args ? args.severity : undefined; resourceInputs["sshLogs"] = args ? args.sshLogs : undefined; resourceInputs["sslvpnAuthenticationErrorsLogs"] = args ? args.sslvpnAuthenticationErrorsLogs : undefined; resourceInputs["username"] = args ? args.username : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["violationTrafficLogs"] = args ? args.violationTrafficLogs : undefined; resourceInputs["warningInterval"] = args ? args.warningInterval : undefined; resourceInputs["webfilterLogs"] = args ? args.webfilterLogs : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Setting.__pulumiType, name, resourceInputs, opts); } } exports.Setting = Setting; /** @internal */ Setting.__pulumiType = 'fortios:alertemail/setting:Setting'; //# sourceMappingURL=setting.js.map