list_assessment_targets
async
¶
list_assessment_targets(
*,
config_overrides: Optional[AsyncInspectorClientConfig] = 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/async_inspector.py
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 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 | |