Skip to main content

buckets_aggregations

Creates, updates, deletes, gets or lists a buckets_aggregations resource.

Overview

Namebuckets_aggregations
TypeResource
Idaws.iot.buckets_aggregations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bucketsarrayThe main part of the response with a list of buckets. Each bucket contains a keyValue and a count. keyValue: The aggregation field value counted for the particular bucket. count: The number of documents that have that value.
total_countintegerThe total number of things that fit the query string criteria.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_buckets_aggregationselectregionAggregates on indexed data with search queries pertaining to particular fields. Requires permission to access the GetBucketsAggregation action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Aggregates on indexed data with search queries pertaining to particular fields. Requires permission to access the GetBucketsAggregation action.

SELECT
buckets,
total_count
FROM aws.iot.buckets_aggregations
WHERE region = '{{ region }}' -- required
;