get_cardinality
¶
get_cardinality(
query_string: QueryString,
*,
config_overrides: Optional[IoTClientConfig] = None,
index_name: Optional[IndexName] = None,
aggregation_field: Optional[AggregationField] = None,
query_version: Optional[QueryVersion] = None,
) -> GetCardinalityResponse
Returns the approximate count of unique values that match the query.
Requires permission to access the GetCardinality action.
Parameters:
-
index_name(Optional[IndexName], default:None) –The name of the index to search.
-
query_string(QueryString) –The search query string.
-
aggregation_field(Optional[AggregationField], default:None) –The field to aggregate.
-
query_version(Optional[QueryVersion], default:None) –The query version.
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
8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 | |