def METHOD_NAME(end_time_stamp: Optional[str] = None,
                                  page_index: Optional[int] = None,
                                  page_size: Optional[int] = None,
                                  resource_group_name: Optional[str] = None,
                                  start_time_stamp: Optional[str] = None,
                                  test_base_account_name: Optional[str] = None,
                                  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBillingHubServiceUsageResult:
    """
    Use this data source to access information about an existing resource.
    :param str resource_group_name: The name of the resource group that contains the resource.
    :param str test_base_account_name: The resource name of the Test Base Account.
    """
    __args__ = dict()
    __args__['endTimeStamp'] = end_time_stamp
    __args__['pageIndex'] = page_index
    __args__['pageSize'] = page_size
    __args__['resourceGroupName'] = resource_group_name
    __args__['startTimeStamp'] = start_time_stamp
    __args__['testBaseAccountName'] = test_base_account_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:testbase/v20220401preview:getBillingHubServiceUsage', __args__, opts=opts, typ=GetBillingHubServiceUsageResult).value
    return AwaitableGetBillingHubServiceUsageResult(
        next_request=pulumi.get(__ret__, 'next_request'),
        package_usage_entries=pulumi.get(__ret__, 'package_usage_entries'),
        total_charges=pulumi.get(__ret__, 'total_charges'),
        total_used_billable_hours=pulumi.get(__ret__, 'total_used_billable_hours'),
        total_used_free_hours=pulumi.get(__ret__, 'total_used_free_hours'))