# 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__ = [
    'GetSwitchRoutingInterfacesResult',
    'AwaitableGetSwitchRoutingInterfacesResult',
    'get_switch_routing_interfaces',
    'get_switch_routing_interfaces_output',
]

@pulumi.output_type
class GetSwitchRoutingInterfacesResult:
    """
    A collection of values returned by getSwitchRoutingInterfaces.
    """
    def __init__(__self__, id=None, interface_id=None, item=None, items=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 interface_id and not isinstance(interface_id, str):
            raise TypeError("Expected argument 'interface_id' to be a str")
        pulumi.set(__self__, "interface_id", interface_id)
        if item and not isinstance(item, dict):
            raise TypeError("Expected argument 'item' to be a dict")
        pulumi.set(__self__, "item", item)
        if items and not isinstance(items, list):
            raise TypeError("Expected argument 'items' to be a list")
        pulumi.set(__self__, "items", items)
        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(name="interfaceId")
    def interface_id(self) -> Optional[_builtins.str]:
        """
        interfaceId path parameter. Interface ID
        """
        return pulumi.get(self, "interface_id")

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

    @_builtins.property
    @pulumi.getter
    def items(self) -> Sequence['outputs.GetSwitchRoutingInterfacesItemResult']:
        """
        Array of ResponseSwitchGetDeviceSwitchRoutingInterfaces
        """
        return pulumi.get(self, "items")

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


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


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


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

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


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