list_projects
async
¶
list_projects(
*,
config_overrides: Optional[AsyncTextractClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[IntelligencePaginationToken] = None,
blueprint_filter: Optional[BlueprintFilter] = None,
) -> ListProjectsResponse
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.
Parameters:
-
max_results(Optional[MaxResults], default:None) –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
NextTokenvalue in the response to retrieve any remaining results. -
next_token(Optional[IntelligencePaginationToken], default:None) –A pagination token returned from a previous call to
ListProjects. Use it to retrieve the next page of results. -
blueprint_filter(Optional[BlueprintFilter], default:None) –A filter that limits the results to projects associated with the specified blueprint.
Raises:
-
AccessDeniedException–You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation.
-
InternalServerError–Amazon Textract experienced a service issue. Try your call again.
-
InvalidParameterException–An input parameter violated a constraint. For example, in synchronous operations, an
InvalidParameterExceptionexception occurs when neither of theS3ObjectorBytesvalues are supplied in theDocumentrequest parameter. Validate your parameter before calling the API operation again. -
ProvisionedThroughputExceededException–The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
-
ResourceNotFoundException–Returned when an operation tried to access a nonexistent resource.
-
ValidationException–Indicates that a request was not valid. Check request for proper formatting.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_textract/_services/async_textract.py
2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 | |