<filename>sdk/dotnet/AviatrixCloudwatchAgent.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;

namespace Pulumi.Aviatrix
{
    /// <summary>
    /// The **aviatrix_cloudwatch_agent** resource allows the enabling and disabling of cloudwatch agent.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Enable cloudwatch agent
    ///     var testCloudwatchAgent = new Aviatrix.AviatrixCloudwatchAgent("testCloudwatchAgent", new()
    ///     {
    ///         CloudwatchRoleArn = "arn:aws:iam::469550033836:role/aviatrix-role-cloudwatch",
    ///         ExcludedGateways = new[]
    ///         {
    ///             "a",
    ///             "b",
    ///         },
    ///         Region = "us-east-1",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **cloudwatch_agent** can be imported using "cloudwatch_agent", e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixCloudwatchAgent:AviatrixCloudwatchAgent test cloudwatch_agent
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixCloudwatchAgent:AviatrixCloudwatchAgent")]
    public partial class AviatrixCloudwatchAgent : global::Pulumi.CustomResource
    {
        /// <summary>
        /// CloudWatch role ARN.
        /// </summary>
        [Output("cloudwatchRoleArn")]
        public Output<string> CloudwatchRoleArn { 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>
        /// Log group name. "AVIATRIX-CLOUDWATCH-LOG" by default.
        /// </summary>
        [Output("logGroupName")]
        public Output<string?> LogGroupName { get; private set; } = null!;

        /// <summary>
        /// Name of AWS region.
        /// </summary>
        [Output("region")]
        public Output<string> Region { get; private set; } = null!;

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


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

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

    public sealed class AviatrixCloudwatchAgentArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// CloudWatch role ARN.
        /// </summary>
        [Input("cloudwatchRoleArn", required: true)]
        public Input<string> CloudwatchRoleArn { get; set; } = null!;

        [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>
        /// Log group name. "AVIATRIX-CLOUDWATCH-LOG" by default.
        /// </summary>
        [Input("logGroupName")]
        public Input<string>? LogGroupName { get; set; }

        /// <summary>
        /// Name of AWS region.
        /// </summary>
        [Input("region", required: true)]
        public Input<string> Region { get; set; } = null!;

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

    public sealed class AviatrixCloudwatchAgentState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// CloudWatch role ARN.
        /// </summary>
        [Input("cloudwatchRoleArn")]
        public Input<string>? CloudwatchRoleArn { 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>
        /// Log group name. "AVIATRIX-CLOUDWATCH-LOG" by default.
        /// </summary>
        [Input("logGroupName")]
        public Input<string>? LogGroupName { get; set; }

        /// <summary>
        /// Name of AWS region.
        /// </summary>
        [Input("region")]
        public Input<string>? Region { get; set; }

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

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