:doc:`GameLift <../../gamelift>` / Client / validate_matchmaking_rule_set

*****************************
validate_matchmaking_rule_set
*****************************



.. py:method:: GameLift.Client.validate_matchmaking_rule_set(**kwargs)

  

  **This API works with the following fleet types:** EC2, Anywhere, Container

   

  Validates the syntax of a matchmaking rule or rule set. This operation checks that the rule set is using syntactically correct JSON and that it conforms to allowed property expressions. To validate syntax, provide a rule set JSON string.

   

  **Learn more**

   

  
  * `Build a rule set <https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-rulesets.html>`__
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ValidateMatchmakingRuleSet>`_  


  **Request Syntax**
  ::

    response = client.validate_matchmaking_rule_set(
        RuleSetBody='string'
    )
    
  :type RuleSetBody: string
  :param RuleSetBody: **[REQUIRED]** 

    A collection of matchmaking rules to validate, formatted as a JSON string.

    

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

    
    ::

      {
          'Valid': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Valid** *(boolean) --* 

        A response indicating whether the rule set is valid.

        
  
  **Exceptions**
  
  *   :py:class:`GameLift.Client.exceptions.InternalServiceException`

  
  *   :py:class:`GameLift.Client.exceptions.UnsupportedRegionException`

  
  *   :py:class:`GameLift.Client.exceptions.InvalidRequestException`

  