listExportJobsV2
abstract suspend fun listExportJobsV2(input: ListExportJobsV2Request = ListExportJobsV2Request { }): 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.
Samples
// The following example lists the findings export jobs in the account that have succeeded, returning
// up to 10 results per page.
val resp = securityHubClient.listExportJobsV2 {
status = ExportStatus.fromValue("SUCCEEDED")
dataType = ExportDataType.fromValue("FINDINGS")
maxResults = 10
}Content copied to clipboard