list_free_trial_statuses_v2
async
¶
list_free_trial_statuses_v2(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
account_ids: Optional[FreeTrialAccountIdList] = None,
statuses: Optional[FreeTrialStatusValueList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListFreeTrialStatusesV2Response
Lists the free trial status of Security Hub features. A delegated Security Hub administrator can list the status for accounts in its organization. Any other account can list the status only for itself. Free trial status remains available after a feature is disabled.
Parameters:
-
account_ids(Optional[FreeTrialAccountIdList], default:None) –The Amazon Web Services account identifiers to list free trial status for. You can specify accounts other than your own only if you are a delegated Security Hub administrator.
-
statuses(Optional[FreeTrialStatusValueList], default:None) –The free trial statuses to filter the results by. Valid values:
-
ACTIVEreturns only features with an ongoing free trial period. -
INACTIVEreturns only features whose free trial period has ended, or that never started.
-
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return. If you don't specify a value, Security Hub returns up to 100 results.
-
next_token(Optional[NextToken], default:None) –The pagination token to request the next page of results.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 | |