<gh_stars>0// *** 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;
using Pulumi;

namespace Pulumiverse.Fortios
{
    /// <summary>
    /// This resource supports updating system network interface for FortiManager.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Fortios = Pulumiverse.Fortios;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var test1 = new Fortios.FmgSystemNetworkInterface("test1", new()
    ///     {
    ///         AllowAccesses = new[]
    ///         {
    ///             "ping",
    ///             "ssh",
    ///             "https",
    ///             "http",
    ///         },
    ///         Description = "",
    ///         Ip = "1.1.1.3 255.255.255.0",
    ///         ServiceAccesses = new[]
    ///         {
    ///             "webfilter",
    ///             "fgtupdates",
    ///         },
    ///         Status = "up",
    ///     });
    /// 
    /// });
    /// ```
    /// </summary>
    [FortiosResourceType("fortios:index/fmgSystemNetworkInterface:FmgSystemNetworkInterface")]
    public partial class FmgSystemNetworkInterface : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
        /// </summary>
        [Output("allowAccesses")]
        public Output<ImmutableArray<string>> AllowAccesses { get; private set; } = null!;

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

        /// <summary>
        /// Interface Ipaddress.
        /// </summary>
        [Output("ip")]
        public Output<string?> Ip { get; private set; } = null!;

        /// <summary>
        /// Interface port.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        [Output("serviceAccesses")]
        public Output<ImmutableArray<string>> ServiceAccesses { get; private set; } = null!;

        /// <summary>
        /// Interface status, Enum: ["down", "up"]
        /// </summary>
        [Output("status")]
        public Output<string?> Status { get; private set; } = null!;


        /// <summary>
        /// Create a FmgSystemNetworkInterface 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 FmgSystemNetworkInterface(string name, FmgSystemNetworkInterfaceArgs? args = null, CustomResourceOptions? options = null)
            : base("fortios:index/fmgSystemNetworkInterface:FmgSystemNetworkInterface", name, args ?? new FmgSystemNetworkInterfaceArgs(), MakeResourceOptions(options, ""))
        {
        }

        private FmgSystemNetworkInterface(string name, Input<string> id, FmgSystemNetworkInterfaceState? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/fmgSystemNetworkInterface:FmgSystemNetworkInterface", 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/pulumiverse/pulumi-fortios",
            };
            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 FmgSystemNetworkInterface 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 FmgSystemNetworkInterface Get(string name, Input<string> id, FmgSystemNetworkInterfaceState? state = null, CustomResourceOptions? options = null)
        {
            return new FmgSystemNetworkInterface(name, id, state, options);
        }
    }

    public sealed class FmgSystemNetworkInterfaceArgs : global::Pulumi.ResourceArgs
    {
        [Input("allowAccesses")]
        private InputList<string>? _allowAccesses;

        /// <summary>
        /// Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
        /// </summary>
        public InputList<string> AllowAccesses
        {
            get => _allowAccesses ?? (_allowAccesses = new InputList<string>());
            set => _allowAccesses = value;
        }

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

        /// <summary>
        /// Interface Ipaddress.
        /// </summary>
        [Input("ip")]
        public Input<string>? Ip { get; set; }

        /// <summary>
        /// Interface port.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("serviceAccesses")]
        private InputList<string>? _serviceAccesses;
        public InputList<string> ServiceAccesses
        {
            get => _serviceAccesses ?? (_serviceAccesses = new InputList<string>());
            set => _serviceAccesses = value;
        }

        /// <summary>
        /// Interface status, Enum: ["down", "up"]
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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

    public sealed class FmgSystemNetworkInterfaceState : global::Pulumi.ResourceArgs
    {
        [Input("allowAccesses")]
        private InputList<string>? _allowAccesses;

        /// <summary>
        /// Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
        /// </summary>
        public InputList<string> AllowAccesses
        {
            get => _allowAccesses ?? (_allowAccesses = new InputList<string>());
            set => _allowAccesses = value;
        }

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

        /// <summary>
        /// Interface Ipaddress.
        /// </summary>
        [Input("ip")]
        public Input<string>? Ip { get; set; }

        /// <summary>
        /// Interface port.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("serviceAccesses")]
        private InputList<string>? _serviceAccesses;
        public InputList<string> ServiceAccesses
        {
            get => _serviceAccesses ?? (_serviceAccesses = new InputList<string>());
            set => _serviceAccesses = value;
        }

        /// <summary>
        /// Interface status, Enum: ["down", "up"]
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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