Assurance / Client / list_projects

list_projects

Assurance.Client.list_projects(**kwargs)

Lists all projects within a governance environment.

See also: AWS API Documentation

Request Syntax

response = client.list_projects(
    environmentArn='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The ARN of this governance environment.

  • 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

{
    'projects': [
        {
            'project': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • projects (list) –

      The list of projects.

      • (dict) –

        Summary of a project.

        • project (string) –

          The name of the project.

    • 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

  • Assurance.Client.exceptions.ValidationException

  • Assurance.Client.exceptions.InternalServerException

  • Assurance.Client.exceptions.ThrottlingException

  • Assurance.Client.exceptions.AccessDeniedException

  • Assurance.Client.exceptions.ResourceNotFoundException