<filename>sdk/dotnet/FirewallProxyaddress.cs// *** 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>
    /// Web proxy address configuration.
    /// 
    /// ## 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.FirewallProxyaddress("trname", new()
    ///     {
    ///         CaseSensitivity = "disable",
    ///         Color = 2,
    ///         Referrer = "enable",
    ///         Type = "host-regex",
    ///         Visibility = "enable",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Firewall ProxyAddress can be imported using any of these accepted formats
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/firewallProxyaddress:FirewallProxyaddress labelname {{name}}
    /// ```
    /// 
    ///  If you do not want to import arguments of block$ export "FORTIOS_IMPORT_TABLE"="false"
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/firewallProxyaddress:FirewallProxyaddress labelname {{name}}
    /// ```
    /// 
    ///  $ unset "FORTIOS_IMPORT_TABLE"
    /// </summary>
    [FortiosResourceType("fortios:index/firewallProxyaddress:FirewallProxyaddress")]
    public partial class FirewallProxyaddress : global::Pulumi.CustomResource
    {
        /// <summary>
        /// SaaS application. The structure of `application` block is documented below.
        /// </summary>
        [Output("applications")]
        public Output<ImmutableArray<Outputs.FirewallProxyaddressApplication>> Applications { get; private set; } = null!;

        /// <summary>
        /// Enable to make the pattern case sensitive. Valid values: `disable`, `enable`.
        /// </summary>
        [Output("caseSensitivity")]
        public Output<string> CaseSensitivity { get; private set; } = null!;

        /// <summary>
        /// FortiGuard category ID. The structure of `category` block is documented below.
        /// </summary>
        [Output("categories")]
        public Output<ImmutableArray<Outputs.FirewallProxyaddressCategory>> Categories { get; private set; } = null!;

        /// <summary>
        /// Integer value to determine the color of the icon in the GUI (1 - 32, default = 0, which sets value to 1).
        /// </summary>
        [Output("color")]
        public Output<int> Color { get; private set; } = null!;

        /// <summary>
        /// Optional comments.
        /// </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>
        /// HTTP header name as a regular expression.
        /// </summary>
        [Output("header")]
        public Output<string> Header { get; private set; } = null!;

        /// <summary>
        /// HTTP header group. The structure of `header_group` block is documented below.
        /// </summary>
        [Output("headerGroups")]
        public Output<ImmutableArray<Outputs.FirewallProxyaddressHeaderGroup>> HeaderGroups { get; private set; } = null!;

        /// <summary>
        /// Name of HTTP header.
        /// </summary>
        [Output("headerName")]
        public Output<string> HeaderName { get; private set; } = null!;

        /// <summary>
        /// Address object for the host.
        /// </summary>
        [Output("host")]
        public Output<string> Host { get; private set; } = null!;

        /// <summary>
        /// Host name as a regular expression.
        /// </summary>
        [Output("hostRegex")]
        public Output<string> HostRegex { get; private set; } = null!;

        /// <summary>
        /// HTTP request methods to be used. Valid values: `get`, `post`, `put`, `head`, `connect`, `trace`, `options`, `delete`.
        /// </summary>
        [Output("method")]
        public Output<string> Method { get; private set; } = null!;

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

        /// <summary>
        /// URL path as a regular expression.
        /// </summary>
        [Output("path")]
        public Output<string> Path { get; private set; } = null!;

        /// <summary>
        /// Match the query part of the URL as a regular expression.
        /// </summary>
        [Output("query")]
        public Output<string> Query { get; private set; } = null!;

        /// <summary>
        /// Enable/disable use of referrer field in the HTTP header to match the address. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("referrer")]
        public Output<string> Referrer { get; private set; } = null!;

        /// <summary>
        /// Config object tagging. The structure of `tagging` block is documented below.
        /// </summary>
        [Output("taggings")]
        public Output<ImmutableArray<Outputs.FirewallProxyaddressTagging>> Taggings { get; private set; } = null!;

        /// <summary>
        /// Proxy address type.
        /// </summary>
        [Output("type")]
        public Output<string> Type { get; private set; } = null!;

        /// <summary>
        /// Names of browsers to be used as user agent. Valid values: `chrome`, `ms`, `firefox`, `safari`, `other`.
        /// </summary>
        [Output("ua")]
        public Output<string> Ua { get; private set; } = null!;

        /// <summary>
        /// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
        /// </summary>
        [Output("uuid")]
        public Output<string> Uuid { 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>
        /// Enable/disable visibility of the object in the GUI. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("visibility")]
        public Output<string> Visibility { get; private set; } = null!;


        /// <summary>
        /// Create a FirewallProxyaddress 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 FirewallProxyaddress(string name, FirewallProxyaddressArgs? args = null, CustomResourceOptions? options = null)
            : base("fortios:index/firewallProxyaddress:FirewallProxyaddress", name, args ?? new FirewallProxyaddressArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class FirewallProxyaddressArgs : global::Pulumi.ResourceArgs
    {
        [Input("applications")]
        private InputList<Inputs.FirewallProxyaddressApplicationArgs>? _applications;

        /// <summary>
        /// SaaS application. The structure of `application` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressApplicationArgs> Applications
        {
            get => _applications ?? (_applications = new InputList<Inputs.FirewallProxyaddressApplicationArgs>());
            set => _applications = value;
        }

        /// <summary>
        /// Enable to make the pattern case sensitive. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("caseSensitivity")]
        public Input<string>? CaseSensitivity { get; set; }

        [Input("categories")]
        private InputList<Inputs.FirewallProxyaddressCategoryArgs>? _categories;

        /// <summary>
        /// FortiGuard category ID. The structure of `category` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressCategoryArgs> Categories
        {
            get => _categories ?? (_categories = new InputList<Inputs.FirewallProxyaddressCategoryArgs>());
            set => _categories = value;
        }

        /// <summary>
        /// Integer value to determine the color of the icon in the GUI (1 - 32, default = 0, which sets value to 1).
        /// </summary>
        [Input("color")]
        public Input<int>? Color { get; set; }

        /// <summary>
        /// Optional comments.
        /// </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; }

        /// <summary>
        /// HTTP header name as a regular expression.
        /// </summary>
        [Input("header")]
        public Input<string>? Header { get; set; }

        [Input("headerGroups")]
        private InputList<Inputs.FirewallProxyaddressHeaderGroupArgs>? _headerGroups;

        /// <summary>
        /// HTTP header group. The structure of `header_group` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressHeaderGroupArgs> HeaderGroups
        {
            get => _headerGroups ?? (_headerGroups = new InputList<Inputs.FirewallProxyaddressHeaderGroupArgs>());
            set => _headerGroups = value;
        }

        /// <summary>
        /// Name of HTTP header.
        /// </summary>
        [Input("headerName")]
        public Input<string>? HeaderName { get; set; }

        /// <summary>
        /// Address object for the host.
        /// </summary>
        [Input("host")]
        public Input<string>? Host { get; set; }

        /// <summary>
        /// Host name as a regular expression.
        /// </summary>
        [Input("hostRegex")]
        public Input<string>? HostRegex { get; set; }

        /// <summary>
        /// HTTP request methods to be used. Valid values: `get`, `post`, `put`, `head`, `connect`, `trace`, `options`, `delete`.
        /// </summary>
        [Input("method")]
        public Input<string>? Method { get; set; }

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

        /// <summary>
        /// URL path as a regular expression.
        /// </summary>
        [Input("path")]
        public Input<string>? Path { get; set; }

        /// <summary>
        /// Match the query part of the URL as a regular expression.
        /// </summary>
        [Input("query")]
        public Input<string>? Query { get; set; }

        /// <summary>
        /// Enable/disable use of referrer field in the HTTP header to match the address. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("referrer")]
        public Input<string>? Referrer { get; set; }

        [Input("taggings")]
        private InputList<Inputs.FirewallProxyaddressTaggingArgs>? _taggings;

        /// <summary>
        /// Config object tagging. The structure of `tagging` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressTaggingArgs> Taggings
        {
            get => _taggings ?? (_taggings = new InputList<Inputs.FirewallProxyaddressTaggingArgs>());
            set => _taggings = value;
        }

        /// <summary>
        /// Proxy address type.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

        /// <summary>
        /// Names of browsers to be used as user agent. Valid values: `chrome`, `ms`, `firefox`, `safari`, `other`.
        /// </summary>
        [Input("ua")]
        public Input<string>? Ua { get; set; }

        /// <summary>
        /// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
        /// </summary>
        [Input("uuid")]
        public Input<string>? Uuid { 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; }

        /// <summary>
        /// Enable/disable visibility of the object in the GUI. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("visibility")]
        public Input<string>? Visibility { get; set; }

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

    public sealed class FirewallProxyaddressState : global::Pulumi.ResourceArgs
    {
        [Input("applications")]
        private InputList<Inputs.FirewallProxyaddressApplicationGetArgs>? _applications;

        /// <summary>
        /// SaaS application. The structure of `application` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressApplicationGetArgs> Applications
        {
            get => _applications ?? (_applications = new InputList<Inputs.FirewallProxyaddressApplicationGetArgs>());
            set => _applications = value;
        }

        /// <summary>
        /// Enable to make the pattern case sensitive. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("caseSensitivity")]
        public Input<string>? CaseSensitivity { get; set; }

        [Input("categories")]
        private InputList<Inputs.FirewallProxyaddressCategoryGetArgs>? _categories;

        /// <summary>
        /// FortiGuard category ID. The structure of `category` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressCategoryGetArgs> Categories
        {
            get => _categories ?? (_categories = new InputList<Inputs.FirewallProxyaddressCategoryGetArgs>());
            set => _categories = value;
        }

        /// <summary>
        /// Integer value to determine the color of the icon in the GUI (1 - 32, default = 0, which sets value to 1).
        /// </summary>
        [Input("color")]
        public Input<int>? Color { get; set; }

        /// <summary>
        /// Optional comments.
        /// </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; }

        /// <summary>
        /// HTTP header name as a regular expression.
        /// </summary>
        [Input("header")]
        public Input<string>? Header { get; set; }

        [Input("headerGroups")]
        private InputList<Inputs.FirewallProxyaddressHeaderGroupGetArgs>? _headerGroups;

        /// <summary>
        /// HTTP header group. The structure of `header_group` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressHeaderGroupGetArgs> HeaderGroups
        {
            get => _headerGroups ?? (_headerGroups = new InputList<Inputs.FirewallProxyaddressHeaderGroupGetArgs>());
            set => _headerGroups = value;
        }

        /// <summary>
        /// Name of HTTP header.
        /// </summary>
        [Input("headerName")]
        public Input<string>? HeaderName { get; set; }

        /// <summary>
        /// Address object for the host.
        /// </summary>
        [Input("host")]
        public Input<string>? Host { get; set; }

        /// <summary>
        /// Host name as a regular expression.
        /// </summary>
        [Input("hostRegex")]
        public Input<string>? HostRegex { get; set; }

        /// <summary>
        /// HTTP request methods to be used. Valid values: `get`, `post`, `put`, `head`, `connect`, `trace`, `options`, `delete`.
        /// </summary>
        [Input("method")]
        public Input<string>? Method { get; set; }

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

        /// <summary>
        /// URL path as a regular expression.
        /// </summary>
        [Input("path")]
        public Input<string>? Path { get; set; }

        /// <summary>
        /// Match the query part of the URL as a regular expression.
        /// </summary>
        [Input("query")]
        public Input<string>? Query { get; set; }

        /// <summary>
        /// Enable/disable use of referrer field in the HTTP header to match the address. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("referrer")]
        public Input<string>? Referrer { get; set; }

        [Input("taggings")]
        private InputList<Inputs.FirewallProxyaddressTaggingGetArgs>? _taggings;

        /// <summary>
        /// Config object tagging. The structure of `tagging` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallProxyaddressTaggingGetArgs> Taggings
        {
            get => _taggings ?? (_taggings = new InputList<Inputs.FirewallProxyaddressTaggingGetArgs>());
            set => _taggings = value;
        }

        /// <summary>
        /// Proxy address type.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

        /// <summary>
        /// Names of browsers to be used as user agent. Valid values: `chrome`, `ms`, `firefox`, `safari`, `other`.
        /// </summary>
        [Input("ua")]
        public Input<string>? Ua { get; set; }

        /// <summary>
        /// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
        /// </summary>
        [Input("uuid")]
        public Input<string>? Uuid { 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; }

        /// <summary>
        /// Enable/disable visibility of the object in the GUI. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("visibility")]
        public Input<string>? Visibility { get; set; }

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