:doc:`APIGateway <../../apigateway>` / Client / get_request_validator

*********************
get_request_validator
*********************



.. py:method:: APIGateway.Client.get_request_validator(**kwargs)

  

  Gets a RequestValidator of a given RestApi.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/GetRequestValidator>`_  


  **Request Syntax**
  ::

    response = client.get_request_validator(
        restApiId='string',
        requestValidatorId='string'
    )
    
  :type restApiId: string
  :param restApiId: **[REQUIRED]** 

    The string identifier of the associated RestApi.

    

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

    The identifier of the RequestValidator to be retrieved.

    

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

    
    ::

      {
          'id': 'string',
          'name': 'string',
          'validateRequestBody': True|False,
          'validateRequestParameters': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 

      A set of validation rules for incoming Method requests.

      
      

      - **id** *(string) --* 

        The identifier of this RequestValidator.

        
      

      - **name** *(string) --* 

        The name of this RequestValidator

        
      

      - **validateRequestBody** *(boolean) --* 

        A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

        
      

      - **validateRequestParameters** *(boolean) --* 

        A Boolean flag to indicate whether to validate request parameters ( ``true``) or not ( ``false``).

        
  
  **Exceptions**
  
  *   :py:class:`APIGateway.Client.exceptions.BadRequestException`

  
  *   :py:class:`APIGateway.Client.exceptions.NotFoundException`

  
  *   :py:class:`APIGateway.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`APIGateway.Client.exceptions.TooManyRequestsException`

  