<reponame>cuemby/pulumi-equinix// *** 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 Cuemby.Equinix
{
    /// <summary>
    /// ## Example Usage
    /// 
    /// See the Network Types Guide for examples of this resource and to
    /// learn about the recommended `equinix.MetalPort` alternative.
    /// 
    /// ## Import
    /// 
    /// This resource can also be imported using existing device ID
    /// 
    /// ```sh
    ///  $ pulumi import equinix:index/metalDeviceNetworkType:MetalDeviceNetworkType equinix_metal_device_network_type {existing device_id}
    /// ```
    /// </summary>
    [EquinixResourceType("equinix:index/metalDeviceNetworkType:MetalDeviceNetworkType")]
    public partial class MetalDeviceNetworkType : Pulumi.CustomResource
    {
        /// <summary>
        /// The ID of the device on which the network type should be set.
        /// </summary>
        [Output("deviceId")]
        public Output<string> DeviceId { get; private set; } = null!;

        /// <summary>
        /// Network type to set. Must be one of `layer3`, `hybrid`, `layer2-individual`
        /// and `layer2-bonded`.
        /// </summary>
        [Output("type")]
        public Output<string> Type { get; private set; } = null!;


        /// <summary>
        /// Create a MetalDeviceNetworkType 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 MetalDeviceNetworkType(string name, MetalDeviceNetworkTypeArgs args, CustomResourceOptions? options = null)
            : base("equinix:index/metalDeviceNetworkType:MetalDeviceNetworkType", name, args ?? new MetalDeviceNetworkTypeArgs(), MakeResourceOptions(options, ""))
        {
        }

        private MetalDeviceNetworkType(string name, Input<string> id, MetalDeviceNetworkTypeState? state = null, CustomResourceOptions? options = null)
            : base("equinix:index/metalDeviceNetworkType:MetalDeviceNetworkType", 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/cuemby",
            };
            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 MetalDeviceNetworkType 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 MetalDeviceNetworkType Get(string name, Input<string> id, MetalDeviceNetworkTypeState? state = null, CustomResourceOptions? options = null)
        {
            return new MetalDeviceNetworkType(name, id, state, options);
        }
    }

    public sealed class MetalDeviceNetworkTypeArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// The ID of the device on which the network type should be set.
        /// </summary>
        [Input("deviceId", required: true)]
        public Input<string> DeviceId { get; set; } = null!;

        /// <summary>
        /// Network type to set. Must be one of `layer3`, `hybrid`, `layer2-individual`
        /// and `layer2-bonded`.
        /// </summary>
        [Input("type", required: true)]
        public Input<string> Type { get; set; } = null!;

        public MetalDeviceNetworkTypeArgs()
        {
        }
    }

    public sealed class MetalDeviceNetworkTypeState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// The ID of the device on which the network type should be set.
        /// </summary>
        [Input("deviceId")]
        public Input<string>? DeviceId { get; set; }

        /// <summary>
        /// Network type to set. Must be one of `layer3`, `hybrid`, `layer2-individual`
        /// and `layer2-bonded`.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

        public MetalDeviceNetworkTypeState()
        {
        }
    }
}
