Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets the suggesters configured for a domain. A suggester enables you to
display possible matches before users finish typing their queries. Can
be limited to specific suggesters by name. By default, shows all
suggesters and includes any pending changes to the configuration. Set
the Deployed
option to true
to show the active configuration and
exclude pending changes. For more information, see
Getting Search Suggestions
in the Amazon CloudSearch Developer Guide.
Synopsis
- data DescribeSuggesters = DescribeSuggesters' {
- deployed :: Maybe Bool
- suggesterNames :: Maybe [Text]
- domainName :: Text
- newDescribeSuggesters :: Text -> DescribeSuggesters
- describeSuggesters_deployed :: Lens' DescribeSuggesters (Maybe Bool)
- describeSuggesters_suggesterNames :: Lens' DescribeSuggesters (Maybe [Text])
- describeSuggesters_domainName :: Lens' DescribeSuggesters Text
- data DescribeSuggestersResponse = DescribeSuggestersResponse' {
- httpStatus :: Int
- suggesters :: [SuggesterStatus]
- newDescribeSuggestersResponse :: Int -> DescribeSuggestersResponse
- describeSuggestersResponse_httpStatus :: Lens' DescribeSuggestersResponse Int
- describeSuggestersResponse_suggesters :: Lens' DescribeSuggestersResponse [SuggesterStatus]
Creating a Request
data DescribeSuggesters Source #
Container for the parameters to the DescribeSuggester
operation.
Specifies the name of the domain you want to describe. To restrict the
response to particular suggesters, specify the names of the suggesters
you want to describe. To show the active configuration and exclude any
pending changes, set the Deployed
option to true
.
See: newDescribeSuggesters
smart constructor.
DescribeSuggesters' | |
|
Instances
newDescribeSuggesters Source #
Create a value of DescribeSuggesters
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:deployed:DescribeSuggesters'
, describeSuggesters_deployed
- Whether to display the deployed configuration (true
) or include any
pending changes (false
). Defaults to false
.
$sel:suggesterNames:DescribeSuggesters'
, describeSuggesters_suggesterNames
- The suggesters you want to describe.
$sel:domainName:DescribeSuggesters'
, describeSuggesters_domainName
- The name of the domain you want to describe.
Request Lenses
describeSuggesters_deployed :: Lens' DescribeSuggesters (Maybe Bool) Source #
Whether to display the deployed configuration (true
) or include any
pending changes (false
). Defaults to false
.
describeSuggesters_suggesterNames :: Lens' DescribeSuggesters (Maybe [Text]) Source #
The suggesters you want to describe.
describeSuggesters_domainName :: Lens' DescribeSuggesters Text Source #
The name of the domain you want to describe.
Destructuring the Response
data DescribeSuggestersResponse Source #
The result of a DescribeSuggesters
request.
See: newDescribeSuggestersResponse
smart constructor.
DescribeSuggestersResponse' | |
|
Instances
newDescribeSuggestersResponse Source #
Create a value of DescribeSuggestersResponse
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:httpStatus:DescribeSuggestersResponse'
, describeSuggestersResponse_httpStatus
- The response's http status code.
$sel:suggesters:DescribeSuggestersResponse'
, describeSuggestersResponse_suggesters
- The suggesters configured for the domain specified in the request.
Response Lenses
describeSuggestersResponse_httpStatus :: Lens' DescribeSuggestersResponse Int Source #
The response's http status code.
describeSuggestersResponse_suggesters :: Lens' DescribeSuggestersResponse [SuggesterStatus] Source #
The suggesters configured for the domain specified in the request.