#NEWLINE# def put_pipeline_definition( self , pipeline_objects , pipeline_id , parameter_objects = None , parameter_values = None ) : #NEWLINE# #INDENT# '\n    Adds tasks, schedules, and preconditions that control the\n    behavior of the pipeline. You can use PutPipelineDefinition to\n    populate a new pipeline or to update an existing pipeline that\n    has not yet been activated.\n    ' #NEWLINE# params = { #NEWLINE# #INDENT# 'pipelineId' : pipeline_id , #NEWLINE# 'pipelineObjects' : pipeline_objects , #NEWLINE# #UNINDENT# } #NEWLINE# if ( parameter_objects is not None ) : #NEWLINE# #INDENT# params [ 'parameterObjects' ] = parameter_objects #NEWLINE# #UNINDENT# if ( parameter_objects is not None ) : #NEWLINE# #INDENT# params [ 'parameterValues' ] = parameter_values #NEWLINE# #UNINDENT# return self . make_request ( action = 'PutPipelineDefinition' , body = json . dumps ( params ) )