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
6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 | |