list_findings
¶
list_findings(
*,
config_overrides: Optional[InspectorClientConfig] = None,
assessment_run_arns: Optional[ListParentArnList] = None,
filter: Optional[FindingFilter] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[ListMaxResults] = None,
) -> ListFindingsResponse
Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
Parameters:
-
assessment_run_arns(Optional[ListParentArnList], default:None) –The ARNs of the assessment runs that generate the findings that you want to list.
-
filter(Optional[FindingFilter], default:None) –You can use this parameter to specify a subset of data to be included in the action's response.
For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.
-
next_token(Optional[PaginationToken], default:None) –You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListFindings action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
-
max_results(Optional[ListMaxResults], default:None) –You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
Raises:
-
AccessDeniedException–You do not have required permissions to access the requested resource.
-
InternalException–Internal server error.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
NoSuchEntityException–The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List findings Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
>>> client.list_findings(assessment_run_arns=['arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE'], max_results=123)
Source code in docs_src/capo_inspector/_services/inspector.py
1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 | |