list_audit_findings
¶
list_audit_findings(
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 | |