// *** 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_sumologic_forwarder** resource allows the enabling and disabling of sumologic forwarder.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Enable sumologic forwarder
    ///     var testSumologicForwarder = new Aviatrix.AviatrixSumologicForwarder("testSumologicForwarder", new()
    ///     {
    ///         AccessId = "0",
    ///         AccessKey = "1.2.3.4",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **sumologic_forwarder** can be imported using "sumologic_forwarder", e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixSumologicForwarder:AviatrixSumologicForwarder test sumologic_forwarder
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixSumologicForwarder:AviatrixSumologicForwarder")]
    public partial class AviatrixSumologicForwarder : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Access ID.
        /// </summary>
        [Output("accessId")]
        public Output<string> AccessId { get; private set; } = null!;

        /// <summary>
        /// Access Key.
        /// </summary>
        [Output("accessKey")]
        public Output<string> AccessKey { get; private set; } = null!;

        /// <summary>
        /// Custom configuration. The format should be key=value pairs.
        /// </summary>
        [Output("customConfiguration")]
        public Output<string?> CustomConfiguration { 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>
        /// Source category. "Aviatrix_syslog" by default.
        /// </summary>
        [Output("sourceCategory")]
        public Output<string?> SourceCategory { get; private set; } = null!;

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


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

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

    public sealed class AviatrixSumologicForwarderArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Access ID.
        /// </summary>
        [Input("accessId", required: true)]
        public Input<string> AccessId { get; set; } = null!;

        [Input("accessKey", required: true)]
        private Input<string>? _accessKey;

        /// <summary>
        /// Access Key.
        /// </summary>
        public Input<string>? AccessKey
        {
            get => _accessKey;
            set
            {
                var emptySecret = Output.CreateSecret(0);
                _accessKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
            }
        }

        /// <summary>
        /// Custom configuration. The format should be key=value pairs.
        /// </summary>
        [Input("customConfiguration")]
        public Input<string>? CustomConfiguration { 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>
        /// Source category. "Aviatrix_syslog" by default.
        /// </summary>
        [Input("sourceCategory")]
        public Input<string>? SourceCategory { get; set; }

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

    public sealed class AviatrixSumologicForwarderState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Access ID.
        /// </summary>
        [Input("accessId")]
        public Input<string>? AccessId { get; set; }

        [Input("accessKey")]
        private Input<string>? _accessKey;

        /// <summary>
        /// Access Key.
        /// </summary>
        public Input<string>? AccessKey
        {
            get => _accessKey;
            set
            {
                var emptySecret = Output.CreateSecret(0);
                _accessKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
            }
        }

        /// <summary>
        /// Custom configuration. The format should be key=value pairs.
        /// </summary>
        [Input("customConfiguration")]
        public Input<string>? CustomConfiguration { 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>
        /// Source category. "Aviatrix_syslog" by default.
        /// </summary>
        [Input("sourceCategory")]
        public Input<string>? SourceCategory { get; set; }

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

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