<reponame>astipkovits/pulumi-aviatrix// *** 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>
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Configure AWS GuardDuty 
    ///     var testAwsGuardDuty = new Aviatrix.AviatrixAwsGuardDuty("testAwsGuardDuty", new()
    ///     {
    ///         AccountName = aviatrix_account.Account_1.Account_name,
    ///         Region = "us-west-1",
    ///         ExcludedIps = new[]
    ///         {
    ///             "127.0.0.1",
    ///             "10.0.0.1",
    ///         },
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **aws_guard_duty** resource can be imported with the `account_name` and `region` in the form "account_name~~region", e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixAwsGuardDuty:AviatrixAwsGuardDuty test_aws_guard_duty devops-acc~~us-west-1
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixAwsGuardDuty:AviatrixAwsGuardDuty")]
    public partial class AviatrixAwsGuardDuty : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Account name.
        /// </summary>
        [Output("accountName")]
        public Output<string> AccountName { get; private set; } = null!;

        /// <summary>
        /// Set of excluded IPs.
        /// </summary>
        [Output("excludedIps")]
        public Output<ImmutableArray<string>> ExcludedIps { get; private set; } = null!;

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


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

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

    public sealed class AviatrixAwsGuardDutyArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Account name.
        /// </summary>
        [Input("accountName", required: true)]
        public Input<string> AccountName { get; set; } = null!;

        [Input("excludedIps")]
        private InputList<string>? _excludedIps;

        /// <summary>
        /// Set of excluded IPs.
        /// </summary>
        public InputList<string> ExcludedIps
        {
            get => _excludedIps ?? (_excludedIps = new InputList<string>());
            set => _excludedIps = value;
        }

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

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

    public sealed class AviatrixAwsGuardDutyState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Account name.
        /// </summary>
        [Input("accountName")]
        public Input<string>? AccountName { get; set; }

        [Input("excludedIps")]
        private InputList<string>? _excludedIps;

        /// <summary>
        /// Set of excluded IPs.
        /// </summary>
        public InputList<string> ExcludedIps
        {
            get => _excludedIps ?? (_excludedIps = new InputList<string>());
            set => _excludedIps = value;
        }

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

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