amazonka-wisdom-2.0: Amazon Connect Wisdom Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

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

  • 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
ToJSON SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.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

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 #

Generic SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Associated Types

type Rep SearchSessions :: Type -> Type #

Read SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Show SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

NFData SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Methods

rnf :: SearchSessions -> () #

Eq SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Hashable SearchSessions Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

type AWSResponse 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" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" 'False) (C1 ('MetaCons "SearchSessions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "assistantId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "searchExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SearchExpression))))

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

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.

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_maxResults :: Lens' SearchSessions (Maybe Natural) Source #

The maximum number of results to return per page.

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_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
Generic SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Associated Types

type Rep SearchSessionsResponse :: Type -> Type #

Read SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Show SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

NFData SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

Methods

rnf :: SearchSessionsResponse -> () #

Eq SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

type Rep SearchSessionsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchSessions

type Rep SearchSessionsResponse = D1 ('MetaData "SearchSessionsResponse" "Amazonka.Wisdom.SearchSessions" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" '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:

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.