get_usage_statistics
async
¶
get_usage_statistics(
*,
config_overrides: Optional[AsyncMacie2ClientConfig] = 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/async_macie2.py
2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 | |