# coding=utf-8
# *** WARNING: this file was generated by pulumi-language-python. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import builtins as _builtins
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from .. import _utilities
from . import outputs

__all__ = [
    'GetManagementInterfaceResult',
    'AwaitableGetManagementInterfaceResult',
    'get_management_interface',
    'get_management_interface_output',
]

@pulumi.output_type
class GetManagementInterfaceResult:
    """
    A collection of values returned by getManagementInterface.
    """
    def __init__(__self__, id=None, item=None, serial=None):
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if item and not isinstance(item, dict):
            raise TypeError("Expected argument 'item' to be a dict")
        pulumi.set(__self__, "item", item)
        if serial and not isinstance(serial, str):
            raise TypeError("Expected argument 'serial' to be a str")
        pulumi.set(__self__, "serial", serial)

    @_builtins.property
    @pulumi.getter
    def id(self) -> _builtins.str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")

    @_builtins.property
    @pulumi.getter
    def item(self) -> 'outputs.GetManagementInterfaceItemResult':
        return pulumi.get(self, "item")

    @_builtins.property
    @pulumi.getter
    def serial(self) -> _builtins.str:
        """
        serial path parameter.
        """
        return pulumi.get(self, "serial")


class AwaitableGetManagementInterfaceResult(GetManagementInterfaceResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetManagementInterfaceResult(
            id=self.id,
            item=self.item,
            serial=self.serial)


def get_management_interface(serial: Optional[_builtins.str] = None,
                             opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetManagementInterfaceResult:
    """
    ## Example Usage

    ```python
    import pulumi
    import pulumi_meraki as meraki

    example = meraki.devices.get_management_interface(serial="string")
    pulumi.export("merakiDevicesManagementInterfaceExample", example.item)
    ```


    :param _builtins.str serial: serial path parameter.
    """
    __args__ = dict()
    __args__['serial'] = serial
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('meraki:devices/getManagementInterface:getManagementInterface', __args__, opts=opts, typ=GetManagementInterfaceResult).value

    return AwaitableGetManagementInterfaceResult(
        id=pulumi.get(__ret__, 'id'),
        item=pulumi.get(__ret__, 'item'),
        serial=pulumi.get(__ret__, 'serial'))
def get_management_interface_output(serial: Optional[pulumi.Input[_builtins.str]] = None,
                                    opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetManagementInterfaceResult]:
    """
    ## Example Usage

    ```python
    import pulumi
    import pulumi_meraki as meraki

    example = meraki.devices.get_management_interface(serial="string")
    pulumi.export("merakiDevicesManagementInterfaceExample", example.item)
    ```


    :param _builtins.str serial: serial path parameter.
    """
    __args__ = dict()
    __args__['serial'] = serial
    opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke_output('meraki:devices/getManagementInterface:getManagementInterface', __args__, opts=opts, typ=GetManagementInterfaceResult)
    return __ret__.apply(lambda __response__: GetManagementInterfaceResult(
        id=pulumi.get(__response__, 'id'),
        item=pulumi.get(__response__, 'item'),
        serial=pulumi.get(__response__, 'serial')))
