:doc:`ConfigService <../../config>` / Client / get_custom_rule_policy

**********************
get_custom_rule_policy
**********************



.. py:method:: ConfigService.Client.get_custom_rule_policy(**kwargs)

  

  Returns the policy definition containing the logic for your Config Custom Policy rule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetCustomRulePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_custom_rule_policy(
        ConfigRuleName='string'
    )
    
  :type ConfigRuleName: string
  :param ConfigRuleName: 

    The name of your Config Custom Policy rule.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **PolicyText** *(string) --* 

        The policy definition containing the logic for your Config Custom Policy rule.

        
  
  **Exceptions**
  
  *   :py:class:`ConfigService.Client.exceptions.NoSuchConfigRuleException`

  