list_free_trial_statuses_v2
¶
list_free_trial_statuses_v2(
*,
config_overrides: Optional[SecurityHubClientConfig] = 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/security_hub.py
7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 | |