def get_list_packages(client, domain, domainOwner, repository, format):
    """Get list packages in CodeArtifact repository"""
    response = client.list_packages(
        domain=domain,
        domainOwner=domainOwner,
        repository=repository,
        format=format,
        maxResults=100
    )
    return response['packages']