def search_computers_by_aws_account(api, configuration, api_version, api_exception, account_id):
    """ Search for protected EC2 instances that belong to a specific AWS account.

    :param api: The Deep Security API modules.
    :param configuration: Configuration object to pass to the api client.
    :param api_version: The version of the API to use.
    :param api_exception: The Deep Security API exception module.
    :param account_id: The ID of the AWS account.
    :return: A Computers object that contains matching computers
    """

    # Search criteria
    computer_criteria = api.SearchCriteria()
    computer_criteria.field_name = "ec2VirtualMachineSummary/accountID"
    computer_criteria.string_test = "equal"
    computer_criteria.string_value = account_id

    # Search filter
    max_items = None
    search_filter = api.SearchFilter(max_items, computer_criteria)

    # Include only the EC2 virtual machine summary in the returned computers
    expand = api.Expand(api.Expand.ec2_virtual_machine_summary)

    # Perform the search
    computers_api = api.ComputersApi(api.ApiClient(configuration))
    return computers_api.search_computers(api_version, search_filter=search_filter, expand=expand.list(), overrides=False)