// *** 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_filebeat_forwarder** resource allows the enabling and disabling of filebeat forwarder.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.IO;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Enable filebeat forwarder
    ///     var testFilebeatForwarder = new Aviatrix.AviatrixFilebeatForwarder("testFilebeatForwarder", new()
    ///     {
    ///         Server = "172.16.58.3",
    ///         Port = 10,
    ///         TrustedCaFile = File.ReadAllText("/path/to/ca.pem"),
    ///         ConfigFile = File.ReadAllText("/path/to/config.txt"),
    ///         ExcludedGateways = new[]
    ///         {
    ///             "a",
    ///             "b",
    ///         },
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **filebeat_forwarder** can be imported using "filebeat_forwarder", e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixFilebeatForwarder:AviatrixFilebeatForwarder test filebeat_forwarder
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixFilebeatForwarder:AviatrixFilebeatForwarder")]
    public partial class AviatrixFilebeatForwarder : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The config file. Use the `file` function to read from a file.
        /// </summary>
        [Output("configFile")]
        public Output<string?> ConfigFile { 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 filebeat forwarder.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;

        /// <summary>
        /// The trusted CA file. Use the `file` function to read from a file.
        /// </summary>
        [Output("trustedCaFile")]
        public Output<string?> TrustedCaFile { get; private set; } = null!;


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

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

    public sealed class AviatrixFilebeatForwarderArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The config file. Use the `file` function to read from a file.
        /// </summary>
        [Input("configFile")]
        public Input<string>? ConfigFile { 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", required: true)]
        public Input<int> Port { get; set; } = null!;

        /// <summary>
        /// Server IP.
        /// </summary>
        [Input("server", required: true)]
        public Input<string> Server { get; set; } = null!;

        /// <summary>
        /// The trusted CA file. Use the `file` function to read from a file.
        /// </summary>
        [Input("trustedCaFile")]
        public Input<string>? TrustedCaFile { get; set; }

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

    public sealed class AviatrixFilebeatForwarderState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The config file. Use the `file` function to read from a file.
        /// </summary>
        [Input("configFile")]
        public Input<string>? ConfigFile { 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 filebeat forwarder.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// The trusted CA file. Use the `file` function to read from a file.
        /// </summary>
        [Input("trustedCaFile")]
        public Input<string>? TrustedCaFile { get; set; }

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