:doc:`SFN <../../stepfunctions>` / Client / list_state_machines

*******************
list_state_machines
*******************



.. py:method:: SFN.Client.list_state_machines(**kwargs)

  

  Lists the existing state machines.

   

  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. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an *HTTP 400 InvalidToken* error.

   

  .. note::

    

    This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines>`_  


  **Request Syntax**
  ::

    response = client.list_state_machines(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results that are returned per call. You can use ``nextToken`` to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.

     

    This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

    

  
  :type nextToken: string
  :param nextToken: 

    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. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an *HTTP 400 InvalidToken* error.

    

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

    
    ::

      {
          'stateMachines': [
              {
                  'stateMachineArn': 'string',
                  'name': 'string',
                  'type': 'STANDARD'|'EXPRESS',
                  'creationDate': datetime(2015, 1, 1)
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **stateMachines** *(list) --* 
        

        - *(dict) --* 

          Contains details about the state machine.

          
          

          - **stateMachineArn** *(string) --* 

            The Amazon Resource Name (ARN) that identifies the state machine.

            
          

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

            The name of the state machine.

             

            A name must *not* contain:

             

            
            * white space
             
            * brackets ``< > { } [ ]``
             
            * wildcard characters ``? *``
             
            * special characters ``" # % \ ^ | ~ ` $ & , ; : /``
             
            * control characters ( ``U+0000-001F``, ``U+007F-009F``, ``U+FFFE-FFFF``)
             
            * surrogates ( ``U+D800-DFFF``)
             
            * invalid characters ( `` U+10FFFF``)
            

             

            To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.

            
          

          - **type** *(string) --* 
          

          - **creationDate** *(datetime) --* 

            The date the state machine is created.

            
      
    
      

      - **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. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an *HTTP 400 InvalidToken* error.

        
  
  **Exceptions**
  
  *   :py:class:`SFN.Client.exceptions.InvalidToken`

  