

@cli.command(help='List EMR clusters')
@click.argument('name', default='*')
def ls(name):
    'List EMR instances'
    client = boto3.client('emr')
    results = client.list_clusters(ClusterStates=['RUNNING', 'STARTING', 'BOOTSTRAPPING', 'WAITING'])
    for cluster in results['Clusters']:
        click.echo('{0}\t{1}\t{2}'.format(cluster['Id'], cluster['Name'], cluster['Status']['State']))

dataset/ETHPy150Open achiku/jungle/jungle/emr.py ls/original