get_finding_statistics
¶
get_finding_statistics(
*,
config_overrides: Optional[Macie2ClientConfig] = None,
finding_criteria: Optional[FindingCriteria] = None,
group_by: Optional[GroupBy] = None,
size: Optional[__integer] = None,
sort_criteria: Optional[FindingStatisticsSortCriteria] = None,
) -> GetFindingStatisticsResponse
Retrieves (queries) aggregated statistical data about findings.
Parameters:
-
finding_criteria(Optional[FindingCriteria], default:None) –The criteria to use to filter the query results.
-
group_by(Optional[GroupBy], default:None) –The finding property to use to group the query results. Valid values are:
classificationDetails.jobId - The unique identifier for the classification job that produced the finding.
resourcesAffected.s3Bucket.name - The name of the S3 bucket that the finding applies to.
severity.description - The severity level of the finding, such as High or Medium.
type - The type of finding, such as Policy:IAMUser/S3BucketPublic and SensitiveData:S3Object/Personal.
-
size(Optional[__integer], default:None) –The maximum number of items to include in each page of the response.
-
sort_criteria(Optional[FindingStatisticsSortCriteria], default:None) –The criteria to use to sort the query results.
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
2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 | |