list_export_jobs_v2
¶
list_export_jobs_v2(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
status: Optional[ExportStatus] = None,
data_type: Optional[ExportDataType] = None,
max_results: Optional[ExportMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListExportJobsV2Response
Returns the findings export jobs in your account as a paginated list of ExportSummary objects. You can filter the results by job Status or DataType.
To page through the results, use the MaxResults and NextToken parameters. If the response includes a NextToken value, pass it in a subsequent request to retrieve the next page of results.
Each ExportSummary reports the output Format of the job but not its full OutputConfiguration. To retrieve the filters and selected fields that a job was started with, call GetExportJobV2.
Parameters:
-
status(Optional[ExportStatus], default:None) –Filters the results to export jobs that have the specified status.
-
data_type(Optional[ExportDataType], default:None) –Filters the results to export jobs that produce the specified data type.
-
max_results(Optional[ExportMaxResults], default:None) –The maximum number of results to return in a single call. Valid range is 1–20.
-
next_token(Optional[NextToken], default:None) –The token required for pagination. On your first call, set the value of this parameter to
NULL. For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example – Listing successful findings export jobs The following example lists the findings export jobs in the account that have succeeded, returning up to 10 results per page.
Source code in docs_src/capo_securityhub/_services/security_hub.py
6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 | |