list_imports
async
¶
list_imports(
*,
config_overrides: Optional[AsyncCloudTrailClientConfig] = None,
max_results: Optional[ListImportsMaxResultsCount] = None,
destination: Optional[EventDataStoreArn] = None,
import_status: Optional[ImportStatus] = None,
next_token: Optional[PaginationToken] = None,
) -> ListImportsResponse
CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change.
Returns information on all imports, or a select set of imports by ImportStatus or Destination.
Parameters:
-
max_results(Optional[ListImportsMaxResultsCount], default:None) –The maximum number of imports to display on a single page.
-
destination(Optional[EventDataStoreArn], default:None) –The ARN of the destination event data store.
-
import_status(Optional[ImportStatus], default:None) –The status of the import.
-
next_token(Optional[PaginationToken], default:None) –A token you can use to get the next page of import results.
Raises:
-
EventDataStoreARNInvalidException–The specified event data store ARN is not valid or does not map to an event data store in your account.
-
InvalidNextTokenException–A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid.
-
InvalidParameterException–The request includes a parameter that is not valid.
-
OperationNotPermittedException–This exception is thrown when the requested operation is not permitted.
-
UnsupportedOperationException–This exception is thrown when the requested operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudtrail/_services/async_cloud_trail.py
2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 | |