BucketAnalytics
Retrieves bucket analytics configurations, which define storage class analysis and data usage patterns for optimizing storage costs.
View-Specific Information
The provider uses the Amazon S3 API to process filter criteria that reference the Bucket column, and processes all other filters client-side within the provider. This view returns the analytics configurations for a single bucket, so each query must include a Bucket filter.
SELECT
The following query is processed server-side:SELECT * FROM BucketAnalytics WHERE Bucket = 'TestBucket'
Columns
| Name | Type | Description |
| Id [KEY] | String | A unique identifier for the analytics configuration, used to distinguish it from other configurations in the same bucket. |
| FilterPrefix | String | Defines the key name prefix that objects must match to be included in the analytics results, allowing filtering by object path. |
| OutputSchemaVersion | String | Indicates the schema version used when exporting analytics results. This is currently required to be V_1. |
| DestinationBucket | String | The Amazon Resource Name (ARN) of the S3 bucket where the analytics results are delivered. |
| DestinationFormat | String | Specifies the file format of the analytics output, such as CSV, for easier analysis and reporting. |
| DestinationPrefix | String | A key prefix that is added to all exported analytics result files stored in the destination bucket. |
| Bucket | String | The name of the source S3 bucket for which the analytics configuration is defined. |