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

namespace Pulumi.Aviatrix
{
    /// <summary>
    /// The **aviatrix_splunk_logging** resource allows the enabling and disabling of splunk logging.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Enable splunk logging using server and port combination
    ///     var testSplunkLogging = new Aviatrix.AviatrixSplunkLogging("testSplunkLogging", new()
    ///     {
    ///         Port = 10,
    ///         Server = "172.16.31.10",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ```csharp
    /// using System;
    /// using System.Collections.Generic;
    /// using System.IO;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// 	private static string ReadFileBase64(string path) {
    /// 		return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)))
    /// 	}
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Enable splunk logging using configuration file
    ///     var testSplunkLogging = new Aviatrix.AviatrixSplunkLogging("testSplunkLogging", new()
    ///     {
    ///         CustomOutputConfigFile = ReadFileBase64("/path/to/configuration.spl"),
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **splunk_logging** can be imported using `splunk_logging`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixSplunkLogging:AviatrixSplunkLogging test splunk_logging
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixSplunkLogging:AviatrixSplunkLogging")]
    public partial class AviatrixSplunkLogging : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Custom configuration.
        /// </summary>
        [Output("customInputConfig")]
        public Output<string?> CustomInputConfig { get; private set; } = null!;

        /// <summary>
        /// Configuration file. Use the `filebase64` function to read from a file.
        /// </summary>
        [Output("customOutputConfigFile")]
        public Output<string?> CustomOutputConfigFile { get; private set; } = null!;

        /// <summary>
        /// List of gateways to be excluded from logging. e.g.: ["gateway01", "gateway02", "gateway01-hagw"].
        /// </summary>
        [Output("excludedGateways")]
        public Output<ImmutableArray<string>> ExcludedGateways { get; private set; } = null!;

        /// <summary>
        /// Port number.
        /// </summary>
        [Output("port")]
        public Output<int?> Port { get; private set; } = null!;

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

        /// <summary>
        /// The status of splunk logging.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;


        /// <summary>
        /// Create a AviatrixSplunkLogging 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 AviatrixSplunkLogging(string name, AviatrixSplunkLoggingArgs? args = null, CustomResourceOptions? options = null)
            : base("aviatrix:index/aviatrixSplunkLogging:AviatrixSplunkLogging", name, args ?? new AviatrixSplunkLoggingArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AviatrixSplunkLogging(string name, Input<string> id, AviatrixSplunkLoggingState? state = null, CustomResourceOptions? options = null)
            : base("aviatrix:index/aviatrixSplunkLogging:AviatrixSplunkLogging", 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/astipkovits",
            };
            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 AviatrixSplunkLogging 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 AviatrixSplunkLogging Get(string name, Input<string> id, AviatrixSplunkLoggingState? state = null, CustomResourceOptions? options = null)
        {
            return new AviatrixSplunkLogging(name, id, state, options);
        }
    }

    public sealed class AviatrixSplunkLoggingArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Custom configuration.
        /// </summary>
        [Input("customInputConfig")]
        public Input<string>? CustomInputConfig { get; set; }

        /// <summary>
        /// Configuration file. Use the `filebase64` function to read from a file.
        /// </summary>
        [Input("customOutputConfigFile")]
        public Input<string>? CustomOutputConfigFile { get; set; }

        [Input("excludedGateways")]
        private InputList<string>? _excludedGateways;

        /// <summary>
        /// List of gateways to be excluded from logging. e.g.: ["gateway01", "gateway02", "gateway01-hagw"].
        /// </summary>
        public InputList<string> ExcludedGateways
        {
            get => _excludedGateways ?? (_excludedGateways = new InputList<string>());
            set => _excludedGateways = value;
        }

        /// <summary>
        /// Port number.
        /// </summary>
        [Input("port")]
        public Input<int>? Port { get; set; }

        /// <summary>
        /// Server IP.
        /// </summary>
        [Input("server")]
        public Input<string>? Server { get; set; }

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

    public sealed class AviatrixSplunkLoggingState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Custom configuration.
        /// </summary>
        [Input("customInputConfig")]
        public Input<string>? CustomInputConfig { get; set; }

        /// <summary>
        /// Configuration file. Use the `filebase64` function to read from a file.
        /// </summary>
        [Input("customOutputConfigFile")]
        public Input<string>? CustomOutputConfigFile { get; set; }

        [Input("excludedGateways")]
        private InputList<string>? _excludedGateways;

        /// <summary>
        /// List of gateways to be excluded from logging. e.g.: ["gateway01", "gateway02", "gateway01-hagw"].
        /// </summary>
        public InputList<string> ExcludedGateways
        {
            get => _excludedGateways ?? (_excludedGateways = new InputList<string>());
            set => _excludedGateways = value;
        }

        /// <summary>
        /// Port number.
        /// </summary>
        [Input("port")]
        public Input<int>? Port { get; set; }

        /// <summary>
        /// Server IP.
        /// </summary>
        [Input("server")]
        public Input<string>? Server { get; set; }

        /// <summary>
        /// The status of splunk logging.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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