def get_list_of_objects(client, bucket):
    list_of_objects = []
    response = client.list_objects_v2(Bucket=bucket, MaxKeys=MAX_OBJECT_LIMIT)
    list_of_objects.extend(get_keys_from_response(response))
    token = get_token_from_response(response)
    while (len(token) > 0):
        response = client.list_objects_v2(Bucket=bucket, MaxKeys=MAX_OBJECT_LIMIT, ContinuationToken=token)
        list_of_objects.extend(get_keys_from_response(response))
        token = get_token_from_response(response)
    return list_of_objects
def get_list_of_objects(client, bucket):
    list_of_objects = []
    response = client.list_objects_v2(Bucket=bucket, MaxKeys=MAX_OBJECT_LIMIT)
    list_of_objects.extend(get_keys_from_response(response))
    token = get_token_from_response(response)
    while (len(token) > 0):
        response = client.list_objects_v2(Bucket=bucket, MaxKeys=MAX_OBJECT_LIMIT, ContinuationToken=token)
        list_of_objects.extend(get_keys_from_response(response))
        token = get_token_from_response(response)
    return list_of_objects