Measure a bucket
measure_bucketCounts a bounded piece of a bucket and hands back a position to continue from. To total the bucket, call this again with that position as continuationToken, and keep going until no position comes back - that is the end of the bucket, however few objects the last chunk counted. A true restarted means the position you gave was refused: drop whatever you had accumulated from earlier calls, because the count began again from the start. The numbers cover only what this connection's grant can see, never more. This counts current objects only - it does not include old versions, delete markers, or the parts of an unfinished multipart upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | Bucket name. | |
| prefix | No | Key prefix to count under. Empty counts the whole bucket. | |
| connectionId | Yes | Connection id from list_connections. | |
| continuationToken | No | nextToken from a previous call, to keep counting from where it left off. Omit to start from the beginning. |