MWAA / Client / list_environments

list_environments#

MWAA.Client.list_environments(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.list_environments(
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • MaxResults (integer) – The maximum number of results to retrieve per page. For example, 5 environments per page.

  • NextToken (string) – Retrieves the next page of the results.

Return type:

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

  • MWAA.Client.exceptions.ValidationException

  • MWAA.Client.exceptions.InternalServerException