list_usage_totals
async
¶
list_usage_totals(
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = None,
max_results: Optional[ListUsageTotalsMaxResults] = None,
next_token: Optional[ListUsageTotalsNextToken] = None,
account_ids: Optional[UsageAccountIdList] = None,
) -> ListUsageTotalsResponse
Lists the Amazon Inspector usage totals over the last 30 days.
Parameters:
-
max_results(Optional[ListUsageTotalsMaxResults], default:None) –The maximum number of results the response can return. If your request would return more than the maximum the response will return a
nextTokenvalue, use this value when you call the action again to get the remaining results. -
next_token(Optional[ListUsageTotalsNextToken], default:None) –A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the
maxResultsmaximum value it will also return anextTokenvalue. For subsequent calls, use thenextTokenvalue returned from the previous request to continue listing results after the first page. -
account_ids(Optional[UsageAccountIdList], default:None) –The Amazon Web Services account IDs to retrieve usage totals for.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_inspector2/_services/async_inspector2.py
4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 | |