def METHOD_NAME(device_id: Optional[str] = None,
                    global_network_id: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetConnectionsResult:
    """
    Retrieve information about connections.
    ## Example Usage
    ```python
    import pulumi
    import pulumi_aws as aws
    example = aws.networkmanager.get_connections(global_network_id=var["global_network_id"],
        tags={
            "Env": "test",
        })
    ```
    :param str device_id: ID of the device of the connections to retrieve.
    :param str global_network_id: ID of the Global Network of the connections to retrieve.
    :param Mapping[str, str] tags: Restricts the list to the connections with these tags.
    """
    __args__ = dict()
    __args__['deviceId'] = device_id
    __args__['globalNetworkId'] = global_network_id
    __args__['tags'] = tags
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('aws:networkmanager/getConnections:getConnections', __args__, opts=opts, typ=GetConnectionsResult).value
    return AwaitableGetConnectionsResult(
        device_id=pulumi.get(__ret__, 'device_id'),
        global_network_id=pulumi.get(__ret__, 'global_network_id'),
        id=pulumi.get(__ret__, 'id'),
        ids=pulumi.get(__ret__, 'ids'),
        tags=pulumi.get(__ret__, 'tags'))