list_assessment_run_agents
async
¶
list_assessment_run_agents(
assessment_run_arn: Arn,
*,
config_overrides: Optional[AsyncInspectorClientConfig] = None,
filter: Optional[AgentFilter] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[ListMaxResults] = None,
) -> ListAssessmentRunAgentsResponse
Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
Parameters:
-
assessment_run_arn(Arn) –The ARN that specifies the assessment run whose agents you want to list.
-
filter(Optional[AgentFilter], 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 ListAssessmentRunAgents 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 that 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 assessment run agents Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
>>> await client.list_assessment_run_agents(assessment_run_arn='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/async_inspector.py
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 | |