Skip to content

GetBucketStatistics

Source: src/AWS/Macie2/GetBucketStatistics.ts

Runtime binding for macie2:GetBucketStatistics.

Retrieves (queries) aggregated statistical data about all the S3 buckets that Amazon Macie monitors and analyzes for an account. Account-level operation — invoked with the caller’s request as-is. Provide the implementation with Effect.provide(AWS.Macie2.GetBucketStatisticsHttp).

// init — account-level binding, no resource argument
const getBucketStatistics = yield* AWS.Macie2.GetBucketStatistics();
// runtime
const { bucketCount } = yield* getBucketStatistics({});