Assurance / Client / list_environments

list_environments

Assurance.Client.list_environments(**kwargs)

Lists your governance environments. If more results are available, the response includes a nextToken value. To get the next page, pass that value in your next request.

See also: AWS API Documentation

Request Syntax

response = client.list_environments(
    maxResults=123,
    nextToken='string'
)
Parameters:
  • maxResults (integer) – The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • nextToken (string) – The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Return type:

dict

Returns:

Response Syntax

{
    'environments': [
        {
            'environmentId': 'string',
            'environmentName': 'string',
            'environmentArn': 'string',
            'status': 'CREATED'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • environments (list) –

      The list of environments.

      • (dict) –

        Summary of a governance environment, containing only limited information.

        • environmentId (string) –

          The unique identifier of the environment.

        • environmentName (string) –

          The name of the environment.

        • environmentArn (string) –

          The ARN of this governance environment.

        • status (string) –

          The current lifecycle state of the environment.

    • nextToken (string) –

      The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Exceptions