Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns the approximate count of unique values that match the query.
Requires permission to access the GetCardinality action.
Synopsis
- data GetCardinality = GetCardinality' {}
- newGetCardinality :: Text -> GetCardinality
- getCardinality_aggregationField :: Lens' GetCardinality (Maybe Text)
- getCardinality_indexName :: Lens' GetCardinality (Maybe Text)
- getCardinality_queryVersion :: Lens' GetCardinality (Maybe Text)
- getCardinality_queryString :: Lens' GetCardinality Text
- data GetCardinalityResponse = GetCardinalityResponse' {
- cardinality :: Maybe Int
- httpStatus :: Int
- newGetCardinalityResponse :: Int -> GetCardinalityResponse
- getCardinalityResponse_cardinality :: Lens' GetCardinalityResponse (Maybe Int)
- getCardinalityResponse_httpStatus :: Lens' GetCardinalityResponse Int
Creating a Request
data GetCardinality Source #
See: newGetCardinality
smart constructor.
GetCardinality' | |
|
Instances
Create a value of GetCardinality
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:aggregationField:GetCardinality'
, getCardinality_aggregationField
- The field to aggregate.
$sel:indexName:GetCardinality'
, getCardinality_indexName
- The name of the index to search.
$sel:queryVersion:GetCardinality'
, getCardinality_queryVersion
- The query version.
GetCardinality
, getCardinality_queryString
- The search query string.
Request Lenses
getCardinality_aggregationField :: Lens' GetCardinality (Maybe Text) Source #
The field to aggregate.
getCardinality_indexName :: Lens' GetCardinality (Maybe Text) Source #
The name of the index to search.
getCardinality_queryVersion :: Lens' GetCardinality (Maybe Text) Source #
The query version.
getCardinality_queryString :: Lens' GetCardinality Text Source #
The search query string.
Destructuring the Response
data GetCardinalityResponse Source #
See: newGetCardinalityResponse
smart constructor.
GetCardinalityResponse' | |
|
Instances
newGetCardinalityResponse Source #
Create a value of GetCardinalityResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cardinality:GetCardinalityResponse'
, getCardinalityResponse_cardinality
- The approximate count of unique values that match the query.
$sel:httpStatus:GetCardinalityResponse'
, getCardinalityResponse_httpStatus
- The response's http status code.
Response Lenses
getCardinalityResponse_cardinality :: Lens' GetCardinalityResponse (Maybe Int) Source #
The approximate count of unique values that match the query.
getCardinalityResponse_httpStatus :: Lens' GetCardinalityResponse Int Source #
The response's http status code.