def METHOD_NAME(global_network_id: Optional[str] = None,
              provider_name: Optional[str] = None,
              site_id: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              type: Optional[str] = None,
              opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLinksResult:
    """
    Retrieve information about link.
    ## Example Usage
    ```python
    import pulumi
    import pulumi_aws as aws
    example = aws.networkmanager.get_links(global_network_id=var["global_network_id"],
        tags={
            "Env": "test",
        })
    ```
    :param str global_network_id: ID of the Global Network of the links to retrieve.
    :param str provider_name: Link provider to retrieve.
    :param str site_id: ID of the site of the links to retrieve.
    :param Mapping[str, str] tags: Restricts the list to the links with these tags.
    :param str type: Link type to retrieve.
    """
    __args__ = dict()
    __args__['globalNetworkId'] = global_network_id
    __args__['providerName'] = provider_name
    __args__['siteId'] = site_id
    __args__['tags'] = tags
    __args__['type'] = type
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('aws:networkmanager/getLinks:getLinks', __args__, opts=opts, typ=GetLinksResult).value
    return AwaitableGetLinksResult(
        global_network_id=pulumi.get(__ret__, 'global_network_id'),
        id=pulumi.get(__ret__, 'id'),
        ids=pulumi.get(__ret__, 'ids'),
        provider_name=pulumi.get(__ret__, 'provider_name'),
        site_id=pulumi.get(__ret__, 'site_id'),
        tags=pulumi.get(__ret__, 'tags'),
        type=pulumi.get(__ret__, 'type'))