:doc:`MWAA <../../mwaa>` / Client / list_environments

*****************
list_environments
*****************



.. py:method:: MWAA.Client.list_environments(**kwargs)

  

  Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/ListEnvironments>`_  


  **Request Syntax**
  ::

    response = client.list_environments(
        NextToken='string',
        MaxResults=123
    )
    
  :type NextToken: string
  :param NextToken: 

    Retrieves the next page of the results.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to retrieve per page. For example, ``5`` environments per page.

    

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

    
    ::

      {
          'Environments': [
              'string',
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Environments** *(list) --* 

        Returns a list of Amazon MWAA environments.

        
        

        - *(string) --* 
    
      

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

        Retrieves the next page of the results.

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

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

  