list_export_jobs_v2
async
¶
list_export_jobs_v2(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = 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/async_security_hub.py
6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 | |