def list_pipelines(region=None, key=None, keyid=None, profile=None):
 client = _get_client(region, key, keyid, profile)
 r = {}
 try:
  paginator = client.get_paginator('list_pipelines')
  pipelines = []
  for page in paginator.paginate():
   pipelines += page['pipelineIdList']
  r['result'] = pipelines
 except (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) as e:
  r['error'] = str(e)
 return r

def list_pipelines ( region = None , key = None , keyid = None , profile = None ) : client = _get_client ( region , key , keyid , profile ) r = { } try : paginator = client . get_paginator ( 'list_pipelines' ) pipelines = [ ] for page in paginator . paginate ( ) : pipelines += page [ 'pipelineIdList' ] r [ 'result' ] = pipelines except ( botocore . exceptions . BotoCoreError , botocore . exceptions . ClientError ) as e : r [ 'error' ] = str ( e ) return r
get a list of pipeline ids and names for all pipelines .