'Override the next function to support paging'

def __iter__(self):

    results = super(ResourceRecordSets, self).__iter__()
    truncated = self.is_truncated
    while results:
        for obj in results:
            (yield obj)
        if self.is_truncated:
            self.is_truncated = False
            results = self.connection.get_all_rrsets(self.hosted_zone_id, name=self.next_record_name, type=self.next_record_type, identifier=self.next_record_identifier)
        else:
            results = None
            self.is_truncated = truncated
