// *** 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! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios
{
    /// <summary>
    /// Configure AntiVirus settings.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Fortios = Pulumiverse.Fortios;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var trname = new Fortios.AntivirusSettings("trname", new()
    ///     {
    ///         DefaultDb = "extended",
    ///         Grayware = "enable",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Antivirus Settings can be imported using any of these accepted formats
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/antivirusSettings:AntivirusSettings labelname AntivirusSettings
    /// ```
    /// 
    ///  If you do not want to import arguments of block$ export "FORTIOS_IMPORT_TABLE"="false"
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/antivirusSettings:AntivirusSettings labelname AntivirusSettings
    /// ```
    /// 
    ///  $ unset "FORTIOS_IMPORT_TABLE"
    /// </summary>
    [FortiosResourceType("fortios:index/antivirusSettings:AntivirusSettings")]
    public partial class AntivirusSettings : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Enable/disable cache of clean scan results (default = enable). Valid values: `enable`, `disable`.
        /// </summary>
        [Output("cacheCleanResult")]
        public Output<string> CacheCleanResult { get; private set; } = null!;

        /// <summary>
        /// Enable/disable cache of infected scan results (default = enable). Valid values: `enable`, `disable`.
        /// </summary>
        [Output("cacheInfectedResult")]
        public Output<string> CacheInfectedResult { get; private set; } = null!;

        /// <summary>
        /// Select the AV database to be used for AV scanning. Valid values: `normal`, `extended`, `extreme`.
        /// </summary>
        [Output("defaultDb")]
        public Output<string> DefaultDb { get; private set; } = null!;

        /// <summary>
        /// Enable/disable grayware detection when an AntiVirus profile is applied to traffic. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("grayware")]
        public Output<string> Grayware { get; private set; } = null!;

        /// <summary>
        /// Use machine learning based malware detection. Valid values: `enable`, `monitor`, `disable`.
        /// </summary>
        [Output("machineLearningDetection")]
        public Output<string> MachineLearningDetection { get; private set; } = null!;

        /// <summary>
        /// Override the large file scan timeout value in seconds (30 - 3600). Zero is the default value and is used to disable this command. When disabled, the daemon adjusts the large file scan timeout based on the file size.
        /// </summary>
        [Output("overrideTimeout")]
        public Output<int> OverrideTimeout { get; private set; } = null!;

        /// <summary>
        /// Enable/disable the use of Extreme AVDB. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("useExtremeDb")]
        public Output<string> UseExtremeDb { get; private set; } = null!;

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Output("vdomparam")]
        public Output<string?> Vdomparam { get; private set; } = null!;


        /// <summary>
        /// Create a AntivirusSettings resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public AntivirusSettings(string name, AntivirusSettingsArgs? args = null, CustomResourceOptions? options = null)
            : base("fortios:index/antivirusSettings:AntivirusSettings", name, args ?? new AntivirusSettingsArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AntivirusSettings(string name, Input<string> id, AntivirusSettingsState? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/antivirusSettings:AntivirusSettings", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/pulumiverse/pulumi-fortios",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing AntivirusSettings resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static AntivirusSettings Get(string name, Input<string> id, AntivirusSettingsState? state = null, CustomResourceOptions? options = null)
        {
            return new AntivirusSettings(name, id, state, options);
        }
    }

    public sealed class AntivirusSettingsArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Enable/disable cache of clean scan results (default = enable). Valid values: `enable`, `disable`.
        /// </summary>
        [Input("cacheCleanResult")]
        public Input<string>? CacheCleanResult { get; set; }

        /// <summary>
        /// Enable/disable cache of infected scan results (default = enable). Valid values: `enable`, `disable`.
        /// </summary>
        [Input("cacheInfectedResult")]
        public Input<string>? CacheInfectedResult { get; set; }

        /// <summary>
        /// Select the AV database to be used for AV scanning. Valid values: `normal`, `extended`, `extreme`.
        /// </summary>
        [Input("defaultDb")]
        public Input<string>? DefaultDb { get; set; }

        /// <summary>
        /// Enable/disable grayware detection when an AntiVirus profile is applied to traffic. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("grayware")]
        public Input<string>? Grayware { get; set; }

        /// <summary>
        /// Use machine learning based malware detection. Valid values: `enable`, `monitor`, `disable`.
        /// </summary>
        [Input("machineLearningDetection")]
        public Input<string>? MachineLearningDetection { get; set; }

        /// <summary>
        /// Override the large file scan timeout value in seconds (30 - 3600). Zero is the default value and is used to disable this command. When disabled, the daemon adjusts the large file scan timeout based on the file size.
        /// </summary>
        [Input("overrideTimeout")]
        public Input<int>? OverrideTimeout { get; set; }

        /// <summary>
        /// Enable/disable the use of Extreme AVDB. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("useExtremeDb")]
        public Input<string>? UseExtremeDb { get; set; }

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Input("vdomparam")]
        public Input<string>? Vdomparam { get; set; }

        public AntivirusSettingsArgs()
        {
        }
        public static new AntivirusSettingsArgs Empty => new AntivirusSettingsArgs();
    }

    public sealed class AntivirusSettingsState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Enable/disable cache of clean scan results (default = enable). Valid values: `enable`, `disable`.
        /// </summary>
        [Input("cacheCleanResult")]
        public Input<string>? CacheCleanResult { get; set; }

        /// <summary>
        /// Enable/disable cache of infected scan results (default = enable). Valid values: `enable`, `disable`.
        /// </summary>
        [Input("cacheInfectedResult")]
        public Input<string>? CacheInfectedResult { get; set; }

        /// <summary>
        /// Select the AV database to be used for AV scanning. Valid values: `normal`, `extended`, `extreme`.
        /// </summary>
        [Input("defaultDb")]
        public Input<string>? DefaultDb { get; set; }

        /// <summary>
        /// Enable/disable grayware detection when an AntiVirus profile is applied to traffic. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("grayware")]
        public Input<string>? Grayware { get; set; }

        /// <summary>
        /// Use machine learning based malware detection. Valid values: `enable`, `monitor`, `disable`.
        /// </summary>
        [Input("machineLearningDetection")]
        public Input<string>? MachineLearningDetection { get; set; }

        /// <summary>
        /// Override the large file scan timeout value in seconds (30 - 3600). Zero is the default value and is used to disable this command. When disabled, the daemon adjusts the large file scan timeout based on the file size.
        /// </summary>
        [Input("overrideTimeout")]
        public Input<int>? OverrideTimeout { get; set; }

        /// <summary>
        /// Enable/disable the use of Extreme AVDB. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("useExtremeDb")]
        public Input<string>? UseExtremeDb { get; set; }

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Input("vdomparam")]
        public Input<string>? Vdomparam { get; set; }

        public AntivirusSettingsState()
        {
        }
        public static new AntivirusSettingsState Empty => new AntivirusSettingsState();
    }
}
