:doc:`Route53RecoveryReadiness <../../route53-recovery-readiness>` / Client / list_rules

**********
list_rules
**********



.. py:method:: Route53RecoveryReadiness.Client.list_rules(**kwargs)

  

  Lists all readiness rules, or lists the readiness rules for a specific resource type.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/route53-recovery-readiness-2019-12-02/ListRules>`_  


  **Request Syntax**
  ::

    response = client.list_rules(
        MaxResults=123,
        NextToken='string',
        ResourceType='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The number of objects that you want to return with this call.

    

  
  :type NextToken: string
  :param NextToken: 

    The token that identifies which batch of results you want to see.

    

  
  :type ResourceType: string
  :param ResourceType: 

    The resource type that a readiness rule applies to.

    

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

    
    ::

      {
          'NextToken': 'string',
          'Rules': [
              {
                  'ResourceType': 'string',
                  'RuleDescription': 'string',
                  'RuleId': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      200 response - Success.

      
      

      - **NextToken** *(string) --* 

        The token that identifies which batch of results you want to see.

        
      

      - **Rules** *(list) --* 

        A list of readiness rules for a specific resource type.

        
        

        - *(dict) --* 

          Readiness rule information, including the resource type, rule ID, and rule description.

          
          

          - **ResourceType** *(string) --* 

            The resource type that the readiness rule applies to.

            
          

          - **RuleDescription** *(string) --* 

            The description of a readiness rule.

            
          

          - **RuleId** *(string) --* 

            The ID for the readiness rule.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Route53RecoveryReadiness.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Route53RecoveryReadiness.Client.exceptions.ValidationException`

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

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

  