def get_config_rules_statuses(config):
    """Retrieves all of the AWS Config rules.

    Args:
        config: boto3 config object

    Returns:
        List of AWS Config rules
    """
    config_rules = []
    page_iterator = config.get_paginator("describe_compliance_by_config_rule")

    for page in page_iterator.paginate():
        config_rules += page["ComplianceByConfigRules"]

    return config_rules