list_findings
async
¶
list_findings(
analyzer_arn: AnalyzerArn,
*,
config_overrides: Optional[AsyncAccessAnalyzerClientConfig] = None,
filter: Optional[FilterCriteriaMap] = None,
sort: Optional[SortCriteria] = None,
next_token: Optional[Token] = None,
max_results: Optional[int] = None,
) -> ListFindingsResponse
Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action.
To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
ListFindings is supported only for external access analyzers. You must use ListFindingsV2 for internal and unused access analyzers.
Parameters:
-
analyzer_arn(AnalyzerArn) –The ARN of the analyzer to retrieve findings from.
-
filter(Optional[FilterCriteriaMap], default:None) –A filter to match for the findings to return.
-
sort(Optional[SortCriteria], default:None) –The sort order for the findings returned.
-
next_token(Optional[Token], default:None) –A token used for pagination of results returned.
-
max_results(Optional[int], default:None) –The maximum number of results to return in the response.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–Internal server error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ThrottlingException–Throttling limit exceeded error.
-
ValidationException–Validation exception error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_accessanalyzer/_services/async_access_analyzer.py
1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 | |