list_audit_findings
async
¶
list_audit_findings(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
task_id: Optional[AuditTaskId] = None,
check_name: Optional[AuditCheckName] = None,
resource_identifier: Optional[ResourceIdentifier] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
start_time: Optional[Timestamp] = None,
end_time: Optional[Timestamp] = None,
list_suppressed_findings: Optional[ListSuppressedFindings] = None,
) -> ListAuditFindingsResponse
Lists the findings (results) of a Device Defender audit or of the audits performed during a specified time period. (Findings are retained for 90 days.)
Requires permission to access the ListAuditFindings action.
Parameters:
-
task_id(Optional[AuditTaskId], default:None) –A filter to limit results to the audit with the specified ID. You must specify either the taskId or the startTime and endTime, but not both.
-
check_name(Optional[AuditCheckName], default:None) –A filter to limit results to the findings for the specified audit check.
-
resource_identifier(Optional[ResourceIdentifier], default:None) –Information identifying the noncompliant resource.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return at one time. The default is 25.
-
next_token(Optional[NextToken], default:None) –The token for the next set of results.
-
start_time(Optional[Timestamp], default:None) –A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both.
-
end_time(Optional[Timestamp], default:None) –A filter to limit results to those found before the specified time. You must specify either the startTime and endTime or the taskId, but not both.
-
list_suppressed_findings(Optional[ListSuppressedFindings], default:None) –Boolean flag indicating whether only the suppressed findings or the unsuppressed findings should be listed. If this parameter isn't provided, the response will list both suppressed and unsuppressed findings.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 | |