list_usage_totals
¶
list_usage_totals(
*,
config_overrides: Optional[Inspector2ClientConfig] = 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/inspector2.py
4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 | |