def METHOD_NAME(cloud: str) -> azure_cloud.CloudEndpoints:
    """
    Get a list of all the endpoints for an Azure cloud.
    Parameters
    ----------
    cloud : str
        The name of the Azure cloud to get endpoints for.
    Returns
    -------
    dict
        A dictionary of endpoints for the cloud.
    Raises
    ------
    MsticpyAzureConfigError
        If the cloud name is not valid.
    """
    cloud = CLOUD_ALIASES.get(cloud, cloud)
    try:
        endpoints = CLOUD_MAPPING[cloud].endpoints
    except KeyError as cloud_err:
        raise MsticpyAzureConfigError(
            f"""{cloud} is not a valid Azure cloud name.
        Valid names are 'global', 'usgov', 'de', 'cn'"""
        ) from cloud_err
    return endpoints