get_usage_statistics
¶
get_usage_statistics(
*,
config_overrides: Optional[Macie2ClientConfig] = None,
filter_by: Optional[__listOfUsageStatisticsFilter] = None,
max_results: Optional[__integer] = None,
next_token: Optional[__string] = None,
sort_by: Optional[UsageStatisticsSortBy] = None,
time_range: Optional[TimeRange] = None,
) -> GetUsageStatisticsResponse
Retrieves (queries) quotas and aggregated usage data for one or more accounts.
Parameters:
-
filter_by(Optional[__listOfUsageStatisticsFilter], default:None) –An array of objects, one for each condition to use to filter the query results. If you specify more than one condition, Amazon Macie uses an AND operator to join the conditions.
-
max_results(Optional[__integer], default:None) –The maximum number of items to include in each page of the response.
-
next_token(Optional[__string], default:None) –The nextToken string that specifies which page of results to return in a paginated response.
-
sort_by(Optional[UsageStatisticsSortBy], default:None) –The criteria to use to sort the query results.
-
time_range(Optional[TimeRange], default:None) –The inclusive time period to query usage data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value, Amazon Macie provides usage data for the preceding 30 days.
Raises:
-
AccessDeniedException–Provides information about an error that occurred due to insufficient access to a specified resource.
-
ConflictException–Provides information about an error that occurred due to a versioning conflict for a specified resource.
-
InternalServerException–Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
-
ResourceNotFoundException–Provides information about an error that occurred because a specified resource wasn't found.
-
ServiceQuotaExceededException–Provides information about an error that occurred due to one or more service quotas for an account.
-
ThrottlingException–Provides information about an error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–Provides information about an error that occurred due to a syntax error in a request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_macie2/_services/macie2.py
2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 | |