<reponame>astipkovits/pulumi-aviatrix<filename>sdk/dotnet/AviatrixDeviceInterfaceConfig.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.Aviatrix
{
    /// <summary>
    /// The **aviatrix_device_interface_config** resource allows the configuration of the WAN primary interface and IP for a device, for use in CloudN.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Configure the primary WAN interface and IP for a device.
    ///     var testDeviceInterfaceConfig = new Aviatrix.AviatrixDeviceInterfaceConfig("testDeviceInterfaceConfig", new()
    ///     {
    ///         DeviceName = "test-device",
    ///         WanPrimaryInterface = "eth0",
    ///         WanPrimaryInterfacePublicIp = "172.16.31.10",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **device_interface_config** can be imported using the `device_name`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixDeviceInterfaceConfig:AviatrixDeviceInterfaceConfig test device_name
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixDeviceInterfaceConfig:AviatrixDeviceInterfaceConfig")]
    public partial class AviatrixDeviceInterfaceConfig : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Name of the device.
        /// </summary>
        [Output("deviceName")]
        public Output<string> DeviceName { get; private set; } = null!;

        /// <summary>
        /// Name of the WAN primary interface.
        /// </summary>
        [Output("wanPrimaryInterface")]
        public Output<string> WanPrimaryInterface { get; private set; } = null!;

        /// <summary>
        /// The WAN Primary interface public IP.
        /// </summary>
        [Output("wanPrimaryInterfacePublicIp")]
        public Output<string> WanPrimaryInterfacePublicIp { get; private set; } = null!;


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

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

    public sealed class AviatrixDeviceInterfaceConfigArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the device.
        /// </summary>
        [Input("deviceName", required: true)]
        public Input<string> DeviceName { get; set; } = null!;

        /// <summary>
        /// Name of the WAN primary interface.
        /// </summary>
        [Input("wanPrimaryInterface", required: true)]
        public Input<string> WanPrimaryInterface { get; set; } = null!;

        /// <summary>
        /// The WAN Primary interface public IP.
        /// </summary>
        [Input("wanPrimaryInterfacePublicIp", required: true)]
        public Input<string> WanPrimaryInterfacePublicIp { get; set; } = null!;

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

    public sealed class AviatrixDeviceInterfaceConfigState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the device.
        /// </summary>
        [Input("deviceName")]
        public Input<string>? DeviceName { get; set; }

        /// <summary>
        /// Name of the WAN primary interface.
        /// </summary>
        [Input("wanPrimaryInterface")]
        public Input<string>? WanPrimaryInterface { get; set; }

        /// <summary>
        /// The WAN Primary interface public IP.
        /// </summary>
        [Input("wanPrimaryInterfacePublicIp")]
        public Input<string>? WanPrimaryInterfacePublicIp { get; set; }

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