// *** 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>
    /// Configure FortiSwitch LLDP profiles.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Fortios = Pulumiverse.Fortios;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var trname = new Fortios.SwitchcontrollerLldpprofile("trname", new()
    ///     {
    ///         AutoIsl = "enable",
    ///         AutoIslHelloTimer = 3,
    ///         AutoIslPortGroup = 0,
    ///         AutoIslReceiveTimeout = 60,
    ///         MedTlvs = "inventory-management network-policy",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// SwitchController LldpProfile can be imported using any of these accepted formats
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/switchcontrollerLldpprofile:SwitchcontrollerLldpprofile labelname {{name}}
    /// ```
    /// 
    ///  If you do not want to import arguments of block$ export "FORTIOS_IMPORT_TABLE"="false"
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/switchcontrollerLldpprofile:SwitchcontrollerLldpprofile labelname {{name}}
    /// ```
    /// 
    ///  $ unset "FORTIOS_IMPORT_TABLE"
    /// </summary>
    [FortiosResourceType("fortios:index/switchcontrollerLldpprofile:SwitchcontrollerLldpprofile")]
    public partial class SwitchcontrollerLldpprofile : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Enable/disable auto inter-switch LAG. Valid values: `disable`, `enable`.
        /// </summary>
        [Output("autoIsl")]
        public Output<string> AutoIsl { get; private set; } = null!;

        /// <summary>
        /// Auto inter-switch LAG hello timer duration (1 - 30 sec, default = 3).
        /// </summary>
        [Output("autoIslHelloTimer")]
        public Output<int> AutoIslHelloTimer { get; private set; } = null!;

        /// <summary>
        /// Auto inter-switch LAG port group ID (0 - 9).
        /// </summary>
        [Output("autoIslPortGroup")]
        public Output<int> AutoIslPortGroup { get; private set; } = null!;

        /// <summary>
        /// Auto inter-switch LAG timeout if no response is received (3 - 90 sec, default = 9).
        /// </summary>
        [Output("autoIslReceiveTimeout")]
        public Output<int> AutoIslReceiveTimeout { get; private set; } = null!;

        /// <summary>
        /// Enable/disable MCLAG inter chassis link. Valid values: `disable`, `enable`.
        /// </summary>
        [Output("autoMclagIcl")]
        public Output<string> AutoMclagIcl { get; private set; } = null!;

        /// <summary>
        /// Configuration method to edit custom TLV entries. The structure of `custom_tlvs` block is documented below.
        /// </summary>
        [Output("customTlvs")]
        public Output<ImmutableArray<Outputs.SwitchcontrollerLldpprofileCustomTlv>> CustomTlvs { get; private set; } = null!;

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Output("dynamicSortSubtable")]
        public Output<string?> DynamicSortSubtable { get; private set; } = null!;

        /// <summary>
        /// Configuration method to edit Media Endpoint Discovery (MED) location service type-length-value (TLV) categories. The structure of `med_location_service` block is documented below.
        /// </summary>
        [Output("medLocationServices")]
        public Output<ImmutableArray<Outputs.SwitchcontrollerLldpprofileMedLocationService>> MedLocationServices { get; private set; } = null!;

        /// <summary>
        /// Configuration method to edit Media Endpoint Discovery (MED) network policy type-length-value (TLV) categories. The structure of `med_network_policy` block is documented below.
        /// </summary>
        [Output("medNetworkPolicies")]
        public Output<ImmutableArray<Outputs.SwitchcontrollerLldpprofileMedNetworkPolicy>> MedNetworkPolicies { get; private set; } = null!;

        /// <summary>
        /// Transmitted LLDP-MED TLVs (type-length-value descriptions): inventory management TLV and/or network policy TLV.
        /// </summary>
        [Output("medTlvs")]
        public Output<string> MedTlvs { get; private set; } = null!;

        /// <summary>
        /// Transmitted IEEE 802.1 TLVs. Valid values: `port-vlan-id`.
        /// </summary>
        [Output("n8021Tlvs")]
        public Output<string> N8021Tlvs { get; private set; } = null!;

        /// <summary>
        /// Transmitted IEEE 802.3 TLVs.
        /// </summary>
        [Output("n8023Tlvs")]
        public Output<string> N8023Tlvs { get; private set; } = null!;

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

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Output("vdomparam")]
        public Output<string?> Vdomparam { get; private set; } = null!;


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

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

    public sealed class SwitchcontrollerLldpprofileArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Enable/disable auto inter-switch LAG. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("autoIsl")]
        public Input<string>? AutoIsl { get; set; }

        /// <summary>
        /// Auto inter-switch LAG hello timer duration (1 - 30 sec, default = 3).
        /// </summary>
        [Input("autoIslHelloTimer")]
        public Input<int>? AutoIslHelloTimer { get; set; }

        /// <summary>
        /// Auto inter-switch LAG port group ID (0 - 9).
        /// </summary>
        [Input("autoIslPortGroup")]
        public Input<int>? AutoIslPortGroup { get; set; }

        /// <summary>
        /// Auto inter-switch LAG timeout if no response is received (3 - 90 sec, default = 9).
        /// </summary>
        [Input("autoIslReceiveTimeout")]
        public Input<int>? AutoIslReceiveTimeout { get; set; }

        /// <summary>
        /// Enable/disable MCLAG inter chassis link. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("autoMclagIcl")]
        public Input<string>? AutoMclagIcl { get; set; }

        [Input("customTlvs")]
        private InputList<Inputs.SwitchcontrollerLldpprofileCustomTlvArgs>? _customTlvs;

        /// <summary>
        /// Configuration method to edit custom TLV entries. The structure of `custom_tlvs` block is documented below.
        /// </summary>
        public InputList<Inputs.SwitchcontrollerLldpprofileCustomTlvArgs> CustomTlvs
        {
            get => _customTlvs ?? (_customTlvs = new InputList<Inputs.SwitchcontrollerLldpprofileCustomTlvArgs>());
            set => _customTlvs = value;
        }

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Input("dynamicSortSubtable")]
        public Input<string>? DynamicSortSubtable { get; set; }

        [Input("medLocationServices")]
        private InputList<Inputs.SwitchcontrollerLldpprofileMedLocationServiceArgs>? _medLocationServices;

        /// <summary>
        /// Configuration method to edit Media Endpoint Discovery (MED) location service type-length-value (TLV) categories. The structure of `med_location_service` block is documented below.
        /// </summary>
        public InputList<Inputs.SwitchcontrollerLldpprofileMedLocationServiceArgs> MedLocationServices
        {
            get => _medLocationServices ?? (_medLocationServices = new InputList<Inputs.SwitchcontrollerLldpprofileMedLocationServiceArgs>());
            set => _medLocationServices = value;
        }

        [Input("medNetworkPolicies")]
        private InputList<Inputs.SwitchcontrollerLldpprofileMedNetworkPolicyArgs>? _medNetworkPolicies;

        /// <summary>
        /// Configuration method to edit Media Endpoint Discovery (MED) network policy type-length-value (TLV) categories. The structure of `med_network_policy` block is documented below.
        /// </summary>
        public InputList<Inputs.SwitchcontrollerLldpprofileMedNetworkPolicyArgs> MedNetworkPolicies
        {
            get => _medNetworkPolicies ?? (_medNetworkPolicies = new InputList<Inputs.SwitchcontrollerLldpprofileMedNetworkPolicyArgs>());
            set => _medNetworkPolicies = value;
        }

        /// <summary>
        /// Transmitted LLDP-MED TLVs (type-length-value descriptions): inventory management TLV and/or network policy TLV.
        /// </summary>
        [Input("medTlvs")]
        public Input<string>? MedTlvs { get; set; }

        /// <summary>
        /// Transmitted IEEE 802.1 TLVs. Valid values: `port-vlan-id`.
        /// </summary>
        [Input("n8021Tlvs")]
        public Input<string>? N8021Tlvs { get; set; }

        /// <summary>
        /// Transmitted IEEE 802.3 TLVs.
        /// </summary>
        [Input("n8023Tlvs")]
        public Input<string>? N8023Tlvs { get; set; }

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

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Input("vdomparam")]
        public Input<string>? Vdomparam { get; set; }

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

    public sealed class SwitchcontrollerLldpprofileState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Enable/disable auto inter-switch LAG. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("autoIsl")]
        public Input<string>? AutoIsl { get; set; }

        /// <summary>
        /// Auto inter-switch LAG hello timer duration (1 - 30 sec, default = 3).
        /// </summary>
        [Input("autoIslHelloTimer")]
        public Input<int>? AutoIslHelloTimer { get; set; }

        /// <summary>
        /// Auto inter-switch LAG port group ID (0 - 9).
        /// </summary>
        [Input("autoIslPortGroup")]
        public Input<int>? AutoIslPortGroup { get; set; }

        /// <summary>
        /// Auto inter-switch LAG timeout if no response is received (3 - 90 sec, default = 9).
        /// </summary>
        [Input("autoIslReceiveTimeout")]
        public Input<int>? AutoIslReceiveTimeout { get; set; }

        /// <summary>
        /// Enable/disable MCLAG inter chassis link. Valid values: `disable`, `enable`.
        /// </summary>
        [Input("autoMclagIcl")]
        public Input<string>? AutoMclagIcl { get; set; }

        [Input("customTlvs")]
        private InputList<Inputs.SwitchcontrollerLldpprofileCustomTlvGetArgs>? _customTlvs;

        /// <summary>
        /// Configuration method to edit custom TLV entries. The structure of `custom_tlvs` block is documented below.
        /// </summary>
        public InputList<Inputs.SwitchcontrollerLldpprofileCustomTlvGetArgs> CustomTlvs
        {
            get => _customTlvs ?? (_customTlvs = new InputList<Inputs.SwitchcontrollerLldpprofileCustomTlvGetArgs>());
            set => _customTlvs = value;
        }

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Input("dynamicSortSubtable")]
        public Input<string>? DynamicSortSubtable { get; set; }

        [Input("medLocationServices")]
        private InputList<Inputs.SwitchcontrollerLldpprofileMedLocationServiceGetArgs>? _medLocationServices;

        /// <summary>
        /// Configuration method to edit Media Endpoint Discovery (MED) location service type-length-value (TLV) categories. The structure of `med_location_service` block is documented below.
        /// </summary>
        public InputList<Inputs.SwitchcontrollerLldpprofileMedLocationServiceGetArgs> MedLocationServices
        {
            get => _medLocationServices ?? (_medLocationServices = new InputList<Inputs.SwitchcontrollerLldpprofileMedLocationServiceGetArgs>());
            set => _medLocationServices = value;
        }

        [Input("medNetworkPolicies")]
        private InputList<Inputs.SwitchcontrollerLldpprofileMedNetworkPolicyGetArgs>? _medNetworkPolicies;

        /// <summary>
        /// Configuration method to edit Media Endpoint Discovery (MED) network policy type-length-value (TLV) categories. The structure of `med_network_policy` block is documented below.
        /// </summary>
        public InputList<Inputs.SwitchcontrollerLldpprofileMedNetworkPolicyGetArgs> MedNetworkPolicies
        {
            get => _medNetworkPolicies ?? (_medNetworkPolicies = new InputList<Inputs.SwitchcontrollerLldpprofileMedNetworkPolicyGetArgs>());
            set => _medNetworkPolicies = value;
        }

        /// <summary>
        /// Transmitted LLDP-MED TLVs (type-length-value descriptions): inventory management TLV and/or network policy TLV.
        /// </summary>
        [Input("medTlvs")]
        public Input<string>? MedTlvs { get; set; }

        /// <summary>
        /// Transmitted IEEE 802.1 TLVs. Valid values: `port-vlan-id`.
        /// </summary>
        [Input("n8021Tlvs")]
        public Input<string>? N8021Tlvs { get; set; }

        /// <summary>
        /// Transmitted IEEE 802.3 TLVs.
        /// </summary>
        [Input("n8023Tlvs")]
        public Input<string>? N8023Tlvs { get; set; }

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

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Input("vdomparam")]
        public Input<string>? Vdomparam { get; set; }

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