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.SearchSessions

Description

Searches for sessions.

This operation returns paginated results.

Synopsis

Creating a Request

data SearchSessions Source #

See: newSearchSessions smart constructor.

Constructors

SearchSessions' 

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.

  • searchExpression :: SearchExpression

    The search expression to filter results.

Instances

Instances details
Eq SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Read SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Show SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Generic SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Associated Types

type Rep SearchSessions :: Type -> Type #

NFData SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Methods

rnf :: SearchSessions -> () #

Hashable SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

ToJSON SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

AWSPager SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

AWSRequest SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Associated Types

type AWSResponse SearchSessions #

ToHeaders SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

ToPath SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

ToQuery SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

type Rep SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

type Rep SearchSessions = D1 ('MetaData "SearchSessions" "Amazonka.Wisdom.SearchSessions" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "SearchSessions'" '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 "searchExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SearchExpression))))
type AWSResponse SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

newSearchSessions Source #

Create a value of SearchSessions 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:SearchSessions', searchSessions_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:SearchSessions', searchSessions_maxResults - The maximum number of results to return per page.

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

$sel:searchExpression:SearchSessions', searchSessions_searchExpression - The search expression to filter results.

Request Lenses

searchSessions_nextToken :: Lens' SearchSessions (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.

searchSessions_maxResults :: Lens' SearchSessions (Maybe Natural) Source #

The maximum number of results to return per page.

searchSessions_assistantId :: Lens' SearchSessions 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 SearchSessionsResponse Source #

See: newSearchSessionsResponse smart constructor.

Constructors

SearchSessionsResponse' 

Fields

Instances

Instances details
Eq SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Read SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Show SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Generic SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Associated Types

type Rep SearchSessionsResponse :: Type -> Type #

NFData SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Methods

rnf :: SearchSessionsResponse -> () #

type Rep SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

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

newSearchSessionsResponse Source #

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

$sel:httpStatus:SearchSessionsResponse', searchSessionsResponse_httpStatus - The response's http status code.

$sel:sessionSummaries:SearchSessionsResponse', searchSessionsResponse_sessionSummaries - Summary information about the sessions.

Response Lenses

searchSessionsResponse_nextToken :: Lens' SearchSessionsResponse (Maybe Text) Source #

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