:doc:`GlueDataBrew <../../databrew>` / Client / update_recipe

*************
update_recipe
*************



.. py:method:: GlueDataBrew.Client.update_recipe(**kwargs)

  

  Modifies the definition of the ``LATEST_WORKING`` version of a DataBrew recipe.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/databrew-2017-07-25/UpdateRecipe>`_  


  **Request Syntax**
  ::

    response = client.update_recipe(
        Description='string',
        Name='string',
        Steps=[
            {
                'Action': {
                    'Operation': 'string',
                    'Parameters': {
                        'string': 'string'
                    }
                },
                'ConditionExpressions': [
                    {
                        'Condition': 'string',
                        'Value': 'string',
                        'TargetColumn': 'string'
                    },
                ]
            },
        ]
    )
    
  :type Description: string
  :param Description: 

    A description of the recipe.

    

  
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the recipe to be updated.

    

  
  :type Steps: list
  :param Steps: 

    One or more steps to be performed by the recipe. Each step consists of an action, and the conditions under which the action should succeed.

    

  
    - *(dict) --* 

      Represents a single step from a DataBrew recipe to be performed.

      

    
      - **Action** *(dict) --* **[REQUIRED]** 

        The particular action to be performed in the recipe step.

        

      
        - **Operation** *(string) --* **[REQUIRED]** 

          The name of a valid DataBrew transformation to be performed on the data.

          

        
        - **Parameters** *(dict) --* 

          Contextual parameters for the transformation.

          

        
          - *(string) --* 

          
            - *(string) --* 

            
      
    
      
      - **ConditionExpressions** *(list) --* 

        One or more conditions that must be met for the recipe step to succeed.

         

        .. note::

          

          All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.

          

        

      
        - *(dict) --* 

          Represents an individual condition that evaluates to true or false.

           

          Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.

           

          If a recipe requires more than one condition, then the recipe must specify multiple ``ConditionExpression`` elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.

          

        
          - **Condition** *(string) --* **[REQUIRED]** 

            A specific condition to apply to a recipe action. For more information, see `Recipe structure <https://docs.aws.amazon.com/databrew/latest/dg/recipes.html#recipes.structure>`__ in the *Glue DataBrew Developer Guide*.

            

          
          - **Value** *(string) --* 

            A value that the condition must evaluate to for the condition to succeed.

            

          
          - **TargetColumn** *(string) --* **[REQUIRED]** 

            A column to apply this condition to.

            

          
        
    
    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Name': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Name** *(string) --* 

        The name of the recipe that was updated.

        
  
  **Exceptions**
  
  *   :py:class:`GlueDataBrew.Client.exceptions.ValidationException`

  
  *   :py:class:`GlueDataBrew.Client.exceptions.ResourceNotFoundException`

  