:doc:`FraudDetector <../../frauddetector>` / Client / update_rule_version

*******************
update_rule_version
*******************



.. py:method:: FraudDetector.Client.update_rule_version(**kwargs)

  

  Updates a rule version resulting in a new rule version. Updates a rule version resulting in a new rule version (version 1, 2, 3 ...).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleVersion>`_  


  **Request Syntax**
  ::

    response = client.update_rule_version(
        rule={
            'detectorId': 'string',
            'ruleId': 'string',
            'ruleVersion': 'string'
        },
        description='string',
        expression='string',
        language='DETECTORPL',
        outcomes=[
            'string',
        ],
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type rule: dict
  :param rule: **[REQUIRED]** 

    The rule to update.

    

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

      The detector for which the rule is associated.

      

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

      The rule ID.

      

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

      The rule version.

      

    
  
  :type description: string
  :param description: 

    The description.

    

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

    The rule expression.

    

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

    The language.

    

  
  :type outcomes: list
  :param outcomes: **[REQUIRED]** 

    The outcomes.

    

  
    - *(string) --* 

    

  :type tags: list
  :param tags: 

    The tags to assign to the rule version.

    

  
    - *(dict) --* 

      A key and value pair.

      

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

        A tag key.

        

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

        A value assigned to a tag key.

        

      
    

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

    
    ::

      {
          'rule': {
              'detectorId': 'string',
              'ruleId': 'string',
              'ruleVersion': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **rule** *(dict) --* 

        The new rule version that was created.

        
        

        - **detectorId** *(string) --* 

          The detector for which the rule is associated.

          
        

        - **ruleId** *(string) --* 

          The rule ID.

          
        

        - **ruleVersion** *(string) --* 

          The rule version.

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

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

  
  *   :py:class:`FraudDetector.Client.exceptions.InternalServerException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ThrottlingException`

  
  *   :py:class:`FraudDetector.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ConflictException`

  