<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>
    /// The **aviatrix_firewall_tag** resource allows the creation and management of [Aviatrix Stateful Firewall tags](https://docs.aviatrix.com/HowTos/tag_firewall.html) for tag-based security for gateways.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Create an Aviatrix Firewall Tag
    ///     var testFirewallTag = new Aviatrix.AviatrixFirewallTag("testFirewallTag", new()
    ///     {
    ///         CidrLists = new[]
    ///         {
    ///             new Aviatrix.Inputs.AviatrixFirewallTagCidrListArgs
    ///             {
    ///                 Cidr = "10.1.0.0/24",
    ///                 CidrTagName = "a1",
    ///             },
    ///             new Aviatrix.Inputs.AviatrixFirewallTagCidrListArgs
    ///             {
    ///                 Cidr = "10.2.0.0/24",
    ///                 CidrTagName = "b1",
    ///             },
    ///         },
    ///         FirewallTag = "test-firewall-tag",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **firewall_tag** can be imported using the `firewall_tag`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixFirewallTag:AviatrixFirewallTag test firewall_tag
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixFirewallTag:AviatrixFirewallTag")]
    public partial class AviatrixFirewallTag : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Dynamic block representing a CIDR to filter, and a name to identify it:
        /// </summary>
        [Output("cidrLists")]
        public Output<ImmutableArray<Outputs.AviatrixFirewallTagCidrList>> CidrLists { get; private set; } = null!;

        /// <summary>
        /// Name of the stateful firewall tag to be created.
        /// </summary>
        [Output("firewallTag")]
        public Output<string> FirewallTag { get; private set; } = null!;


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

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

    public sealed class AviatrixFirewallTagArgs : global::Pulumi.ResourceArgs
    {
        [Input("cidrLists")]
        private InputList<Inputs.AviatrixFirewallTagCidrListArgs>? _cidrLists;

        /// <summary>
        /// Dynamic block representing a CIDR to filter, and a name to identify it:
        /// </summary>
        public InputList<Inputs.AviatrixFirewallTagCidrListArgs> CidrLists
        {
            get => _cidrLists ?? (_cidrLists = new InputList<Inputs.AviatrixFirewallTagCidrListArgs>());
            set => _cidrLists = value;
        }

        /// <summary>
        /// Name of the stateful firewall tag to be created.
        /// </summary>
        [Input("firewallTag", required: true)]
        public Input<string> FirewallTag { get; set; } = null!;

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

    public sealed class AviatrixFirewallTagState : global::Pulumi.ResourceArgs
    {
        [Input("cidrLists")]
        private InputList<Inputs.AviatrixFirewallTagCidrListGetArgs>? _cidrLists;

        /// <summary>
        /// Dynamic block representing a CIDR to filter, and a name to identify it:
        /// </summary>
        public InputList<Inputs.AviatrixFirewallTagCidrListGetArgs> CidrLists
        {
            get => _cidrLists ?? (_cidrLists = new InputList<Inputs.AviatrixFirewallTagCidrListGetArgs>());
            set => _cidrLists = value;
        }

        /// <summary>
        /// Name of the stateful firewall tag to be created.
        /// </summary>
        [Input("firewallTag")]
        public Input<string>? FirewallTag { get; set; }

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