list_projects
¶
list_projects(
*,
config_overrides: Optional[TextractClientConfig] = 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/textract.py
2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 | |