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
7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 | |