:doc:`MailManager <../../mailmanager>` / Client / list_rule_sets

**************
list_rule_sets
**************



.. py:method:: MailManager.Client.list_rule_sets(**kwargs)

  

  List rule sets for this account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mailmanager-2023-10-17/ListRuleSets>`_  


  **Request Syntax**
  ::

    response = client.list_rule_sets(
        NextToken='string',
        PageSize=123
    )
    
  :type NextToken: string
  :param NextToken: 

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

    

  
  :type PageSize: integer
  :param PageSize: 

    The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.

    

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

    
    ::

      {
          'RuleSets': [
              {
                  'RuleSetId': 'string',
                  'RuleSetName': 'string',
                  'LastModificationDate': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RuleSets** *(list) --* 

        The list of rule sets.

        
        

        - *(dict) --* 

          A rule set contains a list of rules that are evaluated in order. Each rule is evaluated sequentially for each email.

          
          

          - **RuleSetId** *(string) --* 

            The identifier of the rule set.

            
          

          - **RuleSetName** *(string) --* 

            A user-friendly name for the rule set.

            
          

          - **LastModificationDate** *(datetime) --* 

            The last modification date of the rule set.

            
      
    
      

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

        If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

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

  