def METHOD_NAME(domain_name: Optional[str] = None,
                                                 event_subscription_name: Optional[str] = None,
                                                 resource_group_name: Optional[str] = None,
                                                 topic_name: Optional[str] = None,
                                                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDomainTopicEventSubscriptionFullUrlResult:
    """
    Get the full endpoint URL for a nested event subscription for domain topic.
    Azure REST API version: 2022-06-15.
    :param str domain_name: Name of the top level domain.
    :param str event_subscription_name: Name of the event subscription.
    :param str resource_group_name: The name of the resource group within the user's subscription.
    :param str topic_name: Name of the domain topic.
    """
    __args__ = dict()
    __args__['domainName'] = domain_name
    __args__['eventSubscriptionName'] = event_subscription_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['topicName'] = topic_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:eventgrid:getDomainTopicEventSubscriptionFullUrl', __args__, opts=opts, typ=GetDomainTopicEventSubscriptionFullUrlResult).value
    return AwaitableGetDomainTopicEventSubscriptionFullUrlResult(
        endpoint_url=pulumi.get(__ret__, 'endpoint_url'))