list_assessment_targets
¶
list_assessment_targets(
*,
config_overrides: Optional[InspectorClientConfig] = None,
filter: Optional[AssessmentTargetFilter] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[ListMaxResults] = None,
) -> ListAssessmentTargetsResponse
Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
Parameters:
-
filter(Optional[AssessmentTargetFilter], 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 ListAssessmentTargets 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.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List assessment targets Lists the ARNs of the assessment targets within this AWS account.
Source code in docs_src/capo_inspector/_services/inspector.py
1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 | |