def get_all_cfn_resources_by_type(resource_array: list, resource_type: str) -> list:
    """
    Given a list of cloudformation stack resources, filters the resources by the specified type

    Parameters:
        resource_array (list): an Array of Cloudformation Stack Resources
        resource_type (string): the Name of the Cloudformation Resource type to filter for - example: AWS::EC2::Instance

    Returns:
        An array of dict - containing the filtered Cloudformation resources
    """
    result = []

    for resource in resource_array:
        if resource['ResourceType'] == resource_type:
            result.append(resource)
    return result