get_buckets_aggregation
¶
get_buckets_aggregation(
query_string: QueryString,
aggregation_field: AggregationField,
buckets_aggregation_type: BucketsAggregationType,
*,
config_overrides: Optional[IoTClientConfig] = None,
index_name: Optional[IndexName] = None,
query_version: Optional[QueryVersion] = None,
) -> GetBucketsAggregationResponse
Aggregates on indexed data with search queries pertaining to particular fields.
Requires permission to access the GetBucketsAggregation action.
Parameters:
-
index_name(Optional[IndexName], default:None) –The name of the index to search.
-
query_string(QueryString) –The search query string.
-
aggregation_field(AggregationField) –The aggregation field.
-
query_version(Optional[QueryVersion], default:None) –The version of the query.
-
buckets_aggregation_type(BucketsAggregationType) –The basic control of the response shape and the bucket aggregation type to perform.
Raises:
-
IndexNotReadyException–The index is not ready.
-
InternalFailureException–An unexpected error has occurred.
-
InvalidAggregationException–The aggregation is invalid.
-
InvalidQueryException–The query is invalid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 | |