def METHOD_NAME(resource_group_name: Optional[str] = None,
                       routing_intent_name: Optional[str] = None,
                       virtual_hub_name: Optional[str] = None,
                       opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRoutingIntentResult:
    """
    Retrieves the details of a RoutingIntent.
    :param str resource_group_name: The resource group name of the RoutingIntent.
    :param str routing_intent_name: The name of the RoutingIntent.
    :param str virtual_hub_name: The name of the VirtualHub.
    """
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['routingIntentName'] = routing_intent_name
    __args__['virtualHubName'] = virtual_hub_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:network/v20230401:getRoutingIntent', __args__, opts=opts, typ=GetRoutingIntentResult).value
    return AwaitableGetRoutingIntentResult(
        etag=pulumi.get(__ret__, 'etag'),
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        provisioning_state=pulumi.get(__ret__, 'provisioning_state'),
        routing_policies=pulumi.get(__ret__, 'routing_policies'),
        type=pulumi.get(__ret__, 'type'))