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
6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 | |