IoT.Client.get_cardinality(**kwargs)¶Returns the approximate count of unique values that match the query.
Requires permission to access the GetCardinality action.
See also: AWS API Documentation
Request Syntax
response = client.get_cardinality(
indexName='string',
queryString='string',
aggregationField='string',
queryVersion='string'
)
[REQUIRED]
The search query string.
dict
Response Syntax
{
'cardinality': 123
}
Response Structure
(dict) --
cardinality (integer) --
The approximate count of unique values that match the query.
Exceptions
IoT.Client.exceptions.InvalidRequestExceptionIoT.Client.exceptions.ThrottlingExceptionIoT.Client.exceptions.UnauthorizedExceptionIoT.Client.exceptions.ServiceUnavailableExceptionIoT.Client.exceptions.InternalFailureExceptionIoT.Client.exceptions.ResourceNotFoundExceptionIoT.Client.exceptions.InvalidQueryExceptionIoT.Client.exceptions.InvalidAggregationExceptionIoT.Client.exceptions.IndexNotReadyException