Textract / Client / list_projects

list_projects

Textract.Client.list_projects(**kwargs)

Lists the projects that are available to the caller, with optional filtering by blueprint. The results are paginated. If the response includes a NextToken value, pass it in a subsequent call to retrieve the next page of results.

See also: AWS API Documentation

Request Syntax

response = client.list_projects(
    MaxResults=123,
    NextToken='string',
    BlueprintFilter={
        'BlueprintArn': 'string',
        'BlueprintVersion': 'string'
    }
)
Parameters:
  • MaxResults (integer) – The maximum number of projects to return in each page of results. If you don’t specify a value, the service selects a default page size. Use the NextToken value in the response to retrieve any remaining results.

  • NextToken (string) – A pagination token returned from a previous call to ListProjects. Use it to retrieve the next page of results.

  • BlueprintFilter (dict) –

    A filter that limits the results to projects associated with the specified blueprint.

    • BlueprintArn (string) – [REQUIRED]

      The Amazon Resource Name (ARN) of the blueprint to filter by.

    • BlueprintVersion (string) –

      The version of the blueprint to filter by.

Return type:

dict

Returns:

Response Syntax

{
    'Projects': [
        {
            'ProjectArn': 'string',
            'ProjectName': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Projects (list) –

      A list of project summaries that match the request.

      • (dict) –

        A summary of a project, returned in the results of ListProjects.

        • ProjectArn (string) –

          The Amazon Resource Name (ARN) of the project.

        • ProjectName (string) –

          The name of the project.

        • CreationTime (datetime) –

          The date and time that the project was created.

        • LastModifiedTime (datetime) –

          The date and time that the project was last modified.

    • NextToken (string) –

      A pagination token to use in a subsequent call to ListProjects to retrieve the next page of results. This value is null when there are no more results to return.

Exceptions

  • Textract.Client.exceptions.InvalidParameterException

  • Textract.Client.exceptions.ValidationException

  • Textract.Client.exceptions.AccessDeniedException

  • Textract.Client.exceptions.ResourceNotFoundException

  • Textract.Client.exceptions.ProvisionedThroughputExceededException

  • Textract.Client.exceptions.InternalServerError