:doc:`VPCLattice <../../vpc-lattice>` / Paginator / ListRules

*********
ListRules
*********



.. py:class:: VPCLattice.Paginator.ListRules

  ::

    
    paginator = client.get_paginator('list_rules')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`VPCLattice.Client.list_rules`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/vpc-lattice-2022-11-30/ListRules>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          serviceIdentifier='string',
          listenerIdentifier='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type serviceIdentifier: string
    :param serviceIdentifier: **[REQUIRED]** 

      The ID or ARN of the service.

      

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

      The ID or ARN of the listener.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

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

      
      ::

        {
            'items': [
                {
                    'arn': 'string',
                    'id': 'string',
                    'name': 'string',
                    'isDefault': True|False,
                    'priority': 123,
                    'createdAt': datetime(2015, 1, 1),
                    'lastUpdatedAt': datetime(2015, 1, 1)
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **items** *(list) --* 

          Information about the rules.

          
          

          - *(dict) --* 

            Summary information about a listener rule.

            
            

            - **arn** *(string) --* 

              The Amazon Resource Name (ARN) of the rule.

              
            

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

              The ID of the rule.

              
            

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

              The name of the rule.

              
            

            - **isDefault** *(boolean) --* 

              Indicates whether this is the default listener rule.

              
            

            - **priority** *(integer) --* 

              The priority of the rule.

              
            

            - **createdAt** *(datetime) --* 

              The date and time that the listener rule was created, in ISO-8601 format.

              
            

            - **lastUpdatedAt** *(datetime) --* 

              The date and time that the listener rule was last updated, in ISO-8601 format.

              
        
      
        

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

          A token to resume pagination.

          
    