<gh_stars>0// *** 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 IPS sensor.
    /// 
    /// ## Import
    /// 
    /// Ips Sensor can be imported using any of these accepted formats
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/ipsSensor:IpsSensor labelname {{name}}
    /// ```
    /// 
    ///  If you do not want to import arguments of block$ export "FORTIOS_IMPORT_TABLE"="false"
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/ipsSensor:IpsSensor labelname {{name}}
    /// ```
    /// 
    ///  $ unset "FORTIOS_IMPORT_TABLE"
    /// </summary>
    [FortiosResourceType("fortios:index/ipsSensor:IpsSensor")]
    public partial class IpsSensor : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Enable/disable malicious URL blocking. Valid values: `disable`, `enable`.
        /// </summary>
        [Output("blockMaliciousUrl")]
        public Output<string> BlockMaliciousUrl { get; private set; } = null!;

        /// <summary>
        /// Comment.
        /// </summary>
        [Output("comment")]
        public Output<string?> Comment { get; private set; } = null!;

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Output("dynamicSortSubtable")]
        public Output<string?> DynamicSortSubtable { get; private set; } = null!;

        /// <summary>
        /// IPS sensor filter. The structure of `entries` block is documented below.
        /// </summary>
        [Output("entries")]
        public Output<ImmutableArray<Outputs.IpsSensorEntry>> Entries { get; private set; } = null!;

        /// <summary>
        /// Enable/disable extended logging. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("extendedLog")]
        public Output<string> ExtendedLog { get; private set; } = null!;

        /// <summary>
        /// IPS sensor filter. The structure of `filter` block is documented below.
        /// </summary>
        [Output("filters")]
        public Output<ImmutableArray<Outputs.IpsSensorFilter>> Filters { get; private set; } = null!;

        /// <summary>
        /// Sensor name.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// IPS override rule. The structure of `override` block is documented below.
        /// </summary>
        [Output("overrides")]
        public Output<ImmutableArray<Outputs.IpsSensorOverride>> Overrides { get; private set; } = null!;

        /// <summary>
        /// Replacement message group.
        /// </summary>
        [Output("replacemsgGroup")]
        public Output<string> ReplacemsgGroup { get; private set; } = null!;

        /// <summary>
        /// Block or monitor connections to Botnet servers, or disable Botnet scanning. Valid values: `disable`, `block`, `monitor`.
        /// </summary>
        [Output("scanBotnetConnections")]
        public Output<string> ScanBotnetConnections { 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 IpsSensor 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 IpsSensor(string name, IpsSensorArgs? args = null, CustomResourceOptions? options = null)
            : base("fortios:index/ipsSensor:IpsSensor", name, args ?? new IpsSensorArgs(), MakeResourceOptions(options, ""))
        {
        }

        private IpsSensor(string name, Input<string> id, IpsSensorState? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/ipsSensor:IpsSensor", 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 IpsSensor 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 IpsSensor Get(string name, Input<string> id, IpsSensorState? state = null, CustomResourceOptions? options = null)
        {
            return new IpsSensor(name, id, state, options);
        }
    }

    public sealed class IpsSensorArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Enable/disable malicious URL blocking. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("blockMaliciousUrl")]
        public Input<string>? BlockMaliciousUrl { get; set; }

        /// <summary>
        /// Comment.
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Input("dynamicSortSubtable")]
        public Input<string>? DynamicSortSubtable { get; set; }

        [Input("entries")]
        private InputList<Inputs.IpsSensorEntryArgs>? _entries;

        /// <summary>
        /// IPS sensor filter. The structure of `entries` block is documented below.
        /// </summary>
        public InputList<Inputs.IpsSensorEntryArgs> Entries
        {
            get => _entries ?? (_entries = new InputList<Inputs.IpsSensorEntryArgs>());
            set => _entries = value;
        }

        /// <summary>
        /// Enable/disable extended logging. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("extendedLog")]
        public Input<string>? ExtendedLog { get; set; }

        [Input("filters")]
        private InputList<Inputs.IpsSensorFilterArgs>? _filters;

        /// <summary>
        /// IPS sensor filter. The structure of `filter` block is documented below.
        /// </summary>
        public InputList<Inputs.IpsSensorFilterArgs> Filters
        {
            get => _filters ?? (_filters = new InputList<Inputs.IpsSensorFilterArgs>());
            set => _filters = value;
        }

        /// <summary>
        /// Sensor name.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("overrides")]
        private InputList<Inputs.IpsSensorOverrideArgs>? _overrides;

        /// <summary>
        /// IPS override rule. The structure of `override` block is documented below.
        /// </summary>
        public InputList<Inputs.IpsSensorOverrideArgs> Overrides
        {
            get => _overrides ?? (_overrides = new InputList<Inputs.IpsSensorOverrideArgs>());
            set => _overrides = value;
        }

        /// <summary>
        /// Replacement message group.
        /// </summary>
        [Input("replacemsgGroup")]
        public Input<string>? ReplacemsgGroup { get; set; }

        /// <summary>
        /// Block or monitor connections to Botnet servers, or disable Botnet scanning. Valid values: `disable`, `block`, `monitor`.
        /// </summary>
        [Input("scanBotnetConnections")]
        public Input<string>? ScanBotnetConnections { 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 IpsSensorArgs()
        {
        }
        public static new IpsSensorArgs Empty => new IpsSensorArgs();
    }

    public sealed class IpsSensorState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Enable/disable malicious URL blocking. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("blockMaliciousUrl")]
        public Input<string>? BlockMaliciousUrl { get; set; }

        /// <summary>
        /// Comment.
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Input("dynamicSortSubtable")]
        public Input<string>? DynamicSortSubtable { get; set; }

        [Input("entries")]
        private InputList<Inputs.IpsSensorEntryGetArgs>? _entries;

        /// <summary>
        /// IPS sensor filter. The structure of `entries` block is documented below.
        /// </summary>
        public InputList<Inputs.IpsSensorEntryGetArgs> Entries
        {
            get => _entries ?? (_entries = new InputList<Inputs.IpsSensorEntryGetArgs>());
            set => _entries = value;
        }

        /// <summary>
        /// Enable/disable extended logging. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("extendedLog")]
        public Input<string>? ExtendedLog { get; set; }

        [Input("filters")]
        private InputList<Inputs.IpsSensorFilterGetArgs>? _filters;

        /// <summary>
        /// IPS sensor filter. The structure of `filter` block is documented below.
        /// </summary>
        public InputList<Inputs.IpsSensorFilterGetArgs> Filters
        {
            get => _filters ?? (_filters = new InputList<Inputs.IpsSensorFilterGetArgs>());
            set => _filters = value;
        }

        /// <summary>
        /// Sensor name.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("overrides")]
        private InputList<Inputs.IpsSensorOverrideGetArgs>? _overrides;

        /// <summary>
        /// IPS override rule. The structure of `override` block is documented below.
        /// </summary>
        public InputList<Inputs.IpsSensorOverrideGetArgs> Overrides
        {
            get => _overrides ?? (_overrides = new InputList<Inputs.IpsSensorOverrideGetArgs>());
            set => _overrides = value;
        }

        /// <summary>
        /// Replacement message group.
        /// </summary>
        [Input("replacemsgGroup")]
        public Input<string>? ReplacemsgGroup { get; set; }

        /// <summary>
        /// Block or monitor connections to Botnet servers, or disable Botnet scanning. Valid values: `disable`, `block`, `monitor`.
        /// </summary>
        [Input("scanBotnetConnections")]
        public Input<string>? ScanBotnetConnections { 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 IpsSensorState()
        {
        }
        public static new IpsSensorState Empty => new IpsSensorState();
    }
}
