<filename>sdk/dotnet/Ip/FirewallAddrList.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.Routeros.Ip
{
    /// <summary>
    /// ## # routeros.Ip.FirewallAddrList (Resource)
    /// 
    /// ***
    /// 
    /// #### This is an alias for backwards compatibility between plugin versions.
    /// Please see documentation for routeros.Ip.IpFirewallAddrList
    /// </summary>
    [RouterosResourceType("routeros:Ip/firewallAddrList:FirewallAddrList")]
    public partial class FirewallAddrList : 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 FirewallAddrList 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 FirewallAddrList(string name, FirewallAddrListArgs args, CustomResourceOptions? options = null)
            : base("routeros:Ip/firewallAddrList:FirewallAddrList", name, args ?? new FirewallAddrListArgs(), MakeResourceOptions(options, ""))
        {
        }

        private FirewallAddrList(string name, Input<string> id, FirewallAddrListState? state = null, CustomResourceOptions? options = null)
            : base("routeros:Ip/firewallAddrList:FirewallAddrList", 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 FirewallAddrList 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 FirewallAddrList Get(string name, Input<string> id, FirewallAddrListState? state = null, CustomResourceOptions? options = null)
        {
            return new FirewallAddrList(name, id, state, options);
        }
    }

    public sealed class FirewallAddrListArgs : 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 FirewallAddrListArgs()
        {
        }
        public static new FirewallAddrListArgs Empty => new FirewallAddrListArgs();
    }

    public sealed class FirewallAddrListState : 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 FirewallAddrListState()
        {
        }
        public static new FirewallAddrListState Empty => new FirewallAddrListState();
    }
}
