def METHOD_NAME(namespace_name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    topic_space_name: Optional[str] = None,
                    opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTopicSpaceResult:
    """
    Get properties of a topic space.
    Azure REST API version: 2023-06-01-preview.
    :param str namespace_name: Name of the namespace.
    :param str resource_group_name: The name of the resource group within the user's subscription.
    :param str topic_space_name: Name of the Topic space.
    """
    __args__ = dict()
    __args__['namespaceName'] = namespace_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['topicSpaceName'] = topic_space_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:eventgrid:getTopicSpace', __args__, opts=opts, typ=GetTopicSpaceResult).value
    return AwaitableGetTopicSpaceResult(
        description=pulumi.get(__ret__, 'description'),
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        provisioning_state=pulumi.get(__ret__, 'provisioning_state'),
        system_data=pulumi.get(__ret__, 'system_data'),
        topic_templates=pulumi.get(__ret__, 'topic_templates'),
        type=pulumi.get(__ret__, 'type'))