list_adapter_versions
async
¶
list_adapter_versions(
*,
config_overrides: Optional[AsyncTextractClientConfig] = None,
adapter_id: Optional[AdapterId] = None,
after_creation_time: Optional[DateTime] = None,
before_creation_time: Optional[DateTime] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListAdapterVersionsResponse
List all version of an adapter that meet the specified filtration criteria.
Parameters:
-
adapter_id(Optional[AdapterId], default:None) –A string containing a unique ID for the adapter to match for when listing adapter versions.
-
after_creation_time(Optional[DateTime], default:None) –Specifies the lower bound for the ListAdapterVersions operation. Ensures ListAdapterVersions returns only adapter versions created after the specified creation time.
-
before_creation_time(Optional[DateTime], default:None) –Specifies the upper bound for the ListAdapterVersions operation. Ensures ListAdapterVersions returns only adapter versions created after the specified creation time.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return when listing adapter versions.
-
next_token(Optional[PaginationToken], default:None) –Identifies the next page of results to return when listing adapter versions.
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.
-
ThrottlingException–Amazon Textract is temporarily unable to process the request. Try your call again.
-
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
1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 | |