def put_pipeline_definition(pipeline_id, pipeline_objects, parameter_objects=None, parameter_values=None, region=None, key=None, keyid=None, profile=None):
 parameter_objects = (parameter_objects or [])
 parameter_values = (parameter_values or [])
 client = _get_client(region, key, keyid, profile)
 r = {}
 try:
  response = client.put_pipeline_definition(pipelineId=pipeline_id, pipelineObjects=pipeline_objects, parameterObjects=parameter_objects, parameterValues=parameter_values)
  if response['errored']:
   r['error'] = response['validationErrors']
  else:
   r['result'] = response
 except (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) as e:
  r['error'] = str(e)
 return r

def put_pipeline_definition ( pipeline_id , pipeline_objects , parameter_objects = None , parameter_values = None , region = None , key = None , keyid = None , profile = None ) : parameter_objects = ( parameter_objects or [ ] ) parameter_values = ( parameter_values or [ ] ) client = _get_client ( region , key , keyid , profile ) r = { } try : response = client . put_pipeline_definition ( pipelineId = pipeline_id , pipelineObjects = pipeline_objects , parameterObjects = parameter_objects , parameterValues = parameter_values ) if response [ 'errored' ] : r [ 'error' ] = response [ 'validationErrors' ] else : r [ 'result' ] = response except ( botocore . exceptions . BotoCoreError , botocore . exceptions . ClientError ) as e : r [ 'error' ] = str ( e ) return r
add tasks .