FindingsOutput
¶
Source code in docs_src/capo_securityhub/types/findings_output.py
filters
instance-attribute
¶
filters: NotRequired[OcsfFindingFilters]
An optional set of OCSF finding filters that restrict which findings are exported. The filter structure is the same as the one used by GetFindingsV2. If you omit this member, Security Hub exports all findings available to the caller. When echoed by GetExportJobV2, relative date ranges are returned unresolved.
format
instance-attribute
¶
format: NotRequired[FindingsExportFormat]
The output format of the export. CSV produces comma-separated rows that are suitable for spreadsheets and analysis tools. OCSF_JSON produces newline-delimited JSON records in the Open Cybersecurity Schema Framework (OCSF) format used elsewhere in Security Hub.
selected_fields
instance-attribute
¶
selected_fields: NotRequired[FindingsSelectedFieldList]
The OCSF finding fields to include in the export, specified as OCSF field paths (for example, finding_info.title or severity). You can specify from 1 to 50 fields.
Whether this parameter is required depends on the value of Format:
-
CSV– Required. The field paths that you specify become the columns of the output, in the order that you provide them. If you omit this parameter, the request returns aValidationException. -
OCSF_JSON– Not supported. This format includes each finding in full, so field selection doesn't apply. If you specify this parameter, the request returns aValidationException.