// *** 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.Routeros.Ip
{
    /// <summary>
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Routeros = Pulumi.Routeros;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var exampleList = new Routeros.Ip.IpFirewallAddrList("exampleList", new()
    ///     {
    ///         Address = "1.1.1.1",
    ///         List = "Example List",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// #The ID can be found via API or the terminal #The command for the terminal is -&gt; :put [/ip/firewall/address-list get [print show-ids]]
    /// 
    /// ```sh
    ///  $ pulumi import routeros:Ip/ipFirewallAddrList:IpFirewallAddrList example_list "*0"
    /// ```
    /// </summary>
    [RouterosResourceType("routeros:Ip/ipFirewallAddrList:IpFirewallAddrList")]
    public partial class IpFirewallAddrList : global::Pulumi.CustomResource
    {
        /// <summary>
        /// &lt;em&gt;Resource ID type (.id / name). This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Output("___id_")]
        public Output<int?> ___id_ { get; private set; } = null!;

        /// <summary>
        /// &lt;em&gt;Resource path for CRUD operations. This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Output("___path_")]
        public Output<string?> ___path_ { get; private set; } = null!;

        /// <summary>
        /// A single IP address or range of IPs to add to address list or DNS name. You can input for example,
        /// '192.168.0.0-192.168.1.255' and it will auto modify the typed entry to 192.168.0.0/23 on saving.
        /// </summary>
        [Output("address")]
        public Output<string> Address { get; private set; } = null!;

        [Output("comment")]
        public Output<string?> Comment { get; private set; } = null!;

        /// <summary>
        /// Rule creation time
        /// </summary>
        [Output("creationTime")]
        public Output<string> CreationTime { get; private set; } = null!;

        [Output("disabled")]
        public Output<bool?> Disabled { get; private set; } = null!;

        /// <summary>
        /// Configuration item created by software, not by management interface. It is not exported, and cannot be directly
        /// modified.
        /// </summary>
        [Output("dynamic")]
        public Output<bool> Dynamic { get; private set; } = null!;

        /// <summary>
        /// Name for the address list of the added IP address.
        /// </summary>
        [Output("list")]
        public Output<string> List { get; private set; } = null!;

        /// <summary>
        /// Time after address will be removed from address list. If timeout is not specified, the address will be stored into the
        /// address list permanently. &gt; Please plan your work logic based on the fact that after the timeout &gt; the resource has been
        /// destroyed outside of Terraform.
        /// </summary>
        [Output("timeout")]
        public Output<string?> Timeout { get; private set; } = null!;


        /// <summary>
        /// Create a IpFirewallAddrList 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 IpFirewallAddrList(string name, IpFirewallAddrListArgs args, CustomResourceOptions? options = null)
            : base("routeros:Ip/ipFirewallAddrList:IpFirewallAddrList", name, args ?? new IpFirewallAddrListArgs(), MakeResourceOptions(options, ""))
        {
        }

        private IpFirewallAddrList(string name, Input<string> id, IpFirewallAddrListState? state = null, CustomResourceOptions? options = null)
            : base("routeros:Ip/ipFirewallAddrList:IpFirewallAddrList", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            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 IpFirewallAddrList 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 IpFirewallAddrList Get(string name, Input<string> id, IpFirewallAddrListState? state = null, CustomResourceOptions? options = null)
        {
            return new IpFirewallAddrList(name, id, state, options);
        }
    }

    public sealed class IpFirewallAddrListArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// &lt;em&gt;Resource ID type (.id / name). This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___id_")]
        public Input<int>? ___id_ { get; set; }

        /// <summary>
        /// &lt;em&gt;Resource path for CRUD operations. This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___path_")]
        public Input<string>? ___path_ { get; set; }

        /// <summary>
        /// A single IP address or range of IPs to add to address list or DNS name. You can input for example,
        /// '192.168.0.0-192.168.1.255' and it will auto modify the typed entry to 192.168.0.0/23 on saving.
        /// </summary>
        [Input("address", required: true)]
        public Input<string> Address { get; set; } = null!;

        [Input("comment")]
        public Input<string>? Comment { get; set; }

        [Input("disabled")]
        public Input<bool>? Disabled { get; set; }

        /// <summary>
        /// Name for the address list of the added IP address.
        /// </summary>
        [Input("list", required: true)]
        public Input<string> List { get; set; } = null!;

        /// <summary>
        /// Time after address will be removed from address list. If timeout is not specified, the address will be stored into the
        /// address list permanently. &gt; Please plan your work logic based on the fact that after the timeout &gt; the resource has been
        /// destroyed outside of Terraform.
        /// </summary>
        [Input("timeout")]
        public Input<string>? Timeout { get; set; }

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

    public sealed class IpFirewallAddrListState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// &lt;em&gt;Resource ID type (.id / name). This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___id_")]
        public Input<int>? ___id_ { get; set; }

        /// <summary>
        /// &lt;em&gt;Resource path for CRUD operations. This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___path_")]
        public Input<string>? ___path_ { get; set; }

        /// <summary>
        /// A single IP address or range of IPs to add to address list or DNS name. You can input for example,
        /// '192.168.0.0-192.168.1.255' and it will auto modify the typed entry to 192.168.0.0/23 on saving.
        /// </summary>
        [Input("address")]
        public Input<string>? Address { get; set; }

        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// Rule creation time
        /// </summary>
        [Input("creationTime")]
        public Input<string>? CreationTime { get; set; }

        [Input("disabled")]
        public Input<bool>? Disabled { get; set; }

        /// <summary>
        /// Configuration item created by software, not by management interface. It is not exported, and cannot be directly
        /// modified.
        /// </summary>
        [Input("dynamic")]
        public Input<bool>? Dynamic { get; set; }

        /// <summary>
        /// Name for the address list of the added IP address.
        /// </summary>
        [Input("list")]
        public Input<string>? List { get; set; }

        /// <summary>
        /// Time after address will be removed from address list. If timeout is not specified, the address will be stored into the
        /// address list permanently. &gt; Please plan your work logic based on the fact that after the timeout &gt; the resource has been
        /// destroyed outside of Terraform.
        /// </summary>
        [Input("timeout")]
        public Input<string>? Timeout { get; set; }

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