libZSservicesZSamazonka-wisdomZSamazonka-wisdom
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Wisdom.QueryAssistant

Description

Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.

This operation returns paginated results.

Synopsis

Creating a Request

data QueryAssistant Source #

See: newQueryAssistant smart constructor.

Constructors

QueryAssistant' 

Fields

  • nextToken :: Maybe Text

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • assistantId :: Text

    The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

  • queryText :: Sensitive Text

    The text to search for.

Instances

Instances details
Eq QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Show QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Generic QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Associated Types

type Rep QueryAssistant :: Type -> Type #

NFData QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Methods

rnf :: QueryAssistant -> () #

Hashable QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

ToJSON QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

AWSPager QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

AWSRequest QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Associated Types

type AWSResponse QueryAssistant #

ToHeaders QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

ToPath QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

ToQuery QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

type Rep QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

type Rep QueryAssistant = D1 ('MetaData "QueryAssistant" "Amazonka.Wisdom.QueryAssistant" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "QueryAssistant'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "assistantId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "queryText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))
type AWSResponse QueryAssistant Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

newQueryAssistant Source #

Create a value of QueryAssistant 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:nextToken:QueryAssistant', queryAssistant_nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

$sel:maxResults:QueryAssistant', queryAssistant_maxResults - The maximum number of results to return per page.

$sel:assistantId:QueryAssistant', queryAssistant_assistantId - The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

$sel:queryText:QueryAssistant', queryAssistant_queryText - The text to search for.

Request Lenses

queryAssistant_nextToken :: Lens' QueryAssistant (Maybe Text) Source #

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

queryAssistant_maxResults :: Lens' QueryAssistant (Maybe Natural) Source #

The maximum number of results to return per page.

queryAssistant_assistantId :: Lens' QueryAssistant Text Source #

The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

Destructuring the Response

data QueryAssistantResponse Source #

See: newQueryAssistantResponse smart constructor.

Constructors

QueryAssistantResponse' 

Fields

Instances

Instances details
Eq QueryAssistantResponse Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Show QueryAssistantResponse Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Generic QueryAssistantResponse Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Associated Types

type Rep QueryAssistantResponse :: Type -> Type #

NFData QueryAssistantResponse Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

Methods

rnf :: QueryAssistantResponse -> () #

type Rep QueryAssistantResponse Source # 
Instance details

Defined in Amazonka.Wisdom.QueryAssistant

type Rep QueryAssistantResponse = D1 ('MetaData "QueryAssistantResponse" "Amazonka.Wisdom.QueryAssistant" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "QueryAssistantResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ResultData]))))

newQueryAssistantResponse Source #

Create a value of QueryAssistantResponse 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:nextToken:QueryAssistant', queryAssistantResponse_nextToken - If there are additional results, this is the token for the next set of results.

$sel:httpStatus:QueryAssistantResponse', queryAssistantResponse_httpStatus - The response's http status code.

$sel:results:QueryAssistantResponse', queryAssistantResponse_results - The results of the query.

Response Lenses

queryAssistantResponse_nextToken :: Lens' QueryAssistantResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.